How can I reset a drag and drop activity?

Sep 09, 2022

Hi All, 

I am building a many to one drag and drop activity, in which the 100 draggers are freely placed on a target.

What I am trying to do is to reset the draggers to their initial positions when clicking a reset button.

I used the motion path to do so, as follows: 

  • Building a motion path for every dragger that has a 0 px length. 
  • Change the default time to 0.5 sec. 
  • Trigger the motion path when the user click the reset button. 

It worked .. but only for one time! the other times I used it, it stops moving the draggers to their initial positions. Anyway to make the motion path repetitive? 

I cannot use the idea of making the slide "reset it initial state" when revisit, as I want to keep the latest formations the user made, when revisiting the slide. 

So .. this is the idea I have .. any solution to it .. or any other idea is welcomed .. and I would be thankful :) 

Have a nice Friday!

4 Replies
Ahmed Jendeya

Hi Tom, 

This is exactly the way I designed the activity. But I am now thinking that the problem may be in the fact that I have 15 objects stacked over each other! So .. I am not sure when the activity is running and I hit reset may be a kind of shuffle is made! 

Anyway, I will rebuild the activity and I believe it most likely will work fine. 

Thank you so much for taking the time doing this.