Would anyone be willing to script a HUD for me? :D
The trickiest part /should/ be the drawing the bars in proportion since it's curvy... lol
Here is what I want the HUD to look like:
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Yummy-Hud.png)
Wonder where I got the inspiration for the HUD... :roll:
I want the Red bar to be HP and the Blue one to be SP.
It's a One Hero game, so only $game_actors[1] info is needed.
Now the individual images.
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-Face.png)
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-HPemp.png)
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-HP.png)
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-PPemp.png)
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-PP.png)
Thanks! :D
I could try (and most likely fail :[) if no-one else is up for this. Looks really interesting and would kick ass if completed. :)
Just grab the code for Blizz's HUD, or any other, and just replace the bars with this. It wouldn't be hard at all.
Would those scripts accomodate for the curve in my bars?
It depends. Do you want them to curve, even when they're not full? That would make it a (tiny bit) harder.
Yeah, I do...
That's why I didn't do this myself; I didn't know how to keep the curve @.@
I'll take a quick crack at it. You'll have to fiddle with it a bit yourself, though, and debug it (I don't have RMXP)
Okay. All help is appreciated :)
The only way I can think of doing the curve is using that image cutting technique. Anyhow, looks like your script is in good hands now Aqua. :)
Yes, that's how I'm doing it. Actually, I could either have it pre-cut or cut it myself. Hmm...
OOP for the win! I'll make an object that does either
Jut use blt on those bitmaps to transfer the proper area into the bar.
So blt starting from the right but display starting from the left? XD
Here's a hint, based on what I remember:
self.contents.blt(x_pos, y_pos, image, new Rect(0, 0, width, height))
just replace width with something like actor[0].hp / actor[0].maxhp * 130. Basically, what blt does is only draws the image inside the rectangle. so just put the full image of the bar in your pictures folder and you are set.
Just felt like clarifying what Blizzard said, because I couldn't tell if you understood it from your post.
Yeah... I'm not gonna write this script today, but I will tell you how to copy the curve: (replace CURVE_WIDTH with... the width of the curve :P)
bar = Bitmap.new( <filename> )
p = $game_actors[0].hp.to_f / $game_actors[0].maxhp.to_f
w = p * bar.width
self.bitmap.blt(w - CURVE_WIDTH, 0, bar, Rect.new(w - CURVE_WIDTH, 0, CURVE_WIDTH, bar.height)
self.bitmap.blt(0, 0, bar, Rect.new(0, 0, w - CURVE_WIDTH, bar.height)
I'm pretty sure that will work.
:D Thanks
I'll try it out and tell you how it goes.
Edit:
Yay!!! Got HP to work :D
And MP should be easy now
Thanks a LOT guys!
Edit Edit:
Got the whole Hud working :D
Learned some scripting stuff with this, too.
Thanks, again!
Are you using this with BlizzABS? If so, then you could probably add in some other cool features, animating damage, to make this pwn even more.
Did you even see the recent Blizz-ABS with bouncing damage text? xD
I mean, the HUD bars scroll to the right instead of just being shorter.
Oh, and you mean that feature that Cogwheel has been using for over two years, right? XD j/k
Quote from: Biker WcW on May 08, 2009, 06:43:49 pm
I mean, the HUD bars scroll to the right instead of just being shorter.
Hm... what do you mean by that?
The bar travels across the game screen? D:
I think he means it will animate (like a loading bar) rather than just "POOF, I IZ SHORTER". That would be really cool. I hope you make this into a bABS hud, as we're sorely in need of good blizzABS huds.
You know, like most fighting games have -- the bar animates as it grows shorter, and a red "residue" is left over, which itself scrolls back after a second or two.
@LB: Lol that will look cool... lemme test it out and see how it goes.
I'm not sure if I'll release it as a Blizz-ABS hud since I don't show the hotkeys and whatnot...
Though... I could probably add those easily... We'll see.
@WcW: Do you mean like the bars in Soul Caliber?
It shouldn't be too hard... I think... XD