Revan59 Posted May 27, 2015 Share Posted May 27, 2015 Hi,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 More sharing options...
Recommended Posts