Search found 39 matches

by Kookerus
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: 1719

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?
by Kookerus
Wed Jul 30, 2014 7:34 pm
Forum: Support and Development
Topic: Need Help With love.timer.sleep
Replies: 7
Views: 1976

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", visible = true...
by Kookerus
Wed Jul 30, 2014 7:06 pm
Forum: Support and Development
Topic: How Do I Make A Program Pause Briefly?
Replies: 9
Views: 2732

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?
by Kookerus
Wed Jul 30, 2014 6:53 am
Forum: Support and Development
Topic: How Do I Make A Program Pause Briefly?
Replies: 9
Views: 2732

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...
by Kookerus
Wed Jul 30, 2014 5:07 am
Forum: Support and Development
Topic: Need Help With love.timer.sleep
Replies: 7
Views: 1976

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
by Kookerus
Wed Jul 30, 2014 4:16 am
Forum: Support and Development
Topic: Need Help With love.timer.sleep
Replies: 7
Views: 1976

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?
by Kookerus
Wed Jul 30, 2014 3:50 am
Forum: Support and Development
Topic: How Do I Make A Program Pause Briefly?
Replies: 9
Views: 2732

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

Code: Select all

function sleep(n)
  os.execute("sleep " .. tonumber(n))
end
by Kookerus
Wed Jul 30, 2014 3:39 am
Forum: Support and Development
Topic: How Do I Make A Program Pause Briefly?
Replies: 9
Views: 2732

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?
by Kookerus
Sun Jul 27, 2014 10:50 pm
Forum: Support and Development
Topic: Can LÖVE handle SVG Images?
Replies: 3
Views: 2354

Re: Can LÖVE handle SVG Images?

Thanks, that's what I thought