TileDisplay.tileSetTileSize

From MiniScript Wiki
Revision as of 23:30, 7 July 2021 by JoeStrout (talk | contribs) (Created page with "The <c>TileDisplay.tileSetTileSize</c> property defines the size of the tiles in a tile set used by a tile display. The value may be either: * a s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The TileDisplay.tileSetTileSize property defines the size of the tiles in a tile set used by a tile display.

The value may be either:

  • a simple number, used as both the width and the height of square tiles; or
  • a [width, height] list (i.e. a 2-element list of numbers), defining the tile width and height separately.

Note that this property defines the size (in pixels) of the tiles in the source image (the tile set). To set the size of the cells as they appear on screen, use TileDisplay.cellSize.

See also: TileDisplay.tileSet, TileDisplay.setCell, TileDisplay.cellSize