tmUseBackground

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.

Tilemap

Parameters & Returns

Parameters

map Int

Returns

Int

Quick 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.

Technical Exegesis...

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.

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

Example

Example.bam
tmUseBackground(map)