Looping Help?
Posted: Fri Aug 24, 2012 5:49 am
Hello, I am new to LÖVE and I have a question.
How can I have a exit command that will work (either press exit in game or click the x)
I have a looping command that waits 30 seconds between every command sent too.
This is what I want (Just an example, I have the code already)
[loop1]
while wloop == 1 do
os.execute("code goes here")
love.timer.sleep(30)
end
function love.quit()
-- quit command goes here
end
How can I have a exit command that will work (either press exit in game or click the x)
I have a looping command that waits 30 seconds between every command sent too.
This is what I want (Just an example, I have the code already)
[loop1]
while wloop == 1 do
os.execute("code goes here")
love.timer.sleep(30)
end
function love.quit()
-- quit command goes here
end