YesNoOk
avatar

Lifebar Powerbar Repositioning Issue (Read 490 times)

Started by Shironeko, February 21, 2019, 05:25:14 am
Share this topic:
Lifebar Powerbar Repositioning Issue
#1  February 21, 2019, 05:25:14 am
  • ***
  • ❤ Graphical Enthusiast ❤
    • Japan
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 :)
Last Edit: February 21, 2019, 05:31:27 am by Shironeko
Re: Lifebar Powerbar Repositioning Issue
#2  February 21, 2019, 09:20:12 am
  • ****
  • Semi-Retired
  • IWGP Hebikyu Senshuken
    • New Zealand
    • Skype - king.of.ahipara
    • network.mugenguild.com/devon/
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.
PM me if you'd like a logo for your project.
Re: Lifebar Powerbar Repositioning Issue
#3  February 22, 2019, 04:44:08 am
  • ***
  • ❤ Graphical Enthusiast ❤
    • Japan
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
Re: Lifebar Powerbar Repositioning Issue
#4  February 23, 2019, 03:18:19 am
  • ****
  • Semi-Retired
  • IWGP Hebikyu Senshuken
    • New Zealand
    • Skype - king.of.ahipara
    • network.mugenguild.com/devon/
p1.range.x and p2.range.x needs to be adjusted. Do the bars fill towards the timer or away from it?
PM me if you'd like a logo for your project.
Re: Lifebar Powerbar Repositioning Issue
New #5  February 23, 2019, 07:20:55 am
  • ***
  • ❤ Graphical Enthusiast ❤
    • Japan
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 ^^
Last Edit: February 26, 2019, 08:58:32 am by Shironeko