Hello, i'm having a problem using autofire method in Phaser.Weapon, i set that attribute to true, but nothing happens, i tried it into this code http://phaser.io/examples/v2/weapon/fire-rate#gv.
Am i missing something?
Have you actually called fire? It needs to be started off, and then will continue after that.
Yes, as soon as the weapon and its bullets are created, i set its autofire to true, then i fire but it doesn't keep firing, unless i keep the fire button pressed.
Edit: I'm using phaser 2.6.1
Weapon.autofire wouldn't fire after the first bullet, or until `fire`…
… was called, neither of which are requirements. If you now set this boolean the Weapon will fire continuously until you toggle it back to false (thanks @alverLopez #2647)
Thanks for submitting this issue. We have fixed this, and the fix has been pushed to the dev branch.
Any idea when this will be published into stable? Thanks!