Jump to content

many questions by phaser


antotor
 Share

Recommended Posts

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

 

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...