Forum Discussion

ChristieSilver's avatar
ChristieSilver
Community Member
28 days ago

Adding a Pop-up Layer to a True/False Quiz with a Health Gauge

Hi there, 

My team and I have created a true/false quiz project with a 'health' gauge that moves in response to user's answers. Users start in the middle of the gauge - correct answers move the gauge up by a value of 1, incorrect answers move it down by 1. My team is trying to add a 'warning' pop up that displays when users get multiple questions incorrect and the 'health' gauge hits the bottom rung. 

We're having a hard time figuring out how to set this up so that the gauge moves and reliably displays the pop up (only and always) when users are at that bottom rung. 

We've managed to get it mostly functional using triggers, but at times its still not functioning as expected, due to negative values. 

I've uploaded a copy - if there is a more simple way of accomplishing this, or if we're just missing additional triggers, please let me know!


Thanks!

1 Reply

  • The slider steps run from 0 to 4, starting in the middle at 2.

    First, since the starting point is in the middle, and going up is positive and going down is negative, I suggest the slider steps range from a negative number to a positive number, with 0 as the starting point.

    Because there are 5 questions, the slider should be able to go up 5 (if the user answers every question correctly) or down 5 (if the user answers every question incorrectly). 

    In other words, I'd set the slider like this: 

    Also, you don't need other variables to hold different number values. The trigger condition for showy the Stormy Waters layer could just check the value of the quizGauge variable. For example:

    •  if quizGauge = -3 
    •  if quizGauge is between -3 and -5

     

    It looks like the user might be able to retake the quiz. At least, that's what I assume the RESTART button on the last slide is for. If so, it needs to have a trigger that resets the variable to its midpoint. Be sure that trigger comes before the trigger that jumps to another slide.

    BTW, Question 1 has a different Slide Master layout applied than the other 4 questions. I suggest you switch so they all use the same layout.