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

See Also: SKAction Members

Syntax

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

Remarks

Application developers use the static methods of SpriteKit.SKAction to create actions that can be applied to the SpriteKit.SKNodes of a 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 SpriteKit.SKActions.

Once a 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: SpriteKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0