pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
793 stars 125 forks source link

Independent Ticker? #72

Closed gregmax17 closed 6 years ago

gregmax17 commented 6 years ago

Right now the particles can run via shared ticker, or manually. Is there a way to make them run independently? I'm in a situation where I have the game uses the shared ticker (animated sprites, some particle effects, etc), and when I go to the pause menu I have to pause the shared ticker but I still have particles in that.

Should I just make another ticker specifically for the particles? I think it would be nice if it had one internally, or at least use that internal one. Or maybe ignore the speed of the shared ticker?

Thoughts?

andrewstart commented 6 years ago

You will want to make another ticker just for the UI particles, so you can run those while the main game is paused. I am not particularly inclined to add in an internal ticker due to the infinite variety of people's ticker needs and implementations. Requiring an update method to be called results in the simplest way for allowing full control.