Jump to content

Physics body - allow player to pass through


mdhdev
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...