I’ve made code for a boss fights first phase and the attack cycle they use. When it’s first phase reaches zero health, it stops attacking, which is great. The only issue is that if it hasn’t gone through it’s full attack cycle it will always finish it’s attack cycle before stopping. I’m wondering how this can be fixed, because it’s stopping me from developing the game further and I don’t know any possible solutions.
6 Likes
Well, this my take on it.
It may be tedious but it should work
Each time it tries to make a move, it will check the value of “BeeOneHealthBar”. If the first stage is over, the attack will not be executed.
Hi @Galcake
Are you using micro:bit???
I think the break
block would work.
2 Likes
Yeah, I did something like that inside of the attack functions themselves and it works like a treat.
1 Like