CCAnimationFrame Class Reference
Inherits from | NSObject |
Conforms to | NSCopying |
Declared in | CCAnimation.h |
Overview
CCAnimationFrame A frame of the animation. It contains information like:
- sprite frame name
- # of delay units.
- offset
Tasks
-
spriteFrame
CCSpriteFrameName to be used
property -
delayUnits
how many units of time the frame takes
property -
userInfo
A CCAnimationFrameDisplayedNotification notification will be broadcasted when the frame is displayed with this dictionary as UserInfo. If UserInfo is nil, then no notification will be broadcasted.
property -
– initWithSpriteFrame:delayUnits:userInfo:
initializes the animation frame with a spriteframe, number of delay units and a notification user info
Properties
delayUnits
how many units of time the frame takes
@property (nonatomic, readwrite) float delayUnits
Declared In
CCAnimation.h