name | type | arguments | description |
---|---|---|---|
id | number |
The unique object ID. |
|
name | string |
The name this object was assigned in Tiled. |
|
type | string |
The string type of this instance, as assigned in Tiled. Tiled supports inheriting instance types from tilesets; in that case, the type will be set in the tile's data, but will be |
|
visible | boolean | <optional> |
The visible state of this object. |
x | number | <optional> |
The horizontal position of this object, in pixels, relative to the tilemap. |
y | number | <optional> |
The vertical position of this object, in pixels, relative to the tilemap. |
width | number | <optional> |
The width of this object, in pixels. |
height | number | <optional> |
The height of this object, in pixels. |
rotation | number | <optional> |
The rotation of the object in clockwise degrees. |
properties | any | <optional> |
Custom properties object. |
gid | number | <optional> |
Only set if of type 'tile'. |
flippedHorizontal | boolean | <optional> |
Only set if a tile object. The horizontal flip value. |
flippedVertical | boolean | <optional> |
Only set if a tile object. The vertical flip value. |
flippedAntiDiagonal | boolean | <optional> |
Only set if a tile object. The diagonal flip value. |
polyline | Array.<Phaser.Types.Math.Vector2Like> | <optional> |
Only set if a polyline object. An array of objects corresponding to points, where each point has an |
polygon | Array.<Phaser.Types.Math.Vector2Like> | <optional> |
Only set if a polygon object. An array of objects corresponding to points, where each point has an |
text | any | <optional> |
Only set if a text object. Contains the text objects properties. |
rectangle | boolean | <optional> |
Only set, and set to |
ellipse | boolean | <optional> |
Only set, and set to |
point | boolean | <optional> |
Only set, and set to |