Two clicks to toggle variable?

Hi-
I'm trying to create a flip card interaction in Storyline 360 by using a toggle variable to change states on an object. Works pretty well, except the first time I click to flip the card object, I have to click twice. After that, I only need to click once to change states.

Here's my setup.

object is named Card - has 2 states: normal and FLIPPED.

Variable: cardFlip, T/F type, default value False.

Slide triggers:

1) Change state of card to FLIPPED when cardFlip changes if cardFlip is equal to False.

2) Change state of card to Normal when cardFlip changes if cardFlip is equal to True.

Card trigger -

Toggle variable cardFlip when the user clicks.

Any idea why it takes 2 clicks to initially change states? I'm sure I'm missing something obvious. story file is attached.

Thanks, Steve.

16 Replies
Steve Jones

Hi Wendy - that's exactly what I'm trying to do.  However in my .story you need to click twice to get the first "switch" to happen.

Did figure out a solution - 

added an new object (100% transparent) that's placed directly over my flip card. Add 2 triggers to this object - first changes the state of my flip card to flipped, the second hides the transparent object.

Thanks for all the responses everyone!

Vincent Scoma

Hi Jean-Marc,

Thank you for letting us know! 

Another option that might help is to convert the slide into a Pick Many question. This will allow you to:

  • Define which parts of the airplane are the correct answer.
  • Let Storyline reset the image if the learner answers incorrectly.
  • And the Reset button can be used for learners to start over if they want to undo their choices. 

You can find more details on this type of question here: Storyline 360: Pick-Many Questions

If this isn't quite the solution you are looking for, please let us know. We are happy to help! 

Daniel Megson

I had this recently and it was resolved by deleting the object and rebuilding it from scratch. Interestingly, the only thing I could see that was untoward was that some triggers had somehow been copied inside to states - these couldn't then be deleted. I did manage to remove these states by cutting the items out from the state back to the layer, removing the triggers, and then pasting them back in the state. However, even from doing that the object wouldn't behave as expected until I rebuilt it.

Tom Kuhlmann

Just posting this for people who look at the thread.

I know this an older post, I still don't know why one needs to use variables and a toggle. Create the shape with a selected state and it works as desired with no triggers or variables required. 


https://360.articulate.com/review/content/c23515c9-a217-4250-b102-7575abe7856c/review