I need some help. I'm trying to create an AI that closes in on the player, then backs away after a certain distance. The idea is to create an AI that rushes the player, then goes off to the side while still shooting (strafing).
<img src="http://i.imgur.com/xDcqr9d.png" border="0">
For those checking the .capx:
-CloseRange is the range in which the AI should be close to the player and needs to start moving away.
-Right now I'm only testing to try to get it work for the player. The AI currently does not detect asteroids and account for them.
-Please test using keyboard only, since touch controls are not working properly at the moment.
SpaceGame.capx