I have a player and a few enemies. When the player shoots and the bullet collides with the enemy, I want to play a hit animation on the enemy.
print("shot enemy", body)
The collision part works, and the individual hit points work. However; ALL of the enemy instances play the hit animation, not the specific individual instance that was hit. In the Output I get: shot enemy[KinematicBody2D:605]
I tried a few different tactics, even using a hit function and calling
but still have all enemies trigger. I suspect it is because of the get_node part, but I am not sure how to trigger only the instance hit's AnimationPlayer.