A
awsome129
Guest
So I have my player's health drawn on my screen in the color green, but i want to somehow change the color of the text to red when the health is equal to or less than 25. I tried using variables and it didn't work. Here is my code for the drawn health:
PLEASE HELP!!!
Code:
//Draw the health
if (global.reghealth = true && global.redhealth = false)
{
draw_set_color(c_green)
draw_text(32,32,"Health:")
draw_text(100,32,string(global.health))
}
else
{
if (global.redhealth = true && global.redghealth = false)
{
draw_set_color(c_red)
draw_text(32,32,"Health:")
draw_text(100,32,string(global.health))
}
}
PLEASE HELP!!!