Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[UMG Progress Bar] +100% LIFE?

alt textI want to create a multi progress bar to represent the life of my player...just like the Boss Senator Armstrong in Metal Gear Rising...He have 200% Health and when start to damage him....we can see another bar above the first....how I can do this?

Product Version: Not Selected
life.jpg (61.8 kB)
more ▼

asked Dec 12 '14 at 01:17 PM in Blueprint Scripting

avatar image

371 55 49 64

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I've built a quick example on on how to do this. The key is using normalize to range since progress bars only accept 0-1 values. I'm handling the health with the mouse wheel for demonstration sake. alt text

Here is a shot of what the UMG graph looks like. I just placed 3 progress bars on top of each other in the designer with the correct Z-Order. I simply grab the health from the player and convert it into a percent ( health / 100), and since the health can go over 100 it works just fine. alt text

This is the final result herealt text

There may be a better way to do it. Perhaps binding variables to the progress bars but this should get you started. Hope it helps :)

changehealth.jpg (73.3 kB)
hudgraph.jpg (509.8 kB)
demo.gif (2.7 MB)
more ▼

answered Dec 12 '14 at 05:00 PM

avatar image

286 23 26 43

avatar image LitStudio Dec 12 '14 at 05:57 PM


avatar image Baron von Whimsy Sep 22 '17 at 05:52 PM

Wouldn't it make more sense to just do this with two bars, and change the color values based on the total value of the bar?

 >200 = blue, second bar visible and yellow
 >100 = green, second bar visible and blue
 <100 = green, second bar invisible

And so on.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question