Training Center

Basic Artificial Intelligence Part 2

Basic Artificial Intelligence Part 2

Up the ante with our second module on Artificial Intelligence that builds on the first. You'll learn how to create a stationary robot that detects when a player is in range and fires towards him,and an even more fearsome one that runs around the level looking for players to fire at.

We're going to create an enemy bot that detects when a player is in range and then shoots toward him. We're also going to make a patrol bot that actively seeks out the player and shoots toward him.

Tagged under

Additional Info

  • Runtime 05 min 55 sec
  • Software Unity
Login to download project files

We show you how to make an enemy that detects when the player is close, faces the player, and shoots a fireball in the player's direction.

Tagged under

Additional Info

  • Runtime 17 min 47 sec
  • Software Unity

We need to give our enemy's fireballs some firepower, so here we show you how to use collision detection to lower the player's health if the fireball hits him.

Tagged under

Additional Info

  • Runtime 06 min 35 sec
  • Software Unity

The player's health script is explained, as well as some elements in other scripts that are dependent upon player health.

Tagged under

Additional Info

  • Runtime 10 min 35 sec
  • Software Unity

We dissect a provided “Waypoint” script that enables non-player characters (NPCs) to navigate around obstacles, which is an essential part of effective enemy AI.

Additional Info

  • Runtime 04 min 49 sec
  • Software Unity

We create a controller script for our patrol bot, setting up the framework to move the bot automatically in a patrol pattern utilizing waypoints. We also set up the state machine for the bot and tie in relevant animations.

Additional Info

  • Runtime 13 min 51 sec
  • Software Unity

We finish implementing the patrol bot's functionality, adding the ability to fire at the player once it's in range.

Tagged under

Additional Info

  • Runtime 20 min 13 sec
  • Software Unity

Here we tell the patrol bot to seek out the player and run towards him. We also continue to work on some waypoint functions that were referred to in earlier chapters.

Tagged under

Additional Info

  • Runtime 21 min 59 sec
  • Software Unity

Here we address some issues with pathfinding and waypoint implementation.

Tagged under

Additional Info

  • Runtime 16 min 44 sec
  • Software Unity

Here we go over the features we've just implemented and smooth over the rough edges. Topics like properly firing animations and fine-tuning bot behavior are discussed.

Tagged under

Additional Info

  • Runtime 23 min 15 sec
  • Software Unity

Chapter List

Questions? ¿Preguntas? 有问题吗? Domande? Вопросы? 質問はありますか? सवाल? الأسئلة؟
This email address is being protected from spambots. You need JavaScript enabled to view it.

About design3

design3 is THE game production web portal. Whether you’re an industry veteran keeping up with new tools and trends or an aspiring developer searching for professional training, expert advice and career tips – design3.com is where you need to be.

Sign-up for our newsletter!

:

Copyright © 2006 - 2012 design3. All rights reserved.

Sign In or Become a member

Facebook user?

You can use your Facebook account to sign into our site.

Log in with Facebook

LOG IN