TileAnimationFrame
public class TileAnimationFrame : NSObject
Overview
A structure representing a single frame of animation. Time is stored in milliseconds.
Properties
| Property | Description |
|---|---|
| id | unique tile (local) id. |
| duration | frame duration. |
| texture | optional tile texture. |
-
▶︎idFrame tile id.
Declaration
Swift
public var id: Int -
▶︎durationFrame duration.
Declaration
Swift
public var duration: Int -
▶︎textureFrame texture.
Declaration
Swift
public var texture: SKTexture? -
Initialize with an id, frame duration and texture.
Declaration
Swift
public init(id: Int, duration: Int, texture: SKTexture? = nil)Parameters
idInttile id.durationIntframe duration.textureSKTexture?frame texture.
-
Frame description.
Declaration
Swift
override public var description: String { get }
View on GitHub
TileAnimationFrame Class Reference