http://blog.csdn.net/sdhjob/article/details/8243980
先创建帧
CCSprite* frame0 = CCSprite::createWithSpriteFrameName(xxxxxxpath);
再创建序列
CCArray* animFrames = CCArray::createWithCapacity(6);
animFrames->addObject(frame0);
再将序列绑定到一起, 添加速率
CCAnimation *animation = CCAnimation::createWithSpriteFrames(animFrames, 0.2f);
创建动画
CCAnimate *animate = CCAnimate::create(animation);
通过action来进行控制播放
CCActionInterval* seq = (CCActionInterval*)(CCSequence::create( animate,
CCFlipX::create(true),
animate->copy()->autorelease(),
CCFlipX::create(false),
NULL) );