Forum Discussion

DarjaS's avatar
DarjaS
Community Member
2 days ago

Normal state when Alow only one item in each drop target

Hi, I have a drag-and-drop interaction with 3 objects and 3 corresponding targets.

If a user drags an object and drops it on a target already occupied by another object, the displaced object automatically returns to its starting position. When this happens, I would like to reset the state of the displaced object back to Normal (or its default state).

How can I achieve this?

  • Is this a Drag and Drop you built from Scratch or are you using the Quizzing option?  What States and Triggers do you currently have?  It would be easier to troubleshoot if you could share your Story File.

  • DarjaS's avatar
    DarjaS
    Community Member

    I'm attaching a test file with sample that shows what I mean... I made my own states for correct and incorrect because sometimes when I had multiple drag and drop objects, the system didn't work reliably as I expected.

  • I believe you can accomplish what you want by removing all of those State Change Triggers and editing your correct and incorrect states to Drop Correct and Drop Incorrect.  As long as you are in a quiz questions, these states function automatically without worrying about triggers