Jump to content

Phaser Collision Detection not working


CharlesCraft50
 Share

Recommended Posts

playerShoes is not colliding with other sprites when changing its position: //playerShoes.body.x = player.body.x + 21; playerShoes.body.y  = player.body.y + 95;
in update function.

function update() {
   playerShoes.body.x = player.body.x + 21;
   playerShoes.body.y = player.body.y + 95;
   
   game.physics.arcade.collide(playerShoes, world_Resources_2_layer);
   //Other collsions...
}

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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