Announcement

Collapse
No announcement yet.

How to regenerate life after some time without taking damage.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to regenerate life after some time without taking damage.

    Well, I used a system of life and armor, which when I enter a "Box Collision" I take damage ... I was able to create another system that causes that if I leave this "Box Collision" for 5 seconds, only life regenerates slowly ... But how do I always REGENERATE life when I do not take damage? For example in the future I will add projectiles and weapons in my game. I will not copy the whole system for every weapon or thing that takes life. Need help...
    Here are some prints to help me.
    Oh and if you have some suggestions to improve this system I would apreciate

    PS: Both health and armor variable default value is set to 1.0

    #2
    make a variable which is called "can generate", and set that to true. Once the player is hit, make the variable change to false, then a delay node after 5 seconds again set to true. Do a branch which if true will generate health.

    Comment

    Working...
    X