Forum Discussion

hectorteran's avatar
hectorteran
Community Member
11 years ago

restore dragged object position if dragged into incorrect place.

here's the scenario:

a slide with four text boxes (a, b, c and d) and four rectangles(1, 2, 3 and 4).

each text box can be dragged into any of the four rectangles but only one would be considered as correct, so, lets supose that the text box "a" have to be dragged into rectangle 1 in order to be considered as correct, so:

if the user drags the text box "a" into the rectangle 1, then this will happen:

the text box will turn green, the state of the text box will change to disabled so the user can't move it again and a layer with a positive msg (to reinforce the learning proccess) that can be hidden clicking on an oval in order to continue will be showed.

but if the user drags the text box "a" into rectangles 2, 3 or 4 then this will happen:

the text box will turn red, the state of the text box will change to drop incorrect and a layer with a tip message (to help the user to drag into the correct position)  that can be hidden clicking on an oval in order to continue will be showed.

here's my question: how do i make that the text box "a" returns to it's original position after the user dops it into an incorrect rectangle?

i've tried two things:

changed the state of the text box to "drop incorrect" but it only allows me to change the format of the text box (change it into red as said before) but the text box remains where it was droped and i can't find a place where i can tell storyline to restore the original object position if the state is drop incorrect.

used the option "dragged over" instead of  "dropped on" and "technically" does the job (returns the text box into it's original position) but i don't feel like really happy with this option basically because drag over and drop on are diferent types of interaction.

here you can find an example of what i've told you in this long post: http://ares.unimet.edu.ve/acad/Convenciones/story.html

and here is the .story file http://ares.unimet.edu.ve/acad/Convenciones/convenciones.story if you want to check it.

my best regards to you all. (excuse my english since it's not my mother tounge)