A1. 在 YEP X Action Sequence 3 中添加一行this.x += Math.round($gameScreen.shake());
//=============================================================================
// Spriteset_Battle
//=============================================================================
Spriteset_Battle.prototype.updatePosition = function() {
var zoom = $gameScreen.zoomScale();
var clamp = BattleManager.cameraClamp();
this.scale.x = zoom;
this.scale.y = zoom;
var screenX = -1 * $gameScreen.zoomX() * zoom + Graphics.boxWidth / 2;
var screenY = -1 * $gameScreen.zoomY() * zoom + Graphics.boxHeight / 2;
if (clamp && zoom >= 1.0) {
var clampX1 = -Graphics.boxWidth * zoom + Graphics.boxWidth;
var clampY2 = -Graphics.boxHeight * zoom + Graphics.boxHeight;
this.x = Math.round(screenX.clamp(clampX1, 0));
this.y = Math.round(screenY.clamp(clampY2, 0));
} else if (clamp && zoom < 1.0) {
this.x = Math.round((Graphics.boxWidth - Graphics.boxWidth * zoom) / 2);
this.y = Math.round((Graphics.boxHeight - Graphics.boxHeight * zoom) / 2);
} else {
this.x = Math.round(screenX);
this.y = Math.round(screenY);
}
this.x += Math.round($gameScreen.shake()); // <-- 添加此行
};
收起