How to make off-game timer system?? ⊙_⊙?

zellhuangzellhuang Member, PRO Posts: 79
edited November -1 in Working with GS (Mac)
Hi guys, I'v gotten some problems that I can't figure out. So if u can help me, I'd be appreciate of that^^
Let me brief the off-game timer system that I need: when user start the game first time, the off-game timer system should also begin to count the time. after that, no matter whether the user is on-game or off-game, the off-game timer system should continue working. every time the timer counted 1 hour, the user can get 1 point.
e.g. I started my game first time at 8:00 am, after playing several mintues I left the game, and I return to the game at 4:00 pm. from 8:00 am to 4:00 pm is 8 hours, so I should get 8 points at 4:00 pm.

does anybody know how to make this system. Thanks every much :)

Comments

  • sebmacflysebmacfly Member Posts: 1,018
    I think that the only thing you can do, is to use the new device time system...
    So in your game, every x seconds you have to change an attribute "date/time" closed application.
    when you restart your game, have a rule that compares your closed app to the current time.

    Hope that help :)

    Cheers
  • zellhuangzellhuang Member, PRO Posts: 79
    sebmacfly said:
    I think that the only thing you can do, is to use the new device time system...
    So in your game, every x seconds you have to change an attribute "date/time" closed application.
    when you restart your game, have a rule that compares your closed app to the current time.

    Hope that help :)

    Cheers

    I think your method will work! Thank you very very much XD
Sign In or Register to comment.