Hello, I'm making a top-down RPG game like the old The Legend of Zelda
And I have a problem with the enemy, (Skeleton) I made it so that he follows the character, well, if he goes behind a small obstacle, he stops and that’s it, also I couldn’t connect the attack animation
How can I make the enemy chase my player and if he hides behind an obstacle, he will go to where he last saw him?
And if anyone knows how to add animation to the enemy (Idle, Attack, Run)?
I made a mechanic so that they do not fit in place and the fact that they turn towards the player if they notice him, all that remains is to follow if he notices the player