Cheat proof life timer?

0 favourites
  • 6 posts
From the Asset Store
High Low is a casino game using luck and points accumulation.
  • I'm trying to create a life timer, every x minutes you receive a life, which is simple enough with a timer and variables or using the date plugin to compare and save system time and give lives, but all the user has to do is set their system clock ahead then run the game and get full lives again. Anybody successfully implemented a cheat proof life timer, maybe that checks time on a server to give lives with an ajax call? I wish their was a way to do this without requiring an internet connection, but I guess thats not possible with just variables. Any examples of how this has been implemented would be appreciated, thanks.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • So how about every 10 seconds you save a "token" and if the last 6 tokens are invalid sequentially in the minute, you don't get anything, or else you get a extra life?

  • Time travel badge ftw.

    Truth is, its javascript so its pretty easy to cheat anyway, variables, and webstorage call all be accessed in browser.

    Your guess of using a server is about the only decent solution, but they will still likely cheat.

    The time spent trying to prevent it would be better used to pander to it.

    In other words use the bad habits to your advantage.

  • IndieKiwi Something like that would work but the timer wouldn't run when the app is closed.

    newt It's for an iOS game, I wouldn't be worried about people accessing it from a browser. "In other words use the bad habits to your advantage." Don't really know what you mean by this, it's an IAP focused game, more free lives by setting timer ahead=less IAPs purchased.

    I'm just trying to figure out how to access time from a server, has anyone done this successfully in a C2 game?

  • I would just find a website or api already with a time on the page (Not really worth setting it up yourself). Eg: http://www.currenttimestamp.com/ for this website you can ajax request it then load it into xml, and extract time with xpath like : "//textarea/text()" to extract the timestamp, to get "1412415775" which is a time format, you can google how to measure the time differences between them

  • I would just find a website or api already with a time on the page (Not really worth setting it up yourself). Eg: http://www.currenttimestamp.com/ for this website you can ajax request it then load it into xml, and extract time with xpath like : "//textarea/text()" to extract the timestamp, to get "1412415775" which is a time format, you can google how to measure the time differences between them

    I can't figure any of this out, first I can't figure out how to pull the timestamp off any webpage, ie, the one you posted, so I made my own php file that write the current time in unix timestamp on my own webhost, but the only way I could get the AJAX request to pull the time stamp is if I exported my project then uploaded it to my hosting, seems you can only do AJAX requests for files hosted on the same server, how is this going to work if the target is mobile?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)