summaryrefslogtreecommitdiff
path: root/Stages/Stage.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Stages/Stage.gd')
-rw-r--r--Stages/Stage.gd8
1 files changed, 8 insertions, 0 deletions
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