In most languages/engines/frameworks, I could just write the movement code like this:
x = x + (speed * dt)
And it would work fine. But in Love2D, the dt changes nothing. If it's at 60FPS, it will move at a certain speed. If it's 20FPS, it will be much slower. What can I do?
Search found 1 match
- Wed Dec 20, 2017 10:33 pm
- Forum: Support and Development
- Topic: Make speed constant no matter the FPS
- Replies: 5
- Views: 4163