Is there a way to stop a particle system gracefully -- ie. I call stop, and the particles dissipate naturally, no new particles are generated.
Asked
Active
Viewed 376 times
2 Answers
1
I use ParticleSystemQuad
. So, to stop particles emitting, I set
particle->stopSystem();
particle->setAutoRemoveOnFinish(true);
It stops the particle emission and then, after disappearing last particle, auto removes particle system.

alc77
- 399
- 1
- 10
- 22
0
You can also set Visible false Or Remove from parant
ParticleSystemQuad *m_emitter=ParticleSystemQuad::create(ch);
m_emitter->setVisible(true);
this->addChild(m_emitter,50);
m_emitter->setPosition(100,100);
m_emitter->setVisible(false);
Or
m_emitter->runAction(Sequence::create(DelayTime::create(3.0),RemoveSelf::create(), NULL));

Hitesh Rajyaguru
- 87
- 18