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.
  • ▶︎id

    Frame tile id.

    Declaration

    Swift

    public var id: Int
  • ▶︎duration

    Frame duration.

    Declaration

    Swift

    public var duration: Int
  • ▶︎texture

    Frame 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

    id

    Int tile id.

    duration

    Int frame duration.

    texture

    SKTexture? frame texture.

Extensions