Double jump not working properly

I created a double jump function on my character with an increased “Jump max hold time” to let the jump be higher if the button is held. Everything works properly if i jump from land… but if i am falling and try to make a middle-air jump it doesnt start. I tried doing it by enabling one jump if target is falling but in that case the target start jumping infinitely.
(I am quite sure that this problem is due to the jump max hold time) How can i obtain a working middle-air jump without that “infinite jump” problem?

I found this method here: Part 2: Player Controller - 2D Platformer with Unreal Engine 4

however it didn’t mention the requirement of using the max hold time in order to get it to work.

This is how I was able to get double jump to work for me. this includes the ability to jump after falling from a ledge. I am not 100% sure this is what you were after but this method worked well for me.

  1. ensure your “Jump Max Hold Time” is set to like .1 for example, whatever your desired value is.
  2. set up a variable “JumpCount” in your blueprint with and set it as an integer with a default value of 0.
  3. then modify your jump blueprint EXACTLY like this:

hope that works for you, or at least gets you close to what you wanted :slight_smile:

I tried this in UE 4.19 and it does not actually accelerate the player in the Z direction. Is there something else to the functionality that will cause the player to jump when not on a surface?

This actually works: