Animation blueprint transition doubt

Hey there.

I’d like to know if there is any way to make a transition based on if a key is currently being pressed. For example: If you are pressing the W key and the character hits the ground, play animation 1. However, if you are not pressing W and the character hits the ground play animation 2.

Transitional animations can be done several different ways but for your example you would need to create a bool to keep track if the W key is pressed and then use that value to drive which animation should be played.

The more common approach would involve playing the animation in the animgraph within a state, or in custom transitional logic between states. Either way the animation you play would be driven by the bool, likely using a select node or creating logic based on that bool. Alternative ways involve things like playing the correct montage when you are landing based on a branch using that bool.

53319-animationwithselect.png

I tried doing what you suggested, but for some reason the select node makes the final pose to be ignored. I might have done something wrong, but i don’t know what because i have nearly 0 experience with animgraphs in UE4.