My player health keeps going below zero, I know to use clamp node but I don’t know where to put it, i would also like to play death animation for the player when the health reaches zero.
this is in my charcter blueprint
this is in the widget, it gets the numbers of my health
I’d personally put it right after the True branch in the first image, so you know the player is dead, and then set health to 0.
You could also put it in the AnyDamage event, right before the set, clamp the result of the subtraction to 0. Since the death check is <= 0, it should still register fine.
it plays the death animation when the players die but then the reverts to idle pose and plays death animation again and the revive, how will I make it stop and and death widget screen