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

See Also: CCAction Members


public abstract class CCAction


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


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