So i am trying t figure out how to refill lives while the player is away, i have been looking through the posts all day and googled the living hell out of it but i just cant figure it out. i have found time examples but i just don't understand how modify them to do what i want.
all I'm looking to do is life refills like most android games (eg. candy crush). as far as I've gotten is that when lives are <15 to start a countdown of 20min and then to +1 to life and restart countdown. this works perfect if you always have the app open lol.
I've already implemented a load save function using ini and I've tried implementing the clock and ini together but i don't know if my brain is fizzled out or not because i can not figure this out!
If anyone has a example or if there is a specific android module to do this please i beg of you send me in its direction.
Starting to think making applications will end in a mental breakdown