How do I compare date in game to play only once per dobe

Get help using Construct 2

Post » Fri Jun 26, 2015 9:28 pm

Im trying make branch:
If you play today on game you cannot play twice.
But if date has ben changed (one day will pass)
you can play tommorow again

https://dl.dropboxusercontent.com/u/44710358/date.capx

Please help me with this
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,428

Post » Fri Jun 26, 2015 10:50 pm

You will have to do this on a server, as anyone can just delete any kind of protections that you put in the JavaScript on the browser side.
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
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Fri Jun 26, 2015 11:46 pm

@gumshoe2029 i belive its possible to do in events
Last edited by delgado on Sat Jun 27, 2015 12:23 am, edited 1 time in total.
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,428

Post » Fri Jun 26, 2015 11:50 pm

system date and time plugin

:)

Edit - if you really want to get paranoid about cheating, you could CB Hash the saved data and save that as well - then compare to see if one of them have been tinkered with.
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,255
Reputation: 46,484

Post » Sat Jun 27, 2015 12:16 pm

i update my capx, can somebody who know more about date and time plugin can take a look at my capx?
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,428

Post » Sat Jun 27, 2015 12:36 pm

Try this capx. Your logic needed some adjusting... :)
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,255
Reputation: 46,484

Post » Sat Jun 27, 2015 3:36 pm

@Colludium i think.... this is it :)
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,428


Return to How do I....?

Who is online

Users browsing this forum: irina, Klarner and 28 guests