Zawk Posted June 19, 2009 Author Share Posted June 19, 2009 Now, some of you have probably been wondering how to create a more custom GUI design and what I'm going to explain here is to show you how you can change your Health Bar into a custom Bar or tank or whatever you wish to use on that Health Bar. Do note, this is Health bar only but everything applies the same for the MP and XP bar! (Name ids for their form is at end of this post)Also, I'm not using pictures because if you can't follow this in full detail (you will not get lost, if you know what 1+1 is)… You should look into learning VB6 ebooks which is posted in the forums...**Tools Required:**BrainVB6Two health graphics of same size and separate color, preferably red for full HP bar and dark Red for empty HP bar**Open up**_Eclipse.vbp_**Double Click**_frmMirage_(under Forms)**Click once on your Health Bar**Under properties to the right it should say under (Name): **lblHP**, _it will be a transparent rectangle if you use default source._Resize it to the same size and shape as the graphic you are wanting to use for your Health Graphic.now Please place the **lblHP** box in the precise spot you are wanting your Health Graphic to be located at.**Click on the Red Health Bar again**(where lblHP once was)You will select a rectangle that isnt transparent by the (Name): **shpHP**Press the Del(or maybe its Delete for you) key on your keyboard.**To the left in the toolbar of VB6 Program itself**Click on **PictureBox**Create the **PictureBox** on your _frmMirage_, again, in the precise spot you placed **lblHP**Without clicking off of the newly created **PictureBox** we are going to name it **shpHP** under the properties (Name)After doing this with the newly created **PictureBox** now named **shpHP**, in its properties scroll down in the window and select "Picture" the picture you wish to use for your Health bar. (again make sure its the same size as your "lblHP" and directly over top of it)After doing this you will go up to Appearance and where it says "1-3D" you will choose "0-Flat"There you go you now have your new Health bar Graphic!**But wait when you try it, it's not showing a back drop of it's emptyness!**You will want to name another **PictureBox** in the precise spot you placed **shpHP**, you can call it "sHPtank" (for Shadow HP Tank)Again you will want to select another "Picture" (Dark red one i mentioned above under tools required)Also make sure the Appearance is set to "0-Flat" and not "1-3D" under the properties box to the right.What you do now is right click on the newly created **PictureBox**, now called **sHPtank**Select, "send to back".save, compile. Voila! Fully functional Graphic for your Health bar!This also works for XP,MP bar too, the only thing that changes is that it isn't shpHP.for Mana Bar its: shpMPfor XP bar its: shpTNLp.s: if you are doing a bubble, it will load its health horizontal instead of vertical, I'll try to find out how to make it show vertical later when I have time and post here, unless someone beats me to it. :) Link to comment Share on other sites More sharing options...
Alster Posted June 19, 2009 Share Posted June 19, 2009 Good use some pictures but a great tutorial overall.OT: Loving the avatar, caption and sig. Link to comment Share on other sites More sharing options...
dao Posted June 21, 2009 Share Posted June 21, 2009 this would go in source tutorials lol. nice tho Link to comment Share on other sites More sharing options...
bert911292 Posted June 30, 2009 Share Posted June 30, 2009 Ok, I am a serious newb. What exactly is vb6? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 30, 2009 Share Posted June 30, 2009 @bert911292:> Ok, I am a serious newb. What exactly is vb6?VB6 stands for Visual Basic 6, it's what you use to edit the source code to Eclipse.You can download the source code from the main website (freemmorpgmaker.com), but the only legal way to get VB6, is to buy it second hand. Link to comment Share on other sites More sharing options...
Jed Posted July 13, 2009 Share Posted July 13, 2009 hmm, how would i get rid of those grey lines around the picture? it makes it look really ugly when your health decreases or is just at full… Link to comment Share on other sites More sharing options...
dao Posted July 14, 2009 Share Posted July 14, 2009 what grey lines? show a pic. Link to comment Share on other sites More sharing options...
Jed Posted July 14, 2009 Share Posted July 14, 2009 [![](http://img31.imageshack.us/img31/244/screenshot0r.png)](http://img31.imageshack.us/i/screenshot0r.png/)and still trying to figure out how to make my health decline vertically… Link to comment Share on other sites More sharing options...
mrmiguu Posted July 14, 2009 Share Posted July 14, 2009 Why does everyone think adding features like this takes rocket surgery? It's very simple. To answer your question, Ezmek: Place the entire shpHP into a **new** Picture box. Make the Picture box's dimensions a fixed number (i.e. 64x64), then when the incoming packets for HP and MP adjustments arrive, just edit it to make the new Picture box you just created, come downward, adjusting the _.Top_ of it but at the same have the _.Height_ decrease at the same rate. Link to comment Share on other sites More sharing options...
Jed Posted July 14, 2009 Share Posted July 14, 2009 It doesn't make any sense…Q1: Which of my questions are you answering? Getting rid of they grey boxes, making the HP decline vertically? Or both?Please, if you're going to not make this seem like rocket science, at least explain it step by step. (Not trying to make you mad, if you consider it to be in any way offensive, I can't help you there.) Link to comment Share on other sites More sharing options...
mrmiguu Posted July 14, 2009 Share Posted July 14, 2009 If you read my question, you would know that I was explaining on how to make the HP decline vertically. Your 'line issue', not sure if you made those or they are VB6 competencies. You might have BorderStyle=1 or it might be you added those via Paint. Link to comment Share on other sites More sharing options...
Jed Posted July 14, 2009 Share Posted July 14, 2009 ok, i got my HP to decline vertically, its just that it declines upwards and not down. Link to comment Share on other sites More sharing options...
goku1993 Posted July 15, 2009 Share Posted July 15, 2009 depends on what you changed to make it vertical but if it declines upwards and you want it the other way just do the opposite of what you did to change em? Link to comment Share on other sites More sharing options...
Jed Posted July 15, 2009 Share Posted July 15, 2009 then that would make it decline horizontally again… Link to comment Share on other sites More sharing options...
mrmiguu Posted July 15, 2009 Share Posted July 15, 2009 Don't worry. I am implementing this into Project Vertigo and making some fixes/updates to it. I will show you guys the system when I am finished. Link to comment Share on other sites More sharing options...
Jed Posted July 15, 2009 Share Posted July 15, 2009 what i did to make the HP decline vertically but it still declines upward, i modified the player HP and MP packet from Width to Height: ' :::::::::::::::::::::: ' :: Player hp packet :: ' :::::::::::::::::::::: If LCase$(casestring) = "playerhp" Then Player(MyIndex).MaxHp = Val(parse(1)) Call SetPlayerHP(MyIndex, Val(parse(2))) If GetPlayerMaxHP(MyIndex) > 0 Then ' frmMirage.shpHP.FillColor = RGB(208, 11, 0) frmMirage.shpHP.Height = ((GetPlayerHP(MyIndex)) / (GetPlayerMaxHP(MyIndex))) * 150 frmMirage.lblHP.Caption = GetPlayerHP(MyIndex) & " / " & GetPlayerMaxHP(MyIndex) End If Exit Sub End Ifand the player MP packet: ' :::::::::::::::::::::: ' :: Player mp packet :: ' :::::::::::::::::::::: If casestring = "playermp" Then Player(MyIndex).MaxMP = Val(parse(1)) Call SetPlayerMP(MyIndex, Val(parse(2))) If GetPlayerMaxMP(MyIndex) > 0 Then ' frmMirage.shpMP.FillColor = RGB(208, 11, 0) frmMirage.shpMP.Height = ((GetPlayerMP(MyIndex)) / (GetPlayerMaxMP(MyIndex))) * 150 frmMirage.lblMP.Caption = GetPlayerMP(MyIndex) & " / " & GetPlayerMaxMP(MyIndex) End If Exit Sub End Ifwhat else do i need to do to make it decline from up to down and not down to up? Link to comment Share on other sites More sharing options...
mrmiguu Posted July 15, 2009 Share Posted July 15, 2009 Done, here is a link to a new tut I made (source editing only)[http://www.touchofdeathforums.com/smf/index.php/topic,48314.0.html](http://www.touchofdeathforums.com/smf/index.php/topic,48314.0.html) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now