How to display the shuffle card

Need help for the project

now I developing a memory game that have 2 minigame and 1 gallery. Now I am developing the 1st minigame that is Name memory game.

the game is about
The game begins by displaying nine shapes, each representing a specific Thai dessert. Players are given time to memorize these shapes (this time can be skipped). After the memorization period, the game starts. Five shapes are randomly selected, and players must assign the correct Thai dessert names to each shape. The system checks the placement of a name, and if incorrect, the player must re-enter it. Once all shapes are correctly assigned, the game progresses to the next round, adding one more shape to the initial nine. Players must then assign dessert names to all additional shapes again. This process continues until all nine shapes are assigned. Once all nine shapes are completed, the game ends, and players can choose to return to the main menu or restart the game.

now I have the problem that I can do the flow of the game but don’t know how to connect the blueprint very well. The problem I’m facing now is how to show randomize card at first. Now I can show 9 cards with name on it. But I think I will change to when enter this minigame it will show pop up that show image of 9 card and its name also have a skip button that when click will start the game. I don’t know how to do it properly. I will be grateful if anyone can help me guide through the project.

Hey @MegaScrewGlue!

I don’t know about guiding you through a whole project, but if you’re using an array here, the “Shuffle array” node might be useful!

thank you for your reply
I already using the shuffle array but the outcome does not shuffle.

this is blueprint of my game_manager

This looks good and appropriate! The problem likely lies somewhere else. What about your Widget where you’re creating it? Where is this array being used on the widget as it’s created?

This is the blueprint of the Card. It’s a widget blueprint. to make the card look

this is what it’s look like

and this is a widget play to make they display

sorry for reply like this. I can only add 1 image per reply.

There it is @MegaScrewGlue!

In the “WidgetPlay” construction script you are not using shuffled values- you’re using the data table to set them in the same order each time. Try shuffling the names there before putting them into the “ForEach” node and see if that does it!

It worked ! Thank you very much.

Would it be a bother you if I ask some more questions?

1 Like

@MegaScrewGlue You can tag me when you post new questions if you’d like! We do want to try to keep it to one question per thread though! :slight_smile:

1 Like