Forum Discussion

RonnaPerez's avatar
RonnaPerez
Community Member
26 days ago

Drag & Drop Answer Help

Hello all!

 

I'm still pretty new to Storyline, but I'm trying to create a drag and drop interaction that will only allow the user 3 attempts before it shows the answers. I currently have it set up for them to have 3 attempts, but I cannot figure out how to have that trigger it to show the correct answers.

 

If someone could help, that would be great! I attached my file.

1 Reply

  • Here’s how the program works by default when a question allows more than one 
    attempt.

    • The Try Again layer shows when the user answers incorrectly and they haven’t 
      used up all of their attempts.
    • After the last allowed attempt, the program shows either the Correct or Incorrect layer, based on how the user answered.

     

    The button on your Try Again layer has a trigger to restart the course. That's not the default.

    Restarting the course makes the slide start all over, which means the counting of Attempts restarts. In other words, that count will never reach 3 attempts. The only way out of that loop is for the user to answer correctly. If they do that, the Correct layer will show. So that trigger needs be edited back to the default trigger for the Try Again button: Hide this layer. 

    The slide is also missing the Incorrect layer. It needs that layer in case the user's answer is still wrong on their last allowed attempt. So you'll have to add it back.

     

    When the Try Again layer is closed, the question still shows the person's previous 
    answer(s), but it allows them to change their answer. 

    In the case of a drag and drag, the draggable items can be moved to other locations. However, because they remain wherever the user originally dragged them, the user might not realize that. 

    To make them return to their original positions for the next attempt, do this: 

    Give each draggable item a line motion path that is 0 pixels long. That should have a duration as short as possible.

    • Note: When you add a motion path, the program automatically creates a trigger to move the item on that path when the timeline starts. Delete those triggers. 

     

    On the Try Again button, add triggers to move each draggable object on its 0-pixel motion path. Here's one example of how that would look: 

    FYI: With a drag and drop, the program doesn't have a way to indicate what the correct drop targets are. As desired, add that info to the Incorrect and Correct layers.

    BTW, it would be much easier to program and troubleshoot if you gave objects meaningful names. It's very confusing to see default names like this: 

     

    For reference: