Hi, I've gotten a little stuck with this.
So far I've defined two animated sprites in external classes and linked and used them like this:
In my game scenes header:
#import "Sprite.h"
....
@interface GameLayer : Layer
{
Sprite *sprite;
}
@property (nonatomic, retain) Sprite *sprite;
@end
And added in the .m
Sprite *temp = [[Sprite alloc] init];
self.sprite = temp;
[temp release];
[self add:sprite];
I've added two sprites like this, but on adding my third one it tells me there are conflicting values for temp. What's happening?