Making Everyone in the server wait - more info in the desc

Options
sooo i'm making an RTS game and i have an lobby system setup already and i've got a problem with that the other players don't get the host's data / instantiation of an object that he controlls and i was wondering if there was a way i can tell players to wait until everyone has loaded into the scene and then say ready set GO! so they all are 100% syncronized

Comments

  • Tobias
    Options
    This is not built in but you can have a look at the Asteroids Demo, which implements the mechanism. In that case, everyone has to press a "ready" button, then one client can start the game.
  • DaTweaks
    Options
    Tobias wrote: »
    Asteroids Demo
    that's quite sad i've been trying to find a way to force it to wait by going as far as using Thread.Sleep()
    but i couldn't do it but i could force all the players to reconnect? because i have an instansiation in the beginning that gives the players their starter characters BUT i could go and add a feature that spawns one in later using an coroutine