Domino_ Posted February 14, 2012 Author Share Posted February 14, 2012 How to make that hp goes down from Up to Down, not from Left to Right?![](http://www.freemmorpgmaker.com/files/imagehost/pics/aab2b16c6c38c14174a7738402ce1871.png) Link to comment Share on other sites More sharing options...
avak62 Posted February 15, 2012 Share Posted February 15, 2012 Just change the animation and redraw in the different way I suppose. Link to comment Share on other sites More sharing options...
Robin Posted February 15, 2012 Share Posted February 15, 2012 @avak62:> Just change the animation and redraw in the different way I suppose.You have no idea how bars work… do you? Link to comment Share on other sites More sharing options...
Ruins of Hell Posted February 15, 2012 Share Posted February 15, 2012 The following sets of code might help (all client side):Find:```Public HPBar_Width As Long```and replace it with:```Public HPBar_Height As Long```Find in loadGUI:```HPBar_Width = frmMain.imgHPBar.width```replace with:```HPBar_Height = frmMain.imgHPBar.height```Find in HandlePlayerHP:```frmMain.imgHPBar.width = ((GetPlayerVital(MyIndex, Vitals.HP) / HPBar_Width) / (GetPlayerMaxVital(MyIndex, Vitals.HP) / HPBar_Width)) * HPBar_Width```and replace it with:```frmMain.imgHPBar.height = ((GetPlayerVital(MyIndex, Vitals.HP) / HPBar_Height) / (GetPlayerMaxVital(MyIndex, Vitals.HP) / HPBar_Height)) * HPBar_Height```Now it goes from up to down. Logic is pretty easy to follow: instead of calculating the width we calculate the height. Making the GUI good is your job. 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