Forum Discussion
Averaging variable from sliders
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.
Related Content
- 10 months ago
- 2 years ago