tmTilesetCreateBlank

Category: Tilemap

Syntax:

tmTilesetCreateBlank:Int(count:Int, tileW:Int, tileH:Int)


Parameters

Returns

Int



Summary

Makes a tileset with no image, for a hidden layer that only holds shapes. Give each id a mask with tmSetTileMask.

Takes count (How many tile ids it has), tileW (The width of a tile, in pixels), tileH (The height of a tile, in pixels).

Returns: The tileset's handle, or 0 if a size isn't valid.

View detailed documentation online



Example
shapes = tmTilesetCreateBlank(64, 16, 16)

BambooBasic © 2026 Michael Denathorn