TileObject

┗> Event > Object > Class


A combination of a tile from a tileset and an Event.
TileObject is not a standard event - it defines no properties and is placed in a map using the Insert Tile feature through Tiled, rather than as an object.


Constructor


TileObject(tileset: Tileset, tile: number, x: number, y: number, w: number?, h: number?, rotation: number?, flip_x: boolean?, flip_y: boolean?)

Arguments:

tileset: Tileset
tile: number
x: number
y: number
w: number?
h: number?
rotation: number?
flip_x: boolean?
flip_y: boolean?




Methods





Fields


TileObject.rotation: number?

The rotation of the tile


TileObject.tile: number

The gid of the tile in its tileset


TileObject.tile_flip_x: boolean?

Whether the tile is flipped on its x-axis


TileObject.tile_flip_y: boolean?

Whether the tile is flipped on its y-axis


TileObject.tileset: Tileset

The name of the tileset the tile is from



Undocumented