Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | ABaconWrappedHotdog |
How do I get to so you have to wait 3 seconds for it to start printing ha but after the first “ha” it prints it out every 0.3 seconds
var stop_loop = false
func _on_Button_button_down():
stop_loop = false for n in 999: yield(get_tree().create_timer(3), "timeout")
if stop_loop: return else: $Label.text = $Label.text + "ha"