Forum Discussion
Correct State Won't Show
Hi!
I have a slide in a project (attached) that has a shape with multiple states as well as several layers.
My problem lies in the "Rear Brakes" state. When the user finishes clicking through the layers and clicks "Finish", the shape jumps back to the "Welcome"/"Normal" state; it does not stay on the "Rear Brakes" state.
I've tried multiple "change state" triggers, conditions on my existing trigger, a variable, and comparing other slides in the project that are similar, but they look the exact same and this one won't work.
Can someone look at my slide and tell me what I'm missing?
**Note: you'll have to click through "Quarter Fenders" before you get to the Rear Brakes section
TIA!
- SamHillSuper Hero
Hi StefanieKirs743 if you would like the layer that contains the "pass rear brakes" to return to the previous state, try changing the properties Resume saved state.
If this still does not work, you will have to use a variable to track the status. For example, when the user first selects the hotspot, you could then set a T/F variable, for example passRB, to True. Then when the layer is opened again, you can then set the state of any images on this layer to the correct state based on the value of passRB when the timeline starts on the layer.
It's quite hard to understand the set-up of the project and so I can't really dig too deep into it and give a specific answer.
- StefanieKirs743Community Member
Thanks SamHill! I was able to get the state to change, but the "Welcome" audio won't stop playing when I finish the layers...
- SamHillSuper Hero
You should trigger the welcome audio based on a variable, welcomeAudio, value using an IF statement, e.g IF welcomeAudio = false, play media...etc.
Set welcomeAudio to true when the audio has finished playing (or started playing).
- StefanieKirs743Community Member
SamHill here's the variables I have now...I've tried like five different versions of this and I can't get the welcome audio to stop in the "Rear Brakes" state when the user finishes the layers. Also, despite having a trigger for it, the picture in the "Rear Brakes" state is not being marked as visited (it should have a thin red box around it so that the user can move on).
- Set welcomeAudio to value False when the timeline starts on this layer
- Play audio Welcome Caption when var. changes if welcomeAudio=False
- Set state of Description to Rear Brakes when timeline starts on layer if passRB=True and state of RB Click Square=Visited (is something in this trigger removing the Visited state?)
- Set welcomeAudio to value True when welcomeCaption completes
- StefanieKirs743Community Member
Never mind! It was a trigger problem-I duplicated the slide and starting from scratch helped me fix it :)
Hi StefanieKirs743,
I'm glad to hear you got this resolved! If you run into any trouble moving forward, please feel free to reach out here or privately in a support case.