Drag and Drop Help
May 13, 2016
Hi everyone,
I am trying to create an interaction where the user can drag objects to any point on the screen but the question will not be correct until the four correct drop targets have had any of the dragable shapes placed on them. I think I have most of the triggers set, for this type of interaction. My issue comes when I want the Correct, Try again and incorrect layers to show when the submit button is clicked. I cannot get the incorrect layer to come up and I am not sure what I am doing wrong or missing. This layer is important because it will serve as a review source if the user gets the answer wrong too many times. Any help would be very much appreciated.
Thank you!
8 Replies
Hard to tell without seeing the file, but the incorrect layer is designed to show up only on the last allowed attempt. Every time before that, the Try Again layer shows.
If you would like somebody to take a look, use the ADD ATTACHMENT button to attach your .story file to this thread.
I have attached my storyline file, I appreciate the help.
Hi Melissa,
I believe part of the trouble may be that you don't have the drop targets set to show the correct answers. Click over to the Form View, and set your drop targets to show where the draggable shapes should be dropped.
I read a couple of blogs and tutorials that show doing that as a work around to make it so there isn't a specific drop target for each item (essentially allowing each drag item to have more then one drop target). I need the user the be able to drop any of the brown squares on the image and have the answer register as correct only when any of those shapes are dropped on the four correct drop targets. It becomes tricky when you have to assign each square to a specific target because I have no way of know which square they are going to choose to drop one which drop target. I need to have a way for all the drag items to have more then one drop target.
It sounds like you may want to do something like what this sample does.
yes but instead of having one of the drag items wrong I would have 5 targets and only 3 of the targets would be correct. once three of the however many available drag items were place on the correct drag targets. Does the way I have my file sent up make sense? It works the say I want until I get to having the layers show up what necessary
Melissa,
This trigger :
doesn't work because the Try Again layer increments the countAttempts variable, so AttemptCount never gets to 2.
The trigger to show the Correct layer works, but you never see the layer because this trigger immediately covers it with the Try Again layer:
For these conditions, you should forget the states and use the answerCorrect variable, which does work.
Here's how they should look:
Thank you Walt, it's working just as I hoped. :) May I ask your opinion on how I set up the rest of the interaction for this scene?
This discussion is closed. You can start a new discussion or contact Articulate Support.