Search found 2 matches
- Thu Sep 01, 2011 4:06 pm
- Forum: Support and Development
- Topic: [Solved] Yet another frame rate-related question
- Replies: 6
- Views: 2808
Re: Yet another frame rate-related question, it seems...
Thanks for the quick replies, everyone. make a timer when updating things= local timer1 = 0 local fps = 60 function love.update(dt) timer1 = timer1+dt if timer1 > 1/fps then --DO STUFF HERE timer1 = 0 end end you should change timer1 = 0 to timer1 = timer1-1/fps I used this in the update() method, a...
- Wed Aug 31, 2011 6:17 pm
- Forum: Support and Development
- Topic: [Solved] Yet another frame rate-related question
- Replies: 6
- Views: 2808
[Solved] Yet another frame rate-related question
I'm new to LOVE and these forums(and to Lua, really), but I decided to see what's up and try to program a few simple things. Like others, I assume, I soon ran into a slight problem regarding timing and frame rates. After searching around this forum a little, I found that you can somewhat limit the f...