slide to object too late
Posted: 02 December 2019, 17:31
Hello
I have 3 cards in 'playertables' which rejoin the others in the player's hand.
As I don't need 'playertables' any more , I change the display to 'none'.
But the sliding animation doesn't appear.
How can I delay the disappearance of the 'playertables' ?
I have 3 cards in 'playertables' which rejoin the others in the player's hand.
As I don't need 'playertables' any more , I change the display to 'none'.
But the sliding animation doesn't appear.
How can I delay the disappearance of the 'playertables' ?
Code: Select all
card_on_table = 'cardontable_' + this.player_id + '_' + card.id;
this.playerHand.addToStockWithId(card_type,card.id);
this.slideToObjectAndDestroy(card_on_table, 'myhand', 1000, 0);
dojo.style( 'playertables', 'display', 'none' );