Jump to content

Overlap & Tilemap Problem


Recommended Posts


I'm currently working on a game and I wanted the player to be slow down , burnt or poisoned according to where he's walking.
So I tried something like this


game.physics.arcade.overlap(player,StoneLayer,function(){player.speed = 2;});


unfortunatly , the overlap act as a collide when I try this.

I even try that :


game.physics.arcade.overlap(player,StoneLayer,function(){return false;},function(){player.speed = 2;return false;});


but it ended the same way, the player can't walk on the selected layer whereas he's able to do without it.



Any Idea ?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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