Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

New client loads old scene when joining room

$
0
0
Hey guys!

I'm making a game where I have a main menu scene where I can join games and etc and other scenes where the game happens, after a match finish the players go back to the room screen in this main menu scene so the players can rematch, leave the room, wait for other players to join the room and etc. My problem is that when a new player joins this room he loads the game scene instead of the main menu scene (where all the other players - that already played in this case - are). I'm trying to activate and deactivate automaticallySyncScene but sometimes that doesn't seems to work, do I need to set this in all clients in the room? Do I need to set this when the level loads? I'm loading the game using photon's LoadLevel, but still, new clients goes to the game scene.

When a match finish I want to be able to let players review the score before going back to the room screen in the main menu scene, he wil be able to go back to it through a button, and each player should be able do this by himself without the master client forcing him. I was able to nail this, but when new players joins this room (that just came back from a match) he loads the game scene automatically and I have no control over it.

Can I have more info about how automaticallySyncScene really works and how to use it?

Viewing all articles
Browse latest Browse all 8947

Trending Articles