From 81cc6f1d22677dd4a60aa9377c91b291bf10e523 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 27 Apr 2024 20:06:49 +0200 Subject: update --- Scenes/Entities/Enemies/Balloon.gd | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'Scenes/Entities/Enemies/Balloon.gd') diff --git a/Scenes/Entities/Enemies/Balloon.gd b/Scenes/Entities/Enemies/Balloon.gd index bc79f24..7c4b402 100644 --- a/Scenes/Entities/Enemies/Balloon.gd +++ b/Scenes/Entities/Enemies/Balloon.gd @@ -1,9 +1,6 @@ extends CharacterBody2D -@export var health: int - - func _ready(): add_to_group("enemies") @@ -22,19 +19,6 @@ func _ready(): $AnimatedSprite2D.play("right") $AnimatedSprite2D.set_frame_and_progress(frame, progress) ) - - get_node("Collision").connect("collided", func(area): - if area.is_in_group("explosions"): - health -= 1 - if health <= 0: - set_physics_process(false) - remove_child(get_node("Movement")) - - $AnimatedSprite2D.play("death") - await $AnimatedSprite2D.animation_finished - # todo shrink to 0 - queue_free() - ) func _physics_process(delta): -- cgit v1.2.3