On player overlaps array of enemy run animation

I am trying to make it so when the ghost overlaps guy(player) then it will do an attacking animation which will cause the player to lose a life/health. my enemies are set up in a array because I needed a way for them to move independently when the player is in a certain radius. (to get to the ghosts go through the door on the top left corner). thank you let me know what you think.

There were lots of issues. You need to also depend on arrays whenever you have multiple enemies or sprites of the same purpose and kind.

what are the issues, I can’t get it to work

Forgot to include the link…

what link?