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!
Ah, 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]