How to create a flipping card effect?
stefdelec
Member, PRO Posts: 146
Hi,
I am trying to make a flipping card effect when actor is touch. I can't find a way. Any help?
Thanks,
Stéphane
Comments
One thing people do is to interpolate the width of the actor to 0 (or a small value) and then back to its full width.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Tks for the tips! Sound perfect! ;-)
One way to flip a card in GS you would need to animate the flip as a graphic, i.e., you need a series of images that animate a card flipping,
another way would be to change the cards width to simulate the card turning over, i.e., on event, interpolate the cards self size width to say 0 then interpolate it back to its normal size! that could give the flipping effect, also if you wanted it to seem like it comes closer to the camera, have the self size hight increase too and then back to normal when the flip is finished,
hope that gives you some ideas..
Best
Jay
@tatiang haha you beat me too it
Also, A word is written on the actor, using display text. But it doesn't "flip" with the actor. How could I? Does i have to an image?
(I have tried the first option with interpolate)
The best way I found of doing it without using separate images was to do as @tatiang suggested, but stop displaying the text when the card reaches a certain width. It's not perfect, but it deals with the text issue to some extent.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@armellin I didn't understand what you explained about the text.
I ve understand ;-) THanks
Helps to make the flip quick to help the illusion.