Icon

Drag and Drop

Boolean Dimensions

You must be logged in to obtain assets

Description

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

  • Creates all global variables
  • Handles common controls such as game exit, game restart

oDnD

  • Example object for using the DnD scripts

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS1 - Version 1.0.0. Published January 8, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait