I have crated an animation in CocoStudio and following this code for add in cocos2d-x:
CCArmatureDataManager::sharedArmatureDataManager()->addArmatureFileInfo("Cowboy0.png","Cowboy0.plist","Cowboy.ExportJson"); CCArmature *armature = CCArmature::create("Cowboy"); armature->getAnimation()->playByIndex(0); armature->setScale(0.5f); armature->setPosition(200,300); this->addChild(armature,2)
And error here is CCArmatureDataManager and CCArmature is undefined. Please help me fix it. I’m newbiew in cocos2d-x