I searched for this online before coming to the forum, but could not find anything. I increased my battlers to six, but not that they are higher on the screen. Can someone give an example of how the X & Y formulas work? Also on the Row Formation can I limit to two for each of the three rows? Thanks for any help you can give.
Battler Placement Question
RPG Maker MV SupportForgot to post
the picture.
Have you looked through the parameters in your plugins? I believe Row Formation has X/Y parameters for battler placement when they're assigned to rows, and Yanfly's Battle Engine Core (if you're using that) has them otherwise.
It would be helpful if you posted what you have and explained which parts you don't understand.
It would be helpful if you posted what you have and explained which parts you don't understand.
This is in the Battle Core but I have no clue what this means or what to change. I was hoping for so known before I start touch it too much.
They're written as code variables, but most of them have an English meaning, right?
screenWidth is the width of the screen, screenHeight is the height. statusHeight is the height of the battle status window on the bottom of your screen.
index is the index of that battler in the list (so your standard 4-actor party will have indices progressing from 0 to 3)
The numbers are numbers and the math is math.
The only one that was not immediately intuitive and I had to look up is maxSize - that's the maximum size of your battle party. So, again, unless you've changed it, 4.
But most of them don't even matter to you - just change the math. You could not know what any of the code variables represent and still change the numbers so the formula will produce a higher value Y and push them down the screen.
screenWidth is the width of the screen, screenHeight is the height. statusHeight is the height of the battle status window on the bottom of your screen.
index is the index of that battler in the list (so your standard 4-actor party will have indices progressing from 0 to 3)
The numbers are numbers and the math is math.
The only one that was not immediately intuitive and I had to look up is maxSize - that's the maximum size of your battle party. So, again, unless you've changed it, 4.
But most of them don't even matter to you - just change the math. You could not know what any of the code variables represent and still change the numbers so the formula will produce a higher value Y and push them down the screen.
I have six players and use rows too. My resolution is 1366x768. I have changed the numbers to make it grow and it smaller and nothing works. They are still stuck up high on the screen. I know it is a user error.
Then what is the formula with your changes?
I tried the following in Y to see if I can get it to move any. I tried making it more because it said to increase to move them down if I am understanding right.
screenHeight - statusHeight - maxsize * 84 + (index=1) * 84 - 32
screenHeight - statusHeight - maxsize * 48 + (index=1) * 48 + 400
screenHeight - statusHeight - maxsize * 84 + (index=1) * 84 + 200
Why would you write index=1?
If you don't have a variable that's based off the index of the actor it's calculating for, every battler is going to go in the same place on the screen.
Look at the formula you posted in your screenshot before:
So
is positioning right at the top of the status window, right?
Then
is saying go up for 48 pixels times the max party size. You said you changed your max party size to 6, but you can only have 2 actors in each row. So going up by the max party size is way too high. Logically, you would change this.
(or, obviously, you could simply type
If you don't have a variable that's based off the index of the actor it's calculating for, every battler is going to go in the same place on the screen.
Look at the formula you posted in your screenshot before:
Code:
screenHeight - statusHeight - maxSize*48 + (index+1)*48
So
Code:
screenHeight - statusHeight
Then
Code:
- maxSize*48
Code:
- 2*48
-96, but I did it that way to demonstrate you're changing the variable that contains the value 6 to the number 2)Original thread: https://forums.rpgmakerweb.com/threads/battler-placement-question.162243/