Jump to content


Photo

dragNdrop Scripts

scripts

  • Please log in to reply
2 replies to this topic

#1 RossSolutions

RossSolutions

    GMC Member

  • GMC Member
  • 78 posts
  • Version:GM:Studio

Posted 12 August 2014 - 10:01 PM

Welcome, and thank you for stopping by the dragNdrop scripts forum. Please feel free to ask questions
about the dragNdrop scripts asset package. Purchase the scripts here: dragNdrop Scripts
 
1121_original.png?1407785833
**the above image shows the dragNdrop scripts being used.
**white blocks are using the simple scr_dragNdrop() script and can be moved anywhere.
**orange blocks are using the extended dragNdrop script scr_dragNdrop_ext() and can only snap to the blue squares.
 
 
The dragNdrop scripts asset package contains a total of 9 scripts, and 1 manager object. There are also a
few included plain text files to help you unlock the full potential of these scripts.
 
This package was developed to make adding drag-and-drop functionality to any object a much simpler process.
It was also designed with the knowledge that one size does not fit all. That's why there are 2 primary scripts,
that do all the work for you, and 7 additional scripts that can be used to customize drag-and-drop features
for your project.
 
Full documentation is included with this asset package.
 
 
You may:
  • Use these scripts in YOUR project for commercial purposes; just make sure the scripts themselves are NOT made available to your customers.
You may NOT:
  • Resell these scripts.
  • Share/distribute these scripts in a way that they can be used by other people.
 
---------------------------------------------------------------------------------------------------------------------------------------------------
Manager Object:
obj_dragNdrop_Mngr -
This object is essentially a data storage object used by all dragNdrop scripts.
It is a key component to the functionality of the scripts; luckily for you though,
there is no need to add this obj to any of your rooms.
 
The script "scr_dNd_getManager" always makes sure 1 instance of this manager
object exists when called; and if it cant find 1, it creates 1 instance of
obj_dragNdrop_Mngr for you.
 
Scripts that use scr_dNd_getManager:
  • scr_dNd_drag
  • scr_dNd_drop
  • scr_dNd_snapBack
  • scr_dNd_snapTo
 
---------------------------------------------------------------------------------------------------------------------------------------------------
Primary Scripts:
scr_dragNdrop(objToMove, dragDepth, mouseDragIcon);

scr_dragNdrop_ext(objToMove, dragDepth, mouseDragIcon, snap_obj, snap_x, snap_y, maxDistX, maxDistY);
//parameters "snap_obj" to "maxDistY" are optional arguments (fully explained in the documentation)
 
Additional Scripts:
scr_dNd_drag(objToDrag, dragDepth, mouseDragIcon);

scr_dNd_drop(objToDrop);

scr_dNd_getDist(value_1, value_2);

scr_dNd_getManager();

scr_dNd_snap(objToMove, snap_obj, snap_x, snap_y, maxDistX, maxDistY);

scr_dNd_snapBack(objToDrop);

scr_dNd_snapTo(objToDrop, pos_x, pos_y);
 
---------------------------------------------------------------------------------------------------------------------------------------------------
 
[Development of additional features is currently on hold]
Upcoming features:
  • drag-and-drop multiple objects at once (with 1 line of code)

 

Feel free to leave suggestions for new features.

Edited by RossSolutions, 06 December 2014 - 07:29 PM.

  • 0

If you have any requests for code, art, or audio assets, please contact me through my profile; or via email at RossSolutions_Games@yahoo.com.

 

View my assets on my publisher page at: Ross Solutions


#2 RossSolutions

RossSolutions

    GMC Member

  • GMC Member
  • 78 posts
  • Version:GM:Studio

Posted 15 August 2014 - 03:25 AM

This space has been reserved for FAQ's.


  • 0

If you have any requests for code, art, or audio assets, please contact me through my profile; or via email at RossSolutions_Games@yahoo.com.

 

View my assets on my publisher page at: Ross Solutions


#3 RossSolutions

RossSolutions

    GMC Member

  • GMC Member
  • 78 posts
  • Version:GM:Studio

Posted 18 August 2014 - 07:34 PM

Uploaded a video of the dragNdrop Scripts in action, check it out.

The video shows the demo included with the asset package.


  • 0

If you have any requests for code, art, or audio assets, please contact me through my profile; or via email at RossSolutions_Games@yahoo.com.

 

View my assets on my publisher page at: Ross Solutions






Also tagged with one or more of these keywords: scripts