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

Game development with Board Game Arena Studio
Post Reply
User avatar
Ilmion
Posts: 26
Joined: 28 March 2020, 03:26

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

Post 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.
User avatar
Victoria_La
Posts: 620
Joined: 28 December 2015, 20:55

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

Post 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.
Post Reply

Return to “Developers”