cocos2d-x 动画详解之五CCAnimation,

CCAnimation

用于演示动画在CCSprite上 动画有自己的名称 比如兔子跳 兔子跑

包含若干个CCSpriteFrame

 

CCAnimation object is used to perform animations on the CCSprite objects.

The CCAnimation object contains CCSpriteFrame objects, and a possible delay between the frames. You can animate a CCAnimation object by using the CCAnimate action. Example:

[sprite runAction:[CCAnimate actionWithAnimation:animation]];

 

CCAnimationCache

用与一组动画的管理

Singleton that manages the Animations.

It saves in a cache the animations. You should use this class if you want to save your animations in a cache.

 

 


posted @ 2012-03-06 17:22  aflylove  阅读(731)  评论(0编辑  收藏  举报