O'Reilly logo

Building an RPG with Unity 5.x by Vahé Karamian

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

Network Enabling RPG Characters

In order to make life easier, I decided to create a new scene that will be used to test and implement our network-enabled characters. This example will show you how to network enable the player character and also how to synchronize the player character data such as inventory item across the network and also the ability to network enable the non-player character and make it synchronize its data across the clients.

Creating a Scene for RPG

Create a new scene and save it as CH8_Networking. Place a Terrain in the scene; modify it so that it has a TerrainWidth and Terrain Length of 30. Modify the Position Transform so that it is at <-15,0,-15>; this will make the center of the terrain at the origin.

Next, we are going to ...

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