mrmiguu Posted July 15, 2009 Author Share Posted July 15, 2009 ::EDIT:: DONE!Fairly easy to do, but slightly difficult to understand.::::::::::::::::::: Resources :::::::::::::::::::Empty Gauge:![](http://i2.photobucket.com/albums/y23/Alexanderthegreat91/EmptyGauge.jpg)HP Gauge:![](http://i2.photobucket.com/albums/y23/Alexanderthegreat91/MPGauge.jpg)MP Gauge:![](http://i2.photobucket.com/albums/y23/Alexanderthegreat91/HPGauge.jpg)::::::::::::::: Step 1 :::::::::::::::* In your client, search **_If LCase$(casestring) = "playerhp" Then_*** Add this line right below that: **_Dim AvgHP As Long_*** Delete this line: **_frmMirage.shpHP.Width = ((GetPlayerHP(MyIndex)) / (GetPlayerMaxHP(MyIndex))) * 150_**::::::::::::::: Step 2 :::::::::::::::* Add this code in place of where the line you deleted was:```AvgHP = Int((GetPlayerHP(MyIndex) / GetPlayerMaxHP(MyIndex)) * 64)frmMirage.picHPFrame.Height = AvgHPfrmMirage.picHPFrame.Top = (488 + 64) - AvgHPfrmMirage.imgHP.Top = AvgHP - 64```* In the same Module, find **_If casestring = "playermp" Then_*** Add this right below that: **_Dim AvgMP As Long_*** Delete this line: **_frmMirage.shpMP.Width = ((GetPlayerMP(MyIndex)) / (GetPlayerMaxMP(MyIndex))) * 150_*** On the line where you just deleted that code, add this:```AvgMP = Int((GetPlayerMP(MyIndex) / GetPlayerMaxMP(MyIndex)) * 64)frmMirage.picMPFrame.Height = AvgMPfrmMirage.picMPFrame.Top = (488 + 64) - AvgMPfrmMirage.imgMP.Top = AvgMP - 64```* Find **_Sub GameInit()_** and delete these 2 lines: **_frmMirage.shpHP.Width = ((GetPlayerHP(MyIndex)) / (GetPlayerMaxHP(MyIndex))) * 150_** and **_frmMirage.shpMP.Width = ((GetPlayerMP(MyIndex)) / (GetPlayerMaxMP(MyIndex))) * 150_*** In place of where this line was: **_frmMirage.shpHP.Width = ((GetPlayerHP(MyIndex)) / (GetPlayerMaxHP(MyIndex))) * 150_**, place this code:```Dim AvgHP As LongAvgHP = Int((GetPlayerHP(MyIndex) / GetPlayerMaxHP(MyIndex)) * 64)frmMirage.picHPFrame.Height = AvgHPfrmMirage.picHPFrame.Top = (488 - 64) + AvgHPfrmMirage.imgHP.Top = AvgHP - 64```* In place of where this line was: **_frmMirage.shpMP.Width = ((GetPlayerMP(MyIndex)) / (GetPlayerMaxMP(MyIndex))) * 150_**, place this code:```Dim AvgMP As LongAvgMP = Int((GetPlayerMP(MyIndex) / GetPlayerMaxHP(MyIndex)) * 64)frmMirage.picMPFrame.Height = AvgMPfrmMirage.picMPFrame.Top = (488 - 64) + AvgMPfrmMirage.imgMP.Top = AvgMP - 64```::::::::::::::: Step 3 :: - Visual Section:::::::::::::Open your **_frmMirage_** and locate your **_shpHP_**, **_shpMP_**, and **_shpTNL_** objects:![](http://i2.photobucket.com/albums/y23/Alexanderthegreat91/gaugeex_1.png)Next, delete: **_shpHP_** and **_shpMP_**Next, make: [2] x images (do not need names) and set their _Picture_ to the 'Empty Gauge' file (located in Resources; above. [2] x Picture boxes named **_picHPFrame_** and **_picMPFrame_**. Lastly, make 2 Images (one per picture box) inside of **_picHPFrame_** and **_picMPFrame_** named **_imgHP_** and **_imgMP_**, set their _Picture_ to the 'HP Gauge' and 'MP Gauge' located above in the Resources section:**MAKE THEM ALL 64X64 IN SIZE AND PLACE THEIR .TOP AXIS AT 488!**![](http://i2.photobucket.com/albums/y23/Alexanderthegreat91/gaugeex_2.png)**LASTLY, MAKE SURE YOUR frmMirage IS SET TO _ScaleMode = 3 - Pixel_** Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 15, 2009 Share Posted July 15, 2009 This will be cool. Link to comment Share on other sites More sharing options...
Jed Posted July 15, 2009 Share Posted July 15, 2009 im trying to work this out in my source, but the HP and MP declines from down to up instead of up to down. hopefully when MrMiguu finishes this i will get it to work.EDIT: and wouldn't you need to change the * 64 to whatever dimensions the image is? like a 96x96 or something? Link to comment Share on other sites More sharing options...
Techno 5.0 Posted July 15, 2009 Share Posted July 15, 2009 i will so use this when it comes out :D Link to comment Share on other sites More sharing options...
mrmiguu Posted July 15, 2009 Author Share Posted July 15, 2009 I finished it. There shouldn't be any issues with it. It works and I have tested it out. The * 64 dimension is set because that's the size of the images located in the resource section. Link to comment Share on other sites More sharing options...
Jed Posted July 15, 2009 Share Posted July 15, 2009 you should also put in there if they have different image dimensions, they should change the 64 from whatever size dimension their image is, but it MUST be a fixed dimension like 96x96 or something. Link to comment Share on other sites More sharing options...
emblem Posted July 15, 2009 Share Posted July 15, 2009 Screenshots of it working? :DxD Link to comment Share on other sites More sharing options...
Jed Posted July 15, 2009 Share Posted July 15, 2009 look what the codes do to my images:[![](http://img188.imageshack.us/img188/1061/screenshot2r.png)](http://img188.imageshack.us/i/screenshot2r.png/)i have no clue whats wrong, my image dimensions are 95x95, any idea whats up with this? Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 15, 2009 Share Posted July 15, 2009 Wow, that's wierd.I thought that the circular meant something else. Link to comment Share on other sites More sharing options...
Jed Posted July 15, 2009 Share Posted July 15, 2009 circular just means HP/MP in a bubble, sphere, whatever you want to call it.for some reason the HP and MP bubbles are going all over my screen for some reason. MrMiguu should answer this when he comes back on. Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 15, 2009 Share Posted July 15, 2009 I thought it meant the guage went around in a circle, cuz that'd be awesome. Link to comment Share on other sites More sharing options...
Jed Posted July 15, 2009 Share Posted July 15, 2009 oh, you mean like it would be so that it would be a line going around in a circle to represent your health like the heat gauges in star wars battlefront 2? XD Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 15, 2009 Share Posted July 15, 2009 I never heard of that game, but i guess… Link to comment Share on other sites More sharing options...
mrmiguu Posted July 15, 2009 Author Share Posted July 15, 2009 Ok, the 64x64 gauges must be that size and their .Top axis must be at 488\. Sorry about the confusion. Link to comment Share on other sites More sharing options...
dao Posted July 15, 2009 Share Posted July 15, 2009 aha nice dude =P Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 15, 2009 Share Posted July 15, 2009 Is it possible to make a line guage that goes around in a circle? Link to comment Share on other sites More sharing options...
mrmiguu Posted July 15, 2009 Author Share Posted July 15, 2009 @DNA:> Is it possible to make a line guage that goes around in a circle?I am sure it is. I will see what I can do. Link to comment Share on other sites More sharing options...
Joyce Posted July 15, 2009 Share Posted July 15, 2009 Nice, but is there any way to get the gauge parts edges transparent? Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2009 Share Posted July 15, 2009 does vb6.0 support transparent images? Link to comment Share on other sites More sharing options...
Joyce Posted July 15, 2009 Share Posted July 15, 2009 By default no, but there has to be some sort of a plugin that lets it allow them ;) Link to comment Share on other sites More sharing options...
mrmiguu Posted July 15, 2009 Author Share Posted July 15, 2009 Why do you need them transparent? Just make a pixelated border around each gauge, it will look nice. Link to comment Share on other sites More sharing options...
Joyce Posted July 15, 2009 Share Posted July 15, 2009 Because this moves one image over the other… So it will also move the ugly black square over the gauge background :P I just modified it into standing bars for the time being :P Link to comment Share on other sites More sharing options...
mrmiguu Posted July 15, 2009 Author Share Posted July 15, 2009 You guys have to make sure you have the imgHP inside the picHPFrame so it can move around inside of it. Link to comment Share on other sites More sharing options...
Mr. Bob Firefarter Posted July 15, 2009 Share Posted July 15, 2009 @MrMiguuâ„¢:> I am sure it is. I will see what I can do.Awesome! Link to comment Share on other sites More sharing options...
Joyce Posted July 16, 2009 Share Posted July 16, 2009 @MrMiguuâ„¢:> You guys have to make sure you have the imgHP inside the picHPFrame so it can move around inside of it.Obviously I've got all that sorted out, it just gives a very ugly black area around the circle covering up the empty image when it goes down. :P 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