mrvinegar Posted December 19, 2013 Share Posted December 19, 2013 Is it possible to create a collision handler on draggable objects without setting a velocity? I don't see examples with that...Thanks! Link to comment Share on other sites More sharing options...
XekeDeath Posted December 19, 2013 Share Posted December 19, 2013 I think the only way you would be able to do that is if you use overlap instead of collide. Not strictly a collision, but velocity is required for collisions. Link to comment Share on other sites More sharing options...
mrvinegar Posted December 19, 2013 Author Share Posted December 19, 2013 Aha, overlap works well..Thanks Second question..is there any way to make overlap trigger just before the "overlap" actually happens? I need to make it more forgiving.... Link to comment Share on other sites More sharing options...
mrvinegar Posted December 19, 2013 Author Share Posted December 19, 2013 Solved my question above by putting transparency around the images, I guess I could also manipulate the "body.setSize" property for a similar affect... Link to comment Share on other sites More sharing options...
woratana Posted December 20, 2013 Share Posted December 20, 2013 Yes, setSize will do this work for you! Putting transparency might take time especially if you have spritesheet to add transparency to every frame :/ Link to comment Share on other sites More sharing options...
Recommended Posts