No video

Multiplayer In Unity Made Simple || Netcode For GameObjects #1

  Рет қаралды 8,275

Freedom Coding

Freedom Coding

Күн бұрын

Пікірлер: 60
@braindead2813
@braindead2813 6 ай бұрын
Dude hats off for making a tutorial on this. Probably like 2 or 3 good ones out there now there are 4. Thank you!
@freedomcoding
@freedomcoding 6 ай бұрын
I am glad it was useful. Thank you too!
@s.w.e.d.3057
@s.w.e.d.3057 6 ай бұрын
LMAO! dude. I was just thinking. Why is every tutorial of netcode s weird. I just want a diagram of the overall process and how each componet is assembled in a blueprint manner not just a 'write this and now it works' 100% satisfaction. subcribed
@freedomcoding
@freedomcoding 6 ай бұрын
Thanks, I am glad you liked it!
@GocoYT
@GocoYT 2 ай бұрын
Awesome video. I am developing games for many years and gone through tutorial hell before. But this was so clear, concise and to the point. Really well explained, thanks for the help!
@freedomcoding
@freedomcoding 2 ай бұрын
Thanks, I love to hear that!
@PotatoManager420
@PotatoManager420 3 ай бұрын
Nice and comprehensive video!
@freedomcoding
@freedomcoding 2 ай бұрын
I am glad you liked it!
@thegamingspace7233
@thegamingspace7233 4 ай бұрын
Great tutorial! Your video is very useful, organized, and easy to follow. Awesome job!
@freedomcoding
@freedomcoding 4 ай бұрын
Thanks, I am trying my best!
@castlecodersltd
@castlecodersltd Ай бұрын
Thanks for this, there was a couple of things I'd not considered until watching it 🙂
@freedomcoding
@freedomcoding Ай бұрын
You are welcome!
@takacao8373
@takacao8373 6 ай бұрын
awesome. Can't wait for the server authoritative approach!
@freedomcoding
@freedomcoding 6 ай бұрын
Will be out this Monday!
@flamart9703
@flamart9703 6 ай бұрын
I saved this video in playlist for later, first need to do single player. :)
@freedomcoding
@freedomcoding 6 ай бұрын
Great. Good luck!
@flamart9703
@flamart9703 6 ай бұрын
​@@freedomcodingThank you! By the way, are you working on your game/games or you do only tutorials?
@disobedientdolphin
@disobedientdolphin 6 ай бұрын
Very cool video! I really like how easy that is.
@freedomcoding
@freedomcoding 6 ай бұрын
Thanks! I like it too.
@NavanBethrax
@NavanBethrax 6 ай бұрын
I'm curious how this whole concept could be applied to games without a player controlled character. Let's say a card game, where the players don't control a character but all have a different hand of cards displayed to them. Do you think games like card games, text adventures or turn based fighting games could be implemented using Netcode for GameObjects ?
@freedomcoding
@freedomcoding 6 ай бұрын
You can make pretty much any game (up to 16 players) with NGO. You dont have to assign the player prefab or you can have just some player manager script without a sprite etc.
@rootbindev
@rootbindev 4 ай бұрын
Nice work mate!
@freedomcoding
@freedomcoding 4 ай бұрын
Thanks!
@Melmsie
@Melmsie 6 ай бұрын
Would steam be a better thing to use if you're only planning to release on steam anyway?
@freedomcoding
@freedomcoding 6 ай бұрын
I am not sure if Steam provides servers. Because the Netcode for GameObjects logic is separated from the transport layer, you should be able to use it with any server.
@Mosopia
@Mosopia 19 күн бұрын
@@freedomcoding I think steam have only peer to peer...
@LittleSuccubusGames
@LittleSuccubusGames 3 ай бұрын
how you you go about to add different "sprite" for different player ? it's something i always wanted to do in a mutiplayer game.
@freedomcoding
@freedomcoding 2 ай бұрын
On each player you can store a NetworkVariable containing some ID or index of the sprite that the player selected. Then you can change the sprite of the SpriteRenderer based on that variable.
@MR.OOFofficial
@MR.OOFofficial 2 ай бұрын
This might sound like a dumb question because I’m new to all this but Is this only for pc and 2D games? Because I want to use this for a 3D car game on mobile is it possible?
@freedomcoding
@freedomcoding 2 ай бұрын
That is something I forgot to mention. You can use NGO with any type of game on any device.
@AlcadraSoykan
@AlcadraSoykan 7 күн бұрын
teach us how to use steam transport pls!
@freedomcoding
@freedomcoding 5 күн бұрын
I put it to my list. Maybe some time in the future.
@Freno.99
@Freno.99 Ай бұрын
for some reason it tells me when i build the game that NetworkBehaviour doesn't exist
@freedomcoding
@freedomcoding 28 күн бұрын
So you are getting the error in Unity or in a log of the build? What exactly does the error say?
@sagarhm2237
@sagarhm2237 4 ай бұрын
Hey bro can do one tutorail how use aws ec2 for unity netcode multiplayer .
@freedomcoding
@freedomcoding 4 ай бұрын
Hi, that is not on my list currently.
@baydanemre
@baydanemre 2 ай бұрын
What if we have 2 different prefabs, i mean it’s like first one is blue player (host) second one red player (client)and both are different prefabs, then how it works
@freedomcoding
@freedomcoding 2 ай бұрын
The simple way would be to keep the same prefab and just change color of the material if it is client.
@baydanemre
@baydanemre 2 ай бұрын
@@freedomcoding what if we have completely different models
@freedomcoding
@freedomcoding 2 ай бұрын
@@baydanemre Then you could change the model the same way.
@smudjer6
@smudjer6 Ай бұрын
@@freedomcoding could you do the same thing with say a canvas? if I wanted the players to have separate UI elements?
@JanDevPL
@JanDevPL 6 ай бұрын
Good video!
@freedomcoding
@freedomcoding 6 ай бұрын
Thanks!
@GamebyYash
@GamebyYash 5 ай бұрын
hey man love it but i want to create a local host for android in which ip address of host will be added automatically or makin a local multiplayer that connect both on pc and android help me with this concept really want to learn also make a course love to purchase
@freedomcoding
@freedomcoding 5 ай бұрын
Hi, you can use Relay for that. I made a tutorial on it recently. I will see about making online course. Thanks for the idea!
@rexgatling4891
@rexgatling4891 3 ай бұрын
I am trying to sync the state of the mesh renderer on a material using NetCode. Would you be able to help with that?
@freedomcoding
@freedomcoding 3 ай бұрын
Yes that could be done using NetworkVariable. Just pass the data you are trying to sync and if a float or int isn't enough, you can create class holding that data. That will need to inherit from INetworkSerializable.
@JanDevPL
@JanDevPL 6 ай бұрын
Will you make a video showing how to connect multiplayer with Steam?
@freedomcoding
@freedomcoding 6 ай бұрын
I think I would have to publish a game to Steam for that... I will see.
@sumi2494
@sumi2494 4 ай бұрын
Only 16 players in a session?
@freedomcoding
@freedomcoding 4 ай бұрын
16 players is just a suggestion by Unity. If you plan to have more, you should use Netcode for entities.
@StarDynamics
@StarDynamics 6 ай бұрын
Netcode for gameobjects is not simple at all when it comes to client-predicted server authoritative movement cause it doesn't have one. Good luck with that and see you using fishnet or Netcode for entities soon or even Unreal Engine 😅
@freedomcoding
@freedomcoding 6 ай бұрын
Yeah there is certainly more complicated stuff, but it is simple to setup for non-competetive games. I will get to Netcode for entities some time :D
@StarDynamics
@StarDynamics 6 ай бұрын
@@freedomcoding Good luck mate . btw , I liked your dots tutorials
@freedomcoding
@freedomcoding 6 ай бұрын
@@StarDynamics Thanks, good luck to you too! I am glad you liked them.
@bunnybhai2666
@bunnybhai2666 3 ай бұрын
please add subtitile hindi
@freedomcoding
@freedomcoding 3 ай бұрын
You should be able to auto-translate it by clicking on the gear icon and going to subtitles.
@bunnybhai2666
@bunnybhai2666 3 ай бұрын
@@freedomcoding no options are avilable only english
@bunnybhai2666
@bunnybhai2666 3 ай бұрын
@@freedomcoding please add this like mr,.. bisht
Play Online Together Using Relay || Unity Tutorial
10:13
Freedom Coding
Рет қаралды 2,1 М.
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 16 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 25 МЛН
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 47 МЛН
Making MULTIPLAYER Games has never been EASIER!
12:49
Code Monkey
Рет қаралды 79 М.
The biggest lie in video games
15:18
AIA
Рет қаралды 1,8 МЛН
Easy Smooth and Dynamic Coin Collecting with DoTween in Unity
13:49
Game development is HARD
12:41
MrEliptik
Рет қаралды 2,5 МЛН
How To Do Client Prediction [Unity Tutorial/C#]
11:46
Ajackster
Рет қаралды 30 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4 МЛН
I Paid Fiverr Game Developers to Make the Same Game
10:25
BadGameDev
Рет қаралды 683 М.
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 527 М.
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 16 МЛН