Game errors
Posted: Sun Jul 01, 2012 7:15 pm
Hello, I have a problem with this script.
Life= textNumber that floats on top of the player that represents his life. (I'm gonna use actor vars but I'm still a beginner)
When I go to game mode,the life numbers disappear for some reason.
Any suggestions?
Life= textNumber that floats on top of the player that represents his life. (I'm gonna use actor vars but I'm still a beginner)
- Code: Select all
if(Life.textNumber>=90)//When life is 90 or more,the colour turns cyan/bright blue
{
r=0;
}
if(Life.textNumber>=50)//When life is 50 or more,the colour turns Green
{
r=0;
b=0;
}
if(Life.textNumber>=25)//When life is 25 or more,the colour turns Yellow
{
b=0;
}
if(Life.textNumber>=10)//When life is 10 or more,the colour turns Orange
{
g=75;
b=0;
}
if(Life.textNumber>=1)//When life is 1 or more,the colour turns Red
{
g=0;
b=0;
}
if(Life.textNumber==0)//When life is 0 ,the colour turns dark red.
{
g=0;
b=0;
r=50;
}
When I go to game mode,the life numbers disappear for some reason.
Any suggestions?