Hi,
I want to add some time functions to my game. Like the speed options in games like Project Highrise and Oxygen Not Included:
PAUSE (SpaceBar)
Slow Speed (key 1)
Normal Speed (key 2)
Fast Speed (key 3)
The only way I can think of to speed up and slow down all the animations and maybe the timers is add a global variable that changes all the delta codes like:
"delta * Global.current_speed"
I'm not too satisfied with this way because I have to go back to all the code I did and bugs might appear. Any ideas?
Also how can I add a pause function?
Thanks!