I am creating explosions, fire animation through the particle emitter ( such as bullet hits enemy ). Well the effect looks good but after some time my game play looks jerky since In my game I used lots of particle effects.I observation I found that the particles are released only after replacing the new scene.
I would like to know that is it possible to released the particle in game play after the use. Please help me.
Particle System : How to dealloc particles at run time.
(4 posts) (3 voices)-
Posted 2 years ago #
-
You have an autoRemoveOnFinish property, so you can use it like:
emitter.autoRemoveOnFinish = YES;
Posted 2 years ago # -
Thanks for reply.
I am using cocos2d 0.8 version. I didn't find the property emitter.autoRemoveOnFinish = YES;Posted 2 years ago # -
crmagicxxx is right, its there (at least in 0.8.2), look in ParticleSystem.h/.m
Posted 2 years ago #
Reply
You must log in to post.