Resolving Collision issues with Player's Animation
While adding the animations to the players, I ran into an issue with the player's attack animation. The collision would not turn off when it was called to deactivate. This caused problems because the player would damage and kill enemies without even swinging their sword. Originally I thought within the animation, I would just have to set a player start attack which would activate the collider and then an end attack which should have turned it off. These calls in the AnimGraph did not help the case though as the collider had not turned off.
As I looked further into the base of the problems, it only took the call from the sword's actor to be called into the Base Character to shut off the collider. The start attack and end attack in the AnimGraph did not even matter. I had added more unnecessary functions to the program that were breaking the start and stop of the colliders. Once I called the Sword's Actor in the base Player's Attack call, it had properly shut off the collider allowing for the animation and colliders to correctly play and turn off once the sword has stopped swinging.
Author: Jesse Hilario
Comments
Post a Comment