

Once you’ve done that and set a location on your computer for the project, click the Create Project button near the bottom shown in Figure 2. Name your project AI and make sure the project is a 3D project. Start by clicking the New button at the top of the window after launching Unity as shown in Figure 1. Setting upįirst, you’ll need to create a 3D project. By the time this project is finished, you’ll have a player object that you can control, a circle that acts as a camera for the enemy, and an enemy object that will give chase to the player once they have been alerted of their presence via the camera object. This project will do exactly that on a basic level.

The moment a camera spots the player, enemies can swarm in on the location and give chase to the player for a brief period of time.

Suppose you wanted to make a game where the player must sneak around enemy headquarters. In this project, a very simple AI will be demonstrated. Whatever it may be, it’s important to make an AI that does its job well. Such requirements may include needing to conduct diplomacy with another player, or just simply walking back and forth on a platform. AI can be made to have simple or complex behaviours, depending on a project’s requirements. There are some scenarios where the AI is there to help, and others where it’s both fighting and helping you, but at the end of the day there is some resemblance of intelligence controlled by the computer in games. In any given game, artificial intelligence (AI) is often needed to interact with the user, usually as a force against the player. If you hit a problem, contact us on and we'll be able to help. We're experiencing some issues with card payments from the UK & EU.
