Hifra (Dragon Boss)
Author: Josiah Jones
This week while working on Hifra are boss I ran into a problem with her flying animation. Hifra fly's up when ever she loses 25% of her hp and then she shoots fire at the player. Instead what was happening was she would fly up but very glitch like she was changing between different animations and then she wouldn't attack and instead go back to the ground. After she would either sometimes attack and chase or she wouldn't do anything and just stare at you.
So I was not the only one working on this, but first to solve the problem I separated the the landing and fly processes into two different functions. But that didn't solve everything as I had to figure out where and when I wanted to call both functions. So first for the fly we made a delegate to call on when 25% hp was taken and a bool to let us know Hifra was flying. Then for landing I made a bool that let me know when she was done shooting fire and then made her land before she tried to attack again because she kept trying to bit us while in the air which would cause her to instantly go to the ground.
Dragon Fly Function:
Notes: I call idle fly first to get Hifra in the air, then fire attack and after had to call Fly idle again so she stayed in the air and didnt go straight to the ground which messed up are land animation.
Notes: This is are atk anim interface function, for hifra we have 2 check to see if she needs to land if so she plays the landing function and a check if she is flying, if she is flying we do nothing and let her finish her flying function, if she isnt we play the bite attack anim.




Comments
Post a Comment