Below is the code I'm using for drag & drop of an object...
/// CREATE
selected = false;
/// STEP
if (selected){
x = mouse_x;
y = mouse_y;
}else{
x = xstart; //return to initial x location
y = ystart; //return to initial y location
}
/// LEFT PRESSED
selected = true;
/// LEFT...