O'Reilly logo

Creating E-Learning Games with Unity by David Horachek

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

Chapter 6. NPCs and Associated Technology

To increase the level of immersion in our e-learning game, we will want to increase the amount of user interaction scenarios. To do this, we will populate the game world with some non-player characters (otherwise known as NPCs) for the user to interact with. These are characters or actors in your game scene that the player can interact with during gameplay, but not control directly. You may find these referred to as AI Characters in other texts; however, these terms are synonymous.

In this chapter, we will build an NPC class to handle the choreography of these actors and their actions. To support the NPC system, we will develop a framework to define a smooth curve for the actors to travel on. We will also ...

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