animation: cards moving mutliple times
Posted: 30 June 2021, 17:42
Hi!
During a player's action, a card may move multiple times (first to a played area, causing other cards to move, then to a discard).
The backend goes through this step by step, sending move notifications to the frontend for each card moved.
The js frontend then calls appropriate addToStockWithId or removeFromStockById for each card move notification.
What I noticed is that when card is moved multiple times, for example from hand to table to discard, only the effective move is animated, that is, I see the card moving from hand to discard. I'd like to see all the steps, to make it clearer for non-active players what happens.
Am I doing something wrong?
How did you solve this in your implementations?
Thanks!
Thomas
During a player's action, a card may move multiple times (first to a played area, causing other cards to move, then to a discard).
The backend goes through this step by step, sending move notifications to the frontend for each card moved.
The js frontend then calls appropriate addToStockWithId or removeFromStockById for each card move notification.
What I noticed is that when card is moved multiple times, for example from hand to table to discard, only the effective move is animated, that is, I see the card moving from hand to discard. I'd like to see all the steps, to make it clearer for non-active players what happens.
Am I doing something wrong?
How did you solve this in your implementations?
Thanks!
Thomas