- Code: Select all
if (hp>50) hp=50;
if u used a variable thats the code , or for textnumber:
- Code: Select all
if(hp.textNumber>50)hp.textnumber=50;
if (hp>50) hp=50;
if(hp.textNumber>50)hp.textnumber=50;
1.lets say i have 40hp,(my max is 50) then i get a health item that heals hp by 20, my end results is have 60/50 hp, how can i fixe that?
if(hp >= max hp)
hp = max hp;
4.I tried a jumping thing that i found on these forums,where it reduces how much you can jump, but as long as i touch the floor once then i can just jump one more time even if im falling. Any idea?
jump = 0;
Users browsing this forum: No registered users and 1 guest