diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-07-19 14:24:09 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-07-19 14:24:09 +0200 |
commit | 294f87adb4441ec25316601505ca1a7e97fa24c7 (patch) | |
tree | e48ed54e97f19ae5dd189ee42ddb73c4e995175f /Scenes/Entities/Enemies/Flower.gd | |
parent | 06647b11ee163bc40daf454d87e1fcae563c3ced (diff) |
update
Diffstat (limited to 'Scenes/Entities/Enemies/Flower.gd')
-rw-r--r-- | Scenes/Entities/Enemies/Flower.gd | 5 |
1 files changed, 5 insertions, 0 deletions
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) ) |