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:
Add a new variable with an initial value of zero. (Use the X icon under triggers)
Add a trigger that adds 1 to the count variable each time it is clicked (sequence this so it is the top trigger on your button)
Add 5 triggers to the same button that show the related picture layers (1 trigger for each picture). Add a condition to the triggers that the count variable is equal to 1 for the first pic, 2 for the second pic, 3 for the 3rd, etc..
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.
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..
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..
This discussion is closed. You can start a new discussion or contact Articulate Support.