(I'm new to the forums and RMMV, please let me know if I'm doing anything wrong!)
I'm using a couple plugins for battle UI purposes, and one of my main focuses right now is getting damage popups to work with a frontview UI. I'm using Victor's Battle Status Window for the overall UI appearance, Victor's Damage Popups for the actual popups themselves, and I'm using Yanfly's Battle Engine Core with DreamX's VE Damage Popup Extension to make the popups appear over the battle status window. The way the plugins work, to the best of my knowledge, is that Yanfly's battle engine core turns on the battler sprites underneath the battle status window, and that's what anchors the damage popups. I got this to work nicely when the party is full, but I'm having problems making it look nice when the party doesn't have a full four members.
When the party has four members, the damage popups show over the correct portrait, as seen in this picture:
(Please don't mind the two empty portraits-those are still a work in progress, haha)
However, when the party has less than four members, the damage popups get skewed to the left:
I believe I know what the actual issue here is. YEP Battle Engine Core has a parameter in the frontview UI section that allows you to change where the battler sprites are positioned using a formula. I am not very good at math so I just tweaked the numbers in the formula until it looked nice, and so the battler sprites are positioned correctly from the left side of the screen under the battle status window. However, when there isn't four characters in the party, the battle status window portraits are centered, whereas the battler sprites are all positioned to the left side. I was hoping someone who is better at coding and/or math could help me figure out a positioning formula that would account for the centering thing when there's less than four party members!
If it helps at all, here's what the UI looks like when it's not mid-action:
And this is what my X-position formula currently is! Again, I just tweaked numbers in the formula until it looked good in-game, so if this is painful to look at for anyone who is good at math... my sincerest apologies.
Graphics.boxWidth / 10 + Graphics.boxWidth / 5 * index + 12
I'm using a couple plugins for battle UI purposes, and one of my main focuses right now is getting damage popups to work with a frontview UI. I'm using Victor's Battle Status Window for the overall UI appearance, Victor's Damage Popups for the actual popups themselves, and I'm using Yanfly's Battle Engine Core with DreamX's VE Damage Popup Extension to make the popups appear over the battle status window. The way the plugins work, to the best of my knowledge, is that Yanfly's battle engine core turns on the battler sprites underneath the battle status window, and that's what anchors the damage popups. I got this to work nicely when the party is full, but I'm having problems making it look nice when the party doesn't have a full four members.
When the party has four members, the damage popups show over the correct portrait, as seen in this picture:
(Please don't mind the two empty portraits-those are still a work in progress, haha)
However, when the party has less than four members, the damage popups get skewed to the left:
I believe I know what the actual issue here is. YEP Battle Engine Core has a parameter in the frontview UI section that allows you to change where the battler sprites are positioned using a formula. I am not very good at math so I just tweaked the numbers in the formula until it looked nice, and so the battler sprites are positioned correctly from the left side of the screen under the battle status window. However, when there isn't four characters in the party, the battle status window portraits are centered, whereas the battler sprites are all positioned to the left side. I was hoping someone who is better at coding and/or math could help me figure out a positioning formula that would account for the centering thing when there's less than four party members!
If it helps at all, here's what the UI looks like when it's not mid-action:
And this is what my X-position formula currently is! Again, I just tweaked numbers in the formula until it looked good in-game, so if this is painful to look at for anyone who is good at math... my sincerest apologies.
Graphics.boxWidth / 10 + Graphics.boxWidth / 5 * index + 12