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).

Version 1.0.0. Published January 8, 2018

Created with GameMaker: Studio v1.4.1772

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Gravatar

Anonymous 07 September 2018

Package contents

Loading, please wait

What is the issue?

Back to Top