Forum Discussion
Drag and Drop
Hi,
I've created a drag and drop interaction (see attached) but I can't seem to get it to work properly.
I want each statement to appear, the user drops them on one of the drop targets, if they get it wrong it snaps back, if they get it right the statement disappears and the next statement is revealed.
Does anyone know how I can achieve this?
Thanks!
2 Replies
- JudyNolletSuper Hero
I think the attached file does what you want.
Here's the Drag & Drop options. Note that the Feedback is not delayed. That allows for using the Drop Correct state in a trigger. (Also note that the Drop Correct state is on the item that is dragged, and not on the target.)
To hide a correctly dropped item, I used three triggers. The first is a Flash emphasis animation. That's followed by a Shrink emphasis animation. When that completes, a motion path moves it off the slide. (I didn't set it to Hidden, because it needs to be scored.)
Notice that I gave meaningful names to draggable objects and the targets. I highly recommend you do this. It's quite helpful for programming and troubleshooting.
I only added the animations and triggers for the 1st draggable item. I suggest you edit them to get the look and time you want, and then repeat them on all the other draggable items.
By the way, I also rearranged the slide so the SMART Goal target is on the left, the Not SMART target is on the right, and the draggable items appear in the center. This ensures the program can properly recognize where the user is dropping an item.
- dorothy3242Community Member
One way it could be done:
Remove all your current triggers
Set your drag and drop like this:
On the drop targets, remove the states - the drop hover was only working on the correct drop target in this set up, so we just want to clean it up.Instead, add states to your text boxes:
The "drop correct" state for the text box is blank. So when it is dropped incorrectly, it will snap back to the original location. When dropped correctly, it will shift to the invisible "drop correct" state.
Related Content
- 10 months ago
- 2 months ago