动画实现的基本流程:
1.定义向量保存动画的所有帧
@H_404_9@Vector<SpriteFrame *> allframe;
2.创建动画
@H_404_9@Animation * animation01=Animation::createWithSpriteFrames(allframe); @H_404_9@animation01->setDelayPerUnity(0.3);3.创建动作
@H_404_9@Animate *animate01=Animate::create(animation01);4.包装动作
@H_404_9@Action * act=RepeatForEver::create(animate01); @H_404_9@5.让一个Sprite执行动作 @H_404_9@Sprite * sp=Sprite::create(); @H_404_9@sp->runAction(act);