Book Image

Building an RPG with Unity 2018 - Second Edition

By : Vahé Karamian
Book Image

Building an RPG with Unity 2018 - Second Edition

By: Vahé Karamian

Overview of this book

In a role-playing game (RPG), users control a character, usually in the game's imaginary universe. Unity has become a top choice for developers looking to create these kinds of immersive RPGs. Building an RPG with Unity 2018, based on building some of the most common RPG features, teaches you tips, tricks, and techniques that can be applied to your own game. To start with, the book guides you through the fundamentals of role-playing games. You will learn the necessary aspects of building an RPG, such as structuring the game environment, customizing characters, controlling the camera, and designing other attributes such as inventory and weapons. You will also explore designing game levels by adding more features. Once you have understood the bigger picture, you will understand how to tackle the obstacles of networking in Unity and implement multiplayer mode for your RPG games. By the end of the book, you will be able to build upon the core RPG framework elements to create your own immersive games.
Table of Contents (16 chapters)
Title Page
Copyright and Credits
Packt Upsell

Customizing the player character

One of the key features of an RPG is to be able to customize your character player. In this section, we will take a look at how we can provide a means to achieve this.


Once again, the approach and concept are universal, but the actual implementation might be a little different based on your model structure.

Create a new scene and name it CharacterCustomization. Create a Cube prefab and set it to the origin. Change the Scale of the cube to <5, 0.1, 5>. You can also change the name of the GameObject to Base. This will be the platform that our character model stands on while the player customizes his/her character before game play.


I used my environment assets to create the stage. This takes more time, but it is more attractive. This is totally up to you, the creator and designer of the game, and the sky is the limit!

Drag and the drop the prefab representing your character model into the Scene View. The next few steps will entirely depend on your...