Health Regeneration issues

● ARCHIVED · READ-ONLY
Started by Gamingstar 4 posts View original ↗
  1. Hello, I've set up a system in my game where you regenerate your health over time
    Screenshot
    upload_2018-7-22_15-29-39.png
    Screenshot
    upload_2018-7-22_15-32-2.png
    Screenshot
    upload_2018-7-22_15-32-21.png
    and when you level up and for some reason whenever I lose any health it instantly starts regenerating!
    Laggy Video
    https://www.dropbox.com/sh/d8g3yunr6591meb/AAD33yfRBmWqzLufWB80Bheoa?dl=0
    Please help me fix this, I really don't wanna delete the health regen feature.
  2. Where do you set the values of those variables? Right now I see nowhere where variable 44 and 60 are called, they are just named, and variables with no data set in them default to 0 in most cases. Odds are what is going on is you set variable 60 but never 44, so it is seeing 0 < some number not 0 and always regenerating.
  3. bgillisp said:
    Where do you set the values of those variables? etc
    I have a common event that always sets the 44th variable to the player's current health..
    Screenshot
    upload_2018-7-22_19-23-28.png
    As I was typing all this I realized what was wrong; when you start the game it calls the common event "Starter" which enables all the switches I need to be on, right? Well... I sorta forgot to add that switch to it...
    Before
    upload_2018-7-22_19-28-22.png
    After
    upload_2018-7-22_19-28-2.png
  4. One suggestion....put all those starter switches in an autorun called on your first map instead, then turn off the autorun with a self switch. That will do the same thing, and you won't have a common event always looping in the background. Either that or add a command switch 60 = OFF to the end of that parallel process, because right now that common event is always looping forever.

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.