Triggers and Returning to Normal State
Mar 07, 2013
I am trying to create two triggers for one shape - where when the user clicks the shape the first time, it changes states to "new state" and when they click it a second time, it changes back to normal. I've given the shape two triggers, both with conditions. The first trigger is "change state of Rectangle 1 to New State when User Clicks Rectangle 1 with the condition that Rectangle one's state is equal to Normal." and the second trigger is "change state of Rectangle 1 to Normal when User Clicks Rectangle 1 with the condition that Rectangle 1's state is equal to New State." However, this is not working. The first trigger will work on its own, but as soon as I add the second trigger, nothing works. What else do I need to do to make this work?
36 Replies
I posted about it here: https://community.articulate.com/discussions/building-better-courses/cannot-make-this-work-select-shapes-and-give-2-attempts
It's a regular slide on which I added multiple shapes to be selected and some to be left out of the selection. See the faulty file attached (SL360).
Hi Helene,
Thanks for sharing a copy of your .story file. I took a look in Storyline 360 and I was able to click on the objects to see the selected state. I could also click to unselect it - so that element does seem to be working correctly for me. Was there one object in question that caused you difficulty so that I could focus there?
Hi Ashley
Thank you for your reply. I am travelling back to Canada at the moment. The issue is simply that my try again and incorrect layers are not appearing.
Hi Helene
I've just taken a look at your file - I can't see a trigger to show the layers 'try again' or 'incorrect'. There is only a trigger to show the 'correct' layer?
Sorry Helena - I thought you were having issues with the states, but it looks like Wendy has you covered here! You could also look at using the built in pick many freeform to set up this question - then you wouldn't need triggers to show the layers based on a user answering correctly or incorrectly.
I think I figured it out! The answer is no triggers. If you leave the button with no triggers, and only change the built-in states, it toggles on its own. My normal state is a blue button, my selected state is a grey button with text. It toggles back and forth between blue and grey each time I click it.
Hi Sam from my new computer (the other one just died 2 days ago and I am still trying to recover my files on the hard drive!). I used the by default mode first but it wasn't toggling at all. Maybe if you use buttons it does? I used shapes and added some states. It worked only after I added one trigger only to toggle states.
Hi Helene,
Yes, my original comment was regarding a button. I just tried it with a shape and it also worked. I added a selected state and left it with no triggers. I'm working on Storyline 2 update 11 if that helps or makes a difference. Here's the file for your review.
Thank u I still have to reinstall everything on my new computer. Before it wasn't working, it was changing to the selected mode but not back to normal when clicked again. I will try again after I have everything organised here!
Helene,
If you run into any issues with installing and activating Storyline on your new computer it could be because it'll still recognize the previous activation on your dead computer - not to worry! Just reach out to our Support Engineers here and they'll be able to assist!
I'm not familiar with variables, so I just used slide layers and used shapes to cover up background images and arranged them accordingly. Able to click back and forth -- no problem!
This discussion is closed. You can start a new discussion or contact Articulate Support.