# Double Jump does not work when walking off ledge

**URL:** <https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686>\
**Category:** Character & Animation\
**Tags:** jumping, unreal-engine, bug-report, Blueprint, question\
**Created:** [October 18, 2016, 4:54pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686 "2016-10-18T16:54:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Howie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Howie](https://forums.unrealengine.com/u/Howie)\
**Post date:** [October 18, 2016, 4:54pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686/1 "2016-10-18T16:54:56Z")

</div>

When I moved my project over to 4.13 I noticed my double jump wasn’t working anymore. I found out that a Jump Max Count Variable had been added as a default and after switching it to 2 my double jump was working again. Only problem was that when I walked my character off a ledge it would only let me do one jump.

To see what was going on I print screened the jump current count in the event tick and noticed that when walking off a ledge it would stay zero but as soon as I hit jump it would go right to 2. I think this is a bug and walking off a ledge should not count as a jump. To fix this I just left the current double jump system I had in and raised the Jump Max Count to 3.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 18, 2016, 9:01pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686/2 "2016-10-18T21:01:33Z")

</div>

Hey Howie-

I was able to reproduce the behavior you described and entered a report for the issue here [Unreal Engine Issues and Bug Tracker (UE-37485)](https://issues.unrealengine.com/issue/UE-37485) . You can track the report’s status as the issue is reviewed by our development staff.

Cheers

---

<div class="post-metadata">

**Author:** ![Howie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Howie](https://forums.unrealengine.com/u/Howie)\
**Post date:** [October 19, 2016, 7:55pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686/3 "2016-10-19T19:55:40Z")

</div>

thanks , appreciate it!

---

<div class="post-metadata">

**Author:** ![Machina.Widmo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Machina.Widmo](https://forums.unrealengine.com/u/Machina.Widmo)\
**Post date:** [October 24, 2016, 4:41pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686/4 "2016-10-24T16:41:14Z")

</div>

Howie,

Some basic double jump functionality was added to the engine in 4.13 (which is why the Jump Max Count variable was introduced). The behavior you’re describing is as intended for the built in double jumping.

In order to get around this behavior, you can modify the CanJumpInternal\_Implementation and CheckJumpInput function in ACharacter (note, these are both C++ functions not exposed to blueprints).

Thanks,  
Jon N.

---

<div class="post-metadata">

**Author:** ![Howie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Howie](https://forums.unrealengine.com/u/Howie)\
**Post date:** [October 24, 2016, 6:31pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686/5 "2016-10-24T18:31:47Z")

</div>

So when you walk your character off a ledge its intended to count as a jump? If so why doesn’t the jump current count get updated to 1 when I walk off a ledge?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 24, 2016, 8:09pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686/6 "2016-10-24T20:09:22Z")

</div>

The Jump Current Count variable is updated inside the CheckJumpInput() function. The variable doesn’t get updated since the function isn’t called when you walk off the ledge.

---

<div class="post-metadata">

**Author:** ![Machina.Widmo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Machina.Widmo](https://forums.unrealengine.com/u/Machina.Widmo)\
**Post date:** [October 25, 2016, 3:00pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686/7 "2016-10-25T15:00:49Z")

</div>

Howie,

To build off of what had mentioned, there were some subtleties with the way we count jumping. The engine doesn’t have a “Falling from jump” or even “Jumping” state. Immediately as soon as we start jumping, the character is immediately “falling”.

There were a few weird edge cases with CanJump that have been taken care of in 4.14, but this behavior is still the same.

Thanks,  
Jon N.

---

<div class="post-metadata">

**Author:** ![Howie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Howie](https://forums.unrealengine.com/u/Howie)\
**Post date:** [October 25, 2016, 3:54pm UTC](https://forums.unrealengine.com/t/double-jump-does-not-work-when-walking-off-ledge/373686/8 "2016-10-25T15:54:45Z")

</div>

thanks guys appreciate the help, i still think its a bit confusing from a bluepoint perspective but the work around is easy enough
