N
Neodare
Guest
Hi all,
I am looking for some help conceptually with passive timers in mobile games. For example I am looking at creating a simple game similar to Fallout Shelter where you can harvest/gain resources every X minutes, regardless if you are actively playing or if the app is closed. I am struggling to know what this type of timer this would be and how to do this offline?
I was thinking that you would save the date/time when the resource is started and then compare the current date time and if the date diff is greater than the resource duration you would then award the resource? Am I going down the right path or is there a better way to do this? Also what GM2 functions would be helpful for this?
Thanks!
I am looking for some help conceptually with passive timers in mobile games. For example I am looking at creating a simple game similar to Fallout Shelter where you can harvest/gain resources every X minutes, regardless if you are actively playing or if the app is closed. I am struggling to know what this type of timer this would be and how to do this offline?
I was thinking that you would save the date/time when the resource is started and then compare the current date time and if the date diff is greater than the resource duration you would then award the resource? Am I going down the right path or is there a better way to do this? Also what GM2 functions would be helpful for this?
Thanks!