I have created a number of CCSprites using spriteWithFile.
How do I change the image for the sprite during runtime?
I need to change a few sprites images qui
If you are using SpriteSheets, this will work.
NSString* newSprite = [NSString stringWithString:@"SPRITE_NAME.png"]; CCSpriteFrameCache* cache = [CCSpriteFrameCache sharedSpriteFrameCache]; [sprite setDisplayFrame:[cache spriteFrameByName:newSprite]];