tmSetTileMask

Category: Tilemap — Tile shapes

Syntax:

tmSetTileMask:Void(tileset:Int, id:Int, mask:String)


Parameters

Returns

Nothing.



Summary

Gives a tile a pixel shape, for slopes and curves. Without one, the whole tile is solid. Collision commands use it, and it turns and flips with the tile. Use tmMasksFromImage instead if the art already has the shape.

See the Tilemaps guide.



Example
tmSetTileMask(shapes, 1, slopeText)

BambooBasic © 2026 Michael Denathorn