- Home /
Provide user virtual currency after every 24 hrs.
I need to provide user Virtual-currency after every 24 hrs , when user enters the game . I am trying to figure out best optimize way to do that .There could be several ways for doing this . I appreciate any good logic from you fellas .
This can be a lot broader topic than you might imagine.
Consider Clock tampering to get free stuff. I'm sure we've all done it.
Answer by Baste · Jan 26, 2015 at 02:48 PM
This is something you'll have to do on your server. The app running on your users device should not be responsible for generating currency, as that'd make it ridiculously easy to generate it.
So, whenever you give the user currency, save a timestamp, and on login check if 24 hours has passed since that timestamp. If so, send the currency, save a new timestamp, etc.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Getting a Code to Run at a Specific Time of Day Even if App is Off. 1 Answer
how to use time on lerp 2 Answers