tmUseBackground

Category: Tilemap — Maps

Syntax:

tmUseBackground:Int(map:Int)


Parameters

Returns

1 if it did, 0 if the map has no background colour or hasn't arrived.



Summary

Sets b2dCls's colour to the map's background colour from Tiled. On the web, call it after tmLoaded says the map has arrived.

See the Tilemaps guide.



Example
tmUseBackground(map)

BambooBasic © 2026 Michael Denathorn