CCAnimationFrame A frame of the animation.
More...
#include <CCAnimation.h>
CCAnimationFrame A frame of the animation.
It contains information like:
- sprite frame name
- # of delay units.
- offset
- Since
- v2.0
initializes the animation frame with a spriteframe, number of delay units and a notification user info
var initWithSpriteFrame |
( |
var |
spriteFrame, |
|
|
var |
delayUnits, |
|
|
var |
userInfo |
|
) |
| |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
local initWithSpriteFrame |
( |
local |
spriteFrame, |
|
|
local |
delayUnits, |
|
|
local |
userInfo |
|
) |
| |
initializes the animation frame with a spriteframe, number of delay units and a notification user info
var setSpriteFrame |
( |
var |
var) | |
|
|
virtual |
local setSpriteFrame |
( |
local |
var) | |
|
|
virtual |
var setUserInfo |
( |
var |
var) | |
|
|
virtual |
local setUserInfo |
( |
local |
var) | |
|
|
virtual |
how many units of time the frame takes
how many units of time the frame takes
how many units of time the frame takes
CCSpriteFrameName to be used.
CCSpriteFrameName to be used.
CCSpriteFrameName to be used.
getDelayUnits
setDelayUnits A CCAnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. If UserInfo is nil, then no notification will be broadcast.
getDelayUnits
setDelayUnits A CCAnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. If UserInfo is nil, then no notification will be broadcast.
getDelayUnits
setDelayUnits A CCAnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. If UserInfo is nil, then no notification will be broadcast.
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x/cocos2dx/sprite_nodes/CCAnimation.h