Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Aqua on May 03, 2009, 02:52:24 pm

Title: [Resolved] Aquarian Request - HUD
Post by: Aqua on May 03, 2009, 02:52:24 pm
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:
Spoiler: ShowHide
(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.

Face: ShowHide
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-Face.png)


HP Parts: ShowHide

(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-HPemp.png)
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-HP.png)


SP Parts: ShowHide

(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-PPemp.png)
(http://starrodkirby86.web44.net/AquasStuff/ProjectAion/Hud-PP.png)


Thanks! :D
Title: Re: Aquarian Request - HUD
Post by: Reno-s--Joker on May 03, 2009, 11:32:44 pm
I could try (and most likely fail :[) if no-one else is up for this. Looks really interesting and would kick ass if completed. :)
Title: Re: Aquarian Request - HUD
Post by: fugibo on May 04, 2009, 06:19:03 pm
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.
Title: Re: Aquarian Request - HUD
Post by: Aqua on May 04, 2009, 07:09:45 pm
Would those scripts accomodate for the curve in my bars?
Title: Re: Aquarian Request - HUD
Post by: fugibo on May 04, 2009, 08:03:32 pm
It depends. Do you want them to curve, even when they're not full? That would make it a (tiny bit) harder.
Title: Re: Aquarian Request - HUD
Post by: Aqua on May 04, 2009, 08:08:23 pm
Yeah, I do...
That's why I didn't do this myself; I didn't know how to keep the curve @.@
Title: Re: Aquarian Request - HUD
Post by: fugibo on May 04, 2009, 08:36:54 pm
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)
Title: Re: Aquarian Request - HUD
Post by: Aqua on May 04, 2009, 08:55:29 pm
Okay.  All help is appreciated :)
Title: Re: Aquarian Request - HUD
Post by: Reno-s--Joker on May 05, 2009, 12:33:53 am
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. :)
Title: Re: Aquarian Request - HUD
Post by: fugibo on May 05, 2009, 04:52:31 pm
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
Title: Re: Aquarian Request - HUD
Post by: Blizzard on May 06, 2009, 09:20:52 am
Jut use blt on those bitmaps to transfer the proper area into the bar.
Title: Re: Aquarian Request - HUD
Post by: Aqua on May 07, 2009, 07:29:56 pm
So blt starting from the right but display starting from the left? XD
Title: Re: Aquarian Request - HUD
Post by: winkio on May 07, 2009, 08:25:49 pm
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.
Title: Re: Aquarian Request - HUD
Post by: fugibo on May 08, 2009, 10:51:47 am
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.
Title: Re: Aquarian Request - HUD
Post by: Aqua on May 08, 2009, 02:47:22 pm
: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!
Title: Re: [Resolved] Aquarian Request - HUD
Post by: fugibo on May 08, 2009, 04:17:50 pm
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.
Title: Re: [Resolved] Aquarian Request - HUD
Post by: Blizzard on May 08, 2009, 04:46:38 pm
Did you even see the recent Blizz-ABS with bouncing damage text? xD
Title: Re: [Resolved] Aquarian Request - HUD
Post by: fugibo on May 08, 2009, 06:43:49 pm
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
Title: Re: [Resolved] Aquarian Request - HUD
Post by: Aqua on May 08, 2009, 06:57:09 pm
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:
Title: Re: [Resolved] Aquarian Request - HUD
Post by: legacyblade on May 08, 2009, 06:59:25 pm
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.
Title: Re: [Resolved] Aquarian Request - HUD
Post by: fugibo on May 08, 2009, 07:03:49 pm
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.
Title: Re: [Resolved] Aquarian Request - HUD
Post by: Aqua on May 08, 2009, 07:22:57 pm
@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