I’ve been spending far too long trying to code this enemy’s behaviour now, and i need to finish what i’m doing really soon because it’s for a college project. Basically what i want the enemy to do is stand still, then when the player approaches them, they should chase the player. When they reach the player, they should attack the player, then run away. After a short while of running away, repeat.
Any help with this would be highly appreciated. Especially if it’s quick!