I have graphics that change states when clicked (from normal to visited). I want to make it so that it changes BACK to the original form when clicked a second time. I can't figure out why this trigger sequence doesn't work; it changes to visited but then doesn't change back when clicked a second time. (attached).
I agree working with image states this way can be a little quirky sometimes.
First, storyline will automagically set the image state to "Visited" when clicked, so you do not need the first trigger in your panel.
Second, sometimes I have trouble going back to the "Normal" state via a trigger, so what I do is duplicate the Normal state to create a custom image state, then target that custom state with my trigger.
So I would do something along the lines of "change image state to "CustomState1" if image state is equal to "visited"".
"Normal" is a strange state as far as storyline is concerned particularly if you use selected or visited. Often an object that is selected/visited will also validate as normal, this is because the built in states are hierarchical and are all inherited built upon Normal, much better to follow Brian's suggestion and use a custom state
I found that it seems if what you click to change state is also in the new state then you can click it again to go back. If your new state is completely different it doesn't seem to be able to set a trigger to go back. I've been intending on experimenting with invisible boxes over the top to act as a trigger for things like that. I've not got around to it yet though but I can't see why it wouldn't work.
Thanks for the speedy reply, Phil and Brian! Unfortunately, it didn't work when I created a custom state. I feel like I am losing my mind, because this should be so simple :)
Here you go. get rid of all those triggers and buttons. Insert a box and put the text in there, add a selected state with a tick and jobs a good'un. select and unselect. That's what you're trying to do right? I only did the marriage box.
a bit more work as you have lots of buttons but you could use a toggle variable to change the state - see attached I only worked on button 1 - maybe you can use at a later date
I played with every state and trigger and couldn't work out how to do a simple "on/off" such as this. Finally I duplicated the layer so that the markers were separate.
Layer 1 Trigger - Show layer 2 when user clicks Marker 1
Layer 2 Trigger - Hide this layer when user clicks Marker 1
Thanks so much Steve VE! This totally just saved me. Adding the unneeded trigger of "Change state to visited when clicked" was clearly messing stuff up. The one trigger back to Normal was all it look. Thanks so much!
Okay, I have grouped objects on a free-form question slide. They have a normal and a selected state. They automatically move from normal to selected when clicked, but I am unable to get them to move back to a normal (or even Deselected) state. These are possible answers to the questions so I need them to deselect, any ideas?
If you're having trouble with the state of your objects and you're using triggers, it would help to have folks in the community take a look at your .story file.
Are you able to share a copy of your file with us? If so, you can upload at this link using the Add Attachment button or you always have an option to share privately with our Support Engineers. Either way, we'll delete it when done testing.
OK, so thanks to Steve VE (and others, but mostly Steve VE) I threw together this little example (attached). Now, mine is different, in that I have rectangles over my images (solid color, with transparency set to 0%), but the triggers work great! Tell me if you find anything wrong with my method, please! If there is a better way, I'd love to know!
***Note that my "selected" image with the glow is actually in the visited state of the rectangle, not the image! I know, it's weird, but it works! :D LOL Anyway, this will work for my tiny quiz. and I thank you all!!
17 Replies
Hi Anne,
I agree working with image states this way can be a little quirky sometimes.
First, storyline will automagically set the image state to "Visited" when clicked, so you do not need the first trigger in your panel.
Second, sometimes I have trouble going back to the "Normal" state via a trigger, so what I do is duplicate the Normal state to create a custom image state, then target that custom state with my trigger.
So I would do something along the lines of "change image state to "CustomState1" if image state is equal to "visited"".
"Normal" is a strange state as far as storyline is concerned particularly if you use selected or visited. Often an object that is selected/visited will also validate as normal, this is because the built in states are hierarchical and are all inherited built upon Normal, much better to follow Brian's suggestion and use a custom state
I found that it seems if what you click to change state is also in the new state then you can click it again to go back. If your new state is completely different it doesn't seem to be able to set a trigger to go back. I've been intending on experimenting with invisible boxes over the top to act as a trigger for things like that. I've not got around to it yet though but I can't see why it wouldn't work.
Thanks for the speedy reply, Phil and Brian! Unfortunately, it didn't work when I created a custom state. I feel like I am losing my mind, because this should be so simple :)
It may be easier to just get rid of the visited state and use normal and selected this way you don't need triggers
Here you go. get rid of all those triggers and buttons. Insert a box and put the text in there, add a selected state with a tick and jobs a good'un. select and unselect. That's what you're trying to do right? I only did the marriage box.
Anne:
You only need one trigger to make this work. If you have a visited state, it will show when you click it without having a specific trigger for it.
The only trigger you need is "change state marriage to Normal when the user clicks If marriage's state is equal to Visited"
I hope that works for you.
Thanks, everyone!
Hi Anne
a bit more work as you have lots of buttons but you could use a toggle variable to change the state - see attached I only worked on button 1 - maybe you can use at a later date
I played with every state and trigger and couldn't work out how to do a simple "on/off" such as this. Finally I duplicated the layer so that the markers were separate.
Layer 1 Trigger - Show layer 2 when user clicks Marker 1
Layer 2 Trigger - Hide this layer when user clicks Marker 1
Hi Rachel, that's a neat idea! If you have any specific questions on this, let us know and we'll point you in the right direction!
Thanks so much Steve VE! This totally just saved me. Adding the unneeded trigger of "Change state to visited when clicked" was clearly messing stuff up. The one trigger back to Normal was all it look. Thanks so much!
Love that this older thread is still helping folks out Angela :) Thanks for chiming in to share.
Okay, I have grouped objects on a free-form question slide. They have a normal and a selected state. They automatically move from normal to selected when clicked, but I am unable to get them to move back to a normal (or even Deselected) state. These are possible answers to the questions so I need them to deselect, any ideas?
Hi MeShell,
If you're having trouble with the state of your objects and you're using triggers, it would help to have folks in the community take a look at your .story file.
Are you able to share a copy of your file with us? If so, you can upload at this link using the Add Attachment button or you always have an option to share privately with our Support Engineers. Either way, we'll delete it when done testing.
OK, so thanks to Steve VE (and others, but mostly Steve VE) I threw together this little example (attached). Now, mine is different, in that I have rectangles over my images (solid color, with transparency set to 0%), but the triggers work great! Tell me if you find anything wrong with my method, please! If there is a better way, I'd love to know!
***Note that my "selected" image with the glow is actually in the visited state of the rectangle, not the image! I know, it's weird, but it works! :D LOL Anyway, this will work for my tiny quiz. and I thank you all!!
Thank you!
This discussion is closed. You can start a new discussion or contact Articulate Support.