Arrow collide with multiple enemies
Hi guys, I am making a 2D game, where I have an archer and multiple enemies overlapping each other. Everything works fine, but when the arrow is fired and the enemies are overlapping the arrow hit all of them before it disappear queue_free().
I tried to add a script to the arrow and queue_free() it immediately when it detects a collusion with the enemy hearthbox and it works, but still the collusion is detected by all enemies in the bunch. I also tried the other way around to detect the arrow from the enemies and remove it from there, which works too, but the result is the same, it takes damage to all of them. It seems that by the time the arrow is removed it was already detected by all the hearthboxes. Any workaround will be greatly appreciated.