Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to make server based time save/load system?

A topic by Ber-C created Aug 30, 2021 Views: 238 Replies: 2
Viewing posts 1 to 3

Hello! I'm making a clicker game to android, where the player can earn like 10$/sec, than upgrade it to 15$/sec etc. I want to generate money for the players while the app is not opened. I want to make it server side, or to get the time from the internet when the player closes the app or the app loses focus and when the players re-opens the game, it calculates the time while the app was closed. How can I access a time from internet/server when the app loses focus? Thank you so much for the answers!

Discord: Berci#7340

Moderator moved this topic to General Development

Why not calculate it once the app gains focus?

It's not important, I want to get the time from the internet.