Szerkesztés

Megosztás a következőn keresztül:


SKAction.AnimateWithTextures Method

Definition

Overloads

AnimateWithTextures(SKTexture[], Double)

Creates an action that sequentially replaces Texture property of SKSpriteNode on which it is run with each texture that is contained in textures, every sec seconds.

AnimateWithTextures(SKTexture[], Double, Boolean, Boolean)

Creates an action that sequentially replaces the Texture property of the SKSpriteNode on which it is run with each texture that is contained in textures, every sec seconds, resizing the sprite to match the current texture size if resize is set to true.

AnimateWithTextures(SKTexture[], Double)

Creates an action that sequentially replaces Texture property of SKSpriteNode on which it is run with each texture that is contained in textures, every sec seconds.

[Foundation.Export("animateWithTextures:timePerFrame:")]
public static SpriteKit.SKAction AnimateWithTextures (SpriteKit.SKTexture[] textures, double sec);
static member AnimateWithTextures : SpriteKit.SKTexture[] * double -> SpriteKit.SKAction

Parameters

textures
SKTexture[]
sec
Double

Returns

Attributes

Applies to

AnimateWithTextures(SKTexture[], Double, Boolean, Boolean)

Creates an action that sequentially replaces the Texture property of the SKSpriteNode on which it is run with each texture that is contained in textures, every sec seconds, resizing the sprite to match the current texture size if resize is set to true.

[Foundation.Export("animateWithTextures:timePerFrame:resize:restore:")]
public static SpriteKit.SKAction AnimateWithTextures (SpriteKit.SKTexture[] textures, double sec, bool resize, bool restore);
static member AnimateWithTextures : SpriteKit.SKTexture[] * double * bool * bool -> SpriteKit.SKAction

Parameters

textures
SKTexture[]
sec
Double
resize
Boolean
restore
Boolean

Returns

Attributes

Applies to