# Need specific jump mechanic

**URL:** <https://forums.unrealengine.com/t/need-specific-jump-mechanic/441654>\
**Category:** Blueprint\
**Tags:** jumping, unreal-engine, Blueprint, question\
**Created:** [January 20, 2019, 11:38am UTC](https://forums.unrealengine.com/t/need-specific-jump-mechanic/441654 "2019-01-20T11:38:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4daf2f0d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4daf2f0d](https://forums.unrealengine.com/u/anonymous_user_4daf2f0d)\
**Post date:** [January 20, 2019, 11:38am UTC](https://forums.unrealengine.com/t/need-specific-jump-mechanic/441654/1 "2019-01-20T11:38:37Z")

</div>

I need a way to detect if jump was pressed just before hitting the ground, and if so I want the player to jump again after hitting the ground. I basically want to give the player some wiggle room to perform perfect consecutive jumps instead of having to detect themselves the exact moment they are able to jump again.

I’m using the jump node for jumps

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 20, 2019, 11:51am UTC](https://forums.unrealengine.com/t/need-specific-jump-mechanic/441654/2 "2019-01-20T11:51:59Z")

</div>

I came up with this setup:

 ![265947-jumps.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/6/a/06a9c6af691b3d70eadf8717119efc1ce7fc5445.png)

You can use Event Tick instead of the Timer; and if you remove Set Is Jump Pressed after input Key Released, you won’t have to hold the jump key, just press it once in mid-air.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4daf2f0d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4daf2f0d](https://forums.unrealengine.com/u/anonymous_user_4daf2f0d)\
**Post date:** [January 20, 2019, 3:41pm UTC](https://forums.unrealengine.com/t/need-specific-jump-mechanic/441654/3 "2019-01-20T15:41:59Z")

</div>

Thanks for the reply!

Just tested this out and it is exactly what I described!

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 20, 2019, 3:50pm UTC](https://forums.unrealengine.com/t/need-specific-jump-mechanic/441654/4 "2019-01-20T15:50:31Z")

</div>

Oh man, sorry, there’s an error there. There should be two branches:

 ![265971-jumps.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/6/4a6f7342ced1bedffdc652b2b67d369b278d1f71.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [January 20, 2019, 3:52pm UTC](https://forums.unrealengine.com/t/need-specific-jump-mechanic/441654/5 "2019-01-20T15:52:31Z")

</div>

Or even better, like this:

 ![265972-jumps.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/d/2dd78d9bd21970bbc088668820f34a5f0cf22b2a.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4daf2f0d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4daf2f0d](https://forums.unrealengine.com/u/anonymous_user_4daf2f0d)\
**Post date:** [January 20, 2019, 6:30pm UTC](https://forums.unrealengine.com/t/need-specific-jump-mechanic/441654/6 "2019-01-20T18:30:24Z")

</div>

Hmm I didn’t have a lot of time to test it, got your answer just before I had to go into work. It seemed to work just fine but thank you again! I’ll take another look when I get home.
