Hey,
I keep getting the following crash:
2011-11-17 00:01:03.422 App[6012:707] -[CCSceneGame displayedFrame]: unrecognized selector sent to instance 0x4a0380
2011-11-17 00:01:03.423 App[6012:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CCSceneGame displayedFrame]: unrecognized selector sent to instance 0x4a0380'
It is coming from this code:
CCAnimation *anime= [CCAnimation animation];
anime.delay = 2.0;
for(int i = 1; i <= 3; i++){
[anime addFrameWithFilename:[NSString stringWithFormat:@"Image1.png"]];
[anime addFrameWithFilename:[NSString stringWithFormat:@"Image2.png"]];
[anime addFrameWithFilename:[NSString stringWithFormat:@"Image3.png"]];
}
id animeAction = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:anime]];
[self runAction:animeAction];
Does anyone see anything that is wrong?
Thanks!