Hi,
I have been trying to update to the trunk version of Cocos 0.8, but have encountered an error relating to addAnimation that I can't find any documentation for.
Here is the Code:
// Speed Selection Item
speed0 = [SoundMenuItem itemFromNormalImage:@"0.png" selectedImage:@"0over.png" target:self selector:@selector(zeroCallback:)];
//this is just a menuItem that plays a sound when it is clicked.
Animation *speed0s = [Animation animationWithName:@"speed0s" delay:0.1f images:@"0.png", @"0over.png", nil];
[[speed0 normalImage] addAnimation:speed0s];
if(appDelegate.globalModifier == 1.0f) {
[[speed0 normalImage] setDisplayFrame:@"speed0s" index:1];
}
else {
[[speed0 normalImage] setDisplayFrame:@"speed0s" index:0];
}
Here are the errors:
warning: '-addAnimation:' not found in protocol(s)
warning: 'CocosNode' may not respond to '-addAnimation:'
warning: '-setDisplayFrame:index:' not found in protocol(s)
warning: 'CocosNode' may not respond to '-setDisplayFrame:index:'
Any help would be greatly appreciated. I just can't find any changes that would cause this.
Thanks,
Sunsu