Hey, just wondering if anyone knows of a way to disable the automatic movement when holding down the left mouse button to walk? I don't want to disable it completely as I need single clicks to still move as intended. Thanks!
Disabling walking when holding left click down?
RPG Maker MV SupportAh, I can help you to disable mouse movement completely but I'm not sure how to actually disable it partially like you're saying.
I just commented out the code here to do it. This is different than you want, but it should lead you in the right direction I think.
//Turn movement of player through mouse or touch off.
Scene_Map.prototype.processMapTouch = function() {
/*
if (TouchInput.isTriggered() || this._touchCount > 0) {
if (TouchInput.isPressed()) {
if (this._touchCount === 0 || this._touchCount >= 15) {
var x = $gameMap.canvasToMapX(TouchInput.x);
var y = $gameMap.canvasToMapY(TouchInput.y);
//-------> if (Player is adjecent to event) {
$gameTemp.setDestination(x, y);
//-------> }
}
this._touchCount++;
} else {
this._touchCount = 0;
}
}
*/
};
Maybe you need to remove this part of the code?
Code:
[COLOR=rgb(136,0,0)]this._touchCount >= 15[/COLOR]
Thanks - I am not sure how to 'play around' with that touchCount - I don't know how to script etc. I tried simply changing the number 15 to another and it didn't seem to do anything! ^^
Try change
TouchInput.isPressed()
to
TouchInput.isPressed()
to
Code:
[COLOR=rgb(136,0,0)]TouchInput.isTriggered()[/COLOR]
how much of it do you need to disable it completely? does it stay disabled between maps? after game closed and reloaded
@CynicSyndrome please make a new topic for your question, we like to have one topic for each problem and not mix questions into existing topics.
Necro-post notice: CynicSynDrome
Necro-post notice: CynicSynDrome
Original thread: https://forums.rpgmakerweb.com/threads/disabling-walking-when-holding-left-click-down.63504/