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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Simple 2-player sports game?

Discussion in 'Multiplayer' started by AgentParsec, Feb 25, 2017.

  1. AgentParsec

    AgentParsec

    Joined:
    May 5, 2012
    Posts:
    403
    I'm trying to figure out how to have two players connect to a game with a single controllable character on each side, like a one-on-one sports game. I know nothing about how to get the networking elements to work, and most of the tutorials I've found just explain it as multiple 3D controllers that are prefabbed and instanced. This would be 2D, and have two characters already out on the field that are being controlled. Based on how I'm controlling things, I would just need to relay the position and 2D velocity of the player, along with button presses. Obviously I'm not expecting it to be perfectly in sync, but I just don't know where to begin with it.
     
  2. AgentParsec

    AgentParsec

    Joined:
    May 5, 2012
    Posts:
    403
    Can anyone help or give any suggestions? I'm brand new at multiplayer, so I don't understand how to use the networking tools at all, and they all seem to be geared towards creating instanced players, not controlling ones that are set for the level.