Claim gift every 3 hours

nir3112nir3112 Member, PRO Posts: 312
Hi
In my app I want to give the player gift of something every 3 hours.
I know that I can use the real clock of the iphone.so I did it I create 2 actors
1. Real clock (iphone clock)
2. saved clock
So if real clock-saved clock=>3 give the gift.
But it's not working all the time
I need better way if someone have some way to do this it will be appreciated!

Comments

  • saif_shammarisaif_shammari Member Posts: 128
    I think i will make a quick template for you
    just wait
  • saif_shammarisaif_shammari Member Posts: 128
    I make it every one minute
    just change the number from 60 to 10800
    i think thats help you ;)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You can use the free OS Time demo (see http://forums.gamesalad.com/discussion/55578/logic-for-real-time-device-clock) or I have a virtual pet template available over at GSHelper.com that includes support for both in-game time (e.g. playing the game for 3 hours straight... now give a gift) and non-game time when the app is closed or quit (e.g. playing the game for an hour, then quit it for two hours and opened it again... now give a gift).

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

  • nir3112nir3112 Member, PRO Posts: 312
    edited November 2013
    I make it every one minute
    just change the number from 60 to 10800
    i think thats help you ;)
    Thanks a lot! I will try it!
    I hope that I will understand how to do it my self...
    BTW when I close the app and open it after 5 hours it will calculate the hours and give me gift?
  • saif_shammarisaif_shammari Member Posts: 128
    No
    it will give a gift after 3 hours of play time
    if you want after 3 hours even if you close the game
    see @tatiang demo
    sorry for my english
    quick replay :)
Sign In or Register to comment.