Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by mnarimani · Apr 09, 2017 at 05:30 AM · unity 5multiplayermultiplayer-networking

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.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image toddisarockstar · Apr 09, 2017 at 10:56 PM 1
Share

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!

avatar image mnarimani toddisarockstar · Apr 10, 2017 at 06:41 PM 0
Share

Thank you for your reply!

avatar image Pengocat toddisarockstar · Apr 10, 2017 at 07:09 PM 0
Share

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.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges