tmSetTileFlags

Category: Tilemap

Syntax:

tmSetTileFlags:Void(tileset:Int, id:Int, flags:Int)


Parameters

Returns

Void



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.

View detailed documentation online



Example
tmSetTileFlags(tiles, 5, 1)

BambooBasic © 2026 Michael Denathorn