Forums » C# Framework » CCCallFunc problems from within a class »
| pete myster | CCCallFunc problems from within a class | ||
|---|---|---|---|
|
Added by pete myster about 1 year ago
Hey guys, I've used the objective-c cocos2d and am currently porting my game to windows phone. I have a class called AnimalClass, which extends CCObject, and a class CatClass which extends AnimalClass. I am trying to use CCCallFunc but I'm having problems with the selector. When I'm creating the instance of CCCallFunc its complaining about "not able to convert from CatClass to cocos2d.selectorProtocol" when I'm passing in "this" to the method. The hierarchy is..
And what I want to do is..
Any idea what I need to do to get this working? Thanks in advance! |
||
| pete myster | RE: CCCallFunc problems from within a class | ||
|
Added by pete myster about 1 year ago
Urgh I feel silly, I should have made AnimalClass extend CCnode, not CCObject. I blame me being out of practice :p |
(1-1/1)