Forum Discussion

AmandaKulik-8b2's avatar
AmandaKulik-8b2
Community Member
7 months ago
Solved

Resetting Drag and Drop to Original State

Hi everyone! I have created a drag and drop interaction, and the learner has multiple attempts to get it correct. I have the slide resetting to the original state after each attempt in order to try...
  • MichaelGallaghe's avatar
    7 months ago

    Here's one way to do it.

    Create a True/False variable i.e. "Screen1Complete" with a setting of "False". Now create a Layer on the screen and name it "Audio". Put the audio on that layer instead of the base layer. On the base layer add a Trigger that says Show Layer "Audio" when the timeline starts on this layer "if" variable "Screen1Complete" is = to false. Next, add a Trigger to the "Audio" layer that says Adjust Variable "Screen1Complete" to True when the Timeline Ends on this layer.

    So the first time the user sees this screen the "Audio" Layer Shows because the variable is set to "False". Once the "Audio layer plays it changes the variable to "True. The next time they go to this screen, the variable has been set to "True", so the "Audio" layer doesn't show and no audio plays.

     

    I hope that helps.