How to use a time delay in GODOT?

I can’t seem to find on the docs or google how to wait time in GODOT.
For instance in python:

import time as t
print(‘3 second delay’)
t.wait(3)
print(‘delay over’)

I only want to create a delay to change a thing, for instance after this much time change direction from this to this, or so on. Thanks in advance!

You can use await get_tree().create_timer(3).timeout

2 Likes

You can use:

await get_tree().create_timer(time).timeout

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.