Jump to content

How to make a PlayerHealthBar ?


zipzup
 Share

Recommended Posts

Was just looking at this today. Take a look at this post. It gives you an idea on how you can do it with images with a mask applied so you can make some interesting bars.

 

http://www.leadwerks.com/werkspace/topic/4631-2d-masks/page__hl__masking

 

The alpha value you set is really the % to show. So .5 is 50% health. You would have a max health and actual health and calc the % from those to determine that value in SetColor().

 

The download comes with and example you can play with to better understand.

 

Thanks again Shadmar!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...