Keeping Track of Real Time Question
Hey Everyone,
I was wondering if there was any way to keep track of real time in GameSalad while not playing. So like in farmville, things grow and happen while you arent playing and somehow the game knows the real world time and calculates it into the game.
Is there any way to do that or anything like that in GameSalad?
I was wondering if there was any way to keep track of real time in GameSalad while not playing. So like in farmville, things grow and happen while you arent playing and somehow the game knows the real world time and calculates it into the game.
Is there any way to do that or anything like that in GameSalad?
Best Answers
-
tenrdrmer Posts: 9,934
No not really. You can save the last time the person played and then the next time they load you can do stuff based on how long it has been but you cannot make the app continue to function behind the scenes. The reason farmville works like that is your data is running on their servers. The app just accesses the info. -
tenrdrmer Posts: 9,934
Its all about the math man.
you have a save attribute behavior so you would need to save that every so often and then use the load attribute behavior to load the value the next time they play and do the math to see how long its been.
Answers
So how would you save the last time the person played and then see how long its been when they logged in?
Is there a way to get the time of the ipad clock or something?
Once they save and turn off the game, then timers wouldn't work because the game is off. Then when they turn it on and load, how would the game know what has passed?
My issue is this: I assume that if the player stops playing WITHOUT quitting (ie sleep mode/multitasking) then it will essentially pause the game so the stats wont change and there will be no way to load the saved time and adjust stats. As far as I know there is no rule for when someone hits the home button, or when they return from sleep mode.
Has anyone overcome this issue, or have any ideas for solving it?