hi im trying to change my ccsprite file, but then it crash.
here is my two line of code
player = nil;
player = [CCSprite spriteWithFile:[NSString stringWithFormat:@"%@.png", playerState]];
with this then program crash... i use this to create a the sprite for the very first time. and works.
why can i change that file after i create.
Thanks.