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: String, ?terrain: String, ?probability: Float, ?properties: TmxProperties, ?image: TmxImage, ?objectGroup: TmxObjectGroup, ?animation: Array<TmxTilesetTileFrame>): Void
Name Type Default Description
id Int The local tile ID within its tileset.
type String (optional)
terrain String (optional) * 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 (optional) * 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 (optional)
image TmxImage (optional) * Since 0.9
objectGroup TmxObjectGroup (optional) * Since 0.10. This group represents collision of tile and never contains Tile object type.
animation Array<TmxTilesetTileFrame> (optional) * 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
:structInit -