Mouse problems
Posted: Sun Dec 21, 2014 11:54 pm
This function here;
Doesn't do anything.
mon is a value set to True somewhere else in the script.
Code: Select all
function love.update(dt)
if love.mouse.getY() >= 65 and love.mouse.getY() <= 65 + 33 then
selectedbutton = 1
if love.mouse.isDown("l") and mon == true then
mon = false
gameplay = 2
wait(2)
gameplay = 1
end
end
end
mon is a value set to True somewhere else in the script.