I have a question about the love2d(lua script) cursor functions. I wan't to make an area to click to make an action happen.
I started on a track of for loops in the x and y parameters. The only other problem ive thought of is if it will go through a for loop of number/coordinates and finish on 1 number which the love.mouse.get() will end up on and allow for the cursor to end up being clicked on that last coordinate(one pixel).
for r = 660, 770 do --the x coordinates
mx = love.mouse.getX(r)
end
for f = 99.33, 169.66 do --the y coordinates
my = love.mouse.getY(f)
end
And how would I combine the two for loop variables(r and f).
To sum everything up I want to be able to click on an area and do an action. I know there are no love.load, love.update, and love.draw functions because this is just a test file to learn how all this works.