Place cards as deck in Stock

Game development with Board Game Arena Studio
Post Reply
janafayad
Posts: 3
Joined: 08 February 2022, 11:09

Place cards as deck in Stock

Post by janafayad »

Hello,

So I created a deck of 42 cards on the server side, and I wish to see on the screen a deck of these 42 cards (the back of the card)
The cards should be seen as a pile not next to each other
Is it possible to do that with Stock component?
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: Place cards as deck in Stock

Post by RicardoRix »

if you can only see the top card, then just add 1 card with stock.addToStockWithId().
User avatar
RavingWanderer
Posts: 83
Joined: 12 May 2020, 16:08

Re: Place cards as deck in Stock

Post by RavingWanderer »

Doing this with the Stock component is overkill. All you need to do is present a single cardback in your user interface, I do this in Hand and Foot which also has a card deck. (Assuming the players don't know the ordered content of the deck, you shouldn't be sending it to the client anyway.)
Post Reply

Return to “Developers”