I am trying to use cc.ActionTween in Lua, but I get the following error:
cocos2d: Assert failed: target must implement ActionTweenDelegate
Assertion failed: (dynamic_cast<ActionTweenDelegate*>(target)), function startWithTarget, file /Users/Gerd/Documents/Documents/Development/Projects/MSW.Studio/Vendors/cocos2d-x/cocos/2d/CCActionTween.cpp, line 69.
Is there a tutorial on how to use ActionTween in Lua?
I use the code below and have added a updateTweenAction(time, key) function to my class, but that does not seem to work…
local actionBackground = cc.ActionTween:create(AnimationTime, "GoingDown", 1.0, 0.0);
self:runAction (cc.Sequence:create(cc.EaseExponentialInOut:create(actionBackground), cc.CallFunc:create(tweenActionFinished)));
Thanks for your help
Regards
Gerd