引擎版本 3.0 rc0 cocostudio 版本1.3.0.0
就在helloCPP工程的 AppDelegate.cpp 内的applicationDidFinishLauching() 方法里添加如下代码:
Scene* pScene = Scene::create();
Director::getInstance()->runWithScene(pScene);
string sPath1 = “logic_res/effects/50000019/50000019.ExportJson”;
string sPath2 = “logic_res/effects/52000009/52000009.ExportJson”;
cocostudio::ArmatureDataManager::getInstance()->addArmatureFileInfo(sPath1);
cocostudio::ArmatureDataManager::getInstance()->addArmatureFileInfo(sPath2);
cocostudio::Armature* pArm1 = cocostudio::Armature::create(“50000019”);
cocostudio::Armature* pArm2 = cocostudio::Armature::create(“52000009”);
pScene->addChild(pArm1,100,1);
pScene->addChild(pArm2,100,2);
pArm1->setPosition(300,300);
pArm2->setPosition(700,300);
pArm1->getAnimation()->play(“50000019”,-1,1);
pArm2->getAnimation()->play(“52000009”,-1,1);
播放两个Armature动画,显示的效果如附件:
右边的动画怎么像是从左边复制过来的??而且是缩放的。。???