Rookie Awards 2024 - Open for Entries!
Server & Client implementation
Share

Server & Client implementation

David Morillas Ruiz
by DavidMorillas on 21 May 2023

Explanation of how to make a simple multiplayer both locally and online and PlayerController script.

0 245 0
Round of applause for our sponsors
Hello, today I bring you the multiplayer mechanics that you can include in your unity games.

We will download the FishNet that we found in the unity store

Here is the multiplayer mechanic for our games in unity it works both 2D and 3D

Link: https://floridauniversitaria-my.sharepoint.com/:f:/g/personal/damoru_floridauniversitaria_es/EoUCzcSNPJRClAzsini7Pp4BV6bivTT14laO4gESi2yhjw?e=qLU7Sk

Now having everything we will make a plan and there we will create from that same plan several spawn points for the players

Now we will go to the FishNet folder, we will enter examples and there we will choose the section that says manager

At the time of putting it we will see that the spawnable prefabs that were created when downloading the fishnet ask us for several things and it will ask us for a player prefab and the spawners where they will come out

And we will create a player where we will remove the collider and add the character controller the script and the network object and the transportmanager

This would be for the local multiplayer since if we want to make a server we will need TugBoat and the localhost section we will put the ip of our computer so that our friends can play


Comments (0)

This project doesn't have any comments yet.