- Home /
Why does Photon find a room so quick!
I'm currently working on a mobile multiplayer game. The rooms consist of 6-10 players each and everyone has to join before the game starts and once the room is full it is closed... Our audio design plan was to have a "Finding Match" sound play once you press play. Then once a room was found a "Found Match" sound would play... only problem is that photon finds a room so quick that neither sound has any time to play... Why is room finding so quick and what can I do to slow it down :)
Answer by DenisIsDenis · May 30, 2021 at 02:33 AM
You can use coroutines. For example:
IEnumerator PlaySound()
{
// Play music here
yield return new WaitForSecondsRealtime(1f); // 1f - time in seconds, choose any value
// Search room here
}
Just write in the required place in the code:
StartCoroutine(PlaySound());
@DenisIsDenis This is exactly what I thought I should do except it feels like cheating the player...
If you don't want to cheat players, then you shouldn't slow down the search for a room :)
Your answer
Follow this Question
Related Questions
Networking: Keep room alive without active players 0 Answers
Light.color Sync ? 1 Answer
max players in orginal room 0 Answers
How to get all created rooms and join any one of them in PHOTON 2 Answers
Unity multiplayer solutions: Photon, Unity Networking - what else and in what way is good? 0 Answers