I already asked generally about animations, here's a more specific problem:
I chained several animations and it takes them several seconds to be carried out, but the state already changed to the next player even though he won't see the final situation yet.
Plus, I see the following log in the browser console, which fits to the fact that I don't see all animations:
(Or is it the fact that I use the slideToObject function for the animations, which I put in a chain and play after having created all?)
So how do I carry out all animations in specific order and only after that continue with the game UI? (Like for example done in "Colt Express" where I see several things happen before anyone can act again.)
I chained several animations and it takes them several seconds to be carried out, but the state already changed to the next player even though he won't see the final situation yet.
Plus, I see the following log in the browser console, which fits to the fact that I don't see all animations:
Code: Select all
Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). So how do I carry out all animations in specific order and only after that continue with the game UI? (Like for example done in "Colt Express" where I see several things happen before anyone can act again.)