ManBoy Posted August 20, 2015 Share Posted August 20, 2015 I am creating a breakout game, basically similar to the one in the example.http://phaser.io/examples/v2/games/breakout I'm using arcade physics and I have a sprite called 'Thunder' that will fall down by changing the y velocity. Like the example game, the paddle is moved by following the mouse positionthis.player.x = this.game.input.x;Now the thunder that is falling down can be detected if it hits by falling down to the player (paddle). *Thunder* | | COLLISION HAPPENS v*Player*However, if the player is moving towards the falling thunder via mouse, the collision doesn't happen. | | NO COLLISION v*Player* ---> *Thunder*It was working both ways previously when I was using Phaser 1.1.6. Now I'm upgrading to 2.4.2 and for some reason the collision isn't detected anymore. Any idea why? Link to comment Share on other sites More sharing options...
ManBoy Posted August 24, 2015 Author Share Posted August 24, 2015 Here are the links to the game: Phaser 1.1.6http://manboygames.com/html5/dev/nimbus_jr/ Phaser 2.4.2http://manboygames.com/html5/dev/nimbus_jr_v2/ In the previous version the collision works fine. However in the new version, the collision is only detected when the sprite hit from above. Is anyone else having the same problem? Link to comment Share on other sites More sharing options...
Recommended Posts