If I use an if statement to check the x and y of the mouse, and if it was clicked, it will only run if the mouse was on that certain position.
How would I make it so that when a sprite's area is clicked, it would run a block of code?
Um.. this is what I mean...
function love.mousepressed(x, y, button)
if x == xcoord and y == ycoord and button == "l" then -- xcoord and ycoord are the coordinates of the button, but it would only trigger on that ---exact position
--code
end
function love.mousepressed(x, y, button)
if x >= xcoord and y >= ycoord and x <= xcoord + button_width and y <= ycoord + button_height and button == "l" then
--code
end
and btw i tried making the default program to open love files windows explorer because i wanted to see the files without changing it to a zip, so i did that, and now i cant open .loves without dragging them to love.exe.... and i can't set love.exe to the default program to open .love files...