6 Replies
Wendy Farmer

Hi Steve

see if the attached is calculating how you want.

you had some of the wrong variables in the triggers - i think getting confused with proactive and slider names.

When a slider is created SL auto calculates a variable called slider1, then slider2 which you can use in your triggers.

Steve Brimley

Thank you so much. Now for part 2. I have the 2nd slide displaying the result as another slider. But now a user can slide the slider and change the result. I really am going to want to have a chart with several groups of statements. Each group needs to be averaged, then displayed as a bar on the chart. Can I just have a shape change size based on the calculation?

Steve Brimley

I think I found a little cheat. I can have a rectangle with different sizes at different states (0, 10%, 20%, 30%, etc.) then display the correct state based on the variable. I didn't make 100 states, so that's why this is cheating. It will display state 30% if the variable is between 3-4. I think this is close enough. But maybe there is a better way?

Gabriella Frisoli

Wendy, I also have a slider problem. I'm trying to fill a bucket every time the user answers the question correctly. I created a variable for each question with a  value of 1. There are a total of 8 questions. The slider is supposed to move up every time they get it right and retain the value of the previous correct questions. I put a rectangle next to the slider as another hero suggested to give the illusion of bucket fill and later I'll hide the slider. However, it's not working correctly. Can you please check my variables?

Thanks!

Walt Hamilton

Several options suggest themselves.

1. It seems most likely that what you want done is easier done if you use the same slider variable (such as Slider1) for every slider. That way, the value is carried over from slide to slide, without you needing to take any action.

2. On the second question slide, a correct answer adds 2 to the Q2 variable (and you certainly want to use unique variables for each question), but the correct layer adds Q2 to Qsum only if Q2 = 1. Personally, I prefer to do all the error checking on the question slide, and set Q2 correctly before advancing. That way you still have options if it is incorrect. If you wait to do error checking on the next slide, your only option is to ignore it.

3. There are some conflicting triggers, as both slide 1.3 and 1.4 seem to add to Qsum. It is done correctly on 1.3, but not on 1.4, for the reasons mentioned in #2 above. That creates a problem where slide 1.3 changes Qsum, but slide 1.4 depends on the change of Qsum to function. Since Qsum is changed on 1.3, but not 1.4, the triggers on 1.4 are never initiated. A variable change can be "heard" only on the slide that changes it.

4. On slide 1.2 if you click back, you go to the previous slide (with the Correct layer showing, because it wasn't closed before the jump to Next). When you click Continue, Qsum is increased again. The slide on 1.2 continues to rise, but without state changes. Perhaps returning to the question shouldn't be allowed.

I didn't see your question on the other post, but I have answered it there.