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

ability to stop the emitter #23

Open
RollinSafary opened this issue Nov 29, 2017 · 1 comment
Open

ability to stop the emitter #23

RollinSafary opened this issue Nov 29, 2017 · 1 comment

Comments

@RollinSafary
Copy link
Contributor

there is no stop method to stop emitting

@riyuk
Copy link

riyuk commented Apr 20, 2018

You need to save the particle effect:
let effect = game.make.particleEffect(state.world.centerX, state.world.centerY, 'jsonName')

You can then do effect.removeEmitter('default'); effect.destroy();

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

No branches or pull requests

2 participants