lgomema Posted May 27, 2014 Share Posted May 27, 2014 Hi, I've been trying to figure out a way to fire an event and run some function when an image with a certain gravity falls down and collides with the bottom boundary of the world. I've checked the examples page but I haven't found any that specifically does this. Is this possible using Arcade Physics or any other physics engine? Thanks! Link to comment Share on other sites More sharing options...
Pedro Alpera Posted May 28, 2014 Share Posted May 28, 2014 Look this tutorial: http://www.photonstorm.com/phaser/tutorial-making-your-first-phaser-game This part: // Allow the player to jump if they are touching the ground. if (cursors.up.isDown && player.body.touching.down) { player.body.velocity.y = -350; } Link to comment Share on other sites More sharing options...
Recommended Posts