I just switched to MZ and I am learning things over again. A few of the plugins I was using with MV aren't working anymore. I am trying to get all my actors lined up on the right side of the screen in a singe vertical line but I can't figure out to use the actors.
MZ actors sharing the same row
RPG Maker MZ SupportLook in your plugin parameters. Between the Core Engine and Battle Core (probably Battle Core) I'm sure there's a parameter for actor home position. You'd just make the X be a static value, not calculated in a formula.
I can move them all together but I can't get them to line up like I want. When I was using MV this was done with each individual actor
If you're trying to line them up vertically, just give them all the same x coordinate.
In BattleCore, under Actor Battler Settings, there is a parameter called "JS: Home Position". By default it should have the below code. On the eighth row (
x += index * 32;) change the 32 to 0 and they should all line up vertically.
JavaScript:
// Declare Constants
const sprite = this;
const actor = this._actor;
const index = arguments[0];
// Make Calculations
let x = Math.round((Graphics.width / 2) + 192)
x -= Math.floor((Graphics.width - Graphics.boxWidth) / 2);
x += index * 32;
let y = (Graphics.height - 200) - ($gameParty.maxBattleMembers() * 48);
y -= Math.floor((Graphics.height - Graphics.boxHeight) / 2);
y += index * 48;
// Home Position Offsets
const offsetNote = /<SIDEVIEW HOME OFFSET:[ ]([\+\-]\d+),[ ]([\+\-]\d+)>/i;
const xOffsets = actor.traitObjects().map((obj) => (obj && obj.note.match(offsetNote) ? Number(RegExp.$1) : 0));
const yOffsets = actor.traitObjects().map((obj) => (obj && obj.note.match(offsetNote) ? Number(RegExp.$2) : 0));
x = xOffsets.reduce((r, offset) => r + offset, x);
y = yOffsets.reduce((r, offset) => r + offset, y);
// Set Home Position
this.setHome(x, y);
Original thread: https://forums.rpgmakerweb.com/threads/mz-actors-sharing-the-same-row.163667/