- Edited
works great
doesnt work
can i make this work without passing arguments?
works great
doesnt work
can i make this work without passing arguments?
signal finished
func _ready():
test2()
test()
func test():
#waits for test 2 to finish then yeps
await finished
print("yep")
func test2():
#lets assume it does stuff with a&b
await get_tree().create_timer(3).timeout
emit_signal("finished")
420mangojuice its possible to achieve the same result by using signals but i was wondering whether i can do the same using await