Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Lee Stevens
19
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Deep in code...
Posted: 2nd Sep 2010 03:08

Okay theres my code, basically I want the health bar to change colors when it reaches a certain point?anyway of doing this?

If There Is A Problem, Find The Question.
Lee Stevens 1st September 2007
Daniel wright 2311
User Banned
Posted: 2nd Sep 2010 03:11 Edited at: 2nd Sep 2010 03:12
if Health = ? then Box 10, 10, Health, 20, RGB(255, 0, 0), RGB(255,0,0), RGB(0,255,0), RGB(0,255,0)

Lee Stevens
19
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Deep in code...
Posted: 2nd Sep 2010 03:21
^Actuall legend! Thank you

If There Is A Problem, Find The Question.
Lee Stevens 1st September 2007
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 2nd Sep 2010 05:47
Better using "<" / ">" for this, because the effect may be jumped over if the health decreases more than to meet that "IF 'health'=xyz THEN" line...
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 2nd Sep 2010 05:48
...also you have to restore the color if you get healthy again.

Login to post a reply

Server time is: 2026-07-22 17:51:14
Your offset time is: 2026-07-22 17:51:14