EZ I'm basically going to make sure that the distance for the ennemi to keep following you is the size of the screen or even a little bigger, and when it comes to the walls, I'll use the pathfinding behavior.
Little last minute update, I am not able to make the ennemis avoid the wall using the pathfinding behavior. But I decided that was okay. They are supposed to be some of the easiest ennemis of the game after all.