How do I insert a real time clock?

Get help using Construct 2

Post » Fri Jan 27, 2017 8:09 pm


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:
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! :)
Posts: 198
Reputation: 1,073

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests