Hi,
Tried that one but didn't work. Since the game is top down, the W/A/S/D keys function as Up/Left/Down/Right based on the screen. but they don't map nicely to heading toward/away from target, or heading to left/right of target.
To illustrate the following scenarios:
,-----------------------,
| |
| (player) ---> (enemy) |
| |
'-----------------------'
If player were on the left of the enemy,
'D'/Right key would mean "move toward target".
,---------------------,
| |
| (enemy) |
| |
|(player) ---> |
| |
'---------------------'
If player were on the bottom of the enemy,
'D'/Right key would mean "move to right".
Thanks,