Jump to content

Phaser weapon destroy only one bullet by collision


Recommended Posts

I want to be able to destroy the bullet by collision, but if i use weapon.bullets.destroy();, all the bullets will destroy and the weapon will not work/fire() anymore.
Like this:

     weapon.bulletKillType = Phaser.Weapon.KILL_WORLD_BOUNDS; 
     //weapon.bulletKillType = //Kill the bullet when collision happens;
     //weapon.remove(bullet); like in groups



Link to comment
Share on other sites

  • 3 months later...

  • Recently Browsing   0 members

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