tmPixelSolid

Category: Tilemap

Syntax:

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


Parameters

Returns

Int



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.

Takes map (The map's handle), layer (The layer's number, from tmAddLayer or tmGetLayer), worldX (The world x position, in pixels), worldY (The world y position, in pixels), flags (The flag bits to look for. 0 means any tile that isn't empty).

Returns: 1 if it is, otherwise 0.

View detailed documentation online



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

BambooBasic © 2026 Michael Denathorn