GETMAPDATA |
Top Previous Next |
Syntax INT = GETMAPDATA(map as POINTER,x as INT,y as INT) Description Gets the current tile number at the specified position. Positions are in map coordinates Parameters map - A map pointer created with the NEWMAP function x, y - Coordinates of the tile in question. Return value The tile number that is currently displayed at the coordinates specified. Remarks The positions are zero based map coordinates. Map coordinates are specified in tiles instead of pixels. See Also: SETMAPDATA Example usage tile = GETMAPDATA(myMap, 1, 20) |