antotor Posted March 26, 2015 Share Posted March 26, 2015 Hello guys! I am noob in phaser and js, but i create my first game on phaser engine (: I read all topics on this forum, and read all documentation before create this topic. Guys, i need you help (: 1. Some bullets don't hit in a wall - http://clip.corp.mail.ru/clip/m477/1427358710-clip-70kb-qwUfL2IAaU3y.pngquestion code here - http://wf2d.ru/q1.html Link to comment Share on other sites More sharing options...
JazzAceman Posted March 26, 2015 Share Posted March 26, 2015 I think your problem could be that the bullets are moving to fast, so that the physics engine dosen't notice the collision. Try to set the Phaser.Arcade.Physics.Body's "tilePadding" property.For example:bullet.body.tilePadding.x = 20; bullet.body.tilePadding.y = 30; Link to comment Share on other sites More sharing options...
antotor Posted March 26, 2015 Author Share Posted March 26, 2015 I think your problem could be that the bullets are moving to fast, so that the physics engine dosen't notice the collision. Try to set the Phaser.Arcade.Physics.Body's "tilePadding" property.For example:bullet.body.tilePadding.x = 20; bullet.body.tilePadding.y = 30;Hello! Thank you for help! But that does not fix the problem =( I experimented with bullet speed, you are right, if speed value > 1500 - bullets don't hit the walls... Link to comment Share on other sites More sharing options...
antotor Posted March 31, 2015 Author Share Posted March 31, 2015 any ideas? Link to comment Share on other sites More sharing options...
Akshar Patel Posted March 31, 2015 Share Posted March 31, 2015 What happens if you use P2 instead of Arcade? I too am facing the same problem... Please do check and confirm. Link to comment Share on other sites More sharing options...
Recommended Posts