tmUseBackground

Category: Tilemap

Syntax:

tmUseBackground:Int(map:Int)


Parameters

Returns

Int



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.

Takes map (The map's handle).

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

View detailed documentation online



Example
tmUseBackground(map)

BambooBasic © 2026 Michael Denathorn