How to make widget images change with health?
For a personal project I'm working on, I have this health system in mind where when the player character loses a life, the image in the widget changes. Green is 3/3 health, yellow is 2/3 health, red is 1/3 health. (images are placeholders) What kind of method would I use to achieve this?
asked Jan 08 '18 at 11:06 AM in Blueprint Scripting
Hey there, you can do this 2 ways:
Which do you prefer?
answered Jan 08 '18 at 11:36 AM
Rather than making the circle coloured, make it white and use this to colour it:
This way, you do not need to store/create/maintain multiple brushes/images and/or swap them around. Just pick the colour you want. This will also allow you to animate it easily if you wish so - change the colour gradually, for example.
There are as many solutions to this as there are people. Pick your poison.
answered Jan 08 '18 at 03:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here