i did the global variables, but i can't seem to get it right. I can't understand much from the links. Is it okay for you to explain in more detail?
Thank you very much :)
At the event '-> On drag start' you'll need to set those global variables to position of your object:
DragStartX=Object.x
DragStartY=Object.y.
Then on event '->dragNDrop dropped':
if(not overlapping TargetObject)
.. set object.x to DragStartX
.. set object.y to dragstartY