tmGetTileValue

Category: Tilemap

Syntax:

tmGetTileValue:Int(tileset:Int, id:Int)


Parameters

Returns

Int



Summary

Gets a tile's spare number.

Takes tileset (The tileset's handle), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset).

Returns: The number, 0 if none was set.

View detailed documentation online



Example
damage = tmGetTileValue(tiles, id)

BambooBasic © 2026 Michael Denathorn