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 [2021/11/05 19:55] justintile [2024/03/14 09:44] (current) justin
Line 11: Line 11:
 |<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.|
 +|<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>.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]].|
Line 18: Line 19:
 |<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>.animation|Name of the [[animation]] currently playing for this tile (as a [[string]]). Value will be null if no [[animation]] is playing.|
 |<tile>.animations|An [[array]] of [[animation]] names defined for this tile. The names will be [[string]] values.| |<tile>.animations|An [[array]] of [[animation]] names defined for this tile. The names will be [[string]] values.|
 +|<tile>.attach_points|An [[array]] of [[attach_points|attach point]] names defined for this tile (across all [[animation]] frames). The names will be [[string]] values. The [[array]] will be empty if no [[attach points]] are defined.|
 +|<tile>.attachment["x"]|[[Object]] attached to the tile, where "x" is the [[attach_points|attach point]] ID.|
 +|<tile>.effect["x"]|[[Effect]] attached to the tile, where "x" is the [[attach_points|attach point]] ID.|
 +|<tile>.textures|An [[array]] of texture names defined for this tile. The names will be [[string]] values.|
 |<tile>.terrain_type|[[terrain_types|Terrain type]] assigned to the tile (as a [[string]], or null if none is assigned).| |<tile>.terrain_type|[[terrain_types|Terrain type]] assigned to the tile (as a [[string]], or null if none is assigned).|
-|<tile>.attach_points|An [[array]] of [[attach_points|attach point]] names defined for this tile (across all [[animation]] frames)The names will be [[string]] valuesThe [[array]] will be empty is no [[attach points]] are defined.| +|<tile>.waypoints|An [[array]] of waypoint names defined for this tile. This property will be null if the tile is not currently configured as a moving [[platforms|platform]].
-|<tile>.waypoints|An [[array]] of waypoint names defined for this tile. This property will be null if the tile isn't currently configured as a moving [[platforms|platform]].|+|<tile>.north_tile|[[Tile]] to the north of this tile (if one is connected via navigation, otherwise null is returned).| 
 +|<tile>.south_tile|[[Tile]] to the south of this tile (if one is connected via navigation, otherwise null is returned).| 
 +|<tile>.west_tile|[[Tile]] to the west of this tile (if one is connected via navigation, otherwise null is returned).| 
 +|<tile>.east_tile|[[Tile]] to the east of this tile (if one is connected via navigation, otherwise null is returned).|
  
 ~~NOTOC~~ ~~NOTOC~~
tile.1636167316.txt.gz · Last modified: 2021/11/05 19:55 by justin