Show layer after selecting two hotspots

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.

3 Replies
Maria Costa-Stienstra

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:

Windows 10 (1) 2021-11-09 at 10.39.40 AM

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:

Screen Recording 2021-11-09 at 10.42.37 AM

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!