CCActionReverse Class Reference

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

Overview

This action executes the specified action in reverse order.

Note: This action can not be used in a CCActionSequence. Not all actions are reversible. Use it as the default “reversed” method of your own actions, but using it outside the “reversed” scope is not recommended.

Creating a Reverse Action

+ actionWithAction:

Creates a reverse action.

+ (id)actionWithAction:(CCActionFiniteTime *)action

Parameters

action

Action to reverse.

Return Value

New reverse action.

Declared In

CCActionInterval.h

– initWithAction:

Initalizes a reverse action.

- (id)initWithAction:(CCActionFiniteTime *)action

Parameters

action

Action to reverse.

Return Value

New reverse action.

Declared In

CCActionInterval.h