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.

Properties

Deprecations

  • 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.