HUD Progress Bar Change Colour as it progresses

I would like it to start off red and as it progresses to slowly change colour so that it is green at the end. This is done in blueprints.

Would there be any way to have a third colour, eg it goes Red at 0%, Green at 50% and 100% is blue

Sure, just use a compare float and setup another fade.
compare float Percent with 50, if less than 50, fade between red and green, if equal or greater than 50 fade to blue instead. is just two sets of the above pretty much with a few tweaks.

Hi!

You can bind a color blending to Fill Color and Opacity of progress bar element

50882-colorprog01.png

And when you set a progress bar percent (0.0 - 1.0), you get a color change.

50884-colorprog03.png

Why doesnt this work

never mind i fixed it, could you show me an example of the 3 colour

Roughly this. tweak to suit.

Thanks again

What did you do to make it work pal ?

Thank you so much! This is exactly what I was looking for

Thank you sir!

hey guys this no longer works, it just crashs the game and makes my headphones make weird sounds

Uhhh how do I get the “(Target percentage)” Node?

Knight: That is probably a personal issue with your computer, not the engine/code.

Get your Health percentage variable, then drag off it and select “Get percent” as a float. You have to uncheck context sensitive.

It works ! Thank you !

Hey I’m wondering why you did the X2 for the upper Lerp? Someone pls explain! Thanks

for some reason it wont bind the function to it so nothing works. maybe on a new verson idk??

Hey guys how do i get that ‘percent’ variable

Hey guys how do i get that ‘percent’ variable

It would really help