function mouseOver(object) local mx, my = love.mouse.getPosition() local time = 0 if mx > object.x and mx < object.x + object.width then if my > object.y and my < object.y + object.height then return true end end return false end