Yanfly Battle Core - Anyway to slightly offset the Home Y position of actors in front view battle?

ello, just kind of a quick question, wondering if theres a fomula to slightly offset the Y position of actors when front view battle is active?

its just kind of a visual thing, my HUD is front view and has a slight tilt and just thought itd look better if the y positions of the actors matched the diagonal line, i tried to use the default formula and modify it silghty but it seems to affect all actors and doesnt position them in a diagonal like they would in the default sideview, any way to do this?
i tried to use the default formula and modify it silghty but it seems to affect all actors and doesnt position them in a diagonal like they would in the default sideview, any way to do this?
if you were able to piece together something that was able to adjust their y positions, you could add a little bit of math using the actor's index() within the party to shift them up/down a little more, no?
like do what you did, but then also add something along the lines of "-battler.index()*24" so that each actor is 24 pixels higher than the previous one in the party
Can you clarify what you're asking? Maybe show a screenshot?

wondering if theres a fomula to slightly offset the Y position of actors when front view battle is active?
Actors are not shown at all in frontview battle. That's the definition of frontview. Actors are only shown at all in sideview.
Can you clarify what you're asking? Maybe show a screenshot?


Actors are not shown at all in frontview battle. That's the definition of frontview. Actors are only shown at all in sideview.

of course, in yanfly's battle core there is an option for front view battlers
1729528001476.png

my hud is actually not meant to have front sprites but the status and other animations and effects are still affeced by the Y position

1729528178525.png


if i add the actors sprites you can tell that they match the same Y position, like the yellow line, what i seek is to just slightly offset them so they match the blue line, it is only for aestethic purposes, though it would also come in handy since itd hide part of the animations so theres no cutoffs in some of em, either way i dont mind if this is not possible, just wanted to see if i can go the extra mile for it

if you were able to piece together something that was able to adjust their y positions, you could add a little bit of math using the actor's index() within the party to shift them up/down a little more, no?
like do what you did, but then also add something along the lines of "-battler.index()*24" so that each actor is 24 pixels higher than the previous one in the party

i tried using the index() but didnt seem to affect em in anyway, lemme add as you wrote it there and see if works, thanks.
if i add the actors sprites you can tell that they match the same Y position, like the yellow line, what i seek is to just slightly offset them so they match the blue line
You can see from the default formulae in those parameters that there's an index variable already provided to you. That's how it knows not to draw them all in the same place.

1729529096339.png


So all you need to do is incorporate it into your Y formula.

For example:
1729529186446.png
i tried using the index() but didnt seem to affect em in anyway, lemme add as you wrote it there and see if works, thanks.
if thats where youre putting it, its likely that its being ran within the actor's sprite, not the actor themself. i forget offhand and i cant check till later, but try this.battler().index(), this._battler.index(), or this._actor.index()

EDIT: Turan's got that more than covered 😛
You can see from the default formulae in those parameters that there's an index variable already provided to you. That's how it knows not to draw them all in the same place.

View attachment 321011

So all you need to do is incorporate it into your Y formula.

For example:
View attachment 321013

1729530004938.png


yep that seemmed to do the trick, as you can see even the status effects are affected by it, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-core-anyway-to-slightly-offset-the-home-y-position-of-actors-in-front-view-battle.172736/