Page 1 of 1

Where to slide when arriving from outside or returning to the box

Posted: 28 October 2020, 16:51
by Ilmion
In the game, some element are arriving on the board from a source that is not visible in the interface and other are leaving the board and going back to the "box".

Is there a standard "location" for 'from the box' and for 'back to the box' ? In other word, is there a standard that player are used to when element are moving out of the game but not onto the overall_player_board_[player_id] ?

I'm looking for an id of an html element.
For 'from the box', it will be use as a parameter for the dojo.place and after the element will be 'slideToObject' on the board.
For 'to the box', it will be use with the slideToObjectAndDestroy.

Edit : I figure I could use fadeOutAndDestroy for the element returning to the box.

Re: Where to slide when arriving from outside or returning to the box

Posted: 29 October 2020, 01:23
by Victoria_La
There is no "standard" id. Every game is custom. If you want to see element sliding over, you have to place the container somewhere (i.e. 0,0 of you board)
It can be size 0. Then you do what you describe - dojo.place there and slide.