Random Panda

Veteran
Veteran
Joined
May 3, 2016
Messages
97
Reaction score
20
First Language
English
Primarily Uses
RMMV
Hi All. I was wondering if anyone knew if you can use conditional if statement in Yanfly's Battle Engine Core X and Y Positioning for battlers. I was hoping to do something like this for the Y position.

if ($gameParty.members().length == 1 (800)) else (500 + index * 120)

Basically, i would like it to center the players vertically based on party size in stead of the default where it starts a single character at the top.

Any help is always appreciated.
 

Random Panda

Veteran
Veteran
Joined
May 3, 2016
Messages
97
Reaction score
20
First Language
English
Primarily Uses
RMMV
I actually ended up figuring out a solution using this.

(180 / $gameParty.members().length) + 465 + (index * 120)

Figured I'd post it, in case it can help someone else.
 

Latest Threads

Latest Posts

Latest Profile Posts

Anyone want dynamically soft shadow? :kaohi:
1643106068630.png
Happy Birthday, me!
Woops.
giphy.gif
Ack, I've got to make a script support thread... I hate doing it now; I feel like an annoyance to people. Especially because my questions are usually stupid. Or, at least I assume they are when I don't get any replies lol. Oh well, I'll just make it in the morning. No point doing it now if I'll be asleep.
Slowly working on directions and walking sprites. :kaoback:
mA1ETTy.jpg

Forum statistics

Threads
118,685
Messages
1,117,874
Members
155,807
Latest member
exrtcyvigubhinjomk44
Top