Jump to content

Hit test between DisplayObject ?


bali33
 Share

Recommended Posts

Hello !

 

I'm working on a game in which I need  to implement a Drag & Drop - So I will have some draggable Sprite and some "drop area" Sprite. What would be the best way to detect which "drop area" Sprite is below a draggable Sprite during the drag and the drop ?

 

I came from Flash and I thought that may be a kind of DisplayObject.hittest(target:DisplayObject):Boolean would exist but it seems that is not the case. How would you achieve that king of behavior ?

 

Thank you

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...