mdhdev Posted December 20, 2017 Share Posted December 20, 2017 My platformer game has floating power ups, I have enabled arcade physics on these and checking for collisions with the player. However, when a collision occurs, the player is able to jump off the power up. This is because I am only allowing a jump action to occur if player.body.touching.down is true. - When the player touches the power up - this evaluates to true an allows the player to jump again mid air. Is there a way to disable this behavior for the power ups so that they are not treated as the floor? Link to comment Share on other sites More sharing options...
samme Posted December 21, 2017 Share Posted December 21, 2017 Can you just use arcade.overlap? mdhdev 1 Link to comment Share on other sites More sharing options...
mdhdev Posted December 21, 2017 Author Share Posted December 21, 2017 I used that, and it worked. Cheers. Link to comment Share on other sites More sharing options...
Recommended Posts