Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Mighty Mouse Plugin for RPG Maker MV

Adds additional mouse related functionality to MV including drag & drop. · By Kingpin RBD

Bug?

A topic by Makeratore created Mar 26, 2021 Views: 455 Replies: 14
Viewing posts 1 to 2

I installed your Mighty Mouse plugin (version 1.25) in a new blank project (RPG Maker MV version 1.6.2) without any other plugin, but right after clicking on "New game", it shows this error "Uncaught ReferenceError: width is not defined". Maybe is that a bug?

Developer

That should be fixed now with v.127 alongside a few other potential issues. I was able to create a 1.6.2 project & get it to work with that update. If it's not resolved please let me know so that I can work on it again. 

(1 edit)

Thanks! Now it works! But there's another thing... I don't know if this is an issue. So, when I drag an event with <draggable> tag in its notes and with random/autuonomous movement activated, it goes faster and it doesn't stop moving while it is being dragged. Same thing happens when "stepping" is activated in the event options. Then, when I place the event, it goes back to normal speed and normal frequency for both stepping and random/autonomous movement. This issue doesn't appear if the event doesn't have "stepping" option activated or if it doesn't have a random/autonomous movement. It would be nice if the event continued to step while it is being dragged if "stepping" option is ON, but its frequency/speed shouldn't go faster. And if the event has an autonomous movement, it should stop to move completely while it is being dragged (except for "stepping" animation if that's ON in the event options) until it is placed.

Developer

The speed concern you're having isn't related to a bug. The reason the object's position is able to keep up with the cursor's sudden position changes reliably is due to a tied-in increase in movement speed. Otherwise it would likely appear as if the object is following the mouse & playing catch up vs being dragged by the cursor. Keep in mind that this plugin is actually emulating standard drag & drop. It's not unlocking a built-in capability. That fact is why it can do so much more like manage location by tile and snap into place & even work with events & other objects without issues. Pausing autonomous movement during drags should be easy enough to incorporate I believe. I'll look into that. There is no way to have it continue stepping without the movement speed being affected though for the reason I mentioned above. At best I can have it disable stepping when being dragged to avoid the speed-up effect being seen.

Developer

I've added the feature of pausing step movement & autonomous event movement on drag to versions 1.29 & 1.69 which are now posted. Once again I can't make it an option to let stepping remain enabled while dragging without the speed suddenly picking up so I think having it pause instead is the best trade-off. Since I typically code most things from scratch while using events mainly as placeholders, I had no idea about the autonomous movement issue tbh but it was relatively easy to get fixed. It works on my end at least.

(3 edits)

Ok so, it works partially. The autonomous movement pauses well if you place a draggable event on a tile in which there isn't any other event, but if you place a draggable event over another event, the draggable event goes back to its position and the autonomous movement doesn't resume and it remains paused. I noticed that this issue doesn't appear if you set Stackable Object to "true" in the plugin parameters.

Developer (2 edits)

Re-download the file. That should be fixed now too. Oh, & if you were asking whether the snap back feature was a bug, it's not. The stackable option was created to overwrite that as desired.

Yeah, I know that the snap back feature is not a bug. Anyway, I re-downloaded the file, but the autonomous movement still remains paused if the draggable event is placed over another event.

(2 edits)

I'm sorry if I'm bothering you, but maybe I found another little issue. So, when I drag a draggable event over an impassable tileset (not event), the draggable event doesn't snap back to its position and it remains blocked over the impassable tileset without moving at all. You can encounter this issue if Stackable Objects is set either to true or false.

Developer

Re-uploaded the latest versions again. I added a new feature to both that blocks objects from being dropped on impassable tiles now. I fixed a typo I made in the last update & I'm hoping that fixed the autonomous movement issue on your end. Even with the typo it already works right on my end for whatever reason. As soon as an even snaps back it starts moving again. It also works with stackable switched on for me. The events start moving after the drop. Not sure why its not working for you unless maybe I uploaded the wrong file before. Try it again.

I re-downloaded the file. Now the draggable event snaps back to its position if it is placed over an impassable tileset, but the autonomous movement remains paused. I don't know why it is not working for me, but it is working for you. I recorded a little gif to show the issue: https://imgur.com/tVMfFd9

Developer (1 edit)

Ok, so after updating my test project files to 1.6.2 I was able to reproduce the issue. Seems to have been cause by a typo. A missed capital letter in a variable name to be exact, but fixing that seems to have once again fixed the issue on my end. Try re-downloading the file again & let me know if it doesn't work.

Yes, the autonomous movement works! But now I can drag all the events (included the ones that don't have the "draggable" note/comment). That's so strange.