Search found 15 matches
- Wed Apr 10, 2013 1:56 am
- Forum: Support and Development
- Topic: Framerate increases when window is not in focus
- Replies: 13
- Views: 8575
Re: Framerate increases when window is not in focus
I am using Windows 7 as well. How do I prevent this from happening? Or should I just have it pause the game when it's not in focus?
- Wed Apr 10, 2013 12:35 am
- Forum: Support and Development
- Topic: Framerate increases when window is not in focus
- Replies: 13
- Views: 8575
Re: Framerate increases when window is not in focus
But even when running the fixed love file from that previous topic, if the game window is out of focus, then the background goes really fast. The DT is in the update function, too...
I don't understand it...
I don't understand it...
- Tue Apr 09, 2013 12:45 am
- Forum: Support and Development
- Topic: Framerate increases when window is not in focus
- Replies: 13
- Views: 8575
Re: Framerate increases when window is not in focus
There's a love file in my previous topic: http://love2d.org/forums/viewtopic.php? ... 8&start=10
But I don't understand how the dt increases just because the window is not in focus. If I make the window back in focus again, then everything is normal.
But I don't understand how the dt increases just because the window is not in focus. If I make the window back in focus again, then everything is normal.
- Mon Apr 08, 2013 8:52 pm
- Forum: Support and Development
- Topic: Framerate increases when window is not in focus
- Replies: 13
- Views: 8575
Re: Framerate increases when window is not in focus
Sorry, I meant the frame rate decreases, meaning everything is getting super fast when the window isn't in focus. So would it just make sense to halt the entire game when the window is not in focus, like Lafolie's suggestion? Or is there any way to keep the framerate consistent whether it's in focus...
- Mon Apr 08, 2013 4:16 am
- Forum: Support and Development
- Topic: Framerate increases when window is not in focus
- Replies: 13
- Views: 8575
Framerate increases when window is not in focus
I don't know if this is a bug with Zerobrane, or if it's something that happens with any LOVE file that's tested. When I run my program (whether running as 'scratchpad' or running regularly), if the game window is not in focus, then the framerate will increase significantly. I noticed this because I...
- Mon Apr 08, 2013 4:09 am
- Forum: Support and Development
- Topic: Wait/Pause/Sleep?
- Replies: 16
- Views: 17531
Re: Wait/Pause/Sleep?
The way you've set up your code, for whatever reason, makes it so dt doesn't work in your update function. I put it in the love.update built in function and it works fine. Thank you! So if I understand correctly, for anything that requires timers or the utilization of 'dt' I will need to always put...
- Sun Apr 07, 2013 9:02 pm
- Forum: Support and Development
- Topic: Wait/Pause/Sleep?
- Replies: 16
- Views: 17531
Re: Wait/Pause/Sleep?
You're not putting dt as argument to the love.draw function, are you? It should be to love.update, nothing else. Nope. It's only in the update function, and that's all. I put this line in the update function: love.graphics.print(dt, 100, 200) When that didn't work, I put the same line in the draw()...
- Sun Apr 07, 2013 2:25 pm
- Forum: Support and Development
- Topic: Wait/Pause/Sleep?
- Replies: 16
- Views: 17531
Re: Wait/Pause/Sleep?
This is weird. It's not working for me. It seems to be ignoring the dt argument, so the timer is never going off. I passed the dt argument in my update function. I even tried printing out the value of dt on the screen and nothing shows up.
- Sun Apr 07, 2013 3:01 am
- Forum: Support and Development
- Topic: Wait/Pause/Sleep?
- Replies: 16
- Views: 17531
Wait/Pause/Sleep?
Is there a Wait/Pause/Sleep method or function that exists for LOVE? Basically, I want to show a screen that says 'Stage 1 Start' for 5 seconds then goes to the next level file (level1.lua). So basically something along these lines: love.graphics.print("Stage 1 Start", 100,200) --show text...
- Sat Apr 06, 2013 11:14 pm
- Forum: Support and Development
- Topic: Continuous auto-scrolling a tiled background
- Replies: 6
- Views: 6199
Re: Continuous auto-scrolling a tiled background
Awesome! I understand now. Thank you! 
Another question. What would I need to do if I wanted the background to scroll diagonally?
EDIT: Nevermind, I got it. I had to make 2 more background copies, so now I have 4 backgrounds total scrolling.

Another question. What would I need to do if I wanted the background to scroll diagonally?
EDIT: Nevermind, I got it. I had to make 2 more background copies, so now I have 4 backgrounds total scrolling.