Forum Discussion
Drag drop group state
Hi everyone,
I'm trying to build a Drag&Drop interaction with 1 target and 3 drag groups: GroupCorrect, GroupWrong1, GroupWrong2.
Each group is composed by a text box, a png image and a storyline shape.
The groups have 3 states: Normal (colour blue), Drop correct (colour green), Drop Incorrect (colour red).
I'd like the interaction to work like this:
1) The drag groups have to return to start point if dropped outside any drop target
1) If I move GroupCorrect to the target and submit, GroupCorrect has to turn green
2) If I move GroupWrong1 to the target and submit, GroupWrong1 must turn red, GroupCorrect must turn green, Group Wrong2 must not change
3) If I move GroupWrong2 to the target and submit, GroupWrong2 must turn red, GroupCorrect must turn green, Group Wrong1 must not change
So far I've tried to work with the Drag&Drop basic settings and to:
- add to every object of the group the Drop correct and Drop incorrect state
- remove the text box, keep the png image inside the group and write the text inside the shape
- remove the text box, move the png image inside each state and write the text inside the shape
All of the above doesn't work :(
I've also tried to:
- create custom state
- create 3 invisible additional targets, one for each of the drag group
- create a system of variables to track which answer has been moved last, by combining the interactions of the groups on the real target and the additional target
- I've added in the Correct\Incorrect layers a group of triggers that track these variables and force the custom state change
So far so good, BUT it all goes bonkers when any of the WrongGroups is dropped outside the real target or the additional target. I think the problem is that there is not a way to tell storyline to do something "when a drag group is dropped outside any drop target".
Any idea anyone?
- MichaelBauerCommunity Member
Perhaps have a think about if this actually needs to be as involved as you are trying to make it. What if you get rid of your first statement The drag groups have to return to start point if dropped outside any drop target, does that help?
I suggest uploading a copy of the file for someone to have a look at, as descriptions of what you are trying to do can also make it sound confusing - like trying to describe how to tie a shoelace.
- AndreaCagliCommunity Member
Hi Michael, I've added the .story file as you suggested, hope that helps.
We've been thinking about changing the interaction, but before taking that road we are trying to understand if it's something doable or not.
- BrianAllenCommunity Member
What if you create a drop zone the size of your slide and make it an incorrect drop zone?
- AndreaCagliCommunity Member
We've tried to do that. What happens is that the drag object goes back to the center of that slide-sized drop zone. But we need it to go back to its original place.
- BrianAllenCommunity Member
Andrea, have you tried setting this option in the Drag & Drop Options? It *should* bounce the item back to it's starting point.
- AndreaCagliCommunity Member
Just un update: we gave up as it couldn't be done.
- ModassarWarsiCommunity Member
I was curious and was trying this even when you gave up on this. However, I see the file that is attached works perfectly. Maybe during these 2 years, the Storyline update did the wonder! :P