Making MULTIPLAYER Games has never been EASIER!

  Рет қаралды 72,637

Code Monkey

Code Monkey

Күн бұрын

🌍 Get $800 FREE Credit for Game Server Hosting! prf.hn/click/camref:1101l96nj...
🎮 Play my Steam game! cmonkey.co/dinkyguardians
❤️ Watch my FREE Complete Courses • Learn to make Games wi...
🌍 Get my Complete Courses! ✅ unitycodemonkey.com/courses
👍 Learn to make awesome games step-by-step from start to finish.
🎮 Get my Steam Games unitycodemonkey.com/gamebundle
Sponsored by Unity
🔴 RELATED VIDEOS 🔴
Learn Unity Multiplayer (FREE Complete Course, Netcode for Game Objects Unity Tutorial 2023) • Learn Unity Multiplaye...
COMPLETE Unity Multiplayer Tutorial (Netcode for Game Objects) • COMPLETE Unity Multipl...
Run your Dedicated Servers like a PRO! (Unity Game Server Hosting Multiplayer Tutorial) • Run your Dedicated Ser...
How to use Unity Relay, Multiplayer through FIREWALL! (Unity Gaming Services) • How to use Unity Relay...
Making a MULTIPLAYER Game? Join your Players with LOBBY! • Making a MULTIPLAYER G...
Easy MATCHMAKING in Unity! (Skill based, Platform, Region - Tutorial) • Easy MATCHMAKING in Un...
💬 Nowadays making Multiplayer games has never been easier thanks to a bunch of awesome tools!
Here's my overview of 12 Tools that can help you make Multiplayer games, everything from handling the netcode logic, to connecting your players behind Firewalls, handle Dedicated servers and do Matchmaking.
📝 Some Links are Affiliate links which means it costs the same to you and I get a nice commission.
🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!
✅ store.steampowered.com/app/12...
If you have any questions post them in the comments and I'll do my best to answer them.
🔔 Subscribe for more Unity Tutorials / @codemonkeyunity
See you next time!
📍 Support on Patreon / unitycodemonkey
🎮 Grab the Game Bundle at unitycodemonkey.com/gameBundl...
📝 Get the Code Monkey Utilities at unitycodemonkey.com/utils.php
--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.
I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.
I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.
You can see my games at www.endlessloopstudios.com
--------------------------------------------------------------------
- Other great Unity channels:
Unity - / unity3d
Brackeys - / brackeys
Dani - / @danidev
Jabrils - / @jabrils
BlackthornProd - / @blackthornprod
Sykoo - / sykootv
Jason Weimann - / @unity3dcollege
Jonas Tyroller - / @jonastyroller
--------------------------------------------------------------------
- Website: unitycodemonkey.com/
- Twitter: / unitycodemonkey
- Steam: store.steampowered.com/develo...

