This article has not yet passed wikiHow's quality review process. Learn more
Edit Article

When more than one ImageSprite is on a Canvas and those sprites can be dragged, then it is common for one sprite to 'capture' another if they touch. Once 'captured' the two are stuck together. To avoid this a few simple steps are required.

Ok,
Close
This article has not yet passed wikiHow's quality review process. Learn more

Steps

  1. 1
    Get an idea of the whole project first. What we are going to do is add a special placeholder ImageSprite to the Canvas and test inside each of your ImageSprites' Dragged event blocks to make sure it is the one that is currently being dragged. If it is the current ImageSprite then it will allow itself to be dragged. If it is not the current ImageSprite then it will not react to the event This is best shown with images from the Screen Designer and Blocks Editor.
  2. 2
    Create PlaceHolderISP ImageSprite. Uncheck it's Visible property.
  3. 3
    Create a global variable CurrentISP.
  4. 4
    Drag out TouchDown, TouchUp event blocks. For each ImageSprite, set their values as shown above.
  5. 5
    Add 'If' blocks. Does the CurrentISP variable contain the Dragged event's component value?
  6. 6
    Your Canvas will now be free of ImageSprite cannibals!

We could really use your help!

Can you tell us about
Adobe Photoshop?
Can you help us
rate articles?
Yes
No
Adobe Photoshop
how to use the warp tool in Photoshop
Can you tell us about
Dell computers?
Yes
No
Dell computers
how to repair Dell laptop keyboard keys
Can you tell us about
unemployment?
Yes
No
unemployment
how to survive if you cannot find a job
Can you tell us about
web site traffic and advertising?
Yes
No
web site traffic and advertising
how to promote a website
Thanks for helping! Please tell us everything you know about
...
Tell us everything you know here. Remember, more detail is better.
Tips
Provide Details.
Please be as detailed as possible in your explanation. Don't worry about formatting! We'll take care of it. For example:
Don't say: Eat more fats.
Do say: Add fats with some nutritional value to the foods you already eat. Try olive oil, butter, avocado, and mayonnaise.

Article Info

Categories: Website Application Instructions

Thanks to all authors for creating a page that has been read 577 times.

Did this article help you?
Yes No