Search Unity

Server Instances

Discussion in 'Multiplayer' started by LayZ1307, Oct 11, 2021.

  1. LayZ1307

    LayZ1307

    Joined:
    Aug 14, 2021
    Posts:
    16
    If I had a lobby coded in php and it is similar to msngaming zone was for age of empires rise of rome -- players goto a lobby -- create a player/game room -- press enter game.

    Upon enter game I want to then throw them into a client/server instance of the game (something like a 2v2 map).

    I would have references to which 4 players are in the room, and would want the host -- when he presses enter game -- to then create the instanced match and bring all 4 players into it.

    So I'm assuming that when we press enter game we would then want all players to connect to a server by udp sockets and scene switch into the scene together.

    Does anyone have guidance on creating that instanced matchup on a server for players to be scene switched into it?

    I'm currently learning and looking into sockets, however I coded a lobby in php without sockets and I should be able to get the ip from the client in php to use for the socket.