Energy System in a Game


  • Posts: 7
I have an energy system in my game, can I have it automatically recharged for example 1 energy every 5 minutes, even when the user is not in the game? (talking about the game on android)
Something like in the background.. it's it possible??


  • Posts: 1936
You would have to get the time they quit the game, and the time they reopened it and calculate how much energy needs to be recovered.

They're aren't built in blocks in Stencyl to get the device time, so you'd either have to code something or check out the extensions. I think there is an extension that'll do it, but I'm not sure what it's called.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.


  • Posts: 1446,50022.0.html

ceosol made one.  works perfectly.. i have it to sell for a donation.  No documentation.  i can help get it into your game easily