Code: Select all
game.gettile(-10.5,-10.5).name -- returns name of tile in -9.5, -9.5
Edit: fixed positive -> negative.
Edit2: Workaround
Code: Select all
function getTile(position)
local x = (position.x < 0) and -1 or 0
local y = (position.y < 0) and -1 or 0
return game.gettile(position.x + x, position.y + y)
end