I would like to find a way to run a countdown like in some online games.
Let me explain:
The player launches action X, he has the choice (30 min, 1 hour, 2 hours, 10 hours) ...
For example he chose 2 hours, the meter displays: you still have 2 hours to develop the competence Y.
From there things get complicated, I:
- Can make a statement to the second: 1h 59min 59sec ... 1h 59min 58sec ... 1h 59min 57sec ... etc., until the end of time remaining
- Can resume the count if the player changes the page and then returns to the page counter
- At the end of the meter run a SQL query that will update the jurisdiction (even if the user is not logged): not an action the player to start the query ...
Can you enlighten me on the technique used?
Bookmarks