Hi this is my first post here.
All is going well, but now I want to use an ActionTween on a custom class I’ve created that extends sprite, called InteractiveSprite. To do this the InteractiveSprite must implement the ActionTweenDelegate interface.
First off I can see that the tween works if I just manually type in the updateTweenAction method and relevant method body as part of my custom sprite class:
this[key] = value;
Secondly I can see that there is a method ‘implement’ defined on the cc.Class definition. So I try calling that like this:
This works when run in the browser, and I can use debugging to confirm that the property InteractiveSprite.implement genuinely is a function.
But when I try to run this in Xcode I get a compile error:
Cocos2d: Assert failed: target must implement CCActionTweenDelegate
Can anybody shed any light as to how to resolve this problem? What is the preferred way to have a node that extends sprite implement an interface/delegate?