Area2D is still monitorable after queue_free() function has been called

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Redmax17

I’m working on hitboxes and hurt boxes for a 2D platformer. So when the enemy is hit by the player, the enemy’s hitbox should be deleted or at least turned off so the player doesn’t hit it. However, the hitbox for the enemy is still effecting the player’s hurt box after the player kills the enemy.

I have tried setting monitoring to false and freeing it from queue, but the player is still hit by the enemy’s now nonexistent hitbox

Can you post a snippet of your code? It could be of great help.

plucafs | 2023-07-04 18:52