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: 93
Reputation: 2,390

Post » Thu Mar 31, 2016 11:12 pm

This will return the current unix timestamp Image
ImageImageImage
B
31
S
19
G
82
Posts: 1,037
Reputation: 46,203

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: 93
Reputation: 2,390

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
31
S
19
G
82
Posts: 1,037
Reputation: 46,203

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

Post » Thu Apr 14, 2016 8:32 pm

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

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
136
S
33
G
17
Posts: 1,560
Reputation: 20,775

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
40
S
14
Posts: 107
Reputation: 2,969


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests