Many 2D games have an intentional screen freeze (say, 75 milliseconds) when the player takes or deals damage. During this freeze, all physics and animation processing stops.
How can one implement a screen freeze in Godot?
If you want to suggest how to do this in Unity or another engine, that's fine too. It might help me to figure out how to do it in Godot.
My only idea is to have a boolean called
is_screen_freeze along with some variables
freeze_duration. In all my nodes'
_physics_process()methods, I can just pass if
is_screen_freeze is true. This seems like a rather inelegant way of going about a screen freeze, and I'm not even sure it would work since animations would probably keep playing. Is there a better way?