give user money every 24 hours?

guillefaceguilleface Member Posts: 1,014
edited April 2013 in Working with GS (Mac)
hi is still possible that the user can change the time and get this by changing the date? iam making a game that i want to give the user some money every 24 hours or the option to buy them, but can they hack this by changing the date or time?thanks

Comments

  • mounted88mounted88 Member Posts: 1,113
    I'm not sure they can or not, but how many people are actually going to go through all that trouble to change the date and time on there phone for in game money. Probably not that many. 99% of people probably don't even realize you can change it and it will work in the game. So I wouldn't be that concerned with it.
  • guillefaceguilleface Member Posts: 1,014
    thanks,so now how do i give them this every day?, do i add a timer that every 86400 seconds to change money to money+1000,but i think if they quit the game the timer will stop?
  • ShmirlyWhirlShmirlyWhirl Member Posts: 189
    You are right- unless the user has your app open for the full 86400 seconds, the timer method will not work.

    What you want to do is-
    When the user opens the app, save the current date to an attribute. (Device->Clock->Day/Hour/Minute/etc)
    Then, on subsequent openings, compare the current date to the saved date. If it's over 24 hours, give them the money, and set the new date to the new time. If not, don't do anything.

    Of course, this method will give them the money 24 hours apart. If you wanted it "reset" at midnight, instead of changing the tracking attribute to the current time, set it to that days midnight.

    Sorry if this sounded confusing, haven't had my coffee yet.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I would totally buy a game where I get money every day. In fact, I would pay at least $4.99 for that!

    On a serious note, I don't think you can prevent someone from abusing the device time. If someone decides to reset their device date just to mess with your game, they're going to do it. Seems like a waste of... time... to me but to each his own.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • guillefaceguilleface Member Posts: 1,014
    but it really dont take that long to cheat, i have this dice game where i get 300 cash everyday , i never try to cheat it because i have already more than 50,000 cash, but just to check how easy it was i try it right now, after clicking on settings then on date i just changed to the next day, went back to the game and i got the 300 bonus in less than 20 seconds, i did this 5 in a row and i increased by cash by 1500 in less than 2 minutes instead of 5 days, i guess we can just hope most users dont know about this method.
Sign In or Register to comment.