Pause in Zombie State

Game development with Board Game Arena Studio
Post Reply
User avatar
tsaunat
Posts: 30
Joined: 28 April 2020, 05:10

Pause in Zombie State

Post 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?
User avatar
Marcuda
Posts: 25
Joined: 21 September 2015, 00:36

Re: Pause in Zombie State

Post 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)
Post Reply

Return to “Developers”