- Home /
Enemy tank AI script TopDown
I am currenty making a top-down tank shooting game and in need of an AI script with multiple states. At the time i am writing this, i have managed to make the enemies roam aimlessly around, detect player in range/ line of sight, change directions upon colliding with obstacles and shoot towards the player. However i want more depth in the enemy AI by adding different actions and states to them. Right now those includes: - If the player fire at them, they will move to investigate the last known location. - If player is detected, they will move randomly, but keep the distance within a certain range (not necessarily in a circle). An example would be the enemy tanks in team SIX the mobile game. - Anything else that you can think of and know how to implement is welcomed. I am new to Unity so code examples or detailed guides are much appreciated, but general instruction or just pointing in a direction is fine to me. Thanks in advance!
Your answer
Follow this Question
Related Questions
Unity2D AI for Top Down Zelda-Type movement 1 Answer
How can I make my enemy always look/flip towards my player (2D top-down)? 1 Answer
Enemy strafing AI Top Down 0 Answers
I need some help with AI 0 Answers
trouble with my lookAt script 0 Answers