New answers tagged direction
if you haven't already gotten this figured out, a simple way to do it without complicated path-finding is to check the position of all of the enemies vs yours. If the enemies are below you position, move them up. If they are too far to the left, move them right. It's as simple as that. Example: foreach (Enemy enemy in enemies) if(enemy.x > player.x) ...
Looks like you want to implement stteringbehaviours. Take a look a chapter 3 of this book. I think it would make your game look more natural if you implement it this way.
Top 50 recent answers are included