2017년 8월 12일 토요일

How to avoid ImageSprite cannibalism


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 


When more than one ImageSprite can be dragged on a Canvas, unless precautions are taken beforehand they may get 'stuck' together.
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:


--

댓글 3개:

  1. Ever wanted to get free YouTube Views?
    Did you know you can get these AUTOMATICALLY AND ABSOLUTELY FREE by getting an account on Like 4 Like?

    답글삭제
  2. If you want your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (even if they're dating somebody else now) you have to watch this video
    right away...

    (VIDEO) Get your ex back with TEXT messages?

    답글삭제
  3. QUANTUM BINARY SIGNALS

    Professional trading signals delivered to your cell phone every day.

    Follow our signals today and make up to 270% daily.

    답글삭제