Hey everyone , I recenlty made an enemy in my unity game , he has a health bar etc.
and when his health reaches 0 , i want him to tip over.~
(using c# btw)
so here is what i used :
when i use it this way , the enemy starts spamming from his default position , to this rotated position , prpably because the if statement is called again every frame , so it keeps doing it?
Does anybody know how i can Keep the Enemy in this new position?
Sure, just stop rotating him. The easiest fix is to disable the script:
0
Hey everyone , I recenlty made an enemy in my unity game , he has a health bar etc. and when his health reaches 0 , i want him to tip over.~ (using c# btw) so here is what i used :