How do I get Real System Time

Get help using Construct 2

Post » Tue Nov 18, 2014 6:38 pm

Is there a way to get the system time of the device the game is on. Like if it is running a browser, just the computer system time?
B
7
S
1
Posts: 15
Reputation: 951

Post » Tue Nov 18, 2014 8:49 pm

Yes. Javascript.
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Tue Nov 18, 2014 8:53 pm

Could you be more specific?

Thanks
B
7
S
1
Posts: 15
Reputation: 951

Post » Tue Nov 18, 2014 9:05 pm

You can use this plugin:
http://c2rexplugins.weebly.com/rex_date.html

Or you can use javascript from the browser object. A google search on the subject may help.
B
92
S
32
G
109
Posts: 5,294
Reputation: 70,999

Post » Tue Nov 18, 2014 9:12 pm

Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560

Post » Tue Nov 18, 2014 9:36 pm

Thank you, both.

I think these will do.
B
7
S
1
Posts: 15
Reputation: 951


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests