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

Overview

This actions changes the target sprite frame.

Tasks

Creating a CCActionSpriteFrame Object

Initializing a CCActionSpriteFrame Object

Class Methods

actionWithSpriteFrame:

Creates the action action with the specified sprite frame.

+ (id)actionWithSpriteFrame:(CCSpriteFrame *)spriteFrame

Parameters

spriteFrame

SpriteFrame to use.

Return Value

The sprite frame action object.

Declared In

CCActionInstant.h

Instance Methods

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.

Declared In

CCActionInstant.h