Thanks, I'll try this a little later on and see if it works like I'm hoping it will!
[[EDIT]] But as it turns out, it's SO close, but not quite there. I'm probably doing something wrong because every time I change a couple of Actors Rows, the entire Formation is relocated.. Here's what I have in my set up:
Row 1 Home X: maxRowX - (maxRows - rowId) * 50
centerY + ((rowSize / -2 + 0.5) + $gameParty.members().indexOf(this._actor)) * 50
And the same thing in Row 2 Home X & Row 2 Home Y. So I imagine it's something I've done incorrectly..
However, with the suggestions you gave, the Actors did line up quite nicely when they were all in the Front Row!! Any Advice?
Thanks,
-Mia 🙂
Wow now that I know the way to get party index into formation its working now
$gameParty.members().indexOf(this._actor) thanks!
By the way If you dont want your whole formation to change when they change row you need to make sure that you remove centerY altogether from the equation since centerY change depend on how many actor is in the row you would want to put something like this into both Row 1 Home Y and Row 2 Home Y instead.
Row 1 Home Y: $gameParty.members().indexOf(this._actor) * 48 + 180
Row 2 Home Y: $gameParty.members().indexOf(this._actor) * 48 + 180
The formation should work but you can adjust them to fine tune to fit you game
Where 48 can be change to adjust how far away each member from each other vertically.
Where 180 is starting position of your top most character increase this will push the whole formation down the screen decrease it will push the whole formation up the screen
Also you will need to stop the change in X position(horizontal position) too
Row 1 Home X: $gameParty.members().indexOf(this._actor) * 20 + 500
Row 2 Home X: $gameParty.members().indexOf(this._actor) * 20 + 650
This will make it so your member remain stationary when other member change their row since rowIndex no longer in the equation of horizontal.
Where 20 can be change to emulate the perspective. Increase this will make the whole formation slant more to the right
Where 500, 650 is screen position of the Row. Increase this value will push respective row to the right of the screen
*
Edited: Ok I've found a slight problem with above setting first it will make a small party 1-2 actor party to be on the very top part of the screen because it basically start lining up player on top of the party position on top of the screen regardless of party size. But I've found a solution.
First edit the plugin parameter
Row 1 Home Y: $gameParty.members().indexOf(this._actor) * 48 + 350 - centerY
repeat for row2, row3 if you use them
then
Center Row Y: partySize * 24
where 24 should be half of value 48 in Row 1 (vertical distance)
as you can see the higher the party size the bigger will centerY be which in turn will push the whole formation upward.
You will have to adjust these number to fit your game screen and setup though but i got mine working.