how can I make the cards shuffle smoothly after they are flipped?

I am developing a game that consists of two rounds. In the first round, five cards are shown, with only one card being different. The player’s task is to find the different card.
First, the player sees the cards, then the cards are flipped and shuffled, and after that the player chooses a card. If the player selects the different card, they are taken to the next scene; however, if they choose the wrong card, the scene is restarted.
In the second round, the player will see seven cards, one of which is different. After the cards are flipped and shuffled, the player will not win no matter which card they choose. This round is called the “Impossible Round.” It is repeated twice, and then the player is given the choice of whether they want to go back or not.
I am developing a game that consists of two rounds. In the first round, five cards are shown, with only one card being different. The player’s task is to find the different card. First, the player sees the cards, then the cards are flipped and shuffled, and after that the player chooses a card. If the player selects the different card, they are taken to the next scene; however, if they choose the wrong card, the scene is restarted.

The question is: how can I make the cards shuffle smoothly after they are flipped?

Are asking about a visual shuffle? Do you want to deal the cards or have them already dealt then reveal them and then move them in a way the player can try to follow. A bit like the classic shell game or find the Queen card game (scam)? Or do you want the cards to return to a stack and then be dealt again.

You could pick 2 cards and tween them to the others position. You could create an arch with the Y position so one goes high and the other low or each one takes a random arch. So, maybe one goes high and the other goes slightly higher.

If you swapped 2 random pairs at a time fast enough, it could be chaotic enough to make it tough to follow.

The 2nd level you would just cheat. And change the animation to a different card.

Yeah, I mean a visual shuffle.

What I’m trying to do is shuffle the cards only on the X axis, while keeping the Y position fixed — so they just move left and right.

I’m still a beginner, and I tried searching for examples, but I couldn’t really find clear resources for this.
Could you walk me through the steps or explain the basic logic?

Thanks, I really appreciate the help!

There are infinite ways of doing things. This is my first attempt. I’m short on time. This uses a button but could be replaced using a timer. The tween time can so be randomized or calculated based on distance to be more consistent.

No time to explain it. Objects have tween behavior and object boolean variable Moving. Scene number variables of X1 and X2.

This example might help:

1 Like