How to create a flipping card effect?

stefdelecstefdelec 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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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

  • stefdelecstefdelec Member, PRO Posts: 146

    Tks for the tips! Sound perfect! ;-)

  • jay2dxjay2dx Member Posts: 611
    edited January 2015

    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

  • jay2dxjay2dx Member Posts: 611

    @tatiang‌ haha you beat me too it :)

  • stefdelecstefdelec Member, PRO Posts: 146
    edited January 2015

    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)

  • ArmellineArmelline Member, PRO Posts: 5,369

    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.

  • stefdelecstefdelec Member, PRO Posts: 146

    @armellin I didn't understand what you explained about the text.

  • stefdelecstefdelec Member, PRO Posts: 146

    I ve understand ;-) THanks

  • GnarlyGnarly canadaMember Posts: 840

    Helps to make the flip quick to help the illusion.

Sign In or Register to comment.