Update 2015/12/07: The extra ImageSprite is not needed. Just assign an empty text block to CurrentISP instead of using PlaceholderISP in the TouchUp blocks
YouTube video: App Inventor - avoiding sprite cannibalism
This is referred to as ImageSprite cannibalism.
This App Inventor project demonstrates a simple method to prevent this from happening using an ice hockey rink example.
A global variable, an extra ImageSprite and a couple of if blocks enable only one of two ImageSprites to be dragged at a time:
댓글 없음:
댓글 쓰기