Search found 39 matches
- Fri Nov 21, 2014 8:52 pm
- Forum: Support and Development
- Topic: How Do I Make Something Happen When Two Sprites Collide?
- Replies: 4
- Views: 3732
Re: How Do I Make Something Happen When Two Sprites Collide?
Thank you all so much!
- Tue Nov 18, 2014 10:45 pm
- Forum: Support and Development
- Topic: How Do I Make Something Happen When Two Sprites Collide?
- Replies: 4
- Views: 3732
How Do I Make Something Happen When Two Sprites Collide?
I'm trying to make a clone of snake, but I don't know how to find out if two sprites have collided. Can anyone help?
- Wed Jul 30, 2014 7:34 pm
- Forum: Support and Development
- Topic: Need Help With love.timer.sleep
- Replies: 7
- Views: 4377
Re: Need Help With love.timer.sleep
You seem to have created two threads for the same issue. So I'll repost my same reply here: Use a Timer library like Cron. Don't use love.timer.sleep or os.execute. They don't do what you think they do. If you use cron, it would be as easy as: message = { text = "This is my message", visi...
- Wed Jul 30, 2014 7:06 pm
- Forum: Support and Development
- Topic: How Do I Make A Program Pause Briefly?
- Replies: 9
- Views: 6263
Re: How Do I Make A Program Pause Briefly?
Is there a way I could put that in a function so I can change the value of time?
- Wed Jul 30, 2014 6:53 am
- Forum: Support and Development
- Topic: How Do I Make A Program Pause Briefly?
- Replies: 9
- Views: 6263
Re: How Do I Make A Program Pause Briefly?
Thanks for the suggestion, but I think I'm using it wrong. My code is function sleep(time) sleeping = true sleepTimer = time end function love.update(dt) if sleeping then sleepTimer = sleepTimer - dt if sleepTimer < 0 then sleeping = false end return end -- put the normal update stuff here end funct...
- Wed Jul 30, 2014 5:07 am
- Forum: Support and Development
- Topic: Need Help With love.timer.sleep
- Replies: 7
- Views: 4377
Re: Need Help With love.timer.sleep
I was using 'love.graphics.print', but after trying just 'print' it works, but prints to the console, which I don't want
- Wed Jul 30, 2014 4:16 am
- Forum: Support and Development
- Topic: Need Help With love.timer.sleep
- Replies: 7
- Views: 4377
Need Help With love.timer.sleep
I'm trying to print some text, call 'love.timer.sleep', print some more text, sleep again, print more text etc.
The problem is, instead of sleeping one second and printing the text, it sleeps 3 seconds and then prints all the text at once. How do I fix this?
The problem is, instead of sleeping one second and printing the text, it sleeps 3 seconds and then prints all the text at once. How do I fix this?
- Wed Jul 30, 2014 3:50 am
- Forum: Support and Development
- Topic: How Do I Make A Program Pause Briefly?
- Replies: 9
- Views: 6263
Re: How Do I Make A Program Pause Briefly?
I was looking in 'love.timer' but I didn't even see that, lol.
google also returned a way to do it in lua
google also returned a way to do it in lua
Code: Select all
function sleep(n)
os.execute("sleep " .. tonumber(n))
end
- Wed Jul 30, 2014 3:39 am
- Forum: Support and Development
- Topic: How Do I Make A Program Pause Briefly?
- Replies: 9
- Views: 6263
How Do I Make A Program Pause Briefly?
I wanted to have some text appear on screen, wait a second or two, and then have more appear. In python you would use 'time.sleep(seconds)'
Is there a way to accomplish this in LÖVE or Lua?
Is there a way to accomplish this in LÖVE or Lua?
- Sun Jul 27, 2014 10:50 pm
- Forum: Support and Development
- Topic: Can LÖVE handle SVG Images?
- Replies: 3
- Views: 4395
Re: Can LÖVE handle SVG Images?
Thanks, that's what I thought