Mefteg Posted February 11, 2014 Share Posted February 11, 2014 Hello everybody, I have an issue with a Sprite vs Sprite collision (Phaser 1.1.4 - Master branch).I don't know why but my player only collides with the bottom of the rock. You can see the problem here : http://folia-game.herokuapp.com/index-dev.html The 2 scripts involved are player.js and rock.js (you can see the code with your developer tools too). The rock is immovable and I call the "game.physics.collide()" in the update function of Rock (in rock.js). As you can see on the image below, my player has a specific bounding box (done with the sprite.body.setRectangle() function). I tried but I can't figure it out. Please, help me Thank you. Link to comment Share on other sites More sharing options...
neon Posted February 11, 2014 Share Posted February 11, 2014 I have a similar issue. Can only collide in the y direction and not x.Have you checked this? http://www.html5gamedevs.com/topic/3733-custom-collision-callback-not-firing-fix/ Link to comment Share on other sites More sharing options...
Mefteg Posted February 11, 2014 Author Share Posted February 11, 2014 Thank you for the answer.I have checked the post but I wasn't sure that it applies to my problem. Now you linked it, I guess I'm sure ^^So we'll see Rich release. Thank you again. Link to comment Share on other sites More sharing options...
Mefteg Posted February 12, 2014 Author Share Posted February 12, 2014 Yeah ! On my birthday Great gift Rich ! Thank you Link to comment Share on other sites More sharing options...
Recommended Posts