Пікірлер: 230
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
🌍 Get $800 FREE Credit for Game Server Hosting! prf.hn/click/camref:1101l96nj/creativeref:1011l121488 🎮 Play my Steam game! cmonkey.co/dinkyguardians 🔴 RELATED VIDEOS 🔴 Learn Unity Multiplayer (FREE Complete Course, Netcode for Game Objects Unity Tutorial 2023) kzbin.info/www/bejne/bZjPdKZ8bsupadU COMPLETE Unity Multiplayer Tutorial (Netcode for Game Objects) kzbin.info/www/bejne/aarYc4J4aLulec0 Run your Dedicated Servers like a PRO! (Unity Game Server Hosting Multiplayer Tutorial) kzbin.info/www/bejne/f6emh3mvrLOLg8U How to use Unity Relay, Multiplayer through FIREWALL! (Unity Gaming Services) kzbin.info/www/bejne/o6Szf31omN2KnNk Making a MULTIPLAYER Game? Join your Players with LOBBY! kzbin.info/www/bejne/Y3ynnXh4m6h1n7c Easy MATCHMAKING in Unity! (Skill based, Platform, Region - Tutorial) kzbin.info/www/bejne/b2GsqGSXg8eGj6c
@ikr0525
@ikr0525 6 ай бұрын
This is what i was looking for. Im currently working on my multiplayer card game and already did the gameplay and ui. All that's left is the multiplayer side of it but i didnt know where to start. Thanks for this! 🎉
@orewaminato
@orewaminato 6 ай бұрын
You're doing a great job for both Unity and its students. Hope you're getting paid by Unity, you're awesome man!
@AlexSmith-oe6pr
@AlexSmith-oe6pr 6 ай бұрын
Video is really very relevant for me, I always thought that for any network need to write own back-end servers and use queues, sockets. Maybe it's time to trust ready-made solutions on the market as an option, at least for the first time. As always, thank you for your work and sharing real experience!
@MrOmega-cz9yo
@MrOmega-cz9yo 6 ай бұрын
I've been playing around with Unity for a while, and have been thinking about trying a multiplayer game. Looks like it's time to give it a try.
@SKIPAH
@SKIPAH 6 ай бұрын
Great timing on this video. I just finished the singleplayer Kitchenchaos tutorial and now I'm starting the multiplayer section. Sounds really hard and I probably won't be doing any multiplayer projects in near future myself, but I'm learning so much from your tutorial series, that I want to finish it all the way now.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Nice! Multiplayer is indeed more challenging but also very doable thanks to all these awesome tools
@mzh99
@mzh99 6 ай бұрын
Clear, concise synopsis. Well done.
@kingbling7571
@kingbling7571 6 ай бұрын
Omg you literally drop a video on multiplayer games, I was just watching your Kitchen Chaos video from start to end for the same thing!
@haydzplayz143
@haydzplayz143 6 ай бұрын
Thanks very much! Please make more tutorials on the tools featured!
@captainnoyaux
@captainnoyaux 6 ай бұрын
it's certainly easier but not easy 😂. I'm making the multiplayer of my second multiplayer card game right now and it's hard AF 🤣. But yeah it's easier than before !
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yeah multiplayer is always going to have some complexity, but comparing these tools to what existed 10 years ago is a massive difference!
@QWGamesOfficial
@QWGamesOfficial 6 ай бұрын
I prefer the old Photon and Playfab☕️
@NachitenRemix
@NachitenRemix 6 ай бұрын
Yes, pay attention to grammar "making multiplayer games has neven been easier" implies that it is now easier than before (or you could say less difficult) it doesnt neccesarily mean it is now very easy
@captainnoyaux
@captainnoyaux 6 ай бұрын
​@@NachitenRemixYep, I didn't contradict that 😊
@JaXuun
@JaXuun 6 ай бұрын
my monitor had way less hz 10 years ago and was much thicker and heavier, but yes, its still a complex product@@CodeMonkeyUnity
@cesarstradiotto9253
@cesarstradiotto9253 6 ай бұрын
Obrigado pelas dicas. Principalmente a respeito do Unity Netcode e Analytics.
@toprogress
@toprogress 6 ай бұрын
Thank you so much for showcasing all these tools in one unique video! I had no idea how to make my game multiplayer technically speaking, but thanks to you I now have a starting point.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Best of luck with your game idea!
@triplezgames3882
@triplezgames3882 6 ай бұрын
I never got used to those multiplayer tools, so I coded my own WebSocket Server in nodeJs and it's working like a charm
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup you always have the option of building your own
@ObsessiveGames
@ObsessiveGames 6 ай бұрын
Great video, thank you
@MathsPlusGames
@MathsPlusGames 6 ай бұрын
Great video, more on this topic please!
@eduardoromero3953
@eduardoromero3953 6 ай бұрын
good video, excelent, I think only the Economy topic for in-game coins and Cloud Save for data storage are missing, good job
@druffyw
@druffyw 4 ай бұрын
Good overview thank you. Can't wait for a tutorial on Netcode for Entities which still is very different and a much more "your on your own" sort of experience than "Netcode for Gameobjects" :-)
@SebSha0
@SebSha0 6 ай бұрын
Friendly reminder that those tools are not the only options, these are only the official ones. If they don't fit your needs you can always search for third-party tools or even make your own
@captainfox9029
@captainfox9029 6 ай бұрын
You are right now the obly teacher that i make me understand unity in very simple and easy way, thank you so much for your hard work ,I am just asking if you can make a friend package explaining it, i tried to read and understand the sample but i didn't learn anything, so please do it if you can, and thank you
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yeah that's one of the tools I'd like to cover in the future, I haven't looked at it yet but I think it should be relatively simple, I think it should only need to use Authentication to get a PlayerId to then add it to some sort of list.
@DrewofDonuts
@DrewofDonuts 6 ай бұрын
This was great! I really wish there was some documentation/resource/tutorial on using Netcode for Entities on a component/OOP project - definitely a gap there!
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
I definitely would like to research it, it's been on my to-do list for ages but haven't found the time yet
@dap1859
@dap1859 6 ай бұрын
This was an incredible video. W Unity sponsor.
@alaaalbokhari
@alaaalbokhari 6 ай бұрын
Hi Code monkey , i really love your videos so can u make tutorial for the materials in unity like it is the most thing that i dont know how to use it right
@spider853
@spider853 5 ай бұрын
Hey, thank for the quick introduction of these tools! I have a question regarding your newly released online game and any online game in general that might encounter this issue. What would you do if your game gets massive online CCU or traffic which will cause the online bill to increase, while the players only payed a fixed price. Do you have some real money economy in your game? How would you balance that and how would you react if the bill surpasses your income? Would you turn off online? This is what keeps me wanting to try to add online to any game, as the bad economy might bring you down fast and even maybe in debt.
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
The cost for each CCU is really tiny so that would really only be a problem if players played the game 24/7 for years which is pretty much impossible. If you are making a free to play game that is indeed a valid concern, but for a game like this where multiplayer is optional and has a premium price then those costs are unlikely to ever be a concern, as it stands I haven't paid anything at all for the multiplayer tools since I never went past the free limits.
@spider853
@spider853 5 ай бұрын
@@CodeMonkeyUnity Thank you, so in case of cost going higher than the sales, just switch to a pay for service/usage model for players right? As I think getting the right micro transaction that might cover the cost in time is a stretch and might not be the right model from the start 👌👍
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
If you're making a live service game like Apex Legends that you expect people to play continuously for many many years then yes you need some kind of recurring monetization to cover eventual server costs.
@spider853
@spider853 5 ай бұрын
@@CodeMonkeyUnity Thanks, that put some light on my doubts 🙏
@SajDev_
@SajDev_ 6 ай бұрын
Great explaination and very informative, however it will be sensational to see a complete breakdown guide in one video in the same order starting from nothing to then adding everything as a tutorial of the decade 😅
@JoachimPileborg
@JoachimPileborg 6 ай бұрын
Never heard about Overcooked! before, but it looks like an inspiration for your Kitchen Chaos course... :)
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup! It's a great simple design that made it perfect for a co-op game example. I highly recommend the game, it's really fun!
@rathodketan5551
@rathodketan5551 6 ай бұрын
please create a tutorial about how to manage if I close my internet and start again in the netcode game.
@shayshay8295
@shayshay8295 6 ай бұрын
Hey, I have all the knowledge in the world to make a game but I can't predict the pricing. Can you make a video about how much money you spent on a server and how many people were connected? Really appreciate it.
@arturo8861
@arturo8861 4 ай бұрын
Hello Codemonkey, I am very grateful for all your videos. I have a question, how much is the cost of the servers in relation to the ccu? I have searched for information about it and I have not found any plans for Unity's game server hosting, the matchmaker, lobby...
@CodeMonkeyUnity
@CodeMonkeyUnity 4 ай бұрын
The pricing page has all the details unity.com/solutions/gaming-services/pricing
@janikcodes
@janikcodes 6 ай бұрын
I really hope unity adds support for client side prediction. It's really really important for most multiplayer games, yet it does not support it yet. Edit: Just heared that Dots Netcode does include Client side predicition which is amazing!
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup that would be a great addition to NGO. Now that it seems that the core is pretty stable I hope they're working on features like those. I'd love to find some time to research DOTS Netcode to see how that implements it.
@abdiel_hd
@abdiel_hd 6 ай бұрын
Hi CodeMonkey, I have a question: Do you use EasySave asset? Is it better to write your own save system or is EasySave enough?
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
I haven't used it yet but I have heard great things about it, I think it's the highest rated save system on the store so it's probably very good
@Mr_CROWdelusion
@Mr_CROWdelusion 6 ай бұрын
Halfway through the multiplayer-part of the course and wanted to start creating a multiplayer game next month, so lucky timing! :D I wanted my final game to be in the scale of a MOBA-game (e.g. 5vs5 fights with minion-npc, skills, items..) with NGO - now i am worried that it is too big for NGO and i need to use DOTS, wich i don't know anything about. Is it worth start working on it with NGO in mind anyway? (You mentioned its possible to mix DOTS and "normal", although i have no clue how that works)
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
I think for that scale it could still work with NGO, it all depends on how many tracked objects in total, but it would definitely be pushing it to the limits, so perhaps Netcode Entities might be best for that scenario I haven't yet used Netcode Entities myself but the way you mix them is you simply have all the netcode logic using Entities then for all your visuals, UI, etc, you can use regular game objects and interact with entities through the EntityManager.
@Mr_CROWdelusion
@Mr_CROWdelusion 6 ай бұрын
Thank you for the feedback, it helps a lot :D
@Angry-Lynx
@Angry-Lynx 5 ай бұрын
Don't use either it'll make your life miserable. Look at solutions made by competent people, PUN is good start, the easiest for sure, other good options mirror, mirage
@DennisDenchoDenchyaknow
@DennisDenchoDenchyaknow 6 ай бұрын
Holy shit bro, you got that drip with that new hair, thanks for the tips :D
@uriyhills
@uriyhills 6 ай бұрын
Thanks for job
@Shakor77
@Shakor77 6 ай бұрын
Have you tried Mirror? I like the fact that it is a framework where you can develop both the server and client side in one place.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Nope never used it but I heard that it's great!
@Spartinus
@Spartinus 6 ай бұрын
@@CodeMonkeyUnity try it in VR and make a tutorial about it that will hit for sure ;)
@unityUser
@unityUser 2 ай бұрын
Use fish networking for the next level
@alec_almartson
@alec_almartson 6 ай бұрын
These are Amazing Tools, indeed. 😮 Making Multiplayer Games is Easier... but it also comes with a bigger "Technical Debt' (i.e.: you have to spend some extra time and effort studying the Tools to make them work, or to even discover that they wouldn't work for your particular use case, and pick another one based on your analysis and study of what's available). I guess it won't be 💯 easy ever... because there's always customization and work involved, whether you create it from scratch, or if you use premade Tools and Templates.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup it's always up to the developer to use the tools in the way that best suits them
@alec_almartson
@alec_almartson 6 ай бұрын
@@CodeMonkeyUnity yes. Thank you for making these videos, they are very helpful. Have a nice day teacher.
@raymondf200
@raymondf200 6 ай бұрын
Fishnet is the best choice to go with
@duelsoldier3048
@duelsoldier3048 6 ай бұрын
How do you feel about using fish networking over NetCode for game objects? As fish networking seems far more developed and can do everything NetCode can do and more.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
I've heard great things about pretty much all networking tools, FishNet, Mirror, Photon, NGO, all are extremely capable
@Angry-Lynx
@Angry-Lynx 5 ай бұрын
Any option is better than what unity craps out. It's like they have magic wand 🪄 with whatever they touch turns to 💩
@IdealIdleIncremental
@IdealIdleIncremental 6 ай бұрын
Ha-ha, and here is me, trying to build my own game server completely from scratch :)
@ezoray
@ezoray 6 ай бұрын
Hey Code Monkey, do you have any tips on client / server integration testing in Unity. I'm currently working on this (not UGS) and it's a wee bit painful, particularly the setup.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Hmm not really, that's an area I don't have much experience in, I know Unity has tons of DevOps tools but I'm not familiar with what they do or how they work
@ezoray
@ezoray 6 ай бұрын
@@CodeMonkeyUnity I've not looked either as I'm just testing in the editor with the client and server objects in the same scene (it's actually a master server but i didn't want to over complicate the question). Not to worry, I have it working just the tests are a bit of a chore, some are harder to write than the code, maybe because I never liked the look of coroutines and I've steered clear of them up to this point. :)
@Angry-Lynx
@Angry-Lynx 5 ай бұрын
Idk, for me it always seems like to much work to write automated tests for networking, it'd certainly be helpful, but I always just made minimal test scene where I tested manually some features+ just good old testing by playing game and debugging as needed
@ezoray
@ezoray 5 ай бұрын
@@Angry-Lynx It is a pita but it's really useful for creating n number of clients and doing weird and wonderful things to try and break the server. I also want to make it as robust as possible as I plan to release it as an asset one day.
@GamesAreArt1
@GamesAreArt1 6 ай бұрын
While all these tools are awesome and make things much easier but i have few Notes Before NetCode Unity had Multiplayer Hlapi, UNET, Unity Network. and Non have a long term support Making Unity missing a Multiplayer/Network Solutions for a very long time So any developer will go for alternative either do his Own Network solution or Use third party assets(Photon,Mirror,etc). I don't mind Using Netcode for GameObject but will it have Long term support? I can't use it in my game then suddenly it's no longer supported leaving me with many Bugs that i can't deal with. Thanks
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
That's a valid question, Netcode for Game Objects used to be called MLAPI (Unity bought it) which has existed since 2019 I believe so it has been around for a whie. And looking at the latest Unite they are clearly still pushing for it hard, so I definitely expect it to be actively supported for a long time
@GoogleDothBetray
@GoogleDothBetray 6 ай бұрын
I 💯 agree, I used UNET as it was dying, then used third-party tools such as PUN and Mirror, then I used MLAPI that just disappeared one day, so I went and tried Photon Fusion: the successor to PUN didn't enjoy version 1.0/1.1 all that much it was quite annoying, so I just stopped. I saw NetCode for GO/DOTS: although this one looks it may be around for a while, I've simply got fatigue and trust issues when it comes to their own Network solutions. The one I want to check out is Fish-Net, I've heard good things and am looking forward to it.
@Angry-Lynx
@Angry-Lynx 5 ай бұрын
Yeah don't bother they completely butchered MLAPI which was fantastic library before those unity tools bought it. Pun, mirror, mirage current proper free options. Ur welcome
@mondzahn
@mondzahn 6 ай бұрын
So should use Netcode for Gameobjects or Entities if i want to make a mobile versus game up to 4 players in a lobby since GameObjects is for smaller projects but for Coop?
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
If you need super fast paced synchronization or massive amount of objects, yes use Netcode for Entities. If you're making a relatively small scale co op game, use NGO
@mondzahn
@mondzahn 6 ай бұрын
​@@CodeMonkeyUnitythank you
@tusso4
@tusso4 6 ай бұрын
I have a question... u can make MP Game using relay but working server side?, i mean, for security and all of that thanks!
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yes, Relay just handles transporting the packets through a 3rd server, it does not force or limit client vs host authrority
@RomekjeG
@RomekjeG 6 ай бұрын
You should really really make a tutorial about couch CO-OP. How to create it, how to manage different Player's UI and handle a pre-game lobby where players can join and leave. (like press X to join) , choose characters etc. There is no such tutorial yet out there!
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup that's definitely something I plan to cover in the future because it's something I plan to add to my own game
@MM4GamesSupport
@MM4GamesSupport 6 ай бұрын
what about Multiplayer board games like for example simple Tic-Tac-Toe games ,card multiplayer games , chess or any Kind of (Board Multiplayer Games) can make a video of how we can make a game like that or you can make a tutorial for principles of making a Multiplayer board game that would be great
@midniteoilsoftware
@midniteoilsoftware 6 ай бұрын
kzbin.info/aero/PLHcOLPSLOK7OiZ2Gr6oNPqFlF93iTskmm
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
It's all the same, data is just data. Instead of synchronizing a player position, like in my Kitchen Chaos course, you would just synchronize some kind of board action. Then if you want you could also make it asynchronous like I did it here unitycodemonkey.com/video.php?v=EEQfSmK1nXA
@ahmedzia8413
@ahmedzia8413 6 ай бұрын
thanks, its great …
@deleuran1337
@deleuran1337 6 ай бұрын
So should I try to learn this instead of Photon? I am new to multiplayer games and I am making small games to understand how it works, but should I use Netcode instead and try to learn that?
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Both are great tools, you can't go wrong with either of them, so just pick one and learn it
@Angry-Lynx
@Angry-Lynx 5 ай бұрын
Photon good option to learn multi, cuz it's easy. Avoid unity made solutions, they incompetent
@TheFluid
@TheFluid 5 ай бұрын
Hi CodeMonkey, you say you reply to all your comments so i thought i would ask. I want to make game, with multiplayer, and lately i have read alot about FishNet Networking, but idk is unity multiplayer better if i want to make battle royale?
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
I have only ever used Netcode for Game Objects but I've heard great things about all other options like Fishnet, Mirror, Photon. So really just pick one and learn it
@RealRogerFK
@RealRogerFK 6 ай бұрын
Relay can also be replaced with Steamworks Relay, btw. Which is free and everyone trusts Steam, although you're tied to Steam lol
@user-fk8xs4nc8i
@user-fk8xs4nc8i 6 ай бұрын
awesome
@MrKrinest
@MrKrinest 5 ай бұрын
Hello @codemonkey, is it possible to create a vampire survivors like game using NGO? I've heard that you can't use many network objects.
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
It's probably not ideal for that kind of scale, maybe you could do it by synchronizing very little data for each enemy, but you're probably better off looking into Netcode for Entities
@MrKrinest
@MrKrinest 5 ай бұрын
@@CodeMonkeyUnity thank you very much
@TheMaarten04
@TheMaarten04 3 ай бұрын
do you have any free/payed courses about netcode for entities?
@CodeMonkeyUnity
@CodeMonkeyUnity 3 ай бұрын
Not yet but it's definitely on my to-do list for the future as soon as I can find the time
@danielbrunner58
@danielbrunner58 5 ай бұрын
does Unity also offer a database solution where i can create different tables ?
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
No, for that you'd probably use something like Azure unitycodemonkey.com/video.php?v=EEQfSmK1nXA
@nikodromikro9692
@nikodromikro9692 6 ай бұрын
Can you make vodeo about monitize. your game with admob and... All ways
@JC-jz6rx
@JC-jz6rx 5 ай бұрын
Considering the latest unity blunders, they should pay you for being better PR than they are.
@VaibhavShewale
@VaibhavShewale 6 ай бұрын
im not even a game developer, still here!
@sceptiletops3760
@sceptiletops3760 6 ай бұрын
Code monkey I´d like to know how to make a local multiplayer game with no servers or something like that, only multiplayer with conexion whther wifi or bluethoot 🙏🙏🙏🙏🙏🙏. Which tool would you recomend???
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
For local wifi/LAN you can use Netcode for Game Objects, just connect to a local IP´ For Bluetooth I'm not sure that's supported by NGO, Bluetooth isn't usually used for high speed gaming, so for that you'd look into some kind of Bluetooth connector and handle the data transfer yourself.
@sceptiletops3760
@sceptiletops3760 6 ай бұрын
@@CodeMonkeyUnity I didnt know that Netcode for gameobject could be use that way, I'll try to figure out how to implement it on my game, many thanks for your aswer It was so much usefull. For the lobby then I'll Just use Lobby xd, saludos desde Honduras 🇭🇳
@herohuntstudios
@herohuntstudios 6 ай бұрын
1st comment But this video has come on time for me, I am making my multiplayer game and things are going crazy
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Best of luck with the game!
@user-zs9cl2to3x
@user-zs9cl2to3x 6 ай бұрын
Man, your content is great however hence I'm not a native I barely understand what you're saying. Have to reduce play speed a bit to grasp
@watercat1248
@watercat1248 6 ай бұрын
What network system is better for mid scale project The game I'm trying to make is fps with about 20max Player I don't think the host I will be have 20 nessery in fact I'm pretty confident 3 8 players the is the swit spot My game is more like old fps in scale and mekanics that means the Player's collect item for the map the alose means it's lobby base and I will make sure to have lan not only only option Think the scale off the multiplayer something like half life 1 and unreal tournament.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
It depends on how many object total you're tracking, not just the players. But with that player amount you're really on the edge of NGO, so if that large amount is essential then Netcode for Entities is probably best. But if you limit it to 8 NGO will probably work fine Is it multiplayer? Competitive shooter? If yes then yeah use Netcode for Entities
@watercat1248
@watercat1248 6 ай бұрын
​@@CodeMonkeyUnity to be honest im not sure abut this part because each player have 1 character model Hoeven the need to keep track wich weapon the hodl some bullet projectile and it may and some moving part on the map as well my question is if start using netcode for game object and run out objects that handle is eny way to reduce those i mean what i will happen spone more stuff that the host handle ? my game for thos stuff you say the need networking for some form Relay, Matchmaking, lobby, and it may add vivox friends but im not sure about it yet i will prefer if use netcode for game objects because i have 0 idea how dots work's. i will not say i will 100% Competitive shooter its more like half life 1 it's try to be balance and stuff like that but if i will not sacrifice the fan off the player in the order to by 100% Competitive it's host base game and i wand the option to enter and leave the game in middle off the Mach
@L0g0Z0g0
@L0g0Z0g0 6 ай бұрын
It seems to have same features as Photon just a little better, I don't really see a reason to relearn it considering the hosting difference.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
These tools are modular, you can use many of these in conjunction with Photon.
@DevNohara
@DevNohara 6 ай бұрын
Hey there's also Coherus which is pretty new!
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Coherence? Looking at the website it looks pretty capable but I haven't heard much from actual users
@DevNohara
@DevNohara 6 ай бұрын
@@CodeMonkeyUnity Yeah sorry I butchered that! lol. Yeah it's not as popular, but I've seen a couple videos about people using it and it looks pretty smooth! Their Discord also has a lot of talk from Users. Hopefully it can become more popular soon and they're also making a port for Unreal Engine which would also be nice for UE Users
@DevNohara
@DevNohara 6 ай бұрын
They also have a video showing how they setup multiplayer in a few minutes on their KZbin that makes it look so seamless 😲
@Pa3BeDka_Gaming
@Pa3BeDka_Gaming 6 ай бұрын
Hello, Code Monkey. I have been studying C Sharp on my own for over 3000 hours since I wrote "Hello World!" I study C Sharp and take information wherever I have to, from articles or from videos, since I don't have finances for the institute and the like. Please tell me, can I learn programming on my own if I don't have the opportunity to go to college?
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
I can tell you that I never completed college, (I tried going twice but failed both times) so all the knowledge I have is self taught, so yes you can do that. As for getting a job, that part might be harder if companies where you're from specifically request a degree, but you can definitely get much more knowledge just by yourself with an internet connection
@lanceroygames
@lanceroygames 6 ай бұрын
If you're looking for a start. Codeacademy has many free interactive courses to get you started.
@mgordon1713
@mgordon1713 6 ай бұрын
I never even took High School. I work as a Senior IT Operations Engineer. If you just have the will and dedication to do something it is possible, don't let anyone hold you back. With an internet connection you have the entire knowledge of the world available, you are only limited by your own capacity to learn. So go out there and fulfill your dreams!
@Pa3BeDka_Gaming
@Pa3BeDka_Gaming 6 ай бұрын
Hello, Code Monkey. Thanks for the reply. There is one more request for you. Record a video on how to learn and consolidate the information you receive.
@Angry-Lynx
@Angry-Lynx 5 ай бұрын
use chat bots to help learn they are great help for that imo
@play-good
@play-good 6 ай бұрын
Cool but is this supported in unreal engine as well or just limited to unity????
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Some of these tools are engine agnostic, like for example Game Server Hosting and Vivox are used by Apex Legends which is not made with Unity
@kingbling7571
@kingbling7571 4 ай бұрын
What is the free limit on Unity Relay? How many users can you have playing concurrently for free before you are charged? Is there a maximum number of hosts a game can have? Or like 100 people? Because a game like Lethal Company which has over 250k concurrently players peak. How would that work, would the bill be insane or something?
@CodeMonkeyUnity
@CodeMonkeyUnity 4 ай бұрын
50 concurrent users, hosts count the same as users Yes Lethal company would pay quite a bit, a couple thousand, which is not much compared to the tens of millions of dollars the game has made.
@kingbling7571
@kingbling7571 4 ай бұрын
@@CodeMonkeyUnity True. If you have a lot of CCU it also means the game is doing great which shouldn't be an issue then. One more thing, I read somewhere that Steam P2P is free of cost. So does it mean the cost only comes through if a relay is used? I'm sorry if this is confusing. Thanks for every reply though.
@CodeMonkeyUnity
@CodeMonkeyUnity 4 ай бұрын
Yeah I believe Steam's Relay is free, the only downside is it only works on Steam. So if you publish your game on Xbox/Switch/Epic Game Store then you can't use it
@KrakenStudiosGames
@KrakenStudiosGames 6 ай бұрын
Do they have IGYG server? I do a turn upload data, you pull the save file, you go, you upload the save file, I pull the data, I go, so on.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Like asynchronous multiplayer? There's no built in tool, but you may be able to do that mixing Cloud Code and Cloud Save, or use any cloud provider like Azure unitycodemonkey.com/search.php?q=azure
@KrakenStudiosGames
@KrakenStudiosGames 6 ай бұрын
@@CodeMonkeyUnity It's not asynchronous. IGYG = I go, you go. Meaning I do my turn it resolved, save, you now do your turn, it resolves, save it, then it is back to me. Think of how chess plays.
@user-wy8bk9ks7u
@user-wy8bk9ks7u 6 ай бұрын
What kind of game we build after following your free course.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Ideally, anything. The goal isn't to memorize the code in the course, the goal is to learn problem solving skills so you can then make any game you can imagine. But that's also a skill that takes time, so after you go through it build some simple games like Flappy Bird and Snake to test your newly acquired skills
@mohankrishnasai8673
@mohankrishnasai8673 5 ай бұрын
what u suggest for mutliplayer in VR
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
Depends on the scale of the game, not whether it's VR or not. So for small scale, NGO, for hyper fast competitive massive scale, NE
@Xeros08
@Xeros08 6 ай бұрын
I'm missing Mirror+Steamworks on that list 😊
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup you can definitely do that!
@doryukurosu7983
@doryukurosu7983 6 ай бұрын
so no competitive multiplayer options for gameobjects?
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Remember you don't have to go 100% DOTS on your games you can mix them with game objects, so you can definitely use DOTS Netcode with game objects
@GrayFoxware
@GrayFoxware 6 ай бұрын
@@CodeMonkeyUnity Is there even a tutorial on such a thing? getting updated dots tutorials is extremely hard to find.
@VskutkuTrigen
@VskutkuTrigen 26 күн бұрын
First time i see your face and honestly u sound nerdy but look extremely chad-ly.
@berkefekeskin9172
@berkefekeskin9172 6 ай бұрын
ugh... should i keep on goin using unity? after the recent fee etc...
@SantaGamerYoutube
@SantaGamerYoutube 6 ай бұрын
don't ask this from KZbin comments. Choose yourself.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
If your main concern is in terms of trust, then the only person who can answer that is you However if your main concern is the fee itself, ask yourself how likely is your game to sell a million copies? And if it does, would a 2,5% rev share be too much?
@allaboutpaw9396
@allaboutpaw9396 6 ай бұрын
Hello @codemonkey, I would love to see an authentication tutorial. Looked simple but apparently it's not :D Thanks for the knowledge sharing, continue the amazing job you do!
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
I made a super quick one kzbin.info/www/bejne/Z3y2fIWXlsiXgac For anonymous sign it is it extremely easy. If you want to implement one of the many identity providers it does get a bit tricky. They are all slightly different so it makes it tricky to make a tutorial that is applicable to all. I talked about how I implemented the specific Facebook login on the UGC video unitycodemonkey.com/video.php?v=ShZUu5JwwyY
@mohamedmusthafa1057
@mohamedmusthafa1057 6 ай бұрын
Dude solve my Mystery please, Do i need to Solve Leetcode problems to Become a Gud developer?? Cause im using unity Last 2 years im gud at programming I can create all mechanisms myself with bit ai help But when i Went Leetcode i Feel Ashamed
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Leetcode is more about learning data structures and algorithms, not necessarily game logic So it certainly helps just like it helps with any kind of programing, but not necessarily directly applicable to game dev
@mohamedmusthafa1057
@mohamedmusthafa1057 6 ай бұрын
Thanks im relief 😂
@testservicesssss
@testservicesssss 6 ай бұрын
what a gigachad
@overrideFunction
@overrideFunction 6 ай бұрын
Stop tempting me to add multiplayer to my already massively scope creeped game! 😂
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
heh if it's not essential to the game then definitely focus on singleplayer first!
@user-xc4km6ue2r
@user-xc4km6ue2r 6 ай бұрын
So 😎
@rsrivishwanath6724
@rsrivishwanath6724 6 ай бұрын
what about the pricing
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
I covered the latest update here kzbin.info/www/bejne/o2Wyq6SdicaSns0
@JaguarPanda
@JaguarPanda 5 ай бұрын
I tried to make a multiplayer bomberman game for fun, should be easy enough, plot twist: it wasn't
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
What part did you have trouble with?
@JaguarPanda
@JaguarPanda 5 ай бұрын
@@CodeMonkeyUnity hi, i had trouble building a working lobby, and in the gameplay scene, i made a mess with the server RPC commands and network variables, some animations were synchronized, others weren't, i couldn't figure out how to get the server to start the "victory / lose" scene when there's only 1 player left
@eSTactics
@eSTactics 6 ай бұрын
fishy network solution is the best for fps shooter games however you might not cover it as it isnt base unity
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup I've heard great things about FishNet
@JustBitsAndPieces
@JustBitsAndPieces 6 ай бұрын
@BobsiTutorial
@BobsiTutorial 6 ай бұрын
As far as I am aware, your game is purely on Steam. How come you don't utilize Steams relay?
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Just because I haven't had the time to implement it yet, I will be adding the various Steam features in future updates
@a__aa
@a__aa 6 ай бұрын
How is it possible that you are game developer for 10 years and haven't published a single successful game?
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
I guess that depends on your definition of success, my games have grossed over $1mil which to me is pretty successful unitycodemonkey.com/video.php?v=sfD4MMFcebE
@Tekkenandgaming
@Tekkenandgaming 6 ай бұрын
When you said moltyplayer games you meant co op??
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Netcode for Game Objects is primarily meant for co-op games Netcode for Entities is more suitable for fast paced competitive games
@shafindev
@shafindev 6 ай бұрын
Hi
@desmondleslie2614
@desmondleslie2614 6 ай бұрын
KAMEHAMEHA 💀
@rajsah4667
@rajsah4667 6 ай бұрын
But this all things don't have host migrations 😅
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
If you use Host in NGO then yes there's no built in Host migration, not sure if Netcode for Entities has it or not. With Game Server Hosting you have dedicated servers so it doesn't need host migration.
@R4venshore
@R4venshore 6 ай бұрын
You can't make a fast paced multiplayer fps with Unity without having a dedicated team for it, because it doesn't have client prediction. Just finished a prototype with their latest version with lobby and relay and it is still clunky as hell. Far, very far from anything that would be easy to use for indie game devs for production. The amount of bandwidth their transport currently uses it's also insane. Overall I'd give it 3/10 for usability, while they have a ton of useful shiny services and have made that bit easy to use. Not impressed at the slightest.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Netcode for entities does have built in client side prediction as far as I know
@R4venshore
@R4venshore 6 ай бұрын
@@CodeMonkeyUnity No, they even reiterated that in the update from a couple of days ago, it says no client prediction still.
@Kaedric999
@Kaedric999 6 ай бұрын
Same issue as all the other built-in multiplayer stuff for the other engines: it does not work with steam multiplayer, which is where everyone releases their games nowadays, so you lose out on all of that functionality (steam lobbies/friends/blocklists etc). so you'll need to have some way of finding out each other's IP for peer networking, or host your own server.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Not sure what you mean, you can definitely replace the Unity Transport for a Steam Transport, you can definitely implement Steam friends support to automatically send lobby invites, you can implement Steamworks and show Steam friends directly in game. Nothing in any of these tools prevents you from using Steam so I'm really not sure what you're referring to.
@Kaedric999
@Kaedric999 6 ай бұрын
@@CodeMonkeyUnity I will clarify: I do not mean that using the above precludes you from using steam, but rather that it does not integrate well WITH steam. For example: while you can send an invite to a friend over steam (using steam API) that triggers their game to load the game and join a lobby, you are not joining a steam lobby, but rather one of the 3rd party ones mentioned in the video. This is because you do not know the other person's IP (steam does not reveal this to you). This forces you to use something like relay for peer networking. This also means that you are unable to use the built in lobby functionality of steam, which handles a lot of the stuff like matchmaking with nearby/far peers and blocks etc. My fervent wish is to be able to use these helper nodes like multiplayerspawners and translators that keep all clients up to date easily within steam, but since you're forced to manage steam packets directly I'm not sure there is an obvious built-in solution for this. If you are saying switching the transport from Unity to Steam enables you to do this that'd be huge, and I will admit if I made a mistake here, not knowing about that. In any case I feel a little bad being a wet blanket; just letting out my frustration on trying to deal with steam.
@alendugalic6922
@alendugalic6922 6 ай бұрын
Hey everyone sorry but ive been stuck at one part of my game for about 4 days now and i cant find a way to fix it. Its multiplayer using NetCode. when i run the build the host moves and rotates and does all of its imputs correctly. But the Client controls both the clients spawned object and the hosts, please desperate for help at this point. PPS Ive probably learnt more from your channel than i have from anyone else including my lecturers :).
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Sounds like you just forgot to add the IsOwner check in your code, each player script should only be controlling the local object unitycodemonkey.com/video.php?v=3yuBOB3VrCk
@shafindev
@shafindev 6 ай бұрын
Using fusion for a freelancer project such a mess.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Is it? I haven't used it myself but I heard great things about it
@shafindev
@shafindev 6 ай бұрын
@@CodeMonkeyUnityits better than Photon Pun 2 in lag , latency but very unfinished. It misses lots of feature.
@hamooo11
@hamooo11 6 ай бұрын
I am a fan , reply
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Thanks for watching the video!
@hamooo11
@hamooo11 6 ай бұрын
@@CodeMonkeyUnity thank you for making the video
@Hipernt
@Hipernt 6 ай бұрын
Make a Titanfall Ripoff
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
heh that would be fun but just making a character controller that feels as good as Titanfall would be a huge challenge!
@trvlonesurvivr3751
@trvlonesurvivr3751 6 ай бұрын
This is not good. Since I have FPS multiplayer shooter I need to transfer from NGO to netcode for entities 💀
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yes if you have a competitive shooter then you should indeed be using Netcode Entities. Although technically it's still possible to use NGO, you just have to build a lot of stuff yourself
@trvlonesurvivr3751
@trvlonesurvivr3751 6 ай бұрын
@@CodeMonkeyUnity What is better though? If I want N4E then I have to learn DOTS then convert everything. Or is it better to stick with NGO and implement client side prediction and other systems by myself?
@KaasTVNL
@KaasTVNL 6 ай бұрын
lol the drop of the mmo... oeps. sorry not sorry (just starting out here lol)
@jouid33
@jouid33 5 ай бұрын
Never been easier because these services are not for free and they cost a very hefty amount If you dont have a solid monitization method then you will be done for
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
I just published my game recently and I haven't had to pay one cent. If you are an indie dev like me making premium games then the free tiers are very generous If you are making free to play games then yes you absoltuely need a monetization strategy to pay for servers
@jouid33
@jouid33 5 ай бұрын
@@CodeMonkeyUnity please consider making a video on this matter in particular to share your experience,,, e.g. used provider and why you chose it... Utilizing the free tier and your own approaches... High level overview of your own general devlopment and testing online feature approach Thank you
@removechan10298
@removechan10298 Ай бұрын
for almost a DECADE unity had a 404 on multiplayer on their site, then they have this being dripped out. i guarantee if I start using it, they will cancel it within 4 months. tell me otherwise.
@CodeMonkeyUnity
@CodeMonkeyUnity Ай бұрын
404 on what? UNet? Yup that one has been deprecated for ages Their current multiplayer tech, Netcode for Game Objects, has already existed for 5 years.
@removechan10298
@removechan10298 Ай бұрын
@@CodeMonkeyUnity that's not "multiplayer tech", that's socket code. multiplayer tech are queues, matchmaking, voice, servers, etc. I know unet was deprecated, what i didn't know was they'd recreated new services - when did they add matchmaking for instance?
@CodeMonkeyUnity
@CodeMonkeyUnity Ай бұрын
I believe Matchmaker has existed since 2021
@m4rt_
@m4rt_ 6 ай бұрын
Btw, in case you haven't heard yet. Game Maker has gone back to a lifetime license model for their professional license and you can export games using the free license if you are making a noncommercial game. It's basically the new flash.
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup more free accessible tools is always a win for developers!
@diliupg
@diliupg 5 ай бұрын
I've been monkeying with this code and churning out MP games at an alarmingly fast rate! 😀
@CodeMonkeyUnity
@CodeMonkeyUnity 5 ай бұрын
It's amazing how quickly you can go from idea in your head to working multiplayer prototype nowadays!
@dixonr412
@dixonr412 6 ай бұрын
easier...
@CodeMonkeyUnity
@CodeMonkeyUnity 6 ай бұрын
Yup definitely easier compared to how hard things used to be! Although yup easier does not mean "easy", multiplayer is always going to have some inherent complexity
@MurexHyena
@MurexHyena 3 ай бұрын
Now we need this video for unreal engine ..... 😅
COMPLETE Unity Multiplayer Tutorial (Netcode for Game Objects)
1:04:05
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 94 МЛН
100😭🎉 #thankyou
00:28
はじめしゃちょー(hajime)
Рет қаралды 24 МЛН
1❤️
00:20
すしらーめん《りく》
Рет қаралды 32 МЛН
Why 96% of Indie Games Fail
14:31
Going Indie
Рет қаралды 220 М.
DON’T MISS these Upcoming 2D Action Platformer Indie Games - 2024
25:03
Best Indie Games
Рет қаралды 239 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,3 МЛН
How I Would Start Game Development (If I Started Over)
16:59
Thomas Brush
Рет қаралды 58 М.
How To Make A Game Alone
16:44
Thomas Brush
Рет қаралды 190 М.
Why Making Multiplayer Games SUCKS
6:46
Tom Weiland
Рет қаралды 388 М.
How Beginners can make games FAST!
9:59
Code Monkey
Рет қаралды 22 М.
I Tried Making a Multiplayer FPS Game in 1 Week...
8:40
Fancy
Рет қаралды 1,5 МЛН
小路飞姐姐居然让路飞小路飞都消失了#海贼王  #路飞
00:47
路飞与唐舞桐
Рет қаралды 94 МЛН