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
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

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
Company name changed to avoid Facebook-type shenanigans

"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,415
Reputation: 4,824

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
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

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
74
S
20
G
69
Posts: 2,205
Reputation: 43,832

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
109
S
26
G
46
Posts: 1,886
Reputation: 35,168

Post » Sat Jun 27, 2015 12:36 pm

Try this capx. Your logic needed some adjusting... :)
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,205
Reputation: 43,832

Post » Sat Jun 27, 2015 3:36 pm

@Colludium i think.... this is it :)
B
109
S
26
G
46
Posts: 1,886
Reputation: 35,168


Return to How do I....?

Who is online

Users browsing this forum: darkrealos, luckyrawatlucky and 21 guests