Hi all,
I've been scanning the forum like crazy, without finding anything that helps me.
Thanks all for a great forum btw! :)
Now to my question (I'm a Obj-c noob, so bare with me). I've been trying to figure out how to work with cocos2d, and I'm really making progree (I belive :) ). I've been using the open source game 'ABC123' as my learning ground. Everything seems to work fine, with the scenes and all, but when I try to use 'cpv' I get an error. For instance, if I use:
-(id) init
{
self = [super init];
if (self)
{
self.isTouchEnabled = YES;
dataManager = [DataManager sharedManager];
Sprite *back = [[Sprite alloc] initWithFile:@"TestBG.png"];
self.background = back;
[back release];
background.transformAnchor = cpv(0,0);
[self addChild:background];
}
return self;
}
I get the error message right after 'background.transformAnchor = cpv(0,0);' is:
warning: implicit declaration of function 'cpv'
error: object cannot be set - either readonly property or no setter found
warning: type of setter 'setTransformAnchor:' must be 'void' instead of 'id'
Thanks for any help I can get! :)