I want to create a cool looking trail effect. Cocos has a cool particle emitter class, nice! I'll use that-
Me being the newbie that I am, I just created a short-living ParticleSystem in my gameloop at each 'tick,' and added it with addChild: (each tick...). This was located at what I'll call the 'player.'
> emitter.position = playerBody->p;
It didn't take long for the memory to run out, but it did exactly what I wanted it to do - create a cool trail.
So instead, because the frame-rate dropped over about a minute or so, I decided I would just include one particle emitter and update its location, just like above. But this in turn updated the positions of all of the particles that came out of the emitter.
How would I just update the source position of the emitter and not its particles? I guess, what I'm asking is: Is there an easy way to do it in Cocos, or should I go under the hood of Cocos?
Thanks!