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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
jhessin
Prole
Posts: 2
Joined: Mon Sep 03, 2018 2:02 am

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

Post 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❤️!
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

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

Post by grump »

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests