# How to Select From One of Two Jump Animations?

**URL:** <https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153>\
**Category:** Character & Animation\
**Tags:** blend-poses, unreal-engine, question, blendspace\
**Created:** [November 29, 2020, 5:18am UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153 "2020-11-29T05:18:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [November 29, 2020, 5:18am UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/1 "2020-11-29T05:18:45Z")

</div>

The standard Idle/Walk/Run → Jump state machine is fine, but I want to improve on this.

I have one jump animation for Idle/Walk and another jump animation for Run/Sprint. How to trigger the correct animation?

My guess is two state machines, each with the same I/W/R Blendspace, but with different jump loops, and then a Blend Pose by Bool to select from between the two on (Speed \> X).

Is this recommended? Efficient? Totally wrong?

Thanks.

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [November 29, 2020, 5:20am UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/2 "2020-11-29T05:20:06Z")

</div>

I know there is an IK plugin that stretches the animation based on speed. I’d like to avoid that if possible.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [November 29, 2020, 4:22pm UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/3 "2020-11-29T16:22:19Z")

</div>

Hi! You can simply create two different transitions from IWR BlendSpace to IW\_Jump chain and then to R\_Jump chain. Just set the conditions with accuracy. However, there can be some drawback - you will have one constant to define Run in BlendSpace asset and you will need another to set up transition conditions

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [November 29, 2020, 11:01pm UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/4 "2020-11-29T23:01:48Z")

</div>

I considered that, but it doesn’t seem efficient to have two transitions branching off the same blendspace. I’m new to this, so maybe that’s commonly done?

Or, are these jump chains in a transition sequence?

[IWR] → (if spd \< 300) → [Standing Jump] → (if spd \> 300) → [Running Jump] → [Final Pose]

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [November 29, 2020, 11:14pm UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/5 "2020-11-29T23:14:07Z")

</div>

Actually, that seems to be how it’s done. Crouching and Jump are separate transitions from the IWR. I suppose I can add another.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2538c93f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2538c93f1](https://forums.unrealengine.com/u/anonymous_user_2538c93f1)\
**Post date:** [November 29, 2020, 11:46pm UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/6 "2020-11-29T23:46:38Z")

</div>

Create a blendspace with 1 axis for velocity. Put your stationary jump anim sequence on the left (0) and your running jump anim sequence on the right (which is set to whatever speed you want the running animation to be used). Then use that blendspace in your state machine instead of your jump animation. In your event graph for the anim blueprint, set the speed of your pawn to a variable so it use in the state to be sent to the blendspace. See screenshots, this is how I did what you are trying to do.

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [November 30, 2020, 2:19am UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/7 "2020-11-30T02:19:17Z")

</div>

This looks like an interesting solution.

However the jump I want has 3 states: Start, Loop, End.

So, I must transition between three blendspace before returning to the IWR.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2538c93f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2538c93f1](https://forums.unrealengine.com/u/anonymous_user_2538c93f1)\
**Post date:** [November 30, 2020, 3:25am UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/8 "2020-11-30T03:25:02Z")

</div>

Well, only if the two other states have different animations if you are running. I would expect the looping and end animations to be the same. But even if they aren’t all you need to do is use three blend spaces instead of the animations. You can substitute a blend space in any spot you have a animation sequence and feed in variables based on the situation. You could even do a 2d blend space and add in direction, so you could make running\_jump\_left/right etc. Since blend spaces take seconds to put together its well worth it to replace the animations for them.

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [November 30, 2020, 6:08am UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/9 "2020-11-30T06:08:35Z")

</div>

This is what I did not know/understand, that I could substitute anim sequences with blendspaces. Thank you, very helpful.

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [November 30, 2020, 6:09am UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/10 "2020-11-30T06:09:56Z")

</div>

Does your running-jump animation have a leading foot? That would be another complication. Or maybe the blendspace can resolve that?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2538c93f1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2538c93f1](https://forums.unrealengine.com/u/anonymous_user_2538c93f1)\
**Post date:** [November 30, 2020, 6:28am UTC](https://forums.unrealengine.com/t/how-to-select-from-one-of-two-jump-animations/475153/11 "2020-11-30T06:28:39Z")

</div>

My jump animations were made from the same starting point as the run/jog animation, so they stitch together pretty well. But honestly, the animations switch quick enough and Unreal does a good job of blending them, that it would be hard to notice any differences unless your animations were drastically different or you slow it down and look at it frame by frame.
