From 294f87adb4441ec25316601505ca1a7e97fa24c7 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 19 Jul 2024 14:24:09 +0200 Subject: update --- Scenes/Entities/Enemies/Flower.gd | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Scenes/Entities/Enemies/Flower.gd') diff --git a/Scenes/Entities/Enemies/Flower.gd b/Scenes/Entities/Enemies/Flower.gd index 3e50e80..d287bdc 100644 --- a/Scenes/Entities/Enemies/Flower.gd +++ b/Scenes/Entities/Enemies/Flower.gd @@ -8,8 +8,13 @@ func _ready(): $Body/Bottom.play("default") add_to_group("enemies") + $Collision.init() $Collision.collision_area.set_collision_layer_value(Utilities.Collision.Layer.ENEMY, true) + + $Health.hit.connect(func(): + $Body/Top.visible = false + ) $Health.died.connect(func(): $Body.remove_child($Body/Top) ) -- cgit v1.2.3