Page 1 of 1

animation for the score result before "Game result" appears automatically

Posted: 26 May 2020, 21:34
by Emanuele Ornella
How can I delay the end of the game from the 99 status?
If I want to show an animation with the scoring, how it happens in Kingdomino, how can I do that?
Currently as soon as the 99 status is triggered, there is a little delay and then the Result tab will appear.
I do not see any control on that. it would be just enough to have few more seconds before this appears.
Or maybe not to switch automatically to that tab and see the "final situation"


Or is there any other way?
I tried to add an extra state but if I define it type="game" it is not working.
If I define it "activeplayer" and I try to call the ajax call for an action after a setTimeout() I get an very generic "Javascript error:
Script error."

So I am a bit lost trying to do that.
Any suggestion?

Thanks,
Ema

Re: animation for the score result before "Game result" appears automatically

Posted: 27 May 2020, 01:53
by hersh
Adding your own state should work.

Use synchronous notifications to show full animation
http://en.doc.boardgamearena.com/Game_i ... ifications

You can also use scoring animation if you like how it appears (terra mystica)
http://en.doc.boardgamearena.com/Game_i ... ed_display

Re: animation for the score result before "Game result" appears automatically

Posted: 31 May 2020, 14:19
by Emanuele Ornella
This helped a lot.
In some way I was missing htis from the reversi tutorial!
And the javascript I had was due to my mistake!

Thanks a million for helping on this :-)

Ema

Re: animation for the score result before "Game result" appears automatically

Posted: 04 May 2021, 11:55
by XiaoYi
Hello everyone,
one question, how to deal with negative scorings... is it possible to use them with the animated scoring function?

Re: animation for the score result before "Game result" appears automatically

Posted: 11 May 2021, 21:34
by Victoria_La
You should have posted new question. What is the problem with negative scoring? Did you try animation?