Jump to content

collisions aren't working


daniel0514
 Share

Recommended Posts

hello everyone, I'm currently working on a snake-like game and I'm having some problems with the collision between the head and the body of the player, the thing is... they're not colliding!! the head just pass through the body.

 

 

this is the code I'm using to check it:

 

game.physics.arcade.collide(this.player, this.playerBody, this.playerDie, null, this);

 

the body of the snake is set as a group, and the head is just a sprite..

 

I hope someone can help me!

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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