unity multiplayer

Make Your Own Unity Multiplayer Game FREE Tutorial #1

Unity 3D MMO Tutorial Series

Hello! I’m your host, Dragon. Welcome to the first Stargames Studio Unity Multiplayer Tutorial. As the title suggests, I will attempt to create my own Massive Multiplayer game. I’m going to make a fantasy-style game borrowing some aspects of Star Wars Galaxies and World of Warcraft. If you ever played the original Star Wars Galaxies MMO, you can appreciate players’ love for the pre-combat upgrade version.

Thousands of players still love SWG, and there are server emulators that loyal fans are playing. You can click here to check out the best servers that accept new players.

Star Wars Galaxies

I played SWG beginning on the first day, well, the second day, because the login servers were incredibly jammed up for anyone to play on the first day.

WOW! Unity Multiplayer Tutorial

World of Warcraft has a terrific player control system and UI. I loved to play SWG, but the controls were clunky at best. The plan is to make a more modern control system. I want to make the player controls react more like WOW. I plan to recreate the player controls, UI, and basic functionality.

Although the play model will be designed with the inspiration of WOW, there will be no player levels, like in the original SWG. I will develop the game as a hybrid class and abilities-style game.

World Of Warcraft: Shadowlands

I will eventually implement crafting and harvesting, similar to the Star Wars game but upgraded. I will also develop dungeon instances.

You can follow along with me as this will be a very long journey. You don’t have to make your game exactly like mine. Make anything you want! If you see things that I do that you would do differently or better, don’t hesitate to call me out on it. This blog is your blog as well.

Fire up your Unity 3D, and let’s get to creating!

Setup A New Unity Multiplayer Project

Let’s create a new project in Unity 3D. I’m using version 2021.3.7f1 LTS. The LTS stands for Long Term Support. The version is stable and comes with plenty of support from Unity staff. There is a stable version of Unity 2022, also. You can use any version you want.

Open the Unity Hub and click on NEW PROJECT. Name your game. I’ll call mine “Project Fantasy.” URP is available in my version, but I’m not using it now. I’m using 3D Core.

unity multiplayer
Create A New Project In Unity 3D Core

What’s the Difference Between 3D Core and 3D URP?

Unity’s 3D visuals may be rendered using the 3D Core or 3D URP (Universal Render Pipeline).

3D Core

Unity has a rendering process called 3D Core. It’s geared for speed and works with various operating systems and hardware configurations. Shadow mapping, reflections, and post-processing effects are just a few of the many elements that 3D Core can handle.

3D URP

The 3D Universal Render Pipeline (URP) is a fast, efficient rendering pipeline designed for today’s computing systems. It’s meant to be more modifiable and adaptable than 3D Core, letting programmers make visually impressive content while keeping performance to a minimum. Even more advanced capabilities, such as physically-based shading, post-processing effects, and real-time global lighting, are also supported in 3D URP.

Suppose you’re a developer just getting started with Unity or who doesn’t require the more complex capabilities and performance of 3D URP. In that case, 3D Core, the more direct and more intuitive rendering pipeline, is the preferable option. In comparison to 3D Core, 3D URP is a more robust and versatile rendering pipeline. Still, it may take more expertise to implement correctly.

Keep in mind that you may utilize both 3D Core and 3D URP in the same Unity project; they are not incompatible. It is advised, however, that once a pipeline has been selected, stick with it for the project duration to avoid any potential issues or conflicts.

The project will take a couple of minutes to load up and do what it does. When the project loads, you will see an empty scene.

Continue with the Scene

Open the Scenes folder under assets and right-click in an open space. Click on create-> scene. A new scene will appear in the scene folder. I named mine “PROJECT TEST SCENE.” Double-click your new scene to open it. You can then delete the Sample Scene from the project. Your project is set up and ready to go.

NOTE: The sample scene will not delete until you open the newly created scene.

A Few More Things To Do

Before creating scripts, we need to create a temporary plane for the character to move around. Right-click in the Hierarchy panel and click 3D Object->Plane. Set the scale on the X and Z axis in the Plane Transform to 20. Rename the “Plane” to “Ground Plane.”

Unity Multiplayer
Create A Ground Plane For The Character To Run Around On

We need a character for our game that we can program in C# to run around the plane. I happen to have one for you to download. The character is fully rigged for animations, so there is no need to try to rig it. Click on the link here or go to the download section and find the “Low Poly Guy with Animations” post. Click the button and download the zip file for the character and animations.

NOTE: The “Low Poly Guy” is a freebie from Synty Studios. You can check out some of their incredible assets on the Unity Store!

After the file is unzipped, make a new folder under Assets called “Player” and drop the LowPolyMan.fbx file into the Player folder. Drag and drop the FBX character into the Hierarchy panel. Press F on the keyboard with the LowPolyMan selected and the mouse on the play screen. Say Hello to Low Poly Guy.

Unity Multiplayer
Low Poly Guy

A Simple Guide On Materials For Unity Multiplayer Tutorial #1

Low Poly Guy should have some colors, so let’s add them. In the Player folder, make a new folder called “Materials.” Open the folder and right-click and Create->Material. Name this material “Shirt.” Click on the shirt material, and in the Inspector, click the white bar next to Albedo. The bar will bring up a color wheel. Choose a color for the character. Click and drag the newly colored material onto the character’s shirt. Repeat this process for the “Skin” (head, arms, and hands), “Pants,” and “Boots.” Rename the colors by right-clicking on the material and clicking “Rename.”

What is Albedo?

In Unity, the material’s default color is set by the albedo. A texture map or a numerical color value specifies the primary color of an object’s surface.

As a matter of fact, in the real world, not all incident light is reflected. The surface’s reflectivity determines the color we see. In Unity, an object’s albedo map or color value determines the color of the light reflected from its surface.

With Unity’s albedo maps, you can give your materials a more three-dimensional look. You may use albedo values to determine a material’s base color rather than a texture map.

A texture can also be selected as the material’s base color via the Albedo map input in the settings of many of Unity’s in-built shaders, including the Standard Shader and the HDRP (High Definition Render Pipeline).

Natural materials require more than simply Albedo, so keep that in mind. Other material description components are also necessary, such as specular, roughness, and metallic values.

Unity Multiplayer
Color Your Character

One more thing to do, and then we will be ready to begin coding! Go to the top level of the Assets folder and create a new folder called “Environment.” Create a new folder in the Environment folder called “Materials” and create a new material called “Ground.” Colorize the material and put it on the Ground Plane.

Congratulations!

Congratulations! Your project is ready for the next step: Programming the game character to move around the Ground Plane. Unity 3D uses C# as a programming language. It is not necessary to know C#, as I will explain things as we go along.

Unity Multiplayer
Your Project Is Ready For Programming!

In Unity Multiplayer Tutorial #2, we will attach the camera to the character to follow our character around the screen. We will also begin our C# script programming to make our Low Poly Guy move.

Until next time, May The Force Be With You, Always. – Dragon

Tagged

Leave a Reply

Your email address will not be published. Required fields are marked *