Gets the tile at a world position, on any shape of map. 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). Returns: The tile id, or 0 if empty or outside the map.
map
Int
layer
Int
worldX
Int
worldY
Int
id = tmTileAt(map, ground, px, py)