From 6f17d6c1d458275e8744d57a7f433cc3eb5434d7 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 6 Nov 2024 12:27:51 +0100 Subject: next commit --- Stages/Stage.gd | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Stages/Stage.gd') diff --git a/Stages/Stage.gd b/Stages/Stage.gd index 5b218d6..7cdd2f8 100644 --- a/Stages/Stage.gd +++ b/Stages/Stage.gd @@ -106,6 +106,14 @@ func set_player_script(script: Script): player[property] = previous_values[property] +func add_status_message(message: String): + var label = Label.new() + label.text = message + $HUD.get_node("%StatusMessages").add_child(label) + await get_tree().create_timer(3.0).timeout + label.queue_free() + + ## get spawn node func get_spawn(): pass -- cgit v1.2.3