Character health system not working?
My character is able to die however the health isn't working because my character dies in one hit. My character has 3 hearts (Health) and the enemy does 1 damage (1 Heart) However it just dies in one hit. Character Damage Receiver: Chicken is damage causer:
asked Jun 26 '15 at 04:29 AM in Blueprint Scripting
EDIT: I looked at your the blueprints and I figured out your problem. Very simple math logic. Your setting your health variable to damage received - health :P. Flip them around and your set.
It's a little difficult to figure out what is going wrong with the limited information you've given us. When your debugging something like this it helps to have a healthy amount of output that you can always delete later.
Print out the value of damage taken whenever damage is received. Also make a print node after the apply damage node to see if it's getting called more than once. This is what I suspect is going wrong.
I blame any typos on my phone :).
Follow this question
Once you sign in you will be able to subscribe for any updates here