Im new to cocos2D.
I would like to draw cloud like particles similar to the figure as one drags across the screen. I tried using CCParticleSmoke but I couldn’t control the spreading of the particle.
@ smoke = [[CCParticleSmoke alloc] initWithTotalParticles:100];
smoke.texture = [[CCTextureCache sharedTextureCache] addImage:
smoke.gravity = CGPointZero;
smoke.startColor = _color;
smoke.posVar = CGPointZero;
In gesture method
smoke.position = pointPosition;
When I run my code, what happens is perpendicular cloud like particles appear though I dragged parallel. Cant get any clues about what to do. I don’t want particles to spread, but as in the above image.
Prior I was trying the idea as in the link http://www.learn-cocos2d.com/2011/12/how-to-use-ccrendertexture-motion-blur-screenshots-drawing-sketches/ in which the result is not fair
Please someone help me doing this as in the first image. Any timely help is appreciated.