TileDisplay.cell
Jump to navigation
Jump to search
TileDisplay.cell returns the tile index at a given row and column within the tile display.
See also: TileDisplay.setCell
Arguments
| Parameter Name | Type | Default Value | Meaning |
|---|---|---|---|
| x | number | 0 | column (with 0 being the leftmost column) of cell to get |
| y | number | 0 | row (with 0 being the bottom-most row) of cell to get |
Usage Notes
Returns the index of a tile within the tile set, or null for cells that have no tile set. Tile index numbers begin with 0 in the top-right corner and increase first to the right, and then down, as shown in the illustration.