Hi again, I am wondering if their is a way to change the movement of lets say, a health bar from going left to going right.
I am also wondering if there is a way to make a bar go down from both sides.
I have no code, I'm just wondering if this is possible/get an example
Yes, it's possible.
It is very dependent on how the HUD is being drawn in the first place
What if I wanted to use a method like this:
[code]
function ExampleBar()
local ply = LocalPlayer()
local memes = Material('vgui/whatever.jpeg')
surface.SetMaterial(memes)
surface.SetDrawColor(255,255,255,255)
surface.DrawTexturedRect(ScrW() * .0455, ScrH()* .92, 330*(ply:Health()/100), ScrH()*0.04)
end
how would I make the TexturedRectangle go a different direction?
this is the only method I know and it goes <-
I want it to go -> and another bar to go -><-
[/code]
Sorry, you need to Log In to post a reply to this thread.