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"

How do I use progress bars?

Hi everyone. I'm pretty new with the UE4 and I was trying to create a HUD with two simple progress bars for both health and stamina. The issue I'm facing (even if I followed step by step the documentation Epic Games has released about this subject) is that whenever I hit play the progress bars don't show anything but themselves. Can someone help me, please? I do attach the photo of the "result", the HUD BP and the character BP.

Product Version: UE 4.12
cattura3.png (1.1 MB)
cattura1.png (292.5 kB)
cattura2.png (452.0 kB)
more ▼

asked Jan 14 '17 at 06:03 PM in Blueprint Scripting

avatar image

3 1 1

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Did you set the default progress value of each progress bar to 1.0 that way the progress bar starts off full?

more ▼

answered Jan 14 '17 at 06:24 PM

avatar image

684 23 22 54

(comments are locked)
10|2000 characters needed characters left

Oh, that was an easy one.. No, I didn't set it to 1, thanks.. But I still miss something.. I set that when F is pressed, it "receives" damage of 25 (default is 100). I know that I lose life because when I hit the zero it quits the game, but it is not shown on the HUD.. ! I attach the BP of this thing

cattura.png (96.0 kB)
more ▼

answered Jan 14 '17 at 06:36 PM

avatar image

3 1 1

avatar image elitereloaded Jan 14 '17 at 07:14 PM

When you take damage you also need to update your HUD widget with the progress bar.

avatar image samnater Jan 14 '17 at 11:34 PM

what he said ^

avatar image elitereloaded Jan 26 '17 at 03:41 AM

If my answer helped you could you mark it as accepted so other people know it worked?

(comments are locked)
10|2000 characters needed characters left
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