gesichtsfelsen Posted December 11, 2017 Share Posted December 11, 2017 Hi, i'm currently woriking on a litle Phaser side scroller. My problem is, my player can jump on items such as stars, and other things. I tried it with arcade.overlap like this: if (cursors.up.isDown && player1.body.touching.down && !game.physics.arcade.overlap(player1, stars)) { player1.body.velocity.y = -700; } But it didn't work for some reason... I didn't get any errors, but I can still jump on the stars. Does somebody have a solution for this? Link to comment Share on other sites More sharing options...
gesichtsfelsen Posted December 11, 2017 Author Share Posted December 11, 2017 I got it, I changed the map to a tilemap (which is better anyways, just use the old tiled version: https://github.com/bjorn/tiled/releases/tag/v0.18.2) And instant of body.touching.down, I use body.blocked.down now. Link to comment Share on other sites More sharing options...
Recommended Posts