Topic was automatically imported from the old Question2Answer platform.
Asked By
Robotex
How to regulate speed of my game? I want to add ability that makes time flow slower (like in The Matrix movie or Super Hot videogame) or even pause it? How to do it?
If you plan to have many different methods of time control as a central element of your game, such as in Braid, you will probably have to use a custom engine. (Either your own or Godot’s code as a starting point.)
As the other person mentioned, you might be able to modify the Engine.time_scale value for a simple slowdown effect. You could even combine that with some other modifiers if you want the player character to move/act at “normal” speed during the slowdown.
Another option you could try that would give you more control over individual objects is to manipulate the delta value of the process and physics_process functions:
For example, modify the delta value for certain objects by a percentage determined by the player’s movement speed in the case of Superhot.