How to stop counting down player's timer in client side
Posted: 23 August 2025, 18:00
A proposal which says that players timer keeps running during animation was reported.
Actually right after a notification about the animation is issued, server side transitions to a state whose "type" is "game".
I confirmed that removing "$this->giveExtraTime(self::getActivePlayerId());" reverts timer to the time when the active player completed his action. Specifically, if the active player completes his action at 1:00, his timer keeps running and changes to 0:50 while the animation is running but once the animation completes and next player gets activated, the timer changes back to 1:00 even though game logic does not give extra time. So, I think that server side is working as expected and this problem is superficial in client side.
I put sleep (PHP function) in the "game" state but it just keeps timer running and status bar saying "Sending move to server...".
Is there any way to stop (and resume) timer in client side?
Actually right after a notification about the animation is issued, server side transitions to a state whose "type" is "game".
I confirmed that removing "$this->giveExtraTime(self::getActivePlayerId());" reverts timer to the time when the active player completed his action. Specifically, if the active player completes his action at 1:00, his timer keeps running and changes to 0:50 while the animation is running but once the animation completes and next player gets activated, the timer changes back to 1:00 even though game logic does not give extra time. So, I think that server side is working as expected and this problem is superficial in client side.
I put sleep (PHP function) in the "game" state but it just keeps timer running and status bar saying "Sending move to server...".
Is there any way to stop (and resume) timer in client side?