Health bar (416171)

HI!
I am making the health bar like in Max Payne.
I don’t want to stretch my texture in the rectangle. I would like to see only a cut. Is there any way how to disable the stretch in a ScaleMode?

Hey Mirek,

There is another way u could do this. You could make 10 texture, with the health going down.

Then make a script that switches to the texture according to the health.

ilzaer

Maybe it is not so much smooth, but it can be a solution :smile:

Yea :slight_smile:
You would have to make 100 images to get it looking nice hehe

How does you system work atm, are you just displaying a texture or how does it work?

*edit

doh i can see from the picture in the post, sorry about that…

Hey agian,

Was looking around the forum for a targeting system, and stumbled upon this other way of doing it.

check it out http://forum.unity3d.com/viewtopic.php?t=45609

ilzaer

Thanks