Struct rcocos2d_sys::cocos2d_CCAnimation [−][src]
#[repr(C)]pub struct cocos2d_CCAnimation { pub _base: cocos2d_CCObject, pub m_fTotalDelayUnits: f32, pub m_fDelayPerUnit: f32, pub m_fDuration: f32, pub m_pFrames: *mut cocos2d_CCArray, pub m_bRestoreOriginalFrame: bool, pub m_uLoops: c_uint, }
Expand description
A CCAnimation object is used to perform animations on the CCSprite objects.
The CCAnimation object contains CCAnimationFrame 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]];
Fields
_base: cocos2d_CCObject
m_fTotalDelayUnits: f32
m_fDelayPerUnit: f32
m_fDuration: f32
m_pFrames: *mut cocos2d_CCArray
m_bRestoreOriginalFrame: bool
m_uLoops: c_uint