toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
how to put a maximum of life
isabelaq
Member
Posts:
28
July 2011
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
rlehm
Member
Posts:
320
July 2011
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
isabelaq
Member
Posts:
28
July 2011
hahhahahahh thanks
RH
Member
Posts:
1,079
July 2011
or just change attribute game.life to min(game.life+X,50)
Sign In
or
Register
to comment.
Comments
If life bar is less than 50
+ to life bar
If life bar is greater than 50 lifebar = 50