Edytuj

Udostępnij za pośrednictwem


SKAction.FollowPath Method

Definition

Overloads

FollowPath(CGPath, Boolean, Boolean, nfloat)

Creates an action that moves the SKNode on which it is run over the path, with the specified offset, orientation, and speed.

FollowPath(CGPath, Boolean, Boolean, Double)

Creates an action that moves the SKNode on which it is run over the path, with the specified offset and orientation, taking sec seconds.

FollowPath(CGPath, nfloat)

Creates an action that moves the SKNode on which it is run over the path, at the specified speed.

FollowPath(CGPath, Double)

Creates an action that moves the SKNode on which it is run over the path, taking sec seconds.

FollowPath(CGPath, Boolean, Boolean, nfloat)

Creates an action that moves the SKNode on which it is run over the path, with the specified offset, orientation, and speed.

[Foundation.Export("followPath:asOffset:orientToPath:speed:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKAction FollowPath (CoreGraphics.CGPath path, bool offset, bool orient, nfloat speed);
static member FollowPath : CoreGraphics.CGPath * bool * bool * nfloat -> SpriteKit.SKAction

Parameters

path
CGPath
offset
Boolean
orient
Boolean
speed
nfloat

Returns

Attributes

Applies to

FollowPath(CGPath, Boolean, Boolean, Double)

Creates an action that moves the SKNode on which it is run over the path, with the specified offset and orientation, taking sec seconds.

[Foundation.Export("followPath:asOffset:orientToPath:duration:")]
public static SpriteKit.SKAction FollowPath (CoreGraphics.CGPath path, bool offset, bool orient, double sec);
static member FollowPath : CoreGraphics.CGPath * bool * bool * double -> SpriteKit.SKAction

Parameters

path
CGPath
offset
Boolean
orient
Boolean
sec
Double

Returns

Attributes

Applies to

FollowPath(CGPath, nfloat)

Creates an action that moves the SKNode on which it is run over the path, at the specified speed.

[Foundation.Export("followPath:speed:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKAction FollowPath (CoreGraphics.CGPath path, nfloat speed);
static member FollowPath : CoreGraphics.CGPath * nfloat -> SpriteKit.SKAction

Parameters

path
CGPath
speed
nfloat

Returns

Attributes

Applies to

FollowPath(CGPath, Double)

Creates an action that moves the SKNode on which it is run over the path, taking sec seconds.

[Foundation.Export("followPath:duration:")]
public static SpriteKit.SKAction FollowPath (CoreGraphics.CGPath path, double sec);
static member FollowPath : CoreGraphics.CGPath * double -> SpriteKit.SKAction

Parameters

path
CGPath
sec
Double

Returns

Attributes

Applies to