deadeye to the rescue!
the first tip was a success, but the second one wasn't quite what I was asking.
Let's say I set the enemy to walk left when the player is to the left of him (detected by comparing X positions) and vice versa.
If I set one enemy on each side of the player, both of them will walk in one direction, instead of each one heading towards the player.
Maybe I overcomplicated things, since the game seems to hang every once in a while. maybe I'll restart the AI again.. platform AI is a pain in the ass!