• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Android keeping time on client and server for timer/icremental game

D

Dengar

Guest
im working on an android game, its a timer/incremental game and have a server written in php and client in gamemaker studio.
the game is based on 60second cycles. so every 60seconds you gain x resources.

the server records client timestamps via the time() function in php.
this works perfect when determining the time between the last login and the current login time.
but im having problems wrapping my head around how the client should be setup.

right now the client does a http call to the server every 60seconds to update information.
my logic is the client keeping track of its own time separate of the server for things like timer countdown animations, but its proving not to work.

how often should I be updating the server and checking the time if the game only gains resources every 60seconds?
also how should I setup timer animations ?
sry if dumb questions im just realy stumped.
 
Top