I have an animated player sprite that moves into a different animation when it dies. I am using the W key as a forward movement and angle is locked to the mouse. The problem I am having is when the player sprite dies if I am moving when the death happens the sprite immediately resets to the movement animation assigned to the W is down action. I need it so that when the player sprite dies it no longer sees the W is down action until after the death animation and the player sprite is created again.
Any help would be appreciated.