Enemy Death Problems

   Author: Pedro Polanco III 

    The issue I had was with the enemy's death animation. Some of the enemy's would get stuck in their death animation causing the player not to be able to progress. This was a big problem as if this happened the player could not progress any further in the game causing them to have to restart.

    The solution to the problem was a bit annoying to fix and took some time. What was causing the issue was the way the enemy's got deleted because in the collision library it was not deleting them do to their dead state not being set or called. The way I fixed this was by using the animation system and checking for when the dead animation was supposed to be done. When the animation was the done their dead function would be called deregistering the enemy from the animation system and removing them from Collison which then allowed the player to progress through the game.

Comments

Popular posts from this blog

Adding assets to every enemy -- Owen Meyers

Sphere to AABB collision