Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help with a multiplayer card game.

Discussion in 'Multiplayer' started by j11_theorionarm, Apr 22, 2021.

  1. j11_theorionarm

    j11_theorionarm

    Joined:
    Apr 22, 2021
    Posts:
    1
    Hi everyone,

    I am fairly new to unity and I am trying the create a 4 player card game using Mirror.

    I am having trouble figuring out how to handle who has authority over the cards. If I give each player authority over there own cards, then when the trick is over and someone try's to take it they cant get rid of the other players cards from the table. But if I don't give the players authority then they cant move there cards.

    Any help would be greatly appreciated.

    Thanks,
    J11
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    For a card game I'd design it so the server/host has authority over all networked GameObjects. I'd use scripts on the Player GameObject to send all client Commands to the server (including card movement).
     
    luke-unity likes this.