How to create a card flip effect using graphics 2.0

Hey All,

I would like to add a flip effect to my game.

Let’s assume that I have a card object. It has 2 sides (no surprises thus far  :stuck_out_tongue: ):

  1. The back of the card - some kind of a generic background image

  2. The front of the card - the actual content of the card is displayed

I was wondering whether graphics 2.0 can facilitate a flip effect where there is a nice flip transition from the back of the card to the front of the card.

Has anyone tried doing this? 

Thanks,

Z

Hi ZigZapps,

Yes, this is easily possible in a short amount of code. :slight_smile: Check out the sample project(s) in the G2.0-build application folder:

CoronaSDK > SampleCode > Graphics-Premium > Fishies2.5D

CoronaSDK > SampleCode > Graphics-Premium > Perspective

Enjoy!

Brent

Hey Brent,

I tried it and got the hang of it.

Works like a charm, simple and easy to use.

Sorry for missing this demo to begin with.

Hi ZigZapps,

Yes, this is easily possible in a short amount of code. :slight_smile: Check out the sample project(s) in the G2.0-build application folder:

CoronaSDK > SampleCode > Graphics-Premium > Fishies2.5D

CoronaSDK > SampleCode > Graphics-Premium > Perspective

Enjoy!

Brent

Hey Brent,

I tried it and got the hang of it.

Works like a charm, simple and easy to use.

Sorry for missing this demo to begin with.