- Home /
How to implement fast forward feature in a tower defense game?
How can I implement the fast forward feature for my tower defense game like in http://fieldrunners.com/ and other TD games. I am using unity3D game engine. Would there be something like to manage less frames per second or some kind of manually set fast movement of enemies and tower firing speed etc.
Answer by Julien-Lynge · Dec 20, 2011 at 11:31 PM
Look at the documentation for Time, specifically timeScale. What works for slowing down time also works for speeding up time.
But only if you consequently used Time.deltaTime in all movement or time based actions (which you should have done ;) )
An excellent point, Bunny :)
If memory serves (it's been a while since I've used physics in a game) it also slows down or speeds up the physics proportionally, and it changes the time between physics / fixedUpdate calls.