Category: Tilemap — Tile shapes
Syntax:
tmMasksFromImage:Int(tileset:Int)
How many tiles got a mask. On the web, 0 if the image is still on its way.
Gives every tile a shape from its art: a pixel is solid if it's at least half opaque. Fully opaque tiles stay plain solid tiles. On the web it runs when the image arrives. It doesn't do anything useful on a Tiled image collection tileset.
See the Tilemaps guide.
tmMasksFromImage(tiles)
BambooBasic © 2026 Michael Denathorn