MonoTouch.SpriteKit.SKAction Class
Modifies properties on a MonoTouch.SpriteKit.SKNode, often animating the changes. Sometimes reversible.

See Also: SKAction Members

Syntax

[MonoTouch.Foundation.Register("SKAction", true)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_7_0)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.Mac_10_0 | MonoTouch.ObjCRuntime.Platform.Mac_10_1 | MonoTouch.ObjCRuntime.Platform.Mac_10_2 | MonoTouch.ObjCRuntime.Platform.Mac_10_3 | MonoTouch.ObjCRuntime.Platform.Mac_10_4 | MonoTouch.ObjCRuntime.Platform.Mac_10_5 | MonoTouch.ObjCRuntime.Platform.Mac_10_6 | MonoTouch.ObjCRuntime.Platform.Mac_10_7 | MonoTouch.ObjCRuntime.Platform.Mac_10_8 | MonoTouch.ObjCRuntime.Platform.Mac_10_9 | MonoTouch.ObjCRuntime.Platform.Mac_10_10 | MonoTouch.ObjCRuntime.Platform.Mac_Version | MonoTouch.ObjCRuntime.Platform.Mac_Arch64 | MonoTouch.ObjCRuntime.Platform.Mac_Arch)]
public class SKAction : MonoTouch.Foundation.NSObject, MonoTouch.Foundation.INSCoding, MonoTouch.Foundation.INSCopying, IDisposable

Remarks

Application developers use the static methods of MonoTouch.SpriteKit.SKAction to create actions that can be applied to the MonoTouch.SpriteKit.SKNodes of a MonoTouch.SpriteKit.SKScene. Generally, animations are animated.

The SKAction.Group, MKAction.RepeatAction and MKAction.RepeatForever, and SKAction.Sequence methods are composite actions that take, as parameters, children MonoTouch.SpriteKit.SKActions.

Once a MonoTouch.SpriteKit.SKAction is created, application developers run it with the SKNode.RunAction method, as shown in this example:

C# Example

var actions = SKAction.Group(
	new SKAction[] {
		SKAction.MoveBy(new CGVector(10, 10), 1),
		SKAction.FadeAlphaTo(0.3f, 1),
		SKAction.ScaleBy(0.8f, 1)
});

b.Node.RunAction(actions);          
          

Related content

Requirements

Namespace: MonoTouch.SpriteKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0