cocostudio生成的动画怎么可以移动起来

捕鱼达人的那个鱼用cocostudo写的 我想知道怎么可以让它在屏幕上移动 用cocos2d-x VS2010运行的

studio做出来的是一组动画 可是如果想让这个鱼游起来怎么实现 求大神么 给指点下 谢谢

头文件#include "cocos-ext.h" using namespace cocos2d::extension;

init中加入:

CCArmatureDataManager::sharedArmatureDataManager()->addArmatureFileInfo("ptcb0.png", "ptcb0.plist", "ptcb.ExportJson");

CCArmature *armature = CCArmature::create("ptcb");

armature -> setPosition(ccp(300, 200));
armature -> setTag(100);
armature ->getAnimation() ->play("walk");
this -> addChild(armature);