Open GoogleCodeExporter opened 8 years ago
Not a bug the default emitter mode for cocos2d android-1 is
CCParticleSystem.kCCPositionTypeGrouped. To have free movement use this
PARTICLE_SYSTEM.setEmitterMode(CCParticleSystem.kPositionTypeFree).
Original comment by thomashi...@gmail.com
on 20 May 2011 at 6:22
Thanks for the answer. Sincerely I didn't know that there are such emitter
settings.
But setting the emitterMode don't had the desired effect for me. But I
discovered that I got the effect with setting the position type of the emitter:
emitter.setPositionType(CCParticleSystem.kCCParticleModeGravity)
Perhaps this is helpful for other.
Original comment by erdenkri...@googlemail.com
on 22 May 2011 at 7:47
Yeah I had the same problem on my last project glad you found the solution.
Original comment by thomashi...@gmail.com
on 23 May 2011 at 5:41
Hi!
I think the problem is in the CCParticleSystem kPositionTypeFree variable must
be kCCPositionTypeFree:
protected CCParticleSystem(int numberOfParticles) {
totalParticles = numberOfParticles;
particles = new CCParticle[totalParticles];
for (int i = 0; i < totalParticles; i++) {
particles[i] = new CCParticle();
}
// default, active
active = true;
// default movement type;
positionType_ = kPositionTypeFree;
*************** And the kPositionTypeFree must be KCCPositionTypeFree:
************
// default movement type;
positionType_ = kCCPositionTypeFree;
Original comment by manu.msp...@gmail.com
on 2 Jun 2011 at 12:24
Original issue reported on code.google.com by
erdenkri...@googlemail.com
on 18 May 2011 at 5:27