Emit particles from Particle Emitter only once

Hello,

What’s the best way to:

  1. Load Particle Emitter (I mean, attach to rootNode or smth, to make it visible)
  2. Run particles ONLY once
  3. And after that kill particles and detach

I tried comparing Number of currently visible particles with it max etc. etc. but still can’t figure that out.

emitter.setParticlesPerSec(0);
And then to emit:

emitter.emitParticles();

I don’t have docs with me now but names of methods i remember should be similar.

1 Like

Thanks dude!