BenWeasel Posted October 9, 2014 Report Share Posted October 9, 2014 Hi,i think it's very simple but i can't get it. I have a sprite i can drag on screen. If sprite overlaps another sprite, collison is detected. No i'd like to stop collision detection when i drag sprite and restart collison when i stop drag.. How can i do this? Thank you Quote Link to comment Share on other sites More sharing options...
markusT Posted October 9, 2014 Report Share Posted October 9, 2014 Check the examples I guess you need a ProcessCallback. http://examples.phaser.io Quote Link to comment Share on other sites More sharing options...
BenWeasel Posted October 9, 2014 Author Report Share Posted October 9, 2014 Thank you, I look at it now. in practice, in my ProcessCallback function i have to check if the sprite dragged or not, right? Quote Link to comment Share on other sites More sharing options...
markusT Posted October 9, 2014 Report Share Posted October 9, 2014 Right.. If dragged then return "false" in the processCallback function, else return "true". Quote Link to comment Share on other sites More sharing options...
BenWeasel Posted October 9, 2014 Author Report Share Posted October 9, 2014 It'works!! Thank You markusT !! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.