Mordayn

Villager
Member
Joined
Jul 1, 2020
Messages
7
Reaction score
11
First Language
English
Primarily Uses
RMMV
Hey guys, I was looking everywhere for some simple code to make drag and drop events without requiring a plugin and was able to come up with a pretty easy solution so I thought I'd Post it. Currently the code allows for stacking of events and allows you to pull the lowest value Event ID from the stack. I may look into pulling the top event ID later but it seems to work decent enough for basic drag drop functionality.

Video Demo:


Here's a screenshot of the Event code page 1 and page 2 as well as some extra code that disables the player move command in case you need that.
drag drop event code.png
 

ShadowDragon

Realist
Regular
Joined
Oct 8, 2018
Messages
8,231
Reaction score
3,504
First Language
Dutch
Primarily Uses
RMMV
even if it works to drag and drop, I wonder how the play walk while doing so.
or toggle mouse for movement or not as the last scriptcall does.

it would be ideal if those cannot stack, so you can build a nice drag and drop
if they save the position when you leave the map for building a town or room :)

nice tutorial though.
 

xabileug

Regular
Regular
Joined
Jul 1, 2014
Messages
665
Reaction score
279
im very interested in the drag drop of events.. there's only 2 plugins i know - tomoaky TMEventClick.js and Kingpin MightyMouse plugin..

i already have a working picture drag with collision plugin..

it would be awesome in events - especially for puzzles, match3..
 

Latest Threads

Latest Posts

Latest Profile Posts

Updated my game's development post with the first video of it in action!


'Milestone Get!' :p
Heh, heh. I've been experimenting with a naughty word detector Common Event and using scripts to check certain strings. I never thought I would see such language in computer code. I would post a screen shot, but it probably wouldn't be appropriate, even with a Spoiler. But it certainly makes me laugh and it works great.
Yknow what? Im seriously considering recruiting a manager to oversee my games development.
Because I cannot focus or complete these tasks by myself. I need someone to give me orders, without having them be my boss.

Forum statistics

Threads
136,806
Messages
1,270,205
Members
180,559
Latest member
Cringe
Top