Flint Particle System Forum - Stop only the creation of new particles? Sun, 26 Dec 2010 18:54:28 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Stop only the creation of new particles? http://flintparticles.org/forum/comments.php?DiscussionID=235&Focus=854#Comment_854 http://flintparticles.org/forum/comments.php?DiscussionID=235&Focus=854#Comment_854 Fri, 10 Jul 2009 16:19:57 +0100 giraz
Here is my question, how do I tell an emitter to stop creating new particles until I ask it to start again?

If I write "emitter.pause()" it will also freeze all the existing particles whilst instead I just want the emitter to pause the creation of new particles.

Thanks
Riccardo

p.s. - also is there any way to perform action with particles depending on their age? ]]>
Stop only the creation of new particles? http://flintparticles.org/forum/comments.php?DiscussionID=235&Focus=857#Comment_857 http://flintparticles.org/forum/comments.php?DiscussionID=235&Focus=857#Comment_857 Sat, 11 Jul 2009 17:48:50 +0100 Richard
To stop stop creating new particles, stop the emitter's counter -

emitter.counter.stop();

Then to start again, resume the counter

emitter.counter.resume();

Regarding actions dependent on a particle's age -
A number of actions, like TweenPosition, Fade, ColorChange, are based on the particle's age. Take a look at the source for any of these for ideas on writing custom actions based on the particle's age. ]]>
Stop only the creation of new particles? http://flintparticles.org/forum/comments.php?DiscussionID=235&Focus=860#Comment_860 http://flintparticles.org/forum/comments.php?DiscussionID=235&Focus=860#Comment_860 Mon, 13 Jul 2009 17:12:02 +0100 giraz