Ok. I would suggest making sensors (invisible objects). Better yet, make different sensors for different movement directions.
If enemy overlaps sensor_right, move right.
If enemy overlaps sensor_left, move left.
and so on.
then you can also check line of sight or distance from player.
This is very interesting. I think I can use this. Thanks!