Drag and drop elements stacking on top of each other

May 25, 2018

I've created a slide consisting of drag and drop list. The user would re-order the list as they see fit, however as you can see from the screen shots some of the elements are stacking on top of each other, even though the underlying hotspot is set to tile. Any assistance would be appreciated.

Thanks

4 Replies
Walt Hamilton

It looks like all the elements start ABOVE the drop target. SL does not consider them IN the drop target until you actually move them. As such, not being IN the target, they are not bound by the rules that govern tiling. If you could see them well enough, you would see that the dropped ones are actually tiling.

You need to start them somewhere where they are not covering the drop target.

Walt Hamilton

Not a built-in method.  You would have to write your own triggers. You could have ItemA move to ItemB's original spot when ItemB is dropped on  ItemA without too much of a problem. The most likely insurmountable problem with that is if you drag one item onto another, it is dropped on the second item, which intercepts it from dropping on the actual target. If it drops on another item, it moves it, but doesn't register as being on the target, and if it drops on the target, it doesn't move the other item.

I would look at making the items appear one at a time, and drag them to the correct one of nine clearly marked spots. You could make the whole list available as a hint in a light box, if you think it is needed.

The other option is to list the items on one side of the screen, and drag them to the other side.

Or a third option is that you can (easily) be much more clever than I, and come up with a really creative way to do this.

Jean-Guy  Boulay

The best way would be to have a trigger that reacts to the object being dropped outside of the target. Currently there are only two triggers: dropped on target or dragged over target. It's built into the Drag and drop quizes, I don't think it would be too hard to have a separate trigger for interactions outside of a quiz.