The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Wait for all player in room loaded scene

Jaudatus
2018-12-07 13:07:55

Hi,
I have got a lobby with a "ready-system". When every player is ready the masterclient goes to the game scene and all players are following him (sync scene). However how could I "stay" in a loading screen until all players have loaded the scene. Is there an async loading or something?

Thank you,
Greets

Comments

Captain_Pineapple
2018-12-07 14:13:56

Hey there,
I'd suggest to implement a secondary "waiting for other players" screen since it's also satisfying for people to know that their pc is faster than others.
This screen can be blocking in your main scene.
Everyone whofinishes initializing the main scene can then trigger an event to let all others know. Then have the gamemechanics start wenn everyone has finished loading.

Should work as a workaround.

Jaudatus
2018-12-07 14:52:05

@Captain_Pineapple Hi there,
this is exactly how I'm doing it now. Just want to now if there is another solution :)

Greets

Back to top