For some reason ActionManager is not playing animation from a json file. I am not getting any error messages.
I took the exported files from SampleUIAnimation and copied it to my test project. I can load the .json file with no issues but I am not able to play the animation. Here is my code. Could someone advise if there is something I am missing.
UILayer *introLayout = UILayer::create(); introLayout->addWidget(GUIReader::shareReader()->widgetFromJsonFile("SampleUIAnimation/SampleUIAnimation.json"));
//add layout to CClayer
//Added a button event to trigger the animation
UIButton *btn = static_cast<UIButton*>( introLayout->getWidgetByName("TextButton")); btn->addTouchEventListener(this, toucheventselector(GameLayer::startAnimation));
//method to play animation on event trigger, but Animation is NOT playing
void GameLayer::startAnimation(CCObject* pSender, TouchEventType type)
if ( type == TOUCH_EVENT_ENDED )