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 revision
Previous revision
tile [2024/03/14 09:44] justintile [2025/03/11 20:23] (current) justin
Line 13: Line 13:
 |<tile>.objects|An [[array]] of [[object|objects]] currently occupying the tile, or null if there are none.| |<tile>.objects|An [[array]] of [[object|objects]] currently occupying the tile, or null if there are none.|
 |<tile>.characters|An [[array]] of [[character|characters]] currently occupying the tile, or null if there are none.| |<tile>.characters|An [[array]] of [[character|characters]] currently occupying the tile, or null if there are none.|
 +|<tile>.items|An [[array]] of [[item|items]] currently occupying the tile, or null if there are none (e.g. those dropped out of the player's [[inventory]] or placed via the [[Add Item To Tile]] function).|
 |<tile>.groups|An [[array]] of [[groups]] to which the tile is assigned. The [[array]] will be empty if the tile is not assigned to any [[groups]].| |<tile>.groups|An [[array]] of [[groups]] to which the tile is assigned. The [[array]] will be empty if the tile is not assigned to any [[groups]].|
 |<tile>.tags|An [[array]] of tags (as [[string|strings]]) for the tile, as set in the [[Voxel Editor]] from the [[Model Properties]] panel.| |<tile>.tags|An [[array]] of tags (as [[string|strings]]) for the tile, as set in the [[Voxel Editor]] from the [[Model Properties]] panel.|
 |<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>.properties|All custom properties defined for the tile. As it's a [[codex]], its keys can be iterated using a “for” loop (refer to the [[codex]] documentation for an example).|
 |<tile>.model|Name of the tile's model (e.g. "grass").| |<tile>.model|Name of the tile's model (e.g. "grass").|
 |<tile>.frame|Current [[animation]] frame (as a [[number]], with the first frame being 1). This can be used to either retrieve or change the model's current frame. If this property is changed and an [[animation]] is playing, the [[animation]] will first be stopped.| |<tile>.frame|Current [[animation]] frame (as a [[number]], with the first frame being 1). This can be used to either retrieve or change the model's current frame. If this property is changed and an [[animation]] is playing, the [[animation]] will first be stopped.|
tile.1710434641.txt.gz · Last modified: 2024/03/14 09:44 by justin