This is something that I was wondering, because I created a health system and it works perfectly. I’ve finished working on my basic HUD, but I wanted to add some interesting bits of polish to it that makes it change based on taking damage. I already have my HUD set up to subtract health, however what I’m really interested in is making the player icon in the upper left change whenever you take damage. I assume you have to use a Widget animation? This is what I have so far:
So, I’m not even sure if this is the right way I’d go about having the animation play out, since I’m not familiar with the way you check if the player takes damage.
https://forums.unrealengine.com/attachment.php?attachmentid=142340&d=1495713547
And this is the animation in question. Basically what it does is whenever the player takes damage the player’s icon, very quickly, changes to red and back while also changing the player’s icon a different graphic entirely.
https://forums.unrealengine.com/attachment.php?attachmentid=142341&d=1495713683
Example of what I mean: As you can see the player graphic completely changes to a version that shows the icon flinching and turning red, however, I am not sure how exactly you go about doing this in the Widget editor and in blueprints.
No damage taken:
https://forums.unrealengine.com/attachment.php?attachmentid=142343&d=1495713822
Damage taken:
https://forums.unrealengine.com/attachment.php?attachmentid=142342&d=1495713733