I see. I was modifying it so I could pause everything except the draw functions.
But now I see that if I had everything in the update function and simply paused love.update it does the same thing!
Search found 35 matches
- Fri Jan 14, 2011 9:12 pm
- Forum: Support and Development
- Topic: Why does this freeze Love?
- Replies: 9
- Views: 4944
- Fri Jan 14, 2011 8:54 pm
- Forum: Support and Development
- Topic: Why does this freeze Love?
- Replies: 9
- Views: 4944
Re: Why does this freeze Love?
Any reason you're redefining love.run? I don't know! I'm new to love, can you explain what the benefits are of redefining it and not redefining it? The problem is probably that you're not processing any events. Well that wasn't my entire code! I was processing events lol. But what's wrong with the ...
- Fri Jan 14, 2011 8:49 pm
- Forum: Support and Development
- Topic: Random numbers in Love
- Replies: 8
- Views: 2334
Re: Random numbers in Love
Haha, I might just do that.EMB wrote:If you want a REALLY random seed (Or want to change the seed more than once a second) then use this:
Code: Select all
math.randomseed(os.time()*math.random())
- Fri Jan 14, 2011 11:03 am
- Forum: Support and Development
- Topic: Why does this freeze Love?
- Replies: 9
- Views: 4944
Why does this freeze Love?
I'm trying to make my game pause, so I've done: play = true function love.run() while true do if play then blah blah blah blah blah blah blah blah blah else if love.keyboard.isDown("return") then play = true end end end end The game pauses, but when you press return to go back to the game ...
- Fri Jan 14, 2011 9:33 am
- Forum: Support and Development
- Topic: Random numbers in Love
- Replies: 8
- Views: 2334
Re: Random numbers in Love
Okay, thanks. Yeah, that's what I meant by offset it by the time.
Something to add in future builds of Love would be a math module!
Something to add in future builds of Love would be a math module!
- Fri Jan 14, 2011 8:40 am
- Forum: Support and Development
- Topic: Random numbers in Love
- Replies: 8
- Views: 2334
Random numbers in Love
To get a random number in Love, should I just use:
offset by the time on the computer or something, or does Love has it's own, better, function for getting a random number?
Code: Select all
math.random()
- Fri Jan 14, 2011 3:39 am
- Forum: Support and Development
- Topic: How exactly does the love functions work? [more questions]
- Replies: 14
- Views: 3292
Re: How exactly does the love functions work? [more question
Thanks again, and sorry for making you guys send me links from the wiki. I looked on there but I was having trouble finding everything that I need.
- Fri Jan 14, 2011 2:33 am
- Forum: Support and Development
- Topic: How exactly does the love functions work? [more questions]
- Replies: 14
- Views: 3292
Re: How exactly does the love functions work?
Thanks! That's exactly what I needed to know. Now more questions: :P Can you load things and set variables outside of the love.load function? Is it possible to get the color of one pixel on the screen in love? If so what's the function? Can you draw images to another image (for screen effects) for c...
- Fri Jan 14, 2011 2:15 am
- Forum: nLÖVE
- Topic: nlove (LOVE2D) for Dingoo & Caanoo Handheld
- Replies: 92
- Views: 258222
Re: nlove (LÖVE 0.7.0) beta for Caanoo Handheld
I've been thinking about buying a gp2x or some other programming handheld for a while now. I hadn't heard of the caanoo before, but it looks pretty good. Now that I'm programming with love, and it's working with this handheld, I might consider getting one of these. What other handhelds does love wor...
- Fri Jan 14, 2011 2:11 am
- Forum: Support and Development
- Topic: How exactly does the love functions work? [more questions]
- Replies: 14
- Views: 3292
How exactly does the love functions work? [more questions]
As long as I've been programming in lua, I've always had to do something like this: function blah blah blah blah end function blah blah blah blah end while true do function function draw everything to screen end Does love automatically loop the draw function? What other functions does love automatic...