Code: Select all
local x = math.floor((mouseX - (camera.x * camera.scale)) / (32 * camera.scale))
local y = math.floor((mouseY - (camera.y * camera.scale)) / (32 * camera.scale))
Code: Select all
local x = math.floor((mouseX - (camera.x * camera.scale)) / (32 * camera.scale))
local y = math.floor((mouseY - (camera.y * camera.scale)) / (32 * camera.scale))