Hi,
I'm working on something where discs slide around the screen, and I want to make it such that the user's most recent shot with one of these discs will have a trail behind it, using a CCParticleSystem.
I could use some help. I kept the particle system as a member of my Disc class (which itself inherits from CCNode). I thought that if I add the particle system as a child to my disc class, whenever I update the disc's position, the ParticleSystem will move with it.
As it so happens, the Chipmunk physics objects are placed in the right spot, but the disc objects as well as the Particle System are drawn at 0,0 and can't be changed.
If I comment out the initialisation of the Particle System everything works correctly.
So my question is how does one integrate a particleSystem into their code? The tests seem to be somewhat simple examples, because the particle system is a child of the Layer, and one changes the position of the emitter directly - I'm trying something a little bit (but not much?) more complicated.
At any rate, I'm finding this area of Cocos2D doesn't have too much documentation / tutorials associated with it and I'm not the most experienced programmer.
Any help would be appreciated.