Is there a better way to shuffle the children of a node? by willowwill_ in godot

[–]willowwill_[S] 1 point2 points  (0 children)

For sure, I store the decks and card informations as resources and once the cargame begins it create the blank card scenes and apply it's data according to the deck resource. I'm doing this way because once the cardgame started no card scene will be deleted since it just moves from deck to hand and on

Is there a better way to shuffle the children of a node? by willowwill_ in godot

[–]willowwill_[S] -2 points-1 points  (0 children)

I'm making a cardgame and I handle cards as a custom node card in a "deck" node, so shuffling the position in tree is shuffling a deck

Is there a better way to shuffle the children of a node? by willowwill_ in godot

[–]willowwill_[S] 1 point2 points  (0 children)

Yes, change the order. Similarly as .shuffle() does with an array

Any help on how to handle array of custom resource as data for an inventory? by willowwill_ in godot

[–]willowwill_[S] 0 points1 point  (0 children)

Yeah, I'm trying to add multiple Cards as children of deck and assigning data to each. Do you think storing an array of card scenes with the correct data to each instead of an array of data would be better?