diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-06 12:27:51 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-06 12:27:51 +0100 |
commit | 6f17d6c1d458275e8744d57a7f433cc3eb5434d7 (patch) | |
tree | 588434069b86aa079a0b36c78367dfb14003321e /Stages/Stage.gd | |
parent | c8f674ac6fa0914d9e448d2929f2385cdad80d60 (diff) |
next commit
Diffstat (limited to 'Stages/Stage.gd')
-rw-r--r-- | Stages/Stage.gd | 8 |
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 |