CCActionFiniteTime Class Reference

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

Overview

Abstract base class for actions that (can) have a duration or can be reversed.

Not all actions support reversing. See individual class references to find out if a certain action does not support reversing.

Subclasses

The CCActionFiniteTime class has two additional subclasses (also abstract) which contain more information about actions that run instantly (completed within the same frame) vs. actions that run over time (typically taking more than a frame to complete).

Duration

  duration

Duration of the action in seconds.

@property (nonatomic, readwrite) CCTime duration

Declared In

CCAction.h

Reversing an Action

– reverse

Returns an action that runs in reverse (does the opposite).

- (CCActionFiniteTime *)reverse

Return Value

The reversed action.

Discussion

Note: Not all actions support reversing. See individual action’s class references.

Declared In

CCAction.h