Save/read timestamp

Good morning, afternoon or evening developers!

I have a problem, and it is the only thing I need to finish my game.

For the user to be able to play, it must have energy.

When the user is in the level selection menu, the int is obtained from the database.
If the user plays an scene, he loses energy.
and the change is stored in the bd, to be obtained in the future

I want to do a function that adds energy every 5 minutes.

Previously I did this, but now it doesn’t seem so professional because can be corrupted by advancing the device time

and that’s why I am looking for an option in which it is done with a server, any idea how to start?

It is the only thing I need to enter beta after a year and a half, help me please :frowning:

Server authoritative games are hard. You’re looking at potentially dozens if not hundreds of hours of work to get a custom solution, and in the end if you make one mistake, the 11-year-old kiddie hackers will still corrupt your game economy. They just don’t care what your business model is.

My recommendation is to just store it locally and move on. Your hardest part will be getting users. Trust me.

Good luck!

1 Like