I have printed text that says "Yes". and I have to buttons in the shape of arrow. I am trying to get it so that if I click the left arrow it say "No" and if I click the right arrow is says "Yes".
fsdefault = "Yes"
fs = love.graphics.print(fsdefault, 440, 160)
love.graphics.draw(larrow, 425, 163)
love.graphics.draw(rarrow, 470, 163)
function love.update(dt)
function love.mousepressed( x, y)
if x > 424 and x < 435 and y > 161 and y < 172 then
fsdefault = "No"
end
if x > 275 and x < 320 and y > 305 and y < 325 then
fsdefault = "Yes"
end
end
end
x > 424 and x < 335. Chose anx. Would it ever satisfy both of the conditions? - hjpotter92