- Home /
Question about multiplayer game
Hi, I need some hints to point me to right direction, (btw sorry for the title, I couldn't find something better).
I want to create a multiplayer game, but I don't know what to use, the game is 1vs1 game that either both players can be online or one of them can be online, the part that I am pretty confused about, is when players disconnected (one of them or both) I want the game to get continued and the results of that match send to player next time he/she connects to game. (something like Clash Of Clans that when you get disconnected during attack, the replay and the results will send to you in your inbox). is this possible to create this kind of game in unity?
(sorry for any language mistakes, I'm not English native speaker)
any help or link that point me to right direction will be appreciated. thank you.
in that setup i would have two players playing the game and i would use a third copy of unity acting as the server that is always running somewhere to continue the game play when players are not around. there are many ways to do this depending your personal needs. another was ....if you felt you could simply save enough data about game play after the players are gone, you could have the games grab it when the game starts and make assumptions based on the time passed. one way or another you need some sort of masterserver on a static IP address.
and to answer you question.... Yes unity will do all these things. Unity has its own networking functions and you always have access to $$anonymous$$icrosoft .net libraries in C# so really anything is possible. you are just limited to your networking/coding knowledge.
keep in $$anonymous$$d when a game changes from single player to multiplayer the amount and complexity of your code will double!
It is more like quadruple the complexity. Nearly everything changes and you have to handle 3 things at once ( 2 clients and a server). A turn based game is obviously easier to manage than a real-time game but there is still a lot of things that has to be managed to keep everything in sync.
Your answer
Follow this Question
Related Questions
What to do when user clicks back on google play games realtime multiplayer auto-match ui ? 0 Answers
Online Mulitplayer options in Free Unity 1 Answer
Photon network won't join random room with a custom property 0 Answers
UNET Networking: Changing Players texture 0 Answers
Photon RPC is not working in photon? 2 Answers