CocosSharp.CCAction Class
The base abstract class for Action objects.

See Also: CCAction Members

Syntax

public abstract class CCAction

Remarks

Actions are orders that can be run on a target CocosSharp.CCNode object, altering the attributes of a node (e.g. position, rotation, scale, color, opacity, etc.). Actions that derive from CocosSharp.CCActionInterval alter the properties of a node over a period of time, while actions that derive from CocosSharp.CCActionInstant apply the changes immediately.

To start an action, call CCNode.RunAction(CCAction) method on a target node. Note, that CCAction objects are stateless, allowing for the same action instance to be run on different targets.

C# Example

var action = new CCMoveBy(0.5f, new CCPoint(100, 0));

// Multiple node objects can run the same action
node1.RunAction(action);
node2.RunAction(action);

Requirements

Namespace: CocosSharp
Assembly: CocosSharp (in CocosSharp.dll)