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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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