How do I insert a real time clock?

Get help using Construct 2

Post » Fri Jan 27, 2017 8:09 pm

Hi!

My aim is to insert a real time clock (a clock that displays what time is it in real life in that moment) that keeps having track even when the game is not opened (in order to program daily events, p ej: show "x" text every two days). Is that possible?

Thanks C:
B
3
Posts: 3
Reputation: 181

Post » Sat Jan 28, 2017 12:51 pm

You can get the time and date by inserting the Browser object in your project and using this expression: Browser.ExecJS("Date()") to return a string with the current date and time. The result looks like this:

Sat Jan 28 2017 13:46:00 GMT+0100

I don't exacly know how you could get the game running in the background. Although there is a Background mode plugin in the scirra store that I think serves this purpose.

I hope this solves your problem! :)
Image
B
5
S
3
Posts: 193
Reputation: 1,063


Return to How do I....?

Who is online

Users browsing this forum: Bobbyneal100, Euduardo, Kin, mickclarke, tinhofiel, TRMG, usochi and 43 guests