@1339942935 写道:
ArmatureDataManager::getInstance()->addArmatureFileInfo("hero/hero.ExportJson");
Armature* arm =Armature::create("hero");//编译报错 arm->getAnimation()->play("default"); arm->setPosition(Point(visibleSize.width*0.5,visibleSize.height*0.5)); this->addChild(arm);
PS:第二行代码编译报错,原因应该是
AnimationData *animationData = armatureDataManager->getAnimationData(name);
其中animationData=NULL;
帖子: 1
参与者: 1