Tell to other players, if a player internet connection is slow
Hi,
thanks to photon team for this great backend engine,
i was wondering how can i manage slow connections for other players, for example i have a realtime game it based on player speeds when a player disconnected from the internet other player can win the game easily, so i want to pause the game for 10 seconds after that if disconnected user couldn't connect again, other player wins
how can i do that ?
Cheers
thanks to photon team for this great backend engine,
i was wondering how can i manage slow connections for other players, for example i have a realtime game it based on player speeds when a player disconnected from the internet other player can win the game easily, so i want to pause the game for 10 seconds after that if disconnected user couldn't connect again, other player wins
how can i do that ?
Cheers
0
Answers
-
you need OnPhotonPlayerDisconnected and OnPhotonPlayerConnected to detect players comping and leaving
but..
if theres only 2 players should be easy enough to check how many players are on using the master client - PhotonNetwork.countOfPlayers - just pause if less than 2
hope this helps0