Game_Player.prototype.moveByInput = function() {
if (!this.isMoving() && this.canMove()) {
if (Input.isTriggered('pageup')) return $gameTemp.reserveCommonEvent(11);
if (Input.isTriggered('pagedown')) return $gameTemp.reserveCommonEvent(12);
// 上两行为新增内容,位于rmmz_objects.js第8320行
let direction = this.getInputDirection();
if (direction > 0) {
$gameTemp.clearDestination();
} else if ($gameTemp.isDestinationValid()) {
const x = $gameTemp.destinationX();
const y = $gameTemp.destinationY();
direction = this.findDirectionTo(x, y);
}
if (direction > 0) {
this.executeMove(direction);
}
}
};
Game_Player.prototype.moveByInput = function() {
if (!this.isMoving() && this.canMove()) {
if (Input.isTriggered('pageup')) return $gameTemp.reserveCommonEvent(11);
if (Input.isTriggered('pagedown')) return $gameTemp.reserveCommonEvent(12);
// 上两行为新增内容,位于rmmz_objects.js第8320行
let direction = this.getInputDirection();
if (direction > 0) {
$gameTemp.clearDestination();
} else if ($gameTemp.isDestinationValid()) {
const x = $gameTemp.destinationX();
const y = $gameTemp.destinationY();
direction = this.findDirectionTo(x, y);
}
if (direction > 0) {
this.executeMove(direction);
}
}
};
|