I have a simple particle implementation which extends ParticleExplosion, however the particles always fade to white on the device.
They appear fine in the simulator... I asked this question on here before but I received no responses.
All the examples of particles that come with Cocos2D use a dark background, so maybe this is not apparent then.
Here is how i'm initializing the particles
ParticleSystem* p = [[ParticleExplosion alloc] initWithTotalParticles:15];
p.position = ccp(self.position.x + 10, self.position.y += 15);
// in the init called above
startColor.r = 1.0f;
startColor.g = 0.6f;
startColor.b = 0.6f;
startColor.a = 1.0f;
startColorVar.a = 0.1f;
endColor.r = 1.0f;
endColor.g = 0.6f;
endColor.b = 0.6f;
endColor.a = 0.2f;
endColorVar.a = 0.2f;
self.blendAdditive = NO;
This is the image I'm using for the particles (
), I simply want to color it red, then fade its opacity to zero.
Instead it turns full white then pops out of view in a jarring way.
It's really the only thing left in the completion of our little game, so any help would be appreciated