DnD
Intuitive scripts for instantly adding the drag-and-drop ability to your project
How to use DnD in 4 easy steps
1. Create event
dnd_create(x,y);
2. Global Left Mouse Pressed (Pick up)
if (mouse_is_here(x, y, x+w, y+h)) {
dnd_pick_up();
}
3. Global Left Mouse Button (Drag)
if (dnd_is_dragging()) {
// get xy position
x = dnd_drag_x()
y = dnd_drag_y()
}
4. Global Left Mouse Released (Drop)
dnd_drop();
Objects
oGlobal
oDnD
End User Licence Agreement (EULA).