The Mugen Fighters Guild

Help => M.U.G.E.N Configuration Help => Topic started by: Azul Crescent on February 21, 2019, 05:25:14 am

Title: Lifebar Powerbar Repositioning Issue
Post by: Azul Crescent on February 21, 2019, 05:25:14 am
So i'm no stranger to repositioning lifebars powerbars so that they are on the top rather than the bottom...and I was previously able to reposition these Powerbars so they were underneath the Lifebars, and it worked. But I wanna relocate them to above the Lifebars, and i got the right position for the sprite that surrounds/contains the Powerbar meter, but whenever i try to reposition the Powerbar meter (it's 30 sprites, and i relocated all of them to the correct pos), for some reason it's completely cut off and doesn't correctly represent the current power levels.

Here's an example shot, this is launched from Fighter Factory and have powered both characters to 300 respectively, and as u can see, it's largely cut off. And i cannot figure out why. (Am referring to P2's powerbars, as that's all i've relocated so far).

Spoiler, click to toggle visibilty

Does anyone know how to fix this? Thanks in advance :)
Title: Re: Lifebar Powerbar Repositioning Issue
Post by: President Devon on February 21, 2019, 09:20:12 am
I can tell you right now it's related to the range.x code.

But to get a better look, please post the whole code under [powerbar] please.
Title: Re: Lifebar Powerbar Repositioning Issue
Post by: Azul Crescent on February 22, 2019, 04:44:08 am
I can tell you right now it's related to the range.x code.

But to get a better look, please post the whole code under [powerbar] please.

Sure, here's the code.
Spoiler, click to toggle visibilty
Title: Re: Lifebar Powerbar Repositioning Issue
Post by: President Devon on February 23, 2019, 03:18:19 am
p1.range.x and p2.range.x needs to be adjusted. Do the bars fill towards the timer or away from it?
Title: Re: Lifebar Powerbar Repositioning Issue
Post by: Azul Crescent on February 23, 2019, 07:20:55 am
p1.range.x and p2.range.x needs to be adjusted. Do the bars fill towards the timer or away from it?

They fill away from the timer.

Edit: I figured it out. This whole time i was modifying the x + y coord's via the SFF, when i should of just been modifying the pos via the fight.def. Works perfectly now~


Spoiler, click to toggle visibilty

Thank you for your help ^^