Is there a reliable way to slow down game play? I recently cleaned up my code and gained a significant performance boost. Now the game plays a little faster than preferable. Is there a way to slow done the game? In short, the game played slow because it was lagging, but I want it to run at the same speed cleanly. [import]uid: 54716 topic_id: 20119 reply_id: 320119[/import]
It depends on how you have your game set up, but it sounds like what you want is “frame rate independent animation.” Google that term, and you’ll find a bunch of resources that describe how to implement it. Mostly in other languages like Actionscript or C, but not too difficult to adapt to Lua.
Here’s a message board thread on the subject that might help: http://www.gamedev.net/topic/81429-frame-rate-independent-animation/
My game is currently frame rate limited, but I’ll eventually convert it to time based animation… I’ll be sure to post my results when I’m done with it. [import]uid: 120 topic_id: 20119 reply_id: 78631[/import]