Jump to content

Physics overlap check running function when there is no overlap


marros1812
 Share

Recommended Posts

I have a bit of code, 

game.physics.arcade.overlap(Player, collisionLayer3, climb);function climb() {    Player.body.velocity.y = - 150;}

Now the way I would expect this to work is when the player is overlapping with the collisionLayer3 the function should run however as soon as the game starts the functions runs even though there is no overlap, any ideas?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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