Depending on your need - there are several options
- Do this inside the code with
yield
yield(get_tree().create_timer(5.0), "timeout")
timing = false
- Do it in another method asynchronously with
connect
to the timer
get_tree().create_timer(5.0).connect("timeout", self, "set_timing", [false])
func set_timing(value: bool):
timing = value