Throughout the week, I have continued to work on getting the zombie ready before the Alpha. On the back end of the zombie there are some minor changes and some additions to improve the AI logic. First thing I added was where the zombie will see if it is greater than the distance from the player and if a Boolean is true then go into the wander (the new idle name). Then, there is another if statement to make sure that the zombie will go from wander to chase if the player gets close to them. Next, I added an if statement around the set destination so that the AI will not move when the zombie dies. The final code addition was a strafe state. This was done to make sure that the zombies do not move in a straight path, rather be more chaotic.
In addition, I worked on adding and giving the zombie movement through animations. I connected the states together such as idle to walk, walk to attack, and a death scene at any point in the animation. I have been working with masks to try and get the hit effect to work when they are shot. The final two things that I have done is adding colliders to the Mutant in preparation for the future and working on the shader for a blood pool (did not include since it does not work and might be changed).
Comments