Its possible to count "outside" time in construct 2?

Get help using Construct 2

Post » Tue Sep 01, 2015 6:07 pm

Its possible to count "outside" time in construct 2? for example if i kill a type of enemy i want to see this enemy again in 2 hours (outside time, not in game time) and other type of enemy in 1 hour, you can close the game and save progress before 15 minutes of playing but the next time that you open the game if your enemy have more of 2 hours dead (outside time) then the enemy will spawn again, i know construct 2 can count in game time but i want to know if construct 2 can count "real or outside time", i think must be something like: last saved game "time / date" + last login hour/date.
B
9
S
3
Posts: 142
Reputation: 1,108

Post » Tue Sep 01, 2015 6:12 pm

"Date" plugin, look it up in the search.
ImageImageImageImage
B
157
S
66
G
42
Posts: 2,603
Reputation: 35,343

Post » Tue Sep 01, 2015 6:12 pm

To remove any chance of cheating you would have to fetch the "internet time" upon startup. If you couldn't care less for cheaters, then your solution is absolutely fine.
B
71
S
30
G
25
Posts: 984
Reputation: 19,503

Post » Tue Sep 01, 2015 9:07 pm

thanks a lot for the help, this exactly what i want: behavior-revive_t70566 , but i need to solve the problem of count "outside time", i will try with rex plugins.
B
9
S
3
Posts: 142
Reputation: 1,108

Post » Tue Sep 01, 2015 10:43 pm

Rex's Date plugin uses System time. Like @Magistross says, do not use Rex's date plugin if you don't want people cheating in your game by changing their System time clock.

http://timezonedb.com/api for free AJAX API calls to get a Unix Timestamp.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"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,418
Reputation: 4,830


Return to How do I....?

Who is online

Users browsing this forum: dand, heater19, R0J0hound and 26 guests