how to put a maximum of life

isabelaqisabelaq Member Posts: 28
edited November -1 in Working with GS (Mac)
hello, I did a life bar, how I can put a maximum of life, if i have a item of recover life, how can i do to the amount not passed the biased value

Comments

  • rlehmrlehm Member Posts: 320
    If your life bar is say worth 50,

    If life bar is less than 50
    + to life bar

    If life bar is greater than 50 lifebar = 50
  • isabelaqisabelaq Member Posts: 28
    hahhahahahh thanks
  • RHRH Member Posts: 1,079
    or just change attribute game.life to min(game.life+X,50)
Sign In or Register to comment.