CCActionSpriteFrame Class Reference
Inherits from | CCActionInstant : CCActionFiniteTime : CCAction : NSObject |
---|---|
Conforms to | NSCopying |
Declared in | CCActionInstant.h |
Creating a Sprite Frame Action
+ actionWithSpriteFrame:
Creates the action action with the specified sprite frame.
+ (instancetype)actionWithSpriteFrame:(CCSpriteFrame *)spriteFrame
Parameters
spriteFrame |
SpriteFrame to use. |
---|
Return Value
The sprite frame action object.
See Also
Declared In
CCActionInstant.h
– initWithSpriteFrame:
Initializes the action action with the specified sprite frame.
- (id)initWithSpriteFrame:(CCSpriteFrame *)spriteFrame
Parameters
spriteFrame |
SpriteFrame to use. |
---|
Return Value
An initialized sprite frame action object.
See Also
Declared In
CCActionInstant.h