CCAnimationFrame Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCopying |
| Declared in | CCAnimation.h |
Overview
CCAnimationFrame contains information for a single animation frame.
A CCAnimationFrameDisplayedNotification notification will be broadcast when a frame is displayed that contains a non-nil dictionary.
Creating a Animation Frame
– initWithSpriteFrame:delayUnits:userInfo:
Initializes and returns an Animation Frame object using the specified frame name, delay units and user info values.
- (id)initWithSpriteFrame:(CCSpriteFrame *)spriteFrame delayUnits:(float)delayUnits userInfo:(NSDictionary *)userInfoParameters
spriteFrame |
Sprite Frame. |
|---|---|
delayUnits |
Delay time units. |
userInfo |
Custom dictionary. |
Return Value
An initialized CCAnimationFrame Object.
See Also
Declared In
CCAnimation.h
Animation Frame Properties
spriteFrame
CCSpriteFrame to be used.
@property (nonatomic, readwrite, strong) CCSpriteFrame *spriteFrameSee Also
Declared In
CCAnimation.h
delayUnits
Number of time units to display this frame.
@property (nonatomic, readwrite) float delayUnitsDeclared In
CCAnimation.h
userInfo
Dictionary with custom user data.
@property (nonatomic, readwrite, strong) NSDictionary *userInfoDeclared In
CCAnimation.h