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

Transfer Master Client, SPAWN

$
0
0
Conflict Master of Clients In my online game there is an advertisement that stops the game. In this regard, I introduced the Master Client transfer function (the client will be picked up by the Master Client if the previous Master Client is not in focus for 4 seconds) But there is one problem Advertising can start during spawn and the Master Client can first spawn itself and fall asleep (advertising or out of focus), but Photon does not have time to send a signal to the server and customers continue to wait in the lobby. The next client after the timeout takes the Master Client and spawns all the players. Then the old Master Client gets out of sleep and sends a spawn signal to the server and everyone will spawn again, breaking the room and the game. Please, prompt the decision. How to simultaneously send a signal for 1 frame.

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>