tmPixelSolid

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.

Tilemap

Parameters & Returns

Parameters

map Int
layer Int
worldX Int
worldY Int
flags Int

Returns

Int

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

Technical Exegesis...

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.

Returns: 1 if it is, otherwise 0.

Example

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