tmSetTileValue

Sets a spare number on a tile, for damage, friction or anything else. Takes tileset (The tileset's handle), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset), value (The number). Returns nothing.

Tilemap

Parameters & Returns

Parameters

tileset Int
id Int
value Int

Returns

Void

Quick Summary

Sets a spare number on a tile, for damage, friction or anything else. Takes tileset (The tileset's handle), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset), value (The number). Returns nothing.

Technical Exegesis...

Sets a spare number on a tile, for damage, friction or anything else.

See the Tilemaps guide.

Returns nothing.

Example

Example.bam
tmSetTileValue(tiles, 9, 25)