Hello so I'm creating a game with the battle system similar to the one below (player left, enemy right)
I'm just a little lost when it comes to coding the enemies movement. How do I make him move and attack depending on the space the player is on? For example, have him use a close range attack when the player is in the front row. Or just move to the same row as the player and attack that row. Thanks!