cocos2d / cocos2d-objc

Cocos2d for iOS and OS X, built using Objective-C
http://www.cocos2d-objc.org
Other
4.07k stars 1.16k forks source link

CCParticleSystem does not render properly #942

Open ghost opened 10 years ago

ghost commented 10 years ago

Upgrading to from 2.1 to v3.1 has changed the visual representation of my particle system tremendously.

Under v2.1 I initialized a CCParticleSystemQuad using a sprite frame from a sprite sheet (which no longer works). Now in v3.1 I'm using CCParticleSystem (loading in the exact same plist file) and using the same image (only it's a standalone image now).

Under v2.1 the particle system had a more lifelike look. When the particle system moved, the particles would leave a trailing effect giving it the look dynamic malleable shape that a particle system is supposed to have.

Under v3.1, when the particle system moves, it no longer leaves that trailing effect. It moves the whole particle system almost like a sprite and does not look proper. Has any properties changed? sourcePositionVarienceX and sourcePositionVarienceY maybe?

ghost commented 10 years ago

Ah, I figured it out. I had to set the particlePositionType to CCParticleSystemPositionTypeFree. Guess in v2 it just defaulted to that. Now the particle system looks right.