CCParticleSystemQuad works as intended every second time
I'm using CCParticleSystemQuad for particles, loading it from plist:
flourEmitter = [CCParticleSystemQuad particleWithFile:@"FlourParticles.plist"];
But it works not every time. Every second or third time I start a game, particles look different from what I've set them up and there are errors saying it couldn't load image.
cocos2d: CCTexture2D. Can't create Texture. cgImage is nil
cocos2d: Couldn't create texture for file: in CCTextureCache
Of course the image is there and the next time i launch game it works as intended.
I cannot think of any ways how to debug this error.
I'm using CCParticleSystemQuad for particles, loading it from plist:
flourEmitter = [CCParticleSystemQuad particleWithFile:@"FlourParticles.plist"];
But it works not every time. Every second or third time I start a game, particles look different from what I've set them up and there are errors saying it couldn't load image.
cocos2d: CCTexture2D. Can't create Texture. cgImage is nil
cocos2d: Couldn't create texture for file: in CCTextureCache
Of course the image is there and the next time i launch game it works as intended.
I cannot think of any ways how to debug this error.
No comments:
Post a Comment