How can I pause execution for a certain amount of time in Godot? I can't really find a clear answer.
How can I pause a Thread for some seconds in Godot?
8.9k views Asked by MomoVR At
5
There are 5 answers
0
On
I see different answers but an important aspect is not mentioned: would you like to have the thread blocked or waiting?
see related wiki page
Blocking way:
Thread.Sleep(1000);
Non-blocking:
await get_tree().create_timer(1).timeout
The equivalent of
Thread.Sleep(1000);for Godot isOS.DelayMsec(1000). The documentation says: