pixijs / particle-emitter

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

Issue with animation #74

Closed peternikhil28 closed 3 years ago

peternikhil28 commented 6 years ago

Animation of all the particles is not playing properly after 1st particle's lifetime gets over during emission. If I increase lifetime of particles, animation plays properly for a longer time. That is duration of how much time animation plays properly differs with lifetime of particle.

andrewstart commented 6 years ago

Do you have an example of this behavior that I can inspect?

peternikhil28 commented 6 years ago

Yes. Please check the attachment.

After 8 sec, that is the minimum lifetime, animation is not proper.

Another issue which I saw was for addAtBack. Just examine what happens if you make addAtBack true for the same code. You can see that animation is not proper till the emission ends. Test.zip

andrewstart commented 6 years ago

Sorry that this got left for a while, I missed your response. Bad news: This is some odd behavior that I don't know how to fix (but am currently looking at). Good news: This is specific to ParticleContainers - if you change your parent to be a regular PIXI.Container it'll work fine.

andrewstart commented 6 years ago

For the time being, I've removed the special handling for ParticleContainers in version 3 - it'll work the same as a Container, although the performance may not be better.