UI animations in multiplayer games

Thank you for the answer :slight_smile:
How did you manage to open the buff widget for both players? For me it only works for one at a time…

Ok, I will explain it in more detail. It’s always easier on an example, so here we go:

  • We have a mobile multiplayer card game with two players connected (two player controllers are communicating with a game mode)
  • Player one selects an attack card that should deal 5 damage to the opponent
  • The selected card information goes to the game mode, which checks the played card and takes actions corresponding to it
  • In our case it would trigger the “Attack” function on both player controllers, so that each player would see an attack animation on their screen
  • My question is now as follows. How can we ensure, that the game will continue only AFTER the animation is completed, because relying on the “animation finished” events seems a bit risky to me and putting delays inside the game mode does not seem like a clean solution (maybe I’m wrong here)… So basically I only want a way to tell whether the attack animations for both players are done playing and the game mode can inform the next player that he can start his turn.