- Code: Select all
if(CHP <1 && animindex !=8 || animindex !=9)
{
change animation bla bla bla
}
What happens is that even though the "CHP" is 15, the script still runs. (this is the bug part)
The other thing that happens, is the other part of my code (not mentioned) acts against this section. For example: The AI moves to the player, and attacks. When the "CHP" is less than 1, it gets stuck between doing the other thing that it is supposed to do, and changing its animation to falling down.
If anyone has advice for me, I would like to here it.