Is there a way to display Health as Heart Units in a HUD instead of a Lifebar?
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.
asked Nov 22 '17 at 09:05 PM in Blueprint Scripting
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
Follow this question
Once you sign in you will be able to subscribe for any updates here