Hello!
I made the Hp system. But I ran into the problem, HP should increase as the number of points earned by the character increases.
Everything works correctly and HP really increases, but I can not display it correctly in the HUD.
This system should work like this:
I do not know how to make such a system, since I just started studying the engine, I asked for advice from the Russian community, but unfortunately I could not get an understandable one, so I did it the way i know …
using the sequence will always result the first return node to fire, meaning ti will not go over the other 3. you will need a branch and check what healthlevel your character is at and use the right calculation for your health and return that.
The man asks a question, i try to answer I must say only with your answer i was able to figure out what he tried to achieve Messy indeed, but hey, i aint gonna judge Just helping him understand the engine. Optimization can come later (if he gets to that stage).
Hello, excuse me for troubling, but i faced with one more problem.
If i use your system only - result is wounderful, it’s very cool!)
But when i use my variation of your blueprint all wrong, the points are in a different blueprint, and I need them to stay there. Could you please explain to me how to do this?
Why you mix your Score mechanic with your Damage mechanic? Keep them separated. Your “Affect Health” should only decrese/increase health. Create a dispatcher in your Game mode and call it after you increase your score. Inside your character get your casted Game Mode and Bind to the Dispatcher (on Begin Play). No need to change the score mechanic I gave you =)
I asking you to spend a little of your time to make example, because today I tried more than 4 options,but nothing happened and for another I do not have enough skills.I really do not want to take your time, but otherwise I can not understand.
Almost you got to call your dispatcher in your GameMode and everyone who Listens to that Dispatcher “Binding” gets notified whenever the Dispatcher is called. Like this as Example:
You also dont have to bookkeep your Score in more than one place. In the above example I send the score along but you could also get it from your Game Mode directly with a small modification like this: