CCActionEaseElastic Class Reference

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

Overview

CCActionEaseElastic adds a period property and applies a dampened oscillation to the specified action.

Creating an Ease Action

+ actionWithAction:period:

Creates the action with the inner action and the period in radians (default is 0.3).

+ (id)actionWithAction:(CCActionInterval *)action period:(CGFloat)period

Parameters

action

Action to apply ease action to.

period

period of wave in radians.

Return Value

New elastic action.

Declared In

CCActionEase.h

– initWithAction:period:

Initializes the action with the inner action and the period in radians (default is 0.3).

- (id)initWithAction:(CCActionInterval *)action period:(CGFloat)period

Parameters

action

Action to apply ease action to.

period

period of wave in radians.

Return Value

New elastic action.

Declared In

CCActionEase.h