New answers tagged

2

Web php games usally uses 2 different ways to do this: 1- Daemon. You set up a "run forever" script that sleeps for 1 second and updates all data that needs update. 2- Time elapsed. you have to store the last conection somewhere and, in the next connection do CURRENTTIMESTAMP - LASTTIMESTAMP to get the seconds elapsed since last update, so you just have to ...



Top 50 recent answers are included