Hi!
When using placeOnObject and slideToObject I had saw the following behaviour:
I'm developping the card game Bids and when a specific card is played, I want a token (= a little image, png) to fly to the player that played this card. I do this with the following code, which worked perfectly fine.
When the turn ends, the little image (what I can the token) is still there, but when I refresh the page, the image is gone. If I refresh before the turn ends, nothing happens with the little image, so something goes wrong when the turn ends. The handling of the end of a turn is almost the same as what happens in Hearts. I just don't understand why that image disappears, while all other cards stay the same. Anyone has an idea if I have to find the error in the tpl-file or in the .js file?
Many thanks in advance!
When using placeOnObject and slideToObject I had saw the following behaviour:
I'm developping the card game Bids and when a specific card is played, I want a token (= a little image, png) to fly to the player that played this card. I do this with the following code, which worked perfectly fine.
Code: Select all
this.placeOnObject('allytoken_' + player_id,'overall_player_board_'+ player_id);
this.slideToObject('allytoken_' + player_id, 'allyplaceholder_' + player_id).play(); Many thanks in advance!