Hello. In the attached, I'm trying to show the layer "feedback" after the user has clicked on both hotspots. The variable "hazards" is the counter. I suspect my "if hazards = 2" Variable Trigger is wrong or needs to execute after the Object Triggers, but I can't seem to move it. And please let me know if there's a simpler way to set this up. Much appreciate the help.
The reason why your feedback layer is not showing is because of the order of triggers.
Take a look below:
When the user clicks Hotspot 1, it changes the state of the rectangle to normal, then it sets the variable Hazard1picked to True, and it adds the value 1 to the variable hazards, but ONLY if Hazard1picked is false, which is not, since it was just set to True.
Moving the bottom trigger to the middle should do the trick:
I also noted that Hotspot 2 was set to change Rectangle 2 to normal, but I think you meant Rectangle 3.
3 Replies
Hi, Ellen.
Thank you for sharing your .story file!
The reason why your feedback layer is not showing is because of the order of triggers.
Take a look below:
When the user clicks Hotspot 1, it changes the state of the rectangle to normal, then it sets the variable Hazard1picked to True, and it adds the value 1 to the variable hazards, but ONLY if Hazard1picked is false, which is not, since it was just set to True.
Moving the bottom trigger to the middle should do the trick:
I also noted that Hotspot 2 was set to change Rectangle 2 to normal, but I think you meant Rectangle 3.
Let me know if this works!
Thank you. That's what I thought. But When I select the Show Layer trigger,
the move arrows are deactivated.
[image: image.png]
Oops - sorry. didn't read the message correctly. I was able to change the
order. Thank you so much.