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

2 player board game tile logic

Discussion in 'Multiplayer' started by 4wall, Dec 13, 2017.

  1. 4wall

    4wall

    Joined:
    Sep 16, 2014
    Posts:
    73
    Have spent literally the past month trying to get the logic working for a 2 player board game using UNET (think Stratego).

    What isn't working for me is the original board tiles don't remember their state( ie occupied or not) for the remote player.

    I have gone thru hours of tutorials, tried every possible permutation with network Identity etc, but can't get it to work.

    Right now the individual tiles for the board are prefabs and the board gets created at runtime. The Player Prefab is composed of this board (+game pieces) so each player gets his-her own version.

    What happens is the the board and tiles get properly duplicated at runtime but the 'occupied' state of the individual tiles does not get transferred.

    Any UNET experts out there that can suggest the best approach for setting this up?
     
    Last edited: Dec 14, 2017
  2. Daria91

    Daria91

    Joined:
    Jan 4, 2018
    Posts:
    3
    If anybody is interested here you will the Best 2 player board games of 2018