Showing Layers with Triggers
Hi, Newbie here.
I have to create the following in Storyline.
I have 5 pictures. I want to show a different picture each time a button is clicked. I have each picture on its own layer.
So the first time the button is clicked picture 1 will show, the second time the button is clicked picture 2 will show, etc.
I'm stumped! I've done this in Flash but can't figure out how to do it here in Storyline.
Thanks!
7 Replies
You just need a variable and trigger that counts the button clicks, and a trigger for each picture with a condition that the count variable's value equals a specific number.
Here is what you need to do:
Hello Karen,
You can check this thread out: http://community.articulate.com/forums/t/24718.aspx
Good Luck,
Donna
Thanks both of you. One question, Josh, do I change the usage variable (under the X icon)? thanks.
Thanks Donna for the link to the discussion. That helped a lot. This "project" is supposed to be a sample for a new job. Hate when I'm under pressure.
Hi Josh,
I thought I had it but for some reason I'm not getting it to add 1. I'm missing something. Any suggestions?
Where did you place the trigger? You should select the button and then click the "create new trigger" button. The trigger should look like this:
That should be the first trigger under your button. Follow that trigger with the triggers that identify which image to reference:
Attached is a file that shows what I was thinking. I added another trigger that resets the count variable to 0 once it reaches 5 so it will cycle thorugh images again. The second slide adds additional functionality by adding states to the button and then using aditional triggers to change the state to show which image it will show on the next click.
Hope it makes sense.
Oops! A note on the second slide - I used the same count variable, so it may not start with image 1 since I didn't reset the count variable as you enter the second slide..