TiledLayer

Extends: roAssociativeArray

A layer. Group layers aren't kept: their children are listed in order with the group's offset added and its visibility combined in, so every layer is found by name.

Properties

  • id (integer)
  • type (string) — "tilelayer", "objectgroup" or "imagelayer"
  • name (string)
  • visible (boolean)
  • opacity (float)
  • offsetX (float) — Pixel offset (+y down, as in Tiled)
  • offsetY (float)
  • properties (roAssociativeArray)
  • width (integer) — tilelayer only: width x height raw GIDs, row by row (0 = empty)
  • height (integer)
  • data (roArray)
  • objects (roArray) — objectgroup only
  • image (string) — imagelayer only: full path to the image