O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Are you ready to go gung ho? A Hotshot challenge

Now we have an understanding of the basic concept of creating the enemy AI, but our AI script still needs a lot of improvement to make it smarter. Why don't we do something to spice it up?

  • Try making a wall that the AI cannot jump over and add the ability for the enemy to avoid the wall by using Physics.CapsuleCast or Physics.RayCast and rotate the enemy rotate when it hits the wall
  • Add different types of weapons for our enemy
  • Try changing or adjusting the parameter of the AIController, such as the shotRange or getPlayerRange, to make the enemy react to the player faster
  • Add more waypoints for our Waypoints game object to make sure our enemy has more choice to walk
  • Add multiple enemies in the scene (you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required