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.
map
Int
layer
Int
worldX
Int
worldY
Int
flags
Int
If tmPixelSolid(map, ground, x, y, 1) Then Stop()