Forum Discussion

CoachingTSACHUV's avatar
CoachingTSACHUV
Community Member
4 years ago

Flashcard Storyline

Hi, 

I am trying to make flashcards on storyline.

There are squares with texte that I would like to transform to pictures when the learner cliks on them, and vice versa. 

So I put a trigger to change state : normal (texte) to picture when it cliks on it. That's it ok.

But I would like that when it cliks on picture it returns on texte. I tried to put a trigger : change state to "normal" (=texte) when it cliks on object if the state of object is "picture"... but it dosen't work... when i publish to try and I click on object text, nothing passed..

Someone can helps me  ? ... and sorry for my english :) 

Thanks in advance!

Evelyne 

 

 

 

 

  • Hi Evelyne !

    One easy way to fix this is to use a True/False Variable.

    Here is a basic run down of the setup:

    • Flashcard with 2 states (A&B)
    • True/False Variable (Set to False by default)

    Triggers

    • Change state to B when variable changes. IF Variable = False
    • Change state to A(Normal) when variable changes. IF Variable = True
    • Adjust Variable (Toggle A/B) when user clicks Flashcard.

    I've attached a sample version for you if you want to look at the functionality in more depth, or feel free to use the project.

    Hope this helps!
    Owen

     

  • Another option if you simply want a "card" to always switch between states: 

    • Put the text (or whatever you want for the initial appearance) in the Normal state.
    • Add the Selected state, and put the picture (or whatever you want for the alternate appearance) in that state.

    That's it! The Normal and Selected states will toggle back and forth when clicked, because that functionality is built in. 

    • OwenCourt-feaff's avatar
      OwenCourt-feaff
      Community Member

      Wow! Thanks Judy.

      I'm always finding a longer, more complicated work around to something that's built in. Can't believe I forgot this one! 

      I'll be using this from now on!

  • Hi, 

    After trying, I can't add animations to the cards with the way of states (see judy's response) ...  Is it possible or not ? and if it, how I can add this ? 

    Thanks in advance :)