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

(Unity3d) Run game logic regardless of Android lock screen making the game inactive?

$
0
0
Hi. This might be more of a Unity question but here goes:
I have a 4-player turn based game on Android, where the master client is in charge of changing the turns.
When the master client locks his screen, the game becomes inactive and the timer countdown stops on all clients.

All players are also able to lock their screens to prevent their units from dying on their end, which causes all sorts of glitches gameplay-wise. Is it possible to run code on a server or something, so that the phone state doesn't affect the gameplay? I'm assuming games like Hearthstone do this.

I could make the photon "time to live" value significantly smaller but I don't want players to disconnect by accident. Any tips/help?

Thanks in advance

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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