Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phaser.Weapon.autofire not working #2647

Closed
ghost opened this issue Jul 19, 2016 · 4 comments
Closed

Phaser.Weapon.autofire not working #2647

ghost opened this issue Jul 19, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 19, 2016

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?

Thanks.

@photonstorm
Copy link
Collaborator

Have you actually called fire? It needs to be started off, and then will continue after that.

@ghost
Copy link
Author

ghost commented Jul 20, 2016

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

photonstorm added a commit that referenced this issue Jul 20, 2016
… 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)
@photonstorm
Copy link
Collaborator

Thanks for submitting this issue. We have fixed this, and the fix has been pushed to the dev branch.

@JarLowrey
Copy link
Contributor

Any idea when this will be published into stable? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants