# Animation blueprint transition doubt

**URL:** <https://forums.unrealengine.com/t/animation-blueprint-transition-doubt/328076>\
**Category:** Character & Animation\
**Tags:** condition, unreal-engine, Blueprint, question\
**Created:** [August 8, 2015, 10:06pm UTC](https://forums.unrealengine.com/t/animation-blueprint-transition-doubt/328076 "2015-08-08T22:06:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nargarcyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nargarcyz](https://forums.unrealengine.com/u/Nargarcyz)\
**Post date:** [August 8, 2015, 10:06pm UTC](https://forums.unrealengine.com/t/animation-blueprint-transition-doubt/328076/1 "2015-08-08T22:06:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4005ccc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4005ccc](https://forums.unrealengine.com/u/anonymous_user_d4005ccc)\
**Post date:** [August 9, 2015, 12:05am UTC](https://forums.unrealengine.com/t/animation-blueprint-transition-doubt/328076/2 "2015-08-09T00:05:43Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/8/ce83009ae515d483ff18798f780d3d71f723a920.png)

---

<div class="post-metadata">

**Author:** ![Nargarcyz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nargarcyz](https://forums.unrealengine.com/u/Nargarcyz)\
**Post date:** [August 9, 2015, 2:09pm UTC](https://forums.unrealengine.com/t/animation-blueprint-transition-doubt/328076/3 "2015-08-09T14:09:10Z")

</div>

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.
