From 0b15f95d0e0672951ab3799410d5d2d688c9efc4 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 11 Dec 2024 22:41:29 +0100 Subject: [PATCH] feat: enemy now disables all processing on death --- src/enemy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/enemy.cpp b/src/enemy.cpp index 2168094..565f8fe 100644 --- a/src/enemy.cpp +++ b/src/enemy.cpp @@ -96,6 +96,8 @@ void Enemy::damage() { this->anim_tree->death_animation(); this->set_collision_mask(0x0); this->set_collision_layer(0x0); + this->set_process(false); + this->set_physics_process(false); } void Enemy::notice_player(Player *player) {