CCActionSpriteFrame Class Reference

Inherits from CCActionInstant : CCActionFiniteTime : CCAction : NSObject
Conforms to NSCopying
Declared in CCActionInstant.h

Overview

This actions changes the target’s spriteFrame property.

Note: The target node must be a CCSprite or subclass of CCSprite or have a CCSpriteFrame* spriteFrame property.

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