From 92758c8c998091b8c2a20e6af5f2f473aa130d7a Mon Sep 17 00:00:00 2001 From: freddie-a <57713959+freddie-a@users.noreply.github.com> Date: Sat, 29 Oct 2022 21:59:06 +0100 Subject: Add health loss --- Main.gd | 1 + 1 file changed, 1 insertion(+) (limited to 'Main.gd') diff --git a/Main.gd b/Main.gd index 958a7a7..a80905e 100644 --- a/Main.gd +++ b/Main.gd @@ -9,6 +9,7 @@ onready var globals = get_node("/root/Global") # Called when the node enters the scene tree for the first time. func _ready(): randomize() + get_node("KinematicBody2D").connect( "hit", get_node("HUD/HBoxContainer/HealthBar"), "_on_player_hit") $EnemySpawnTimer.start() -- cgit v1.2.3-70-g09d2