Prevent cheat in a Time Based System
Hey guys,
I'm working on events in my game based on realtime device. Example: 7pm = game scenario is night, 7am = game scenario is day using rule if Attribute game.Clock.Hour = X then ...
But I want to introduce some events triggering by the time, like 8:20pm do something, but ppl can cheat just adjusting their devices for this time.
There's a way to prevent that by using some sort of formula or rule?
Thanks in advance.
I'm working on events in my game based on realtime device. Example: 7pm = game scenario is night, 7am = game scenario is day using rule if Attribute game.Clock.Hour = X then ...
But I want to introduce some events triggering by the time, like 8:20pm do something, but ppl can cheat just adjusting their devices for this time.
There's a way to prevent that by using some sort of formula or rule?
Thanks in advance.
Best Answer
-
simo103 Posts: 1,331
I would imagine you could save the Time at various intervals in your game and compare them to the present Clock time to make sure they were further along in time. Might stop most Time jugglers from bothering to do it if you pop-up an alert indicating 'Please check the device clock as we have detected an issue' or something like that. If you save a few then it will give you a number to compare.
Answers
Thanks for reply.
Anyways, couldn't you have the user set their time of day at the beginning of the game. And then from then on have that attribute constantly ticking as the game runs? That way the time changed on the device couldn't alter the game's time? I guess that wouldn't work if the user closed the game from multitasking though, because it wouldn't run the time in the back. But as long as it ran in the background the game time still runs though, I think.. Just spewing thoughts here. I'm in the same dilemma sort of.
12Noon is 12 … 12Midnight is 0
the hours from 0 through 11 are AM … and the hours from 12 through 23 are PM