Mordayn

Villager
Member
Joined
Jul 1, 2020
Messages
7
Reaction score
10
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
Veteran
Joined
Oct 8, 2018
Messages
7,243
Reaction score
2,866
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

Veteran
Veteran
Joined
Jul 1, 2014
Messages
510
Reaction score
168
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 Profile Posts

So... me, always ALWAYS late.. have started reading the One Piece manga. So far I'm impressed with it. It's definitely a fun read. The only thing I need to get used to is every... single... character having a flashback story. Wifey is a huge fan and she's asked me to draw Nami and Boa Hancock for her. So I may post those drawings here XD
My brother makes some inane complaint about one of my stories in the comment section. My mom: if your bro doesn't understand it make it simpler. That prolly means others have questions too.☺️Me: Sorry. I can't do that. I don't speak stupid.
If you are ever looking for your cat among a room full of identical looking cats just find the one that is doing it's best to ignore you.
Isn't "tableau" such a fun word to say? Even better is that our resident artists know what it means without google and probably get to say it regularly.
ScreenShot_3_27_2023_4_30_39.png
one of the benefits of doing almost all the assets myself is being able to add my friend's OC from his comic book into my game as an NPC.

Forum statistics

Threads
129,894
Messages
1,206,030
Members
171,072
Latest member
mimbry
Top