CLASS_A Class Reference
Inherits from | CLASS_B |
Declared in | OALAction.h |
Overview
Generates common code required to subclass from a cocos2d action while maintaining the functionality of an OALAction.
Class Methods
actionWithDuration:propertyKey:endValue:
Create a new action using the default function. The start value will be the current value of the target this action is applied to.
+ (id)actionWithDuration:(float)duration propertyKey:(NSString *)propertyKey endValue:(float)endValue
Parameters
- duration
The duration of this action in seconds.
- propertyKey
The property to modify.
- endValue
The “ending” value that this action will converge upon when setting the target’s property.
Return Value
A new action.
Declared In
OALAction.h
actionWithShape:phase:action:
Create a new ease action.
+ (OALEaseAction *)actionWithShape:(OALEaseShape)shape phase:(OALEasePhase)phase action:(OALAction *)action
Parameters
- shape
The shape of the curve to apply.
- phase
What phase of the action to apply the curve to. @action The action to apple the curve to.
Return Value
A new action.
Declared In
OALAction.h