Hello,
For the game I am developping, I need to implement a timer for a multiplayer phase that goes 3... 2... 1... or at least being able to set it to three seconds tops and then goes on the next state after the end of this counter.
I searched for "reflexion time" on the wiki but all I could see was a method that added reflexion time to a player.
What is the best way to implement the counter? Given that the players need to perform actions during this time I can't use sleep on the server side, unless there is a way to do it on two different threads.
//Shanly
For the game I am developping, I need to implement a timer for a multiplayer phase that goes 3... 2... 1... or at least being able to set it to three seconds tops and then goes on the next state after the end of this counter.
I searched for "reflexion time" on the wiki but all I could see was a method that added reflexion time to a player.
What is the best way to implement the counter? Given that the players need to perform actions during this time I can't use sleep on the server side, unless there is a way to do it on two different threads.
//Shanly