Download

Is it possible to make the game run in background on android?

Hello guys,

Is it possible to make the game run in background on android?
**for example: when i open the game, my score are “0” iam start a mission and every hour i will get score “100”, but when phone turn off, score still runing 100 point per hours
**
i try it, but when i goes back to game, score restars to zero,

Thanks for helping me.

Hi,
I think this is possible, I don’t have direct way about how you can do it but there’s two event that might help you (I found them in GameInstance):
Event OnEnteringForeground
Event OnEnteringBackground

they may help you.