Unreal blueprint: Change character jump height on one object

I am trying to make the character jump higher when jumping off an object. I don’t want the character to be launched immediately when colliding. I want the character to have a higher jump only when pressing the space bar on the object.

I already set the jumping z velocity to update in the character blueprint. The longer you press space, the higher the character jumps. I am not sure how I can change the jump z velocity while on the object, AND not affect the character’s jump when off the object. I appreciate any help you can provide. Thank you!

1 Like

Can you add a collision box to the object?
On begin overlap, make adjustments.
On end overlap, reset adjustments.

Or make an actor with one called JumpEnhancer. Place wherever you want the enhancement to occur.

1 Like

Or make an actor with one called JumpEnhancer. Place wherever you want the enhancement to occur.

This is one way to go, definitely. Another is to make a component and attach it to existing actors - that’s the direction I’d take - an extended static mesh component, probably.

However, in case you’re after a more straightforward approach, do consider the following instead:

  • I gave a component in the scene a couple of tags:

If we jump off it, it will boost our jump height 3.5 times.

  • the player can interpret that data when attempting to jump and apply that multiplier:

  • the two functions:


  • tapping space jumps at default jump

  • holding space for longer than 1s sends us up to 3x higher based on time held

  • standing on a isBouncy surface multiplies the above further:

That’s what I got from the description. Hope you can incorporate some of it.


Project:

1 Like