Topic was automatically imported from the old Question2Answer platform.
Asked By
Beureuuu
Hello everyone,
I’m pretty much a newbie when it comes to Godot so I’ve been doing little classic game sto get the hand on it.
As the title state, I’m going for the guessing game where you need to find and click on the 2 same pattern card until there’s no more pair anymore. here’s a rough preview:
(Yeah, there’s actually more than 2 cards pulled off, but that just for test purpose)
All those cards are instance of the Card.tscn displayed below
ValueCard being the actual card and HidingCard the texture to cover the value TextureRect.
I have a whole folder full of card sprite (From ace to king, and the classic shape like heart, diamond, spade and club), and I’d love to randomly pick up cards to fill the board and set the according texture to each card pair. Should I create a scene per card (like, a scene for the 2 of heart, 3 of heart, 4 of heart, etc…) or is there a way to use an array to manage that with texture and all ?