Search found 2 matches
- Wed Mar 13, 2013 1:34 am
- Forum: Support and Development
- Topic: Help with sleep function
- Replies: 1
- Views: 2441
Help with sleep function
I'm sorta new at lua so please don't hate. I'm trying to make an image stay visible for 10 seconds then disappear. Here are the functions I put in... function love.draw() love.graphics.setColor( 255, 255, 255, 255 ) love.graphics.draw( imageLevel1, 300, 60, 0, 0.7 ) while true do love.timer.sleep(10...
- Sun Mar 10, 2013 2:13 am
- Forum: Support and Development
- Topic: Help with a 3 lives game
- Replies: 2
- Views: 3131
Help with a 3 lives game
I'm trying to make a game when you have 3 lives and if you loose your lives, game over. I've tried to put in this code... function.load () lives = 3 paused = false; end if paused print("Game Over", 0, 0) if lives = 0 then paused = true end function takeScore(n) lives = lives - tonumber(n) ...