Forum Discussion
Condition on Hotspots for an Order
- 15 days ago
To make this easier I'm supplying you my test .story file. I've tweaked the code a little and there are 2 slides. One where you can only go up, and not back. and another where you can go up (still can't skip a hotspot) but you can also revisit previous layers.
Reach out if you have any questions.
If you want to keep your hotspots, then all you need is a single variable to check.
Create a Number variable and call it checkSPOT and set it to a value of 0
Then on the base slide have each hotspot check a value. For example
Show layer TIER1
When the user clicks Hotspot 1
if checkSPOT = value 0
or checkSPOT = value 1
Show layer TIER2
When user clicks Hotspot 2
if checkSPOT = value 1
or checkSPOT = value 2
Just repeat this for as many hotspots you have on the base layer and so tier 3 would check value 2 and 3, Tier 4 would be values 3 and 4 etc etc.
Each tier layer has the same trigger with a different value
TIER1 is
Set checkSPOT to value 1
When the timeline starts on this layer
TIER2 sets the value to 2, Tier 3 sets the value to 3.
My code blocks anyone from seeing tiers above or below. However if you want the user to be able to revisit lower tiers then the base code is
Show layer TIER1
When the user clicks Hotspot 1
if checkSPOT (greater than or equal to) value 0
Show layer TIER2
When user clicks Hotspot 2
if checkSPOT (greater than or equal to) value 1
Related Content
- 7 months ago
- 10 years ago
- 12 months ago