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

Game development with Board Game Arena Studio
Post Reply
User avatar
Emanuele Ornella
Posts: 23
Joined: 09 January 2016, 19:07

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

Post 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
Attachments
gameresult.png
gameresult.png (32.16 KiB) Viewed 813 times
User avatar
hersh
Posts: 76
Joined: 12 December 2013, 23:49

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

Post 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
User avatar
Emanuele Ornella
Posts: 23
Joined: 09 January 2016, 19:07

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

Post 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
User avatar
XiaoYi
Posts: 11
Joined: 27 June 2012, 17:35

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

Post by XiaoYi »

Hello everyone,
one question, how to deal with negative scorings... is it possible to use them with the animated scoring function?
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

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

Post by Victoria_La »

You should have posted new question. What is the problem with negative scoring? Did you try animation?
Post Reply

Return to “Developers”