Forum Discussion
Sliding Results Bar by Variable - impossible?
- 6 months ago
If you examine the JS ,I think you'll find that this does actually move the bar according to the value of the variable (0 to 100). The movement itself is triggered by the incremental changes to a variable (starting at 0 and progressing to the final value), but that all happens inside the script trigger to move the bar. The actual distance is set by the variable currently attached to the slider.
Thanks so much for the reply, Nathan!
Unfortunately, I need this for a results bar, not a progress bar. The progress bar solution is great because yes, it can advance each time a variable changes. But I need the moving bar to move only based on the variable - not that the variable changes.
For example, on the assessment, say they end up with a 7.2 out of 10. I need a bar to move 72% of the length of the motion path and stop.
The assessment result is achievable through triggers to make a variable, no problem.
I can express that result as a percentage as a variable, no problem.
Making an object move the percentage amount, the amount of the variable? Nope! I'm pulling my hair out! 🤪
Any help very much appreciated.
If you examine the JS ,I think you'll find that this does actually move the bar according to the value of the variable (0 to 100). The movement itself is triggered by the incremental changes to a variable (starting at 0 and progressing to the final value), but that all happens inside the script trigger to move the bar. The actual distance is set by the variable currently attached to the slider.