bali33 Posted January 12, 2015 Share Posted January 12, 2015 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 More sharing options...
CtlAltDel Posted January 12, 2015 Share Posted January 12, 2015 http://examples.phaser.io/_site/view_full.html?d=sprites&f=overlap+without+physics.js&t=overlap%20without%20physics That should do the trick Link to comment Share on other sites More sharing options...
bali33 Posted January 13, 2015 Author Share Posted January 13, 2015 Yes, it should be the trick indeed ! Thank you ! Link to comment Share on other sites More sharing options...
Recommended Posts