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"

Is there a way to display Health as Heart Units in a HUD instead of a Lifebar?

A Mock-Up Example Image of the kind of Health Bar I'm talking about.

Howdy. I know this might be an amateur question, but I figure the only way to learn anything is to not be afraid to ask questions.

I'm working on a game in UE4 that resembles the 8-Bit Era of the Nintendo Entertainment System and have been drawing my own 2D Sprites. I'm trying to work out how to display health not as the usual health bar that UE4 has, but rather as Units represented by Sprites that vanish / replenish one at a time as the player takes damage / picks up health items.

Think of how Health was displayed in NES games like Mega Man, Castlevania, Zelda, or Super Mario Bros. 2 (or more recent games like Shovel Knight) to get a sense of what I'm trying to achieve.

The attached image is a mock-up to give a sense of what I'm talking about.

Is there any place where I could look up how to get started on something like this?

Thank you kindly.

Product Version: Not Selected
more ▼

asked Nov 22 '17 at 09:05 PM in Blueprint Scripting

avatar image

1 1 2

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

1 answer: sort voted first

Yes, UMG is the system responsible for handling user interface.

Check this one out, parts of it do what you need. https://answers.unrealengine.com/questions/726890/add-images-when-losing-health.html

If you can't get it to work the way you need, let me know. There is more than one way to achieve it.

This is slightly more complex but is using bars instead of numbers: https://answers.unrealengine.com/questions/723483/mimicking-overwatch-health-bar-system.html

more ▼

answered Nov 23 '17 at 09:11 AM

avatar image

15.2k 77 25 62

(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