Hello everyone, I ran into the following problem when creating my game:
I made a flying arrow from a trap, but when it flies out, it does not go through the enemy, but disappears, I would like it to fly through the enemy and kill the main character
func _on_arrow_body_entered(body):
if "Player" in body.name:
body.die()
queue_free()