Fields

y:Int

The Y position of the sub-rectangle representing this tile (default: 0)

x:Int

The X position of the sub-rectangle representing this tile (default: 0)

width:Int

The width of the sub-rectangle representing this tile (defaults to the image width)

terrain:Array<TiledTerrain>

Index of terrain for each corner of tile (optional)

probability:Float

Percentage chance this tile is chosen when competing with others in the editor (optional)

objectgroup:TiledLayer

Layer with type == "objectgroup", when collision shapes are specified (optional)

imagewidth:Int

Width of the tile image in pixels

imageheight:Int

Height of the tile image in pixels

image:String

Image representing this tile (optional, used for image collection tilesets)

id:Int

Local ID of the tile

height:Int

The height of the sub-rectangle representing this tile (defaults to the image height)

_class:String

The class of the tile (renamed from type since 1.9, optional)