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
20
S
3
G
2
Posts: 94
Reputation: 2,402

Post » Thu Mar 31, 2016 11:12 pm

This will return the current unix timestamp Image
ImageImageImage
B
36
S
21
G
88
Posts: 1,078
Reputation: 49,685

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
20
S
3
G
2
Posts: 94
Reputation: 2,402

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
36
S
21
G
88
Posts: 1,078
Reputation: 49,685

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
32
S
13
G
4
Posts: 141
Reputation: 4,882

Post » Thu Apr 14, 2016 8:32 pm

How do you get the plugin?
B
20
S
3
G
2
Posts: 94
Reputation: 2,402

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
141
S
34
G
17
Posts: 1,561
Reputation: 21,046

Post » Fri Apr 15, 2016 9:58 am

@BackendFreak That function is pro!. I was using the rex pluging for that
MY APPS ON PLAYSTORE:
ImageImageImage
B
42
S
15
G
1
Posts: 153
Reputation: 3,713


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests