tmPixelSolid

Category: Tilemap — Following ground

Syntax:

tmPixelSolid:Int(map:Int, layer:Int, worldX:Int, worldY:Int, flags:Int)


Parameters

Returns

1 if it is, otherwise 0.



Summary

Asks if one world pixel is solid, respecting tile shapes and flips. On an isometric map the position is in grid pixels and every tile counts as fully solid, and on staggered and hexagonal maps this returns 0.

See the Tilemaps guide.



Example
If tmPixelSolid(map, ground, x, y, 1) Then Stop()

BambooBasic © 2026 Michael Denathorn