Forum Discussion

NadjaSherelis-2's avatar
NadjaSherelis-2
Community Member
10 months ago

Incorrect layer shows briefly when I click continue on the Correct layer

I'm doing a lock and step type simulation and when they get a step correct, I have a layer popup that says Correct with a "continue" button to take them to the next step, but everytime I click the "continue" button, the "incorrect" layer briefly flashes. Does anyone know why this is happening? I've tried several different things to get this to stop. But so far nothing is working. Thoughts?

Thanks,

Nadja

  • It would be a lot easier to have useful thoughts if we could see it. Attach the .story file here, please.

  • I kind of know what the problem is. On the base layer, I have a trigger that states, if the user clicks outside of the button, show the "incorrect" (or try again) layer. So what happens when the user does click the button, and the correct layer shows, then the user clicks "continue" to move to the next step, the "incorrect" layer quickly appears because it thinks the user is clicking outside of the button. What I don't understand is why is the trigger on the base layer being activated on the correct layer. I need to figure a way to stop the trigger from being active on the correct layer. File attached.

  • My guess is that your hint caption's hover is still active when you're on the correct layer and that's causing the issue.

    Try adding the slide layer property "prevent the user from clicking on other layers" option.

  • The base layer trigger is always going to be active because of the way you have the trigger set since they are always clicking outside of button 1.

    You could create a hotspot that sits on top of everything but button 1. And then add the triggers to the layers based on clicking on the hotspot rather than outside of button 1. The try again buttons will be on top of the hotspot, too.

  • David's solution also works, I think. I'd still do a hotspot but that's a matter of preference

  • The setting "Prevent user from clicking on other layers". Worked.

    Thanks guys. You really helped me out a lot! Much appreciated.

    Nadja