Java AI for 2D game <p>Im creating a 2D game. Where the hero moves in a map. Where there are walls which the hero obviously cant go through. And i have enemies that are simple AI. So far the AI just move in random directions. The next step would be introducing another mode for the AI where he knows the hero position and chase him. I know how i calculate the distance betweeen the enemy and the hero. And the angle the enemy need to move to intersect with the hero. But then im stuck and dont known how to make it move in that specific direction. I would really appriciate answers!</p> <p>Thx!!!</p>