How to make Simple Multiplayer Game! (FREE Course Unity Tutorial Netcode for Game Objects)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 173

  • @CodeMonkeyUnity
    @CodeMonkeyUnity  16 วันที่ผ่านมา +6

    💬 Do you want to learn how to make Multiplayer games! You're in the right place! I hope you learn a lot!
    🌍 Get the Premium version! cmonkey.co/tictactoemultiplayercourse
    💬 BONUS: Companion Project, Ad-free, FAQ, Quizzes, Private Discord and Livestreams.
    ✅ Download the FREE Project Files and Assets cmonkey.co/tictactoemultiplayerfree
    ‼NOTE: For the Relay and Lobby implementations, Unity recommends you use the Multiplayer Services in Unity 6 which merges all packages into a single place. The migration guide is very straightforward docs.unity.com/ugs/en-us/manual/mps-sdk/manual/migration-path
    🔴 RELATED VIDEOS 🔴
    Learn C# FREE Tutorial Course Beginner to Advanced! [12 HOURS] th-cam.com/video/qZpMX8Re_2Q/w-d-xo.html
    Learn Unity Beginner/Intermediate 2023 (FREE COMPLETE Course - Unity Tutorial) th-cam.com/video/AmGSEH7QcDg/w-d-xo.html
    COMPLETE Unity Multiplayer Tutorial (Netcode for Game Objects) th-cam.com/video/3yuBOB3VrCk/w-d-xo.html
    Learn Unity DOTS! th-cam.com/video/DbahvStZdX8/w-d-xo.html
    Take your Skills to the NEXT LEVEL by making a Turn-Based Strategy game! (Unity Complete Course) th-cam.com/video/QDr_pjzedv0/w-d-xo.html
    My Game Dev Journey (40+ Games! | mIRC to Flash to Steam) th-cam.com/video/0zscPf_U1VY/w-d-xo.html
    Day in the Life of a Game Dev and TH-camr th-cam.com/video/QyFYHH00xx4/w-d-xo.html
    How much MONEY my Game made (and how much it cost!) th-cam.com/video/gg3Xrv7jUtk/w-d-xo.html
    Ultimate Unity Overview (70 Tools and Features Explained!) th-cam.com/video/Wzj4OeqiwAo/w-d-xo.html

  • @Robin-qj4th
    @Robin-qj4th 16 วันที่ผ่านมา +49

    We don't deserve you. I want to start working on my multiplayer idea for years now. Never went through with it, despite multiple attempts. This new course gives me new motivation and inspiration. Thanks for all your work, I will go with the premium version 🎉

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา +11

      The tools nowadays really make it so much easier so yup go for it!

  • @the_charismatic_guy
    @the_charismatic_guy 16 วันที่ผ่านมา +18

    Bro I was already not done with your last 10 hour course on a single player game called Kitchen Chaos and here you are with another course on Multiplayer basics, I hope I can complete it as soon as possible so that I can learn from this one. You are literally someone who can sell these things for thousands of dollars but chose to set them for free which is equally amazing as these long videos.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา +3

      heh nice! I hope you're enjoying Kitchen Chaos!

    • @hck1bloodday
      @hck1bloodday 16 วันที่ผ่านมา

      Kitchen chaos was awesome, but do you recommend watching this after the multiplayer one? (I'm gonna see it anyways, but at a slower pace)

    • @omochila
      @omochila 16 วันที่ผ่านมา +1

      @@hck1bloodday this one right here is definetely easier than the kitchenchaos multiplayer

    • @Usama8874
      @Usama8874 16 วันที่ผ่านมา

      I make this game 2 times following code monkey tutorials 🙊🙊🙊

  • @jimdigriz5391
    @jimdigriz5391 8 วันที่ผ่านมา +2

    Thank you very much for this tutorial.
    For the last two years I've been circling around Unity multiplayer didn't know where to start.
    And now it's time to put what I've learned here into practice on my project.

  • @coldshoulder14
    @coldshoulder14 16 วันที่ผ่านมา +4

    I really appreciate this tutorial. It’s come just in time too. I’m planning to rebuild a prototype I made years ago from scratch, and add multiplayer to it. Now I just have to get in the habit of working in Unity regularly again.
    Keep up the amazing work!

  • @CyanV98
    @CyanV98 16 วันที่ผ่านมา +5

    I was just thinking about trying to make some simple multiplayer game, like tic-tac-toe, to get a better understanding. This is very timely, thank you so much!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา

      heh that's awesome! I hope you learn a lot!

  • @williamducar4642
    @williamducar4642 12 วันที่ผ่านมา +2

    Thanks!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 วันที่ผ่านมา

      Thanks for the super thanks! I hope you learn a lot!

  • @rianb6897
    @rianb6897 8 วันที่ผ่านมา

    I just did it all. At first, I didn't have any knowledge about the server, I didn't have any knowledge about the rpc,
    but after four days of repetition, I understand better than I did at the beginning!!
    So much thank you for this tutorial, it helped me a lot!!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  6 วันที่ผ่านมา

      Nice! Congrats on completing the course! I'm glad you learned a lot!

  • @soulgamesstudio
    @soulgamesstudio 16 วันที่ผ่านมา +5

    Thank you so much for all your hard work Code Monkey! Happy New Year!

  • @RecOgMission
    @RecOgMission 12 วันที่ผ่านมา

    I’m now a fairly experienced developer, halfway through watching the video on 2x speed, and I just want to say thanks for always explaining things properly and clearly, with good coding principles. I’ve learned sooo much from you over the years!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 วันที่ผ่านมา +1

      That's awesome to hear, I'm glad my videos have helped you!

  • @rootbindev
    @rootbindev 16 วันที่ผ่านมา +3

    I havent watched the video yet but i already love it!

  • @VitorSoares_GameDev
    @VitorSoares_GameDev 3 วันที่ผ่านมา

    This is much easier than using Mirror. This new way of declaring an Rpc function is awesome. Thank you so much for this tutorial. You just saved my game. I was kind of lost and sad trying to use Mirror and not progressing.

  • @lyonserdar
    @lyonserdar 14 วันที่ผ่านมา +1

    Just completed the tutorial. Exactly what I needed! Thank you!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  14 วันที่ผ่านมา

      That's awesome! Congrats on reaching the end! I hope you learned a lot!

  • @usercontent2112
    @usercontent2112 6 วันที่ผ่านมา

    Thank you so much Code Monkey. I love this course so much, now I'm going to make the kitchen multiplayer game course. This is the best channel ever

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  5 วันที่ผ่านมา +1

      Nice! I'm glad my videos have helped you on your learning journey, keep going!

  • @sannanch7564
    @sannanch7564 16 วันที่ผ่านมา +1

    i cannot tell you how much i love you... i am making just the same type of game...
    Thank you brother sooooo much...😘

  • @vakuzar
    @vakuzar 13 ชั่วโมงที่ผ่านมา

    Finally got to this.
    This was fantastic! Well done! I would love to see some stuff specific to real time games like Rollback code and some prediction logic. A simple 2d fighting game could be a good showcase.
    I think distributed authority would also be a great next series to make

  • @RobDoes_Stuff
    @RobDoes_Stuff 16 วันที่ผ่านมา +1

    Very useful, I'll use this information in a future game, thank you very much for what you are doing, people like you make the industry great. I couldn't imagine how easy is to make games before you started showing up in my feed.

  • @TheCookieCook
    @TheCookieCook 16 วันที่ผ่านมา

    I haven’t been watching your videos, but I’ve been waiting to actually start programming to learn a lot of game design from you! Your doing gods work for us. Keep it up!

  • @jleablue8931
    @jleablue8931 9 วันที่ผ่านมา

    You really are amazing. Only the demo tells me this tutorial will be amazing. After the tutorial on netcode, this is the direct tutorial to watch before moving to kitchen chaos 🙏🏿.
    By the way, this video helps me understand simply and clearly the difference between using netcode for game objects and netcode for entities.
    Thanks 👍🏾

  • @Safetly-r1u
    @Safetly-r1u 16 วันที่ผ่านมา

    Hi again code monkey! I am so glad you replied my last comment 😊 and you explanation is very clear and your code is very clean thats the thing i like and you are the one that made game decmv as my passion thanks alot for your cooperation for people like us! 😊

  • @iversenarroyo7220
    @iversenarroyo7220 8 วันที่ผ่านมา

    I look forward to the next course my great friend. thank you for your teachings

  • @gustavobraghetti4994
    @gustavobraghetti4994 6 วันที่ผ่านมา

    You are so much great dude, maximum respect for you and all success and good things

  • @BlueDuck-vv3eu
    @BlueDuck-vv3eu 11 วันที่ผ่านมา

    This answered many of my questions regarding how to code a game in multiplayer. Thank you very much for this tutorial.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 วันที่ผ่านมา

      I'm glad it helped you! Thanks!

  • @castlecodersltd
    @castlecodersltd 14 วันที่ผ่านมา

    Another really, really great tutorial. Thank you 🙂it filled in some gaps in my knowledge, which I need for a multiplayer card game I'm working on.

  • @Bloo_Void
    @Bloo_Void 14 วันที่ผ่านมา

    Thanks! This helped give me a better understanding of what 2D arrays and grids are, something I struggle with.

  • @morboannihlator1518
    @morboannihlator1518 15 วันที่ผ่านมา

    Thanks for this course. Buying the full one to help support such great work to continue!

  • @crunked
    @crunked 14 วันที่ผ่านมา

    Appreciate this tutorial bro something ive been really craving too understand

  • @jornvanbommel3341
    @jornvanbommel3341 13 วันที่ผ่านมา

    It's hard to find good multiplayer tutorials with a good architecture, so thank you so much!

  • @lime_68
    @lime_68 5 วันที่ผ่านมา

    I really needed this course Code Monkey. Thanks

  • @bdd740
    @bdd740 10 วันที่ผ่านมา +1

    Thanks a lot. I am starting today. Will let you know when I finish.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 วันที่ผ่านมา

      Go for it! I hope you learn a lot!

  • @MyPersonalBox
    @MyPersonalBox 16 วันที่ผ่านมา +1

    I don't have time right now to watch the full tutorial because:
    1) I have to study for my final computer engineering exam
    2) I still have to finish the beginner unity tutorial you made a while ago
    But I still like the video and put a comment here just as a thanks for all the hard work you put in your AMAZING videos!
    Can't wait to watch the whole thing!
    Greetings from Italy

  • @ImD3VI
    @ImD3VI 12 วันที่ผ่านมา

    Thank you so much for this tutorial :0 its crazy how much effort you put into these.

  • @MoviePediaOrignal
    @MoviePediaOrignal 16 วันที่ผ่านมา

    Thank You So Much Bro I love This I am really hard searching for this type of course from last 4 day's on internet and really make me jump from happiness after seeing this pop-up notification on my device when i do chat-gpt for this type of system just love you Guy

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา +1

      heh nice timing! I hope you learn a lot!

  • @edgelesslake
    @edgelesslake 14 วันที่ผ่านมา

    Thank you so much for all your hard work Code Monkey! Happy New Year! Loving the videos!

  • @endgamedevs
    @endgamedevs 10 วันที่ผ่านมา

    Nice simple way to learn multiplayer games. I think is awesome you are helping people learn netcode.
    I use fusion and made a course on a marvel snap type game. But the more courses out there, the better.

  • @SebielRhee
    @SebielRhee 14 วันที่ผ่านมา

    Amazing resource, thank you!

  • @t.mfootball
    @t.mfootball 14 วันที่ผ่านมา

    Thankyou so much, you made our game development journey easier

  • @WillowBowGames
    @WillowBowGames 9 วันที่ผ่านมา

    You are a Unity legend! Thanks to you have released a 2D Puzzle Game on android! Going live in 14 days!

  • @Lua_Diurna
    @Lua_Diurna 16 วันที่ผ่านมา +1

    Thanks for the courses
    i still need to finish kitchen one ;D

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา

      hehe go for it! No rush, just focus on learning!

  • @p.zgamedeveloper
    @p.zgamedeveloper 16 วันที่ผ่านมา +2

    Thank you so much 🙏🏻
    I'm in Iran and it's hard to buy course ❤❤
    But God bless you, it's very helpful :-)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา

      I hope you learn a lot! Thanks!

  • @hussamhk6235
    @hussamhk6235 16 วันที่ผ่านมา +1

    you are awesome !!!! keep it up

  • @pingcode
    @pingcode 15 วันที่ผ่านมา +1

    Hey CodeMonkey, thank you for this amazing full course video on Netcode for Gameobjects! I've been really motivated to learn multiplayer lately so this came out at such a perfect time!
    When can we expect a Netcode for Entities full tutorial series? My goal is to make a compettive FPS game and I love your teaching style. Any planned dates?
    Much Love

  • @arcday4281
    @arcday4281 10 วันที่ผ่านมา

    Great job! Very high-quality content!

  • @Pedroxqr
    @Pedroxqr 15 วันที่ผ่านมา

    your videos deserve millions of views❤

  • @mhb6131
    @mhb6131 15 วันที่ผ่านมา

    Thanks so much man you make this course, i wasn't sure should i learn NGO or not and finally i can decide, btw i really appreciate it if you make a tutorial for github in unity, it's really useful

  • @Unknow.__.68
    @Unknow.__.68 16 วันที่ผ่านมา +1

    New year gift from You? Waiting for you free courses is more exciting and full of curiosity than GTA6 and Squid game season 2 (At least for me) , Huge thanking you for free course that help a lot

  • @flurinjenal374
    @flurinjenal374 10 วันที่ผ่านมา

    Awesome!

  • @_MG_01
    @_MG_01 13 วันที่ผ่านมา

    just commenting for the algorithm... I really hope that this video gets hundreds of millions of views in the long term

  • @EkuXYZW
    @EkuXYZW 16 วันที่ผ่านมา +1

    thanks

  • @NBDbingo5
    @NBDbingo5 11 วันที่ผ่านมา

    Here from Unity's post on Bluesky!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  11 วันที่ผ่านมา +1

      Oh I just saw the post! Awesome! I hope you learn a lot!

  • @goobda_
    @goobda_ 16 วันที่ผ่านมา +1

    I'm gonna buy it at some point in the future

  • @MixalisMatalliotakis
    @MixalisMatalliotakis 12 วันที่ผ่านมา

    I'm about to watch this one to get some further insight as to how to translate it as my main experience in online multiplayer comes from Roblox. (Keep in mind that they made it so in Unity 6 that client replication doesn't require build and you can actually test virtual clients inside the Editor :D - That was a long awaited feature to get me back - It was exactly the same in Roblox for some time already)
    Also I would love if you could showcase tutorial about UGS and other interesting goodies that Unity 6 multiplayer allows.
    I know that we will have to dig ourselves most of it, but it always helps to take your perspective into account when attempting to learn new stuff.
    Thank you for you contribution. :)

  • @LookjaklooK
    @LookjaklooK 15 วันที่ผ่านมา +1

    Noo, lightmode, my weakness, my eyes! Jokes aside, amazing tutorial, love it

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  14 วันที่ผ่านมา

      heh sorry but dark mode burns my eyes, I can't look at it for more than 10 seconds without getting massive headaches.

    • @LookjaklooK
      @LookjaklooK 14 วันที่ผ่านมา

      @@CodeMonkeyUnity Huh, out of all the possible reasons why you're using light mode, I didn't expect this one. Perhaps you're just not used to it, because there's no way a darker theme burns eyes more than the brightest theme. But again, I'm also using dark mode for everything so I'm deeply used to it and am biased towards that as well. Though technically dark mode does reduce blue light and gotta be better for our eyes, that's why I ultimately chose dark mode on everything.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  13 วันที่ผ่านมา

      Everyone's eyes are different, my eyes struggle like crazy to focus on tiny white letters on a dark background. It's not a question of brightness but focus.
      Imagine you're curling a 20kg dumbell with your biceps and just constantly holding it at 90 degrees, that's what it feels like for me to look at dark mode with my eyes. Whereas in light mode my eyes stay relaxed, no issues focusing on dark letters on white background.

  • @JokerYuan
    @JokerYuan 16 วันที่ผ่านมา +1

    i like it !

  • @Waszzup
    @Waszzup 3 วันที่ผ่านมา

    Code monkey im 100% going through this course soon. But if i were you i would change the thunbnail, i dont feel like it shows how amazing this video is and i wouldnt expect it to be a free course i had to look for the video it to find it

  • @DeadRabbitCanDance
    @DeadRabbitCanDance 16 วันที่ผ่านมา

    COOL!

  • @Astro11000--Dev
    @Astro11000--Dev 13 วันที่ผ่านมา

    Thanks for this! I wanted a multiplayer game tutorial for Unity 6! You're the best! Oh, and if you don't mind, can you answer this quick question? Will this tutorial work for 3D games too?

  • @captainnoyaux
    @captainnoyaux 16 วันที่ผ่านมา

    you da MVP Code Monkey ! Awesome work ! If you have time and/or want to, it'd be neat to do a tutorial on how to properly handle multiplayer to scale at low cost.
    If you were to scale a game like this one you'd be forced to add a lot of servers to handle a low number of players whereas if you abstract away more from NGO you'd be able to handle thousand of players on the same server (because you wouldn't need to spawn a unity server for each game). I believe it'd be a really neat video/tutorial for advanced programmers (it might not be what you want to do, if so sorry about that !)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา +3

      This is using Player hosted servers, so the only cost is with using Relay which is extremely cheap and has a very generous free tier. I used it in my game Dinky Guardians and I think I only paid a few cents.
      Unless your game is a massive hit you don't have to pay anything for any of these multiplayer services. You only need dedicated servers if you need super fast paced games like a competitive shooter, but most games can work perfectly fine with player hosts.

    • @captainnoyaux
      @captainnoyaux 16 วันที่ผ่านมา

      @@CodeMonkeyUnity yeah that's what I do in most of my games ! The downside is that you are really dependent on the player hosting, if he disconnects for whatever reason everyone is disconnected (unless you manage that somehow, which I totally didn't do yet 😂). If I rework my multiplayer games that'll be to do what I say above, having a dedicated server running thousand of instances because adding more servers using unity multiplay would cost a ton of money for a really low number of players. Thanks again for sharing such awesome tutorials

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  13 วันที่ผ่านมา +1

      For that yup you can implement Host migration. Netcode for Game Objects doesn't have it by default but you can implement it yourself.
      As the host disconnects, one other player becomes the host and the other players join the new host which then loads the last game state.

    • @captainnoyaux
      @captainnoyaux 13 วันที่ผ่านมา

      @@CodeMonkeyUnity yeah that's what I'd do before scaling with dedicated servers !
      Could be an interesting programming task too !

    • @arcday4281
      @arcday4281 13 ชั่วโมงที่ผ่านมา

      @@CodeMonkeyUnity I think you should have included this in the paid version, if that's reasonable. For a small competitive game, it is important that the host server is running.

  • @Rafaelcraftero
    @Rafaelcraftero 16 วันที่ผ่านมา

    thank you

  • @omochila
    @omochila 16 วันที่ผ่านมา

    thanks for another amazing course mr monkey, still waiting for the phasmophobia course :D

  • @flurinjenal374
    @flurinjenal374 10 วันที่ผ่านมา

    19:54, hierarchy, inspector and scene are grayout out for me. Anyone knows how to enable them?

    • @flurinjenal374
      @flurinjenal374 10 วันที่ผ่านมา

      Seems you can change it in play mode only but it will save.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 วันที่ผ่านมา +1

      Yeah that layout button is a bit odd, sometimes it only works when playing, and sometimes only when not playing

    • @flurinjenal374
      @flurinjenal374 9 วันที่ผ่านมา

      @@CodeMonkeyUnity 👍

  • @JCPaynter
    @JCPaynter 4 วันที่ผ่านมา

    Which should I take: this or the other Beginners' Course + the Multiplayer add-on? I have programing experience. I am guessing that one is more in-depth, but there are so many courses it is hard to tell where to start and what overlap there is. Also, where does the C# course fit in? It would be awesome if there was a list of topics side-by-side similar to a product comparison somewhere. In any case, thank you so much for all the value you provide to the community. Cheers!

  • @anuragtiwari3839
    @anuragtiwari3839 15 วันที่ผ่านมา

    please also upload how to make tycoon or simulator type games video . very needed

  • @RalaasAlaa
    @RalaasAlaa 15 วันที่ผ่านมา

    This course is amazing! And I really appreciate that you make free versions, I really want to buy the premium version to help but I live in Egypt and I can just not afford it at all. I have a question though, if i make this project on 2 computers and run them and make a lobby in one of them, will I be able to enter the lobby from the other computer? Again, thank you very much and I hope you continue making these brilliant courses.

  • @ajglobalnet
    @ajglobalnet 14 วันที่ผ่านมา

    Please create a video on how to make playable/ interactive ads and publish them on unity cloud
    or if there is any refence video or paid course please let me know

  • @CyberStudios
    @CyberStudios 12 วันที่ผ่านมา +1

    This is exactly what I was looking for - as we are now moving towards Multi territory! My friends and I have something to play now during lunch breaks :D.
    I do have a question on the Multiplayer topic. Considering Fallout 76, with the Worlds aspect and server setup. How do they achieve this with Multiplayer? And the Open World aspect while generating random spawns, loots and assign X amount of players to the map on a World Instance. I never quite understood the concept - though I do imagine that the World Instances are separate servers with certain checks that are performed to see if there is space. Would one use DOTS?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 วันที่ผ่านมา +1

      hmm I've never played Fallout 76 so not sure on exactly what you're referring to. It sounds like it just has the dedicated server running logic that determines where to spawn players, so when the player connects, the server decides where they will spawn.
      Same thing for open world events, all that logic would run on the server, the clients would just see the end result.
      I think Fallout 76 has worlds with something like 100 players right? For that scale yup you would want DOTS. NGO is more meant for smaller scale co-op games up to about 8 players.

    • @CyberStudios
      @CyberStudios 9 วันที่ผ่านมา

      @CodeMonkeyUnity thank you very much for the response. What you describe makes sense. And yeah the worlds are limited to about 100 players.
      Thank you for all your input in the community!

  • @ultragames007
    @ultragames007 11 วันที่ผ่านมา

    Ty for the tutorial ❤, Made it to 2:46:31 following along but i didnt find the files to intégrate the tutorial lobby package , so I tried to get them from the finished project, (copied the lobby tutorial folder and added the relay and lobby packages) , but I still don't know how You fused that scene with the Game itself :( .

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  11 วันที่ผ่านมา +1

      There's a download button under that lecture's header on the course page unitycodemonkey.com/tictactoefreecourse.php
      The only "fusing" required is just automatically starting the NetworkManager when 2 clients join the lobby and loading the GameScene when 2 players
      Other than that the Lobby is completely separated

    • @ultragames007
      @ultragames007 10 วันที่ผ่านมา

      @CodeMonkeyUnity Ty ❤️

  • @neutron3768
    @neutron3768 16 วันที่ผ่านมา +2

    How can we integrate this with Steam? It would be great if you could make a video on this topic as well! ❤

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา +3

      The main thing is really just using the Steam Transport, everything else is exactly the same github.com/Unity-Technologies/multiplayer-community-contributions?path=/Transports/com.community.netcode.transport.facepunch
      Then it depends on what Steam features you want to implement
      I definitely would like to do a standalone tutorial on that if I can find the time

  • @Tao-k4n
    @Tao-k4n 16 วันที่ผ่านมา

    Lectures are all valuable, but so fast paced and not in depth. Always directing to the in depth tutorials that you've made but those are also fast paced and hard to understand. It feels like you only show instead of making us understand i really have to dig into to understand the logic behind it. For example this video called simple multiplayer but if one doesn't know what a rpc is as a concept will have hard time to understand how it works. Instead of full projects i would prefer to see practices of each concept, understand it and then use it in real time scenarios. But still is a gold mine. Also instead of quiz you could let us to write some code on our own to figure it out how it really works, i feel like not your style tho. Cheers

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  15 วันที่ผ่านมา

      Can you point to a specific example that you didn't think was in-depth enough? I did explain RPCs in detail, what part couldn't you understand? They send a message to run a function on the target device, there's not much else to explain so not sure what more detail you were looking for.

  • @Wonder_Verse_Tech
    @Wonder_Verse_Tech 16 วันที่ผ่านมา +1

    Code Monkey is Emotion 🎉

  • @coreybaker9620
    @coreybaker9620 14 วันที่ผ่านมา +1

    Would the lobby connections and networked game sessions work for users on different machines in different locations (different IPs?) as developed in the video? Are extra steps required to distribute this game to my friends and play together remotely?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  14 วันที่ผ่านมา

      Lobby works by default with anything, it will not be blocked by any firewalls, Lobby is really just the same as accessing a website, it's just a normal HTTP request.
      For the Netcode connection, you either need to set up port forwarding and disable firewalls, or use Relay.
      If you're using Relay then there's nothing else you need to do, anyone will be able to host and connect to another game. So you just make the executable, send it to a friend, they join your Lobby and join your game through Relay.

    • @coreybaker9620
      @coreybaker9620 13 วันที่ผ่านมา

      @@CodeMonkeyUnity awesome. Thank you for the detailed response!

  • @PauloHSousa237
    @PauloHSousa237 16 วันที่ผ่านมา +1

    Quick question, is there a way to create a "ranked mode" with free unity stuff?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา +3

      You mean with like an ELO score or something? The official tool for that kind of thing would be Matchmaker unitycodemonkey.com/video.php?v=90Iw1aNbSYE
      But that one works with Game Server Hosting which is paid.
      Maybe you can build your own backend server infrastructure in the cloud to store just that data, so you still use Player Hosted servers, just have cloud for the ELO rankings, I think that would be either free or extremely cheap th-cam.com/video/bVqSLLvao78/w-d-xo.html

  • @minecraftcaz
    @minecraftcaz 14 วันที่ผ่านมา

    I am going to make a top-down game but where should I get the assets? It is going to be a pixelated game

  • @MaslinMonty
    @MaslinMonty 8 วันที่ผ่านมา

    This is coming as I'm working on my first multiplayer game. I noticed you used events here. Do you know if Unity Events fired from the player prefab have the ability to display to each UI uniquely. I assume they do, but I've failed to get it working yet.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  6 วันที่ผ่านมา

      hmm not sure what you mean by that, events are just events, they're not inherently related to multiplayer in any way. If you just fire a normal event it will only run on the local object, it won't automatically synchronize across the network, if you want that you need an RPC to send a message for all clients to invoke some event

    • @MaslinMonty
      @MaslinMonty 6 วันที่ผ่านมา

      @@CodeMonkeyUnity Interesting. I'm wondering if I'm running into some Unity 6 Multiplayer Play mode shenanigans. My Unity Events to update UI are firing on all clients when 1 triggers the event.

  • @random_precision_software
    @random_precision_software 14 วันที่ผ่านมา

    Hello my m8!, have you sent idea now to limit the colours on the screen to 32, in creating an Amiga style game and the snugs used only 32 colours on the screen at a time. Hope it would be compatible with beautify 2 as well but not essential

  • @bertlomewosfissha
    @bertlomewosfissha 3 วันที่ผ่านมา

    hello i enjoyed the video and it was clear and very helpful but i wanted to ask something i tried spawning ui using the spawn method you showed here and it does spawn but it does not show the image both on the server and the client and i was wondering if UI which are prefabs do not act the same way or like is there something i do not know

  • @SanLiuk
    @SanLiuk 8 วันที่ผ่านมา

    lobby and relay are deprecated. where do you talk about it? what are the solutions? is everything now inside ugs?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  7 วันที่ผ่านมา

      The solution is just remove those packages and install Multiplayer Services package instead. All the code is the same, just swap the packages.

  • @akshayghoghari1821
    @akshayghoghari1821 7 วันที่ผ่านมา

    ❤❤❤❤, even paid courses don't teach this stuff

  • @Nishzzz
    @Nishzzz 8 วันที่ผ่านมา

    While downloading assets for game I found some issue, so I downloaded entre project file and extracted required sound and texture file from that ..

  • @artyquantum7283
    @artyquantum7283 14 วันที่ผ่านมา

    Hi, How to integrate webrtc with netcode for gameobjects ? Or do we need to implement it on our own ?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  14 วันที่ผ่านมา

      To make it work on the web you just need to tick the WebSockets toggle in the UnityTransport component. I made a web version of this game and everything works unitycodemonkey.com/game.php?g=tictactoe

  • @sadravin1
    @sadravin1 9 วันที่ผ่านมา

    Neat video.
    1 thing that still bugs me. Why not have the scripts pre made, and just attach the network scripts to each object?
    I know they can simplify this tremendously.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 วันที่ผ่านมา

      What do you mean? What scripts? The NetworkTransform and NetworkAnimator do work exactly like that, you just attach them and that's it
      They can't really make more specific plug-and-play scripts since they don't know what game you want to make.

  • @SethD02
    @SethD02 10 วันที่ผ่านมา +1

    Hi Code Monkey! Could you please explain to me how I can create a GameManager that persists between scenes? It doesn't seem you can use DoNotDestroyOnLoad on Network Objects, but the Game Manager will hold information that is important for the whole game. I'm not sure what to do. Thank you for any help you can give me here and all of your help throughout the years!

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  10 วันที่ผ่านมา

      One easy way is to just put all data that you want to persist on static fields, that way it won't be destroyed between scenes.
      Although does it really not work with DontDestroyOnLoad? When you spawned it did you do Spawn(false); ? That way it shouldn't be automatically destroyed on scene load.
      I'm glad my videos have helped you! Thanks!

    • @mohammadadriansyahbobihoe3803
      @mohammadadriansyahbobihoe3803 10 วันที่ผ่านมา

      The way me, and my team handle this is by using an additive scene that will act as a persistent. This persistent scene won't be destroyed when you change between scene as we load our scene using LoadSceneMode.Aditive. So you can store your data by creating empty game object and attach every manager scripts on it.
      Well, in my case it's a single player game, so I'm not really sure if it works on multiplayer game as well.
      But I definitely think it's worth a shot.

  • @HidekiRyugaRyuzakiL
    @HidekiRyugaRyuzakiL 7 วันที่ผ่านมา

    Isn't relay and lobby depraceted? Do we still have to use them? in your project you have these packages installed and the game does not work without them.
    Ugs game should include them in some way. What's the solution for this problem in order to have everything that works with unity game services(UGS)?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  7 วันที่ผ่านมา

      Yes the packages are now deprecated in favor of the Multiplayer Services package, but all the code is the same, you just swap out the individual packages for that single one.

    • @HidekiRyugaRyuzakiL
      @HidekiRyugaRyuzakiL 7 วันที่ผ่านมา

      ​@@CodeMonkeyUnityThat's what happens to me if I download multiplayer services and remove relay + lobby
      Assets\LobbyTutorial\Scripts\StartGameManager.cs(41,51): error CS1729: 'RelayServerData' does not contain a constructor that takes 2 arguments
      Assets\LobbyTutorial\Scripts\StartGameManager.cs(57,51): error CS1729: 'RelayServerData' does not contain a constructor that takes 2 arguments
      Assets\LobbyTutorial\Scripts\LobbyManager.cs(246,58): error CS0234: The type or namespace name 'Instance' does not exist in the namespace 'Lobbies' (are you missing an assembly reference?)
      Assets\LobbyTutorial\Scripts\LobbyManager.cs(369,33): error CS0234: The type or namespace name 'Instance' does not exist in the namespace 'Lobbies' (are you missing an assembly reference?)
      Assets\LobbyTutorial\Scripts\LobbyManager.cs(387,33): error CS0234: The type or namespace name 'Instance' does not exist in the namespace 'Lobbies' (are you missing an assembly reference?)
      Assets\LobbyTutorial\Scripts\LobbyManager.cs(423,33): error CS0234: The type or namespace name 'Instance' does not exist in the namespace 'Lobbies' (are you missing an assembly reference?)

    • @HidekiRyugaRyuzakiL
      @HidekiRyugaRyuzakiL 7 วันที่ผ่านมา

      @@CodeMonkeyUnity I tried to swap (removed relay and lobby, and added multiplayer services) and I receive many errors about lobby and relay! Try to believe.
      Could you help me to fix these differences or understand what happens?

  • @fun2run4
    @fun2run4 6 วันที่ผ่านมา

    Great video. Although, I've gotten stuck with the relay / lobby stuff. I authenticate with player 1 and player 2 (giving both different names). Then I create a lobby on player 1, player 2 connects. The game scene loads on player 1, but it doesn't load for player 2. Also, although it loads for player 1, I can't actually play the game.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  5 วันที่ผ่านมา +1

      Does player 2 join the lobby? Does player 2 get the message to start the game? Does player 2 get the Relay join code?
      Add various Debug.Log to see what the code is doing and where it's stopping

    • @fun2run4
      @fun2run4 3 วันที่ผ่านมา

      @@CodeMonkeyUnity Solved it. For some reason, there was no Start Game Manager in the Lobby scene

  • @Nishzzz
    @Nishzzz 3 วันที่ผ่านมา

    relay and lobby packages are deprecated

  • @ZalaanAli
    @ZalaanAli 16 วันที่ผ่านมา

    im not using unity 6 but using unity 2022, As multiplayer play mode is specially for unity 6 what are the other alternatives which i can use?

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา +1

      You can use ParrelSync which is what people used before github.com/VeriorPies/ParrelSync

  • @MomasGameDev
    @MomasGameDev 16 วันที่ผ่านมา

    Hi CM, Can you PLLEEEAASSSEEE make a server auth tutorial. These are all great but it's such a difficult topic that I feel a lot of people could benefit from. There are no good tutorials out there. I'm piecing my game together slowly from scrap material. Thanks

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา

      What do you mean by that? This game is server auth, the server is the ultimate source of truth and the client uses RPCs to talk to the server

    • @MomasGameDev
      @MomasGameDev 15 วันที่ผ่านมา

      @@CodeMonkeyUnity I guess I am referring to Client Side Prediction specifically (Which is more specific to FPS's). Might be too niche as I know you prefer to cover broader topics.

  • @TwiztdTCG
    @TwiztdTCG 14 วันที่ผ่านมา

    If I go to your website to download the free courses, it tells me I have to login first but I don’t have an account and there is no sign up button or page anywhere 😅 am I just blind? lol

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  14 วันที่ผ่านมา

      There's a Sign Up button on the top right corner, to the right of "CONTACT", "ABOUT", "BEST 2024" buttons, maybe your browser is super zoomed in? Strange

  • @chaosmastermind
    @chaosmastermind 15 วันที่ผ่านมา

    Whoah, you are way way way better looking than I imagined.
    You look like a gigachad. You should go on camera more often.

  • @Wonder_Verse_Tech
    @Wonder_Verse_Tech 12 วันที่ผ่านมา

    Don't get me wrong, but this one looks more complicated than DOTS 😅,
    I used netcode previously but that not looked this complicated or maybe I have not used complicated part

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  9 วันที่ผ่านมา

      heh really? Interesting, what part do you find complicated?
      For me after making multiplayer games 10 years ago when it was a nightmare I do find these tools infinitely easier heh
      Just create a NetworkManager and click a button and you have a connection, just add an attribute and you have an RPC, just define a NetworkVariable and some data is synched, it really is infinitely easier nowadays.

    • @Wonder_Verse_Tech
      @Wonder_Verse_Tech 9 วันที่ผ่านมา

      @@CodeMonkeyUnity yes I understand these tools are making it easier as compared to previous,
      I was talking about understanding the tutorial 😅, I easily understand your kitchen chaos multiplayer tutorial and also implemented it,
      Maybe I was not in good state of mind during listening to this tutorial, I will rewatch again next Weekend ♥️.

  • @iclickbuttons7296
    @iclickbuttons7296 16 วันที่ผ่านมา

    nice try but i already committed to spending 20 hours following your other tutorials to make a multiplayer game 😭

  • @cemcoskun347
    @cemcoskun347 14 วันที่ผ่านมา

    Hello Code Monkey,
    I hope you're doing well. Hey, I wanted to ask you something. Like you, I also want to create my own courses and lessons on game development. But since I'm inexperienced for now, I'm trying to imitate expert teachers like you a little bit. What I mean is, can I create my own lessons in Turkish by somewhat imitating what you explain in this video? Of course, it won't be an exact copy. I'll do my best to make it different, and the resulting game will be similar but different. However, I'm a bit afraid of getting into legal trouble. What do you think? Can I borrow some inspiration from you? You won't sue me, right? :)

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  14 วันที่ผ่านมา +1

      Sure! That's how a lot of people learn, first you learn yourself and then you try to teach. One excellent bonus of that is by doing that process you learn a lot yourself.
      There are no legal issues unless you just copy-paste reupload the exact same video. If you watch to learn, then make your own video in your own words then it's your own course.
      Best of luck!

    • @cemcoskun347
      @cemcoskun347 14 วันที่ผ่านมา

      ​@@CodeMonkeyUnity Man, you are amazing. You've made my day. Believe me, I will do my best to avoid imitation.

  • @Braneloc
    @Braneloc 16 วันที่ผ่านมา

    What's with the no-ads stuff ? TH-cam doesn't have ads.
    Laughs in TH-cam Premium.

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  15 วันที่ผ่านมา +1

      heh yeah I'm a big fan of TH-cam premium. One Premium viewer pays a lot more than dozens of ads so thanks!

  • @8ack2Lobby
    @8ack2Lobby 15 วันที่ผ่านมา

    I thought netcode is some other game engine lol

  • @sebas1111_
    @sebas1111_ 16 วันที่ผ่านมา +1

    Hugo you're the fucking GOAT

  • @klevialushi571
    @klevialushi571 16 วันที่ผ่านมา +1

    First I think

  • @OneTakeNoEdit
    @OneTakeNoEdit 16 วันที่ผ่านมา

    your voice is too low, i need 100% volume to clearly hear your voice

    • @CodeMonkeyUnity
      @CodeMonkeyUnity  16 วันที่ผ่านมา +2

      Is it? It's on the same level I normally use, it's pretty loud if I put it on the max, are you sure your speakers aren't set low?

    • @OneTakeNoEdit
      @OneTakeNoEdit 15 วันที่ผ่านมา

      @CodeMonkeyUnity maybe, but i think when i watched anyone else it's need like 50% volume...but yeah when i tried it on my phone your voice is good

  • @harneetsingh9420
    @harneetsingh9420 16 วันที่ผ่านมา

    Million thanks Teacher Hugo 🙏 🙂🫡🫡🫡 I will watch h later with focus for now just let it running in background maybe that helps you with yourube algo ✌️

  • @mhb6131
    @mhb6131 15 วันที่ผ่านมา

    Thanks so much man you make this course, i wasn't sure should i learn NGO or not and finally i can decide, btw i really appreciate it if you make a tutorial for github in unity, it's really useful