X-Weaver Posted August 21, 2009 Author Share Posted August 21, 2009 hello emm look ingame u can see ur hp bar but the other player online cant see my hp bar ingame screen, how to put it ppl can see my hp bar and i can see him hp bar ???????????????? is the mini hp bar top up of the spriteexample![](http://img256.imageshack.us/img256/728/90923008.png) Link to comment Share on other sites More sharing options...
Dthen Posted August 21, 2009 Share Posted August 21, 2009 Source edit. Link to comment Share on other sites More sharing options...
xelander Posted August 21, 2009 Share Posted August 21, 2009 Yah, source edit's.I think you atlast can see them if you are in party? Link to comment Share on other sites More sharing options...
X-Weaver Posted August 22, 2009 Author Share Posted August 22, 2009 i know it is in source edit but u never explain me where <.<taked 5 hour for this :S :sad:i was added the mp bar too :S![](http://img195.imageshack.us/img195/2655/23666282.png)im happy now hehe Link to comment Share on other sites More sharing options...
The Oracle Posted August 22, 2009 Share Posted August 22, 2009 lol if you could release that to the public, people would worship you. XD Link to comment Share on other sites More sharing options...
Kimimaru Posted August 22, 2009 Share Posted August 22, 2009 In **modDirectX** on the **Client** side, look for this Sub:```Sub BltPlayerBars(ByVal Index As Long) Dim X As Long, y As Long X = (GetPlayerX(Index) * PIC_X + sx + Player(Index).xOffset) - (NewPlayerX * PIC_X) - NewXOffset y = (GetPlayerY(Index) * PIC_Y + sx + Player(Index).yOffset) - (NewPlayerY * PIC_Y) - NewYOffset If Player(Index).HP = 0 Then Exit Sub End If If SpriteSize = 1 Then ' draws the back bars Call DD_BackBuffer.SetFillColor(RGB(255, 0, 0)) Call DD_BackBuffer.DrawBox(X, y + 35, X + 32, y + 31) ' draws HP Call DD_BackBuffer.SetFillColor(RGB(0, 255, 0)) Call DD_BackBuffer.DrawBox(X, y + 35, X + ((Player(Index).HP / 100) / (Player(Index).MaxHp / 100) * 32), y + 31) Else If SpriteSize = 2 Then ' draws the back bars Call DD_BackBuffer.SetFillColor(RGB(255, 0, 0)) Call DD_BackBuffer.DrawBox(X, y - 30 - PIC_Y, X + 32, y - 34 - PIC_Y) ' draws HP Call DD_BackBuffer.SetFillColor(RGB(0, 255, 0)) Call DD_BackBuffer.DrawBox(X, y - 30 - PIC_Y, X + ((Player(Index).HP / 100) / (Player(Index).MaxHp / 100) * 32), y - 34 - PIC_Y) Else ' draws the back bars Call DD_BackBuffer.SetFillColor(RGB(255, 0, 0)) Call DD_BackBuffer.DrawBox(X, y + 2, X + 32, y - 2) ' draws HP Call DD_BackBuffer.SetFillColor(RGB(0, 255, 0)) Call DD_BackBuffer.DrawBox(X, y + 2, X + ((Player(Index).HP / 100) / (Player(Index).MaxHp / 100) * 32), y - 2) End If End IfEnd Sub```This is where it renders the HP bars. My Sub may be slightly different than yours, since I edited part of this for myself. You're going to have to add something that specifies what it will draw out for a different Index. Link to comment Share on other sites More sharing options...
X-Weaver Posted August 22, 2009 Author Share Posted August 22, 2009 okthe tut hehehttp://www.touchofdeathforums.com/smf/index.php/topic,50673.0.html Link to comment Share on other sites More sharing options...
Dthen Posted August 24, 2009 Share Posted August 24, 2009 Thanks for the tut. I would have said where if I had known. 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