Energy System in a Game

AlvaroBenitez

  • 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??

JeffreyDriver

  • Posts: 1829
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:
Retro Redux Compilation (NEW).
Retro Redux (untitled) (NEW).
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

squeeb

  • Posts: 1418
http://community.stencyl.com/index.php/topic,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