markergreen Posted August 21, 2015 Share Posted August 21, 2015 Is there a collide=false callback? I want function A to fire upon collision and function B to fire if there is no collision; similar to jQuery.ajax success and error callbacks. I want to play my sprite's walk animation on collide=true and it's jump animation on collision=false. Link to comment Share on other sites More sharing options...
markergreen Posted August 21, 2015 Author Share Posted August 21, 2015 Solved this, sorry for the time waste but I may as well post my solution.var myCollision = Climb.game.physics.arcade.collide(goats, platforms, functionA, null, this); // runs collide and savesif(!myCollision){ functionB();} Link to comment Share on other sites More sharing options...
Recommended Posts