Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to make a multiplayer game in Unity5.

Discussion in 'Multiplayer' started by HowWeLife, Jul 19, 2015.

  1. HowWeLife

    HowWeLife

    Joined:
    Jul 4, 2015
    Posts:
    51
    Hey so I have been learning to make games with Unity and I am closed to making the game I want. However I envisioned the game to be multiplayer (more specificly a mobile multiplayer game) and have no idea on how to do that.
    I have done a little bit of networking before(like updating a weather app so it gets the current forcast) but I used a free weather service to do so, so it was more about just receiving the data from the server and then updating it.

    With unity I have no clue how to do it and some questions. Alot of questions so bare with me and please help :).
    1 In order to make a game multiplayer do i have to pay for servers? Or does unity, google, apple (anyone) have servers that you can use for your game?
    2 If not what are some cheap solutions?
    3If i make the game multiplayer can ios and android users play together?
    4 If its a hosting server do you need to pay for servers (since hosting means that a player console does all the logic right)?
    5 how can i learn to make a game myltiplayer (tutorials ect since i have no idea how to code it either)
    6 even tough im thinking of making the game designed for mobile, since it is unity and its so easy to cross platform, I am planning on making the game for pc /mac ect too. So does networking work the same as it does for mobile?
    7 I also have a website can i use that as a server (i think it depends on the type of service you purchased but i want to know if its possible)

    Thank you for reading this!
     
  2. anueves1

    anueves1

    Joined:
    Jan 10, 2014
    Posts:
    36
    1.No, you don´t have to pay for servers, with unity 5.1.1 the new UNET(Networking system) allows one player to host a server and other players to join to him so, no need.
    3.I think this is not possible.
    4.No.
    5.I would start with this video:
    (You need unity 5.1.1)
    6.Yes, it works the same way.
    7.I have no clue.

    Good luck with your game!
     
    HowWeLife and phoda like this.
  3. HowWeLife

    HowWeLife

    Joined:
    Jul 4, 2015
    Posts:
    51
    Thank you so much! So unity takes care of the hosting servers or is it something that is done trough the players internet?(new to networking) Great to have a tutorial and will start with that tutorial soon. Thank you!

    Quick question tough what is this unity service ? https://unity3d.com/services/multiplayer is it only if you want dedicated servers and not hosting servers? and with hosting servers is there a limit as to how many servers there can be?
     
  4. anueves1

    anueves1

    Joined:
    Jan 10, 2014
    Posts:
    36
    It's done through the players internet.
    That service takes care of the connections on the matchmaker, so the players can find your matches through the internet
    and join to them, if you need online multiplayer in your project i suggest signing in and getting a cloud id.
    I think there is no limit on servers.

    If you need anything else, feel free to PM
     
    HowWeLife and zoxmax1 like this.
  5. HowWeLife

    HowWeLife

    Joined:
    Jul 4, 2015
    Posts:
    51
    So if i make the game with hosting can players still find matches with eachother? And whats this cloud id?