Boss Slam
- christian chinchilla
- Jun 7, 2021
- 2 min read
So the problem that I was facing for last week was trying to get the boss to have some sort of multi-attack where he has two attacks against the player instead of just one attack. The way I wanted this to go about was to give the boss a leap attack so that if the player was too far for a melee attack it would leap to try and gt close to the player. The problem that I was facing was that it wouldn't do the task after the code was written. And I was confused on why it was doing that and it was really starting to get to me because I thought that I was doing something wrong with the code. After I while I asked one of my teammates for another pair of eyes to see if I was missing something or was doing something wrong. And it turned out I was doing something wrong in the code that just passed my gaze and he was able to see it and explain to me why it was doing that. And after that, the boss still didn't do his leap attack but this time it wasn't the code it was the behavior tree that was giving us the issue now and so I had to change up the behavior tree a little to where it doesn't check to if it is dead first because that was causing him not to move. But after those changes, the boss started doing his leap attack even though he still needs to work with it, it is nice that he at least has that leap attack on him now.
Comments