No Mouse Dashing

This is a teeny little script snippet that makes the character walk at a normal speed when you're using the mouse for player movement.

Just copy the text below into a plain text editor and save it in your plugins file with a .js extension. Name doesn't matter. Add to your plugins, and no more fast walking with mouse click.

Code:
(function() {
    Game_Player.prototype.updateDashing = function() {
        if (this.isMoving()) {
            return;
        }
        if (this.canMove() && !this.isInVehicle() && !$gameMap.isDashDisabled()) {
            this._dashing = this.isDashButtonPressed();
        } else {
            this._dashing = false;
        }
    };
})();

Free to use, including commercially
Thanks for this, @Shaz. I was considering disabling mouse movement entirely because of the weird auto-dash function.
It bugged me, but when I had an event following the player and it kept jumping between tiles instead of walking, I knew I had to do something about it. I thought it would be much harder to track down and remove.
thanks @Shaz , but could I ask something?
Is there a way to add the option to run only when double click ?
Does MV even have a double-click detection? It's not something I would have time to research and test, as it would make it quite a bit more complicated than it already is. If you can find someone who's willing to do it for you, go for it.
I absolutely love scripts like that - already thought about that annoying feature too 🙂 Anyway I'm happy you already solved it
Yass! My mobile game is designed around time management... You saved me from making oversized maps/padding due to that stupid point dash bug. Thanks man!
I haven't tried this yet, but will it disable mouse dashing when i toggle dashing "On' in my option? By default, i want to disable mouse dashing, but enable again when "Always Dash" option is activated.
It makes the player walk at normal speed when using the mouse. That is all. It has nothing to do with when dashing is enabled/disabled on the map, and nothing to do with options.
Hey there!
First of all, thanks for this, I really needed it.
But I'm having a problem;
Now, when I click somewhere I wanna walk, the player turns in that direction, but doesn't move at all.
Is there any fix?
Thanks
Does it work when you use the mouse? If so, it's not an issue with this plugin, but with your tileset passage settings.
Does it work when you use the mouse? If so, it's not an issue with this plugin, but with your tileset passage settings.
After some troubleshooting, I realized the following:
  • I can walk and turn perfectly using the arrow keys
  • When I click somewhere in the map, the character will turn in that direction, but won't walk
  • If I click several times on a place, the player will finally move there, but I gotta click like 5 times
  • Disabling your plugin (Turning it off) makes the mouse movement work normally... But of course, the character dashes like racing car, which is what I'm trying to avoid
Also, I think it may be an important detail that I'm doing Parallax Mapping (No tiles), and using YEP Region Restrictions.

Any ideas?

Thank you by the way <3
Create a brand new project and ONLY add my plugin. Does it work on that? If it does, then it's likely some incompatibility between my plugin and another one you have.
Holy crap this plugin helps me so much. It is EXACTLY what I wanted. It not only disables the 'forced' Dash option of Mouse Movement but you can STILL hold Shift to Dash 'during' Mouse movement. It also IS affected by Dash settings being ON or OFF so you basically have the exact same settings for Keyboard movement and Mouse movement. Thank you!
Thank you!
It also works on MZ!
Thank you Shaz, it appears to work in MZ with no conflicts so far, with a lot of active plugins!

My game is designed with gamepad in mind, but a mouse oriented user requested this feature, as my game has a stamina system and dashing all the time was disruptive. Auto-dashing on mouse click just wasn't right!
By default, i want to disable mouse dashing, but enable again when "Always Dash" option is activated.
This snippet should actually do just that. Since the "Always Dash" setting just flips the output of isDashButtonPressed(), this will still make the player dash when the setting is on, and not dash when it's off.

Original thread: https://forums.rpgmakerweb.com/threads/no-mouse-dashing.92399/