Drag and Drop - Snap to location
I've been trying to figure out how to create a snap to location when the user drags (text) to an image which has a box underneath it. An Example scenario is when the user drags the (text) to the image, the text would stay on top of the image. What I want to happen is if the user gets the answer correct the text would snap into the text box below the image, but if they got it wrong it would return back to where it started from.
If someone could give me some advise on how this could be done would be much appreciated.