Jump to content

Physics overlap check running function when there is no overlap


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


  • Recently Browsing   0 members

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