请问。我现在做了一套骨骼动画。但是我想在骨骼动画上制作一些动态的效果。比如眨眼睛,头发飞舞。
这是骨骼动画写入场景的相关代码:
ArmatureDataManager::getInstance()->addArmatureFileInfo(“changeShape.ExportJson”);
Armature* arm = Armature::create(“changeShape”);
arm->setPosition(Point(visibleSize.width/2,visibleSize.height/2));
arm->setTag(1);
addChild(arm);
arm->getAnimation()->play(“go”);
序列动画相关代码:
Vector<SpriteFrame*> splashFrames;
for (int i=1; i<=23; i++) {
const char* str = CCString::createWithFormat("Splash_%04d.png",i)->getCString();
SpriteFrame* frame = cache->getSpriteFrameByName(str);
splashFrames.pushBack(frame);
}
Animation *splashAnim = Animation::create();
splashAnim = Animation::createWithSpriteFrames(splashFrames, 0.02f);
请好心人能提供下:把序列动画绑定在骨头上面的方法吗(用于实现站眨眼睛,头发飞舞效果)?谢谢
