I'm using a subclassed CCParticleSmoke to create a missile trail in my app. I'd like the particles to fade to invisibility over the course of their lifetime, so I set endcolor.a to 0.0f in my init:
-(ParticleMissileSmoke*) init
{
if ((self = [super initWithTotalParticles:80]))
{
[self setEmitterMode:kCCParticleModeGravity];
life = 0.75f;
lifeVar = 0.05f;
emissionRate = 10.0f;
startSize = 65.0f;
endSize = 55.0f;
posVar = ccp(5, 0);
texture_ = [[CCSprite spriteWithFile:@"fire.png"] texture];
endColor.r = 0.8f;
endColor.b = 0.8f;
endColor.g = 0.8f;
endColor.a = 0.0f;
}
return self;
}
Unfortunately, changing endColor.a seems to have no effect. Any ideas on what could be causing this to happen?