TmxTilesetTile

format.tmx.TmxTilesetTile (Class)

Instance Members

id: Int

The local tile ID within its tileset.


type: String

terrain: String

Defines the terrain type of each corner of the tile, given as comma-separated indexes in the terrain types array in the order top-left, top-right, bottom-left, bottom-right. Leaving out a value means that corner has no terrain. (optional) (since 0.9.0)


probability: Float

A percentage indicating the probability that this tile is chosen when it competes with others while editing with the terrain tool. (optional) (since 0.9.0)


properties: TmxProperties

image: TmxImage

Since 0.9


objectGroup: TmxObjectGroup

Since 0.10. This group represents collision of tile and never contains Tile object type.


Since 0.10. Present, if tile does not static and contains animation. Contains a list of animation frames. As of Tiled 0.10, each tile can have exactly one animation associated with it. In the future, there could be support for multiple named animations on a tile.


new(id: Int, type: Null<String>, terrain: Null<String>, probability: Null<Float>, properties: Null<TmxProperties>, image: Null<TmxImage>, objectGroup: Null<TmxObjectGroup>, animation: Null<Array<TmxTilesetTileFrame>>): Void
Name Type Description
id Int The local tile ID within its tileset.
type Null<String>
terrain Null<String> * Defines the terrain type of each corner of the tile, given as comma-separated indexes in the terrain types array in the order top-left, top-right, bottom-left, bottom-right. Leaving out a value means that corner has no terrain. (optional) (since 0.9.0)
probability Null<Float> * A percentage indicating the probability that this tile is chosen when it competes with others while editing with the terrain tool. (optional) (since 0.9.0)
properties Null<TmxProperties>
image Null<TmxImage> * Since 0.9
objectGroup Null<TmxObjectGroup> * Since 0.10. This group represents collision of tile and never contains Tile object type.
animation Null<Array<TmxTilesetTileFrame>> * Since 0.10. Present, if tile does not static and contains animation. Contains a list of animation frames. As of Tiled 0.10, each tile can have exactly one animation associated with it. In the future, there could be support for multiple named animations on a tile.

Metadata

Name Parameters
:hxGen -
:structInit -