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

Discussion the best way to create a cooperative game for 2 people

Discussion in 'Multiplayer' started by sqbanyy1, Jul 17, 2023.

  1. sqbanyy1

    sqbanyy1

    Joined:
    Jul 15, 2023
    Posts:
    5
    Hi,
    it's the first time i'm creating a game for more than 1 player.

    It will be a cooperative game where players must work together to survive.
    They will also communicate with each other via in-game voice chat.
    The game will be on Steam.

    What's the best way to make a game like this where 2 players connect together?
    initially I was thinking about Photon, but I don't totally know how it works yet.
     
    Farsam likes this.
  2. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,018
    Starting with multiplayer can be a bit tricky but it's totally doable. Pick any networking solution, check out samples and do a tutorial. Do simple things (moving boxes, simple characters) first. If it doesn't "click" after a while, you could try something else but I wouldn't give up immediately.
    In my opinion, it's most important to start very simple. If you first do a lot of "game" and have no plan to get this networked, it is likely you fail because the multiplayer part is hard to fix once broken. So start simple and get each additional part working...
     
    Farsam likes this.
  3. sqbanyy1

    sqbanyy1

    Joined:
    Jul 15, 2023
    Posts:
    5
    I know how to create games, but this is the first time I'm making a game for more than 1 player. I don't want to waste my time doing it on let's say Photon as it will later turn out to work poorly and I won't be happy with it. So that's why I'm asking for the best way to do this.
     
  4. tleylan

    tleylan

    Joined:
    Jun 17, 2020
    Posts:
    521
    There is unfortunately no such thing as a "best way". Some solutions are less expensive, some scale better, some have simpler models, some are easy but lack features. You need to compare the offerings and decide which suits your particular combination of needs/wants.