Page 1 of 1

Sandbox - only one element allowed in a zone

Posted: 13 June 2020, 16:15
by Alistair67
Hi,

I am a newbie developer, just finished an online course in javascript and thought I'd see if I can develop a game in the Sandbox. I contacted BGA and they suggested I have a go at a game called Sensei. Having just set up the board and playing pieces through the interface view I have immediately come up against a problem.

The game involves one of the game pieces sitting on top of another - a tile - and moving from one of the player's tiles to another throughout the game. On trying to play a test game I find that the zones that I created as the board spaces will only take one element each, so the player's main piece cannot move on top of another tile in the same space. Is this something I can alter in the scripting when I come to do that? If I had one piece that represented a tile which has the main piece on top of it and was able to just switch that with the tile in the destination space that might work, but is that something I'll be able to do?

Any guidance appreciated, as I don't want to spend time on this if it is simply not possible in the sandbox. General advice on working in the sandbox would also be appreciated, if you have the time to give it.

Thanks, Alistair

Re: Sandbox - only one element allowed in a zone

Posted: 14 June 2020, 09:11
by laedit
In the zone properties, you could change the "How to arrange elements on it" to "Stack/Deck", I think that should do it.

Re: Sandbox - only one element allowed in a zone

Posted: 14 June 2020, 14:59
by Alistair67
Ah, I didn't see that. Thanks for the steer.

Re: Sandbox - only one element allowed in a zone

Posted: 15 June 2020, 06:23
by laedit
About the sandbox, you can find some info here and you have to keep in mind that it doesn't have all functionalities than the official framework, it is really intended for board games that only need interaction with the pieces (board, cards, dice, etc.) and not other actions from the players.