How to join a game in process (like many io games)
Options
Hi all,
I am trying to realize some join&leave features like many io games.
.player can join a game in process or create one if no room/ all room are full
.dead --> leave game
.game has 0 player-->destroy this game in server
But in the tutorial it is all about create room and make matching...
Need bit tips and clues.
Thanks
I am trying to realize some join&leave features like many io games.
.player can join a game in process or create one if no room/ all room are full
.dead --> leave game
.game has 0 player-->destroy this game in server
But in the tutorial it is all about create room and make matching...
Need bit tips and clues.
Thanks
0
Comments
-
1
-
Thx for reply0
-
Hi @JUUEN,
You can use PhotonNetwork.JoinOrCreateRoom to do this.
If there is room, you will join and if there isn't room, you will create and join.
And Local player will get OnJoinedRoom() Callback and you can use PhotonNetwork.Instantiate to create gameObjects.
0 -
@DmitryAgafonov
thx. I read the tutor again and found I have misunderstood its purpose.XD0