Difference between revisions of "TileDisplay.cell"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "thumb|right|Tile indexes for /sys/pics/TileShapes.png <c>TileDisplay.cell</c> returns the tile index at a given row and column within the t...")
 
(No difference)

Latest revision as of 18:04, 7 July 2021

Tile indexes for /sys/pics/TileShapes.png

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.