GML Make status bar stay the same size?

Discussion in 'Programming' started by Divinik, Sep 10, 2019.

  1. Divinik

    Divinik Member

    Joined:
    Sep 25, 2017
    Posts:
    25
    I'm a bit of a math dummy, I was wondering if it was possible to make a, for example, health meter stay the same size, even if the character's max health went up?
     
  2. DaMuffin

    DaMuffin Member

    Joined:
    Jun 22, 2016
    Posts:
    29
    What I've always used is
    Code:
    (current_hp / max_hp) * healthbar_length;
    
     
    Yal and Divinik like this.
  3. Divinik

    Divinik Member

    Joined:
    Sep 25, 2017
    Posts:
    25
    Thanks so much man
     
    DaMuffin likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice