TileAnimationFrame
public class TileAnimationFrame : NSObject
The TileAnimationFrame
structure represents a single frame of animation. Time is stored in milliseconds.
Properties
id
: unique tile (local) id.duration
: frame duration.texture
: optional tile texture.
-
Frame tile id.
Declaration
Swift
public var id: UInt32
-
Frame duration.
Declaration
Swift
public var duration: Int
-
Frame texture.
Declaration
Swift
public var texture: SKTexture?
-
Initialize with an id, frame duration and texture.
Declaration
Swift
public init(id: UInt32, duration: Int, texture: SKTexture? = nil)
Parameters
id
tile id.
duration
frame duration.
texture
frame texture.
-
Initialize with an id, frame duration and texture.
Declaration
Swift
@available(*, deprecated, renamed: "init(id:duration:texture:﹚") public convenience init(id: Int, duration: Int, texture: SKTexture? = nil)
Parameters
id
tile id.
duration
frame duration.
texture
frame texture.