Shuffling card deck animation

Found a link here but was over 10 years old on this topic and the link to the poster’s page is now invalid. Shuffling a deck is very easy but anyone know of Corona code that provides a visual animation given an image of the backside of the deck?

Please - don’t respond how easy it is using transitions - prove it with some example code!

“Don’t tell me how to do it, give me the code to do it!” :smiley:

You can find sample code for how to flip playing cards in Corona’s “Perspective” sample project.

I’ve run that but too vague. I’m talking about an example that provides dimensional aspect of a deck and some measure of animated movement of each card to give the illusion of a shuffle. Here’s an old link some were happy with but it is no longer valid:

https://forums.coronalabs.com/topic/22724-new-tutorial-creating-shuffling-dealing-a-deck-of-cards/

What type of shuffling animation would you want? There’s hundreds of ways to shuffle a deck, or to visualise it.

Indeed, and the number of possible visualisation methods also depends on what your game’s camera perspective is, i.e. is the deck of cards viewed top down or from a slight angle, etc.

i’d guess he’s thinking of a top-down riffle.  (and if so, i can vouch for results w path deforms)

Threw something together that does the job quite well. Yes, it is a top-down riffle.

“Don’t tell me how to do it, give me the code to do it!” :smiley:

You can find sample code for how to flip playing cards in Corona’s “Perspective” sample project.

I’ve run that but too vague. I’m talking about an example that provides dimensional aspect of a deck and some measure of animated movement of each card to give the illusion of a shuffle. Here’s an old link some were happy with but it is no longer valid:

https://forums.coronalabs.com/topic/22724-new-tutorial-creating-shuffling-dealing-a-deck-of-cards/

What type of shuffling animation would you want? There’s hundreds of ways to shuffle a deck, or to visualise it.

Indeed, and the number of possible visualisation methods also depends on what your game’s camera perspective is, i.e. is the deck of cards viewed top down or from a slight angle, etc.

i’d guess he’s thinking of a top-down riffle.  (and if so, i can vouch for results w path deforms)

Threw something together that does the job quite well. Yes, it is a top-down riffle.