I want to set timer on code but not in spesific func

Godot Version

Godot 4

Question

I want a timer like

-----code-------
play.anim()…
TİMER
—code-----

I saw await etc but I couldnt do it I want something like Thread.Sleep()

If you want to wait for a few seconds, you could use SceneTree.create_timer().

A usage example is available in the docs:

1 Like

I will check it in 1h thanks