Real time in game

Discussion and feedback on Construct 2

Post » Thu Mar 31, 2016 8:37 pm

I was curious if there is a way for inside a game for it to know what time it is in real life. (So you can have something happen on a christmas or a time or something.) Is it even posable? If so please tell me how.
B
19
S
3
G
2
Posts: 92
Reputation: 2,363

Post » Thu Mar 31, 2016 11:12 pm

This will return the current unix timestamp Image
ImageImageImage
B
27
S
16
G
80
Posts: 1,016
Reputation: 44,751

Post » Sat Apr 02, 2016 1:16 pm

What do you do after that? I don't know how to apply it to my games.
B
19
S
3
G
2
Posts: 92
Reputation: 2,363

Post » Sat Apr 02, 2016 1:48 pm

It returns the Unix timestamp. You need to get familiar what is it.

The unix time stamp is a way to track time as a running total of seconds. This count starts at the Unix Epoch on January 1st, 1970 at UTC.


http://www.unixtimestamp.com/

It simply returns the big integer which is the current date in Unix timestamp format.
ImageImageImage
B
27
S
16
G
80
Posts: 1,016
Reputation: 44,751

Post » Wed Apr 06, 2016 8:00 am

@Programmer300 you can also use this: https://www.scirra.com/forum/viewtopic.php?t=63492&start=0 great plugin :)
I'm not a insane, my mother had me tested

I'm an engineer. To save time, just assume I'm never wrong
B
30
S
13
G
4
Posts: 141
Reputation: 4,832

Post » Thu Apr 14, 2016 8:32 pm

How do you get the plugin?
B
19
S
3
G
2
Posts: 92
Reputation: 2,363

Post » Fri Apr 15, 2016 5:13 am

Programmer3000 wrote:How do you get the plugin?

You open a link and just under the title, you click on "Plugin".
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,717

Post » Fri Apr 15, 2016 9:58 am

@BackendFreak That function is pro!. I was using the rex pluging for that
MY APPS ON GOOGLEPLAY
ImageImageImage
B
39
S
14
Posts: 100
Reputation: 2,928


Return to Construct 2 General

Who is online

Users browsing this forum: DjPoke and 15 guests