wordyAllen Posted October 17, 2015 Share Posted October 17, 2015 Hello, I just started with phaser and I think its great. However, I'm trying to set it so my player bumps into an object once and then can pass it. What I currently have is the player bumping the object off screen. update: function() { game.physics.arcade.collide(player, spriteGroup, this.removeCollision, null, this);},removeCollision: function(player, sprite){ game.physics.arcade.overlap(player, sprite);}Any insight, tutorial, or reading material is appreciate. Link to comment Share on other sites More sharing options...
rich Posted October 18, 2015 Share Posted October 18, 2015 Your player sprite is going to need to keep a list of all the objects it has collided with, and on further collisions check to see if they're in its list or not, and if so then ignore the collision (by returning false from the processCallback) Link to comment Share on other sites More sharing options...
Recommended Posts