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.

How can i get (or create) a real time clock for my multiplayer game?

albertduranll
2020-07-14 14:31:42

Hi there,

Thanks!!

Comments

albertduranll
2020-07-14 14:38:03

I let here the script that i made to get the time (not multiplayer) and create different events for my game. My goal now is to make it work with multiplayer.

CODE:

JohnTube
2020-07-20 11:58:45

Hi @albertduranll,

Thank you for choosing Photon!

PUN2 has a UtilityScript for in room countdown timer: CountdownTimer.cs.
It makes use of the synchronize server time on all clients: PhotonNetwork.ServerTimestamp.

You can also use PhotonNetwork.Time directly.

albertduranll
2020-07-26 12:28:15

I'll try it, thank you very much!

Back to top