From 553e6d8a818a33195dbf1d01cb517e46fac7996e Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Sat, 29 Oct 2022 23:05:38 +0100 Subject: Add death screen --- HealthBar.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'HealthBar.gd') diff --git a/HealthBar.gd b/HealthBar.gd index ab9c68b..91a5b8e 100644 --- a/HealthBar.gd +++ b/HealthBar.gd @@ -4,11 +4,11 @@ extends ProgressBar # Declare member variables here. Examples: # var a = 2 # var b = "text" - +signal player_dead # Called when the node enters the scene tree for the first time. func _ready(): - pass # Replace with function body. + connect("player_dead", get_node("/root/Main/HUD/Wordart"), "_on_player_dead") # Called every frame. 'delta' is the elapsed time since the previous frame. -- cgit v1.2.3-70-g09d2