Blitzbasic mapengine function
value=layer_hex2_coord (layer.layer, x, y [,check])

Description
Calculate tile-coordinates from screen-coordinates. You need layer type handle (search with layer_find).

Parameter
layer.layer=layer type handle
x=screen coordinate x
y=screen coordinate y
check=bound check (0=no, 1=yes). default=0

Return value
0=outside, 1=inside (only if check is enabled)
change global variables layer_x + layer_y