Page 1 of 1
Pause in Zombie State
Posted: 23 June 2020, 20:47
by tsaunat
I was implementing zombie turns and testing it, but if there are more than one zombie turn in a row they go ridiculously fast is there a recommended way to implement a pause between the zombie turns? Should this be a client side or server side implementation?
Re: Pause in Zombie State
Posted: 23 June 2020, 22:07
by Marcuda
You can put a delay between client notifications that will slow things down. See here:
http://en.doc.boardgamearena.com/Game_i ... ifications. You just add a call for each notification you want slowed down in your
setupNotifications function:
Code: Select all
this.notifqueue.setSynchronous('mynotif', 500);
Then a turn like this:
Player 1 makes a move
Player 2 zombie move
Player 3 zombie move
becomes:
Player 1 makes a move
(pause 0.5 seconds)
Player 2 zombie move
(pause 0.5 seconds)
Player 3 zombie move
(pause 0.5 seconds)