Forum Discussion

KeithPace-a7c48's avatar
KeithPace-a7c48
Community Member
2 years ago

Show state with multiple dials set correctly

How do I show the "correct" layer when both arm 1 and arm 2 (dials) are set within a particular range? For example, I need the user to set one arm to the knee red dot and the other to the torso red dot. When they are both set correctly, I want to show a "correct" layer. See attached file: 

  • Hi Keith,

    I think you will need two triggers. 1 trigger for when Arm1 changes and another for when Arm2 changes.

    Show layer Correct
      When Arm1 changes
        If Arm1 is between A and B
          and Arm2 is between C and D

    Show layer Correct
      When Arm2 changes
        If Arm1 is between A and B
          and Arm2 is between C and D

  • MichaelHinze's avatar
    MichaelHinze
    Community Member

    Have a look at the attached and see if that's what you wanted. When either arm is moved a True/False variable is toggled. Based on that change the correct layer is shown if the both arm variables are within a particular range. You should adjust the starting position of both arms, so that they do not start out in the correct position already.

  • NEXT Question: is it possible to require the user to let go of the dial before triggering the correct layer? Right now the user can just slowly "scrub" the dial from left to right and the correct layer will pop up. Thoughts?

    • JudyNollet's avatar
      JudyNollet
      Super Hero

      The default Update setting for a dial (or slider) is to adjust the value as the user drags it. But you can change that so the value isn't updated until the learner releases it: