Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Soulis | |
Old Version | Published before Godot 3 was released. |
I was fooling around with the scene change example code and I can’t seem to get this while loop to update label each iteration.
extends Panel
var i = 1
func _ready():
pass
func _on_goto_scene_pressed():
while(i < 1000000):
get_node("Label").set_text(str(i))
i += 1
get_node("Label").set_text("Done")