Tile

Represents a tile from a Tileset.

Tile.index

The index of the tile (position in its tileset).

Tile.image

local image = tile.image
tile.image = newImage

Gets or sets the image of this tile.

Tile.color

local color = tile.color
tile.color = newColor

Gets or sets the user-defined color of this tile.

Tile.data

local data = tile.data
tile.data = newData

Gets or sets the user-defined data related to this tile (a text string).

Tile.properties

Access user-defined and extension-defined properties of this tile.