Jayfett69's Recent Forum Activity

  • I thought if add I tested using on J and K keys pressed it adds 10 to max and 0.277 to the max Health global so it works I just need to find a way it almost auto does it so can add things like Armor Health increase and buffs/debuffs spells etc.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Basically I'm trying to do a hp bar that works via 2 variables. A Player Health and a Player Max Health. Instead of lots of

    If Player Health = 1 then +0.0227

    If Player Health = 2 then +0.0277

    If Player Health = 3 then +0.0277

    Etc

    I want to find a more possible way of doing it so

    Every 1 to Player Health Add 0.0277 to Player Max Health

    For context of the variables the Health is the Player Health that's takes damage and the max is obviously the max Health however because I'm using a progress bar tween to a Sprites width adding max Health means the bar goes off screen so after doing some calculating every tick it checks that global variable and divides the tween by 0.0227 every time.

    Any help of some sort of condition or something else would be greatly appreciated.

Jayfett69's avatar

Jayfett69

Member since 14 Oct, 2022

None one is following Jayfett69 yet!

Trophy Case

  • 2-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

4/44
How to earn trophies