Page 1 of 1

How can I tell if a particle system has active particles?

Posted: Mon Sep 03, 2018 2:11 am
by jhessin
Hello,

Is there some way of telling if a given particle system has active particles? I know that particleSystem:isActive() will tell you if it is actively emitting particles, but that doesn't tell me if there are any active particles - is there a particular way of determining that?

What I'm trying to do is have a particleSystem pool that I can pull an inactive particle system from (one that doesn't have any particles to draw) and use that or add a new one if all are active. The problem is that I keep pulling the same system and sometimes particles that have already been emitted are being changed.

If there is no way to do this I would like to put in a feature request for it.

Thanks for all the Löve❤️!

Re: How can I tell if a particle system has active particles?

Posted: Mon Sep 03, 2018 10:13 am
by grump