top Down 2D flight game AI
I'm working on a simple top down 2D game (like asteroids). I wanted to add simple enemies that follow the player and try to touch them (if they touch the player he dies). Enemies spawn at regular intervals. Currently the only line of code I am using to get the enemies to follow the player is transform.position = Vector3.MoveTowards (transform.position, player2.transform.position, .03f);
It woks well enough however once there are many enemies on screen they tend to clump up together. I was wondering how I go about thinking of a script that makes the enemies try and surround the player? (I'm really new to the AI thing).
Your answer
Follow this Question
Related Questions
2D Enemy Ai 0 Answers
Aircraft AI? 2 Answers
Unity's 2d shooting can not be found:unityの2dシューティングがありません 0 Answers
One script stopped working after update 0 Answers
How do I get my character to shoot towards my mouse in a 2D top down? 0 Answers