aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2022-10-29 22:51:07 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2022-10-29 22:51:12 +0100
commit8c87383e13205c506fd253e846f69e0b4af07432 (patch)
treee06d32a8f77c48c9302dd10b27ac279a3b8ed422
parentc2f508b51697b5be8c591f9fbdc7e1bda738c6c0 (diff)
Shit
-rw-r--r--HealthBar.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/HealthBar.gd b/HealthBar.gd
index ae4ce42..ab9c68b 100644
--- a/HealthBar.gd
+++ b/HealthBar.gd
@@ -16,3 +16,5 @@ func _ready():
# pass
func _on_player_hit(delta):
value -= delta * 20
+ if value == 0:
+ emit_signal("player_dead")