Search Unity

How to change player position using network lobby

Discussion in 'Multiplayer' started by EDevJogos, Jun 22, 2016.

  1. EDevJogos

    EDevJogos

    Joined:
    Jul 24, 2014
    Posts:
    75
    So, i'm using the network lobby from unity avaliable at the asset store to manage the connection for me, the problem is that i can't figure it out how to change the player position.

    It's a racing game, and at the begining i should set each player position same as one of the Transforms PlayerPosition. Once a position it's occupied another player cannot be instantiated on that position, and the final result must be the same to everyone.

    I've uploaded a picture of the ideia, hope it helps.
     

    Attached Files:

  2. Akusan

    Akusan

    Joined:
    Aug 24, 2014
    Posts:
    12
    You can set the spawn points to round robin. Just create multiple game objects and add Network Start Position component on each of those spawn points.

    Also your question should be posted on Unity Answers, not forum.