tmSetTileFlags

Sets a tile's flags, bits that mean whatever your game wants them to, such as 1 for solid and 2 for water. tmBoxHit, tmRayCast and the probes search by them. Takes tileset (The tileset's handle), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset), flags (The flag bits). Returns nothing.

Tilemap

Parameters & Returns

Parameters

tileset Int
id Int
flags Int

Returns

Void

Quick Summary

Sets a tile's flags, bits that mean whatever your game wants them to, such as 1 for solid and 2 for water. tmBoxHit, tmRayCast and the probes search by them. Takes tileset (The tileset's handle), id (The tile id. 0 is empty, and ids from 1 are the tiles in the tileset), flags (The flag bits). Returns nothing.

Technical Exegesis...

Sets a tile's flags, bits that mean whatever your game wants them to, such as 1 for solid and 2 for water. tmBoxHit, tmRayCast and the probes search by them.

See the Tilemaps guide.

Returns nothing.

Example

Example.bam
tmSetTileFlags(tiles, 5, 1)