Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] More than 500?????how could it be?
#1
My problem is that I have a type 0 state 3000 ball with a negative injury in it. When the ball hits the character, he gains that amount. However if the character hp is 500 the hp bar goes all dark red. when he receive another ball the character hp goes empty. And now when I hit that character with a normal attack his hp bar goes dark red again then normal as if the character had gained more than 500 hp points. Is there any explaining for this???
Regards,
A-MAN
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:
#2
Health-bars are optimized for 500hp. That's hardcoded. It guarantees a flawless working under normal circumstances. In fact, you can increase the normal red to ~510 or so :p

I haven't checked out the logic behind the bar-drawing, but I assume it's just some random division-stuff (seeing that around 5hp or something like that map onto 1px) together with modulo-madness.

Generally, you can get as many hp as possible (or as many as the variable-type supports (guess something like 2^32)), it's just that the hp-bar doesn't work then. This is the reason why it's good style to spawn a milk bottle after healing to revert the hp to 500 in case it was over (refer to >this<).


@v: harr harr, I'm a ninja :ninjad:
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by: A-Man
#3
This is what happen when HP goes more than 500.I think it's known.
Characters don't loose a single point of HP when they become so.


If you haven't play this http://www.lf-empire.de/en/lfe-fileplane...potion-lf2 ,here is such effect and some similar things as i remember,if you are interested.


Fast writer BP
Reply
Thanks given by: A-Man
#4
too much hp will also delete or kill a character ... neat side effect
Reply
Thanks given by: A-Man
#5
(01-31-2012, 06:17 PM)YinYin Wrote:  too much hp will also delete or kill a character ... neat side effect

Do you remember the limit that was needed for it to happen? Never tested it that far :p
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by: A-Man
#6
(01-31-2012, 06:17 PM)YinYin Wrote:  too much hp will also delete or kill a character ... neat side effect

really? Didn't know that. (no sarcasm intended)
That's pretty c00l
Reply
Thanks given by: A-Man
#7
can healing a character kill it if its mark is 550 hp?
in not into dc much but im a much better dcer than spriter

@everyone: havent been on lately been to bored
My new Char!!! (Click to View)
:wtf:

~Sym
Reply
Thanks given by: A-Man
#8
(01-31-2012, 06:17 PM)YinYin Wrote:  too much hp will also delete or kill a character ... neat side effect
Are you sure? I know exactly that the char will die in stage mode, but it works fine in VS or battle mode. I gained about 10000 hps and the bar goes blank, but nothing goes wrong.(One of my self-made, over-powerd char. :D)
To topic: Yeah, if you don't want to have that over-flowing hp, use a techniques like this:
Code:
<frame> 360 heal500
   pic: 84  state: 3  wait: 1  next: 362  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79 hit_a: 0  hit_d: 0  hit_j: 0
   opoint:
      kind: 2  x: 40  y: 40  action: 20  dvx: 0  dvy: 0  oid: 122 facing: 0
   opoint_end:
   wpoint:
      kind: 1  x: 40  y: 40  weaponact: 20  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 21  y: 18  w: 43  h: 62
   bdy_end:
<frame_end>

<frame> 362 heal500
   pic: 84  state: 17  wait: 1  next: 363  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79 hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 40  y: 40  weaponact: 20  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 21  y: 18  w: 43  h: 62
   bdy_end:
<frame_end>

<frame> 363 heal500
   pic: 84  state: 17  wait: 2  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79 hit_a: 0 hit_j: 0 hit_d: 0  
   wpoint:
      kind: 1  x: 40  y: 40  weaponact: 1000  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 21  y: 18  w: 43  h: 62
   bdy_end:
<frame_end>

This place motivates me to become an artist, this place motivates me to learn coding, this place made me grow up, showed me the ways to interact with people. Unlike the old childish of me myself, I've learned a lot and gotten some experiences. For me, it's not just a fan forum, it's a helpful community. From a noob to someone who would think before he speaks, looking back at my old post made me laugh hard, I'm grateful of the differences between these 2 years.
~Thank You All and Farewell
~Goodbye, LFE.
RIP - 14/04/2014
Reply
Thanks given by: A-Man
#9
so you are saying that spawning a milk will solve the problem....
is there any way I can tell how much hp and mp the milk will recover??
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:
#10
(02-01-2012, 05:33 AM)A-MAN Wrote:  is there any way I can tell how much hp and mp the milk will recover??
The milk in that trick is not giving you any remarkable amount of hp. It's just that it'll limit your hp to 500 max because that's hardcoded. The actual amount you want to restore has to happen via
an additional object running on state 18 with negative injury etc.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by: A-Man




Users browsing this thread: 4 Guest(s)