BenWeasel Posted October 9, 2014 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 Link to comment Share on other sites More sharing options...
markusT Posted October 9, 2014 Share Posted October 9, 2014 Check the examples I guess you need a ProcessCallback. http://examples.phaser.io Link to comment Share on other sites More sharing options...
BenWeasel Posted October 9, 2014 Author 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? Link to comment Share on other sites More sharing options...
markusT Posted October 9, 2014 Share Posted October 9, 2014 Right.. If dragged then return "false" in the processCallback function, else return "true". Link to comment Share on other sites More sharing options...
BenWeasel Posted October 9, 2014 Author Share Posted October 9, 2014 It'works!! Thank You markusT !! Link to comment Share on other sites More sharing options...
Recommended Posts