Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building an RPG with Unity 2018

You're reading from   Building an RPG with Unity 2018 Leverage the power of Unity 2018 to build elements of an RPG.

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781788623469
Length 366 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Vahé Karamian Vahé Karamian
Author Profile Icon Vahé Karamian
Vahé Karamian
Arrow right icon
View More author details
Toc

Chapter 4. The Game Mechanics

In Chapter 3, RPG Character Design, we covered a wide range of topics to prepare your character model for the game. We looked at how to import and set up our character model, created the BaseCharacter class, used the Animator Controller to set up the state diagram, created the initial character controller to handle the motion and behavior of our character model, and finally, looked at some basic inverse kinematics for the foot.

In this chapter, we will expand on the character player and also the non-character player, covering the following topics:

  • Customizing the player character:
    • Customizable parts (model)
    • C# code for customization
    • Preserving character state
    • Recap
  • Non-player characters:
    • Non-player character basics
    • Setting up the non-player character
    • Navmesh setup
    • NPC Animator Controller
    • NPC Attack
    • NPC AI
  • PC and NPC interaction
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime