playMaker

Author Topic: How to make a photon room unable to join after the scene changes?  (Read 397 times)

Jim132

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
In some multiplayer games, we can create rooms and wait for players to join first. Then the master clicks Start Game button and the scene changes. After the scene changes, other player will not be able to join that room anymore.

But in the DemoWorker Demo, players can join a room at anytime. So how to make a room unable to join after the scene changes/game starts?

Thanks for answering!  ;D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14703
  • Official Playmaker Support
    • View Profile
Re: How to make a photon room unable to join after the scene changes?
« Reply #1 on: December 19, 2018, 11:17:29 PM »
Hi,

Ah, good point, I did not create the action to close the room, please update from the ecosystem, I have added two new actions:

PhotonNetworkSetIsOpen, and PhotonNetworkSetIsVisible.

set  IsOpen to false and the room will not be joinable. IsVisible is if you are listing rooms and you don't want it to appear in the lobby, yet it's not closed ( pending known players to join or something)

Bye,

 Jean

Jim132

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Re: How to make a photon room unable to join after the scene changes?
« Reply #2 on: December 20, 2018, 01:25:20 AM »
Thank you very much! I will try it out later!  ;D