How do I add a global time?

Get help using Construct 2

Post » Sat Dec 13, 2014 5:17 pm

I need time to go by - no regard for changing layers.
Sorry for my English.
B
6
Posts: 56
Reputation: 366

Post » Sun Dec 14, 2014 12:10 am

Every 1 Second
-> Add 1 to a global variable

Every Tick
Set Text object's Text to global variable's value
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Tue Dec 16, 2014 12:23 am

We use a JavaScript variable injection (or an AJAX call in preview mode) to inject the server time directly.

Then we just use a periodic NTP sync the server clock with nist.time.gov.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824


Return to How do I....?

Who is online

Users browsing this forum: AndreasR, tarek2 and 11 guests