User Tools

Site Tools


tile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tile [2021/11/05 19:33] justintile [2021/11/05 19:43] justin
Line 8: Line 8:
 ^Property^Description^ ^Property^Description^
 |<tile>.id|Entity ID of the tile, as set in the [[Map Editor]] from the [[Entity Properties]] panel. This can be used to either retrieve or change the ID of the tile.| |<tile>.id|Entity ID of the tile, as set in the [[Map Editor]] from the [[Entity Properties]] panel. This can be used to either retrieve or change the ID of the tile.|
 +|<tile>.type|Type of [[entity]], in this case the constant value TILE.|
 |<tile>.coord|[[Coordinate]] of the tile.| |<tile>.coord|[[Coordinate]] of the tile.|
 |<tile>.direction|[[Cardinal direction]] (NORTH, SOUTH, WEST, EAST) in which the tile is rotated. The default direction of an [[entity]] is SOUTH.| |<tile>.direction|[[Cardinal direction]] (NORTH, SOUTH, WEST, EAST) in which the tile is rotated. The default direction of an [[entity]] is SOUTH.|
Line 15: Line 16:
 |<tile>.interact_cursor|Interaction cursor for the tile, as set in the [[Map Editor]] from the [[Entity Properties]] panel. This can be used to either retrieve or change the interaction cursor for the tile. Valid values include "default", "walk", "interact", "speak", "attack", or any custom cursor defined in your [[game configuration]].| |<tile>.interact_cursor|Interaction cursor for the tile, as set in the [[Map Editor]] from the [[Entity Properties]] panel. This can be used to either retrieve or change the interaction cursor for the tile. Valid values include "default", "walk", "interact", "speak", "attack", or any custom cursor defined in your [[game configuration]].|
 |<tile>.property["x"]|Custom property stored on the tile, where "x" is a [[string]] containing the name of the property. This can be used to either retrieve or change the property's value.| |<tile>.property["x"]|Custom property stored on the tile, where "x" is a [[string]] containing the name of the property. This can be used to either retrieve or change the property's value.|
-|<tile>.model| | +|<tile>.model|Name of the tile's model (e.g. "grass")
-|<tile>.frame| | +|<tile>.frame|Current [[animation]] frame. This can be used to either retrieve or change the model's current frame. If an [[animation]] is playing, it will be stopped.
-|<tile>.animations| +|<tile>.animations|An [[array]] of [[animation]] names defined for this tile. The names will be [[string]] values.|
-|<tile>.type| |+
 |<tile>.terrain_type| | |<tile>.terrain_type| |
 |<tile>.attach_points| | |<tile>.attach_points| |
tile.txt · Last modified: 2024/03/14 09:44 by justin