ok i need some new help, i have some code for health working but i need a starter to set the health to 100 when i start. and i cant figure it out..
heres what i have so far:
starter set_health(){
if(hp < 100){hp = 100;}
}
"hp" is the variable for health... what am i doing wrong? i have to call the function to add or subtract health to make the health panels visible. if you understand that
also, when i call the function to subtract health enough to get it to 0, it dosent exit the game, (thats what i told it to do for now), but wen i call the function to ibcrease health to over 100, it exits the game... i think somthing is backwards...
if you need more help understanding anything i will tell you what you need to know, but any help would be appreciated.