thanks for the answer!
this->player is a
CCSprite* that points to the player Sprite of the
I wanted to pass an instance, but I didn’t now how. Didn’t noticed that I added the
MainLevel instance as a child, thanks! But how did I get it? When I browse the functions, the only yet implemented one I found is [CCArray]->lastObject(), so I guess I have to get the first child manually.
Didn’t work. Do I have to cast in general? ]
Besides I get an error, when I link the MainLevel class to the Player class:
classes\game\mainLevel.h(40): error C2143: Syntaxerror: Missing ';' before '*'
I’ve checked the code as well as the last
;, also the level class itself works fine, but if I include it to another class (like the player one), I get the error above.