I am having an issue where a CCParticleExplosion works perfectly on the Simulator and fails on my iPhone 4S. In the simulator, the particles look fine. When the explosion happens on my iPhone, there is a dark shadow of the explosion and broken, flickering fragments of the texture used. Here is my code:
bombExplosion = [[CCParticleExplosion alloc] initWithTotalParticles:3];
//bombExplosion = [[CCParticleExplosion alloc] init];
//bombExplosion.autoRemoveOnFinish = YES;
bombExplosion.texture = [[CCTextureCache sharedTextureCache] addImage: @"newnhamm_MultiColored_Sparkle_edit.png"];
bombExplosion.speed=100;
bombExplosion.duration = 1.3;
bombExplosion.life = 0.3;
bombExplosion.position = ccp(835,85);
ccColor4F startColor, startColorVar, endColor, endColorVar;
startColor.r = 1.0f;
startColor.g = 1.0f;
startColor.b = 1.0f;
startColor.a = 1.0f;
startColorVar.r = 0.0f;
startColorVar.g = 0.0f;
startColorVar.b = 0.0f;
startColorVar.a = 0.0f;
endColor.r = 1.0f;
endColor.g = 1.0f;
endColor.b = 1.0f;
endColor.a = 1.0f;
endColorVar.r = 0.0f;
endColorVar.g = 0.0f;
endColorVar.b = 0.0f;
endColorVar.a = 0.0f;
bombExplosion.startColor = startColor;
bombExplosion.startColorVar = startColorVar;
bombExplosion.endColor = endColor;
bombExplosion.endColorVar = endColorVar;
[self addChild:bombExplosion];