I need help for damage

i try to apply damage to my character with this but when the char touch a trap just decrease the healt and sprite never chances and char dont die when the health reach 0, help pleas

hi,

I have moved this to the blueprint section as your question is BP specific.

Character dying when health reaches 0 is set in the characters blueprint. In mine there is a branch that checks for a is alive bool that is setting the state of the player to alive or not. Then doing the death logic based on health being at 0.

359627b70639d45c0f498c227ef72330b9a128d1.jpeg

here i have an example which i made for some other guys from this forum, include projectile spawning, damage dealing, some basic respawn and other stuff