# Help improving my Mario-style jumping setup

**URL:** <https://forums.unrealengine.com/t/help-improving-my-mario-style-jumping-setup/137432>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 1, 2020, 7:51am UTC](https://forums.unrealengine.com/t/help-improving-my-mario-style-jumping-setup/137432 "2020-02-01T07:51:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![HungryMoogle](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hungrymoogle/32/1194510_2.png) [@HungryMoogle](https://forums.unrealengine.com/u/HungryMoogle)\
**Post date:** [February 4, 2020, 6:37am UTC](https://forums.unrealengine.com/t/help-improving-my-mario-style-jumping-setup/137432/2 "2020-02-04T06:37:46Z")

</div>

Can anyone please help? ☹

I noticed that I forgot to add the brief invulnerability phase for the player upon jumping on the invincible enemy I made for testing purposes, only applying it to the other proper enemy I made. Unfortunately though, adding the missing invulnerability phase only appears to have reduced the frequency at which the player took damage from jumping on the enemy & not eliminate it altogether.

At point the only options I see available so far are increasing the “Position Solver Iteration Count” which I still don’t know what it is, and retooling my jump setup to get rid of the Launch Character node, which apparently is contributing to the problem. I just made a recent attempt at redoing my jump setup using the setup recommended in [topic](https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/32361-variable-jump-height-longer-key-presses-yield-a-higher-jump), but it hasn’t gone well:

> [@kenmorechalfant](#):
>
> I don’t know why my question was merged in with one. They are not the same at all.
> 
> The OP for thread does not want the jump delayed until the key is released, but rather, the jump should just add more velocity (mid-jump) if the key is held down longer… Which can be accomplished with the CharacterMovement component included in the Character class.
> 
> So, to the OP:
> 
> In your Character’s Construction Script, drag off a node from the Construction node and type “jump hold”, under Character, look for “Set Jump Max Hold Time”. Then, I would make an editable variable so you can more easily edit on your Character later.
> 
> ![WAYeonc.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/c/1cc7117cb4f1ad7ed4adcaac6f2c493208dcfbd0.png)
> 
> Now, when you select your Character (top left), you should see your editable variable in the Details panel.
> 
> ![PUNXpIa.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/f/ff643ea6dc0b7be54ba912f6e793d0526187705c.png)
> 
> Over in your PlayerController, you also want to make sure that your only actually calling Jump when the player “Can Jump”; and also make sure to call “Stop Jumping” when you release the key.  
> Otherwise, you’ll be able to infinitely ‘double-jump’… going higher and higher… Which is probably not good.
> 
> ![pYT0cMP.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/c/ac9bfb497da77307c7f70183dc2b73627fe56577.png)
> 
> I think that’s all it takes.

The problem I’m having with setup, besides my character jumping way too high (necessitating changing their personal gravity, which in turn causes all sorts issues that need their own solutions), is it that my character is still taking damage as they did before, even when I’m not holding the jump button down.

I absolutely cannot have glitch in my game, but I just don’t know what to do, everything I’ve tried so far either seems to only reduce the frequency at which the glitch occurs but not eliminate it altogether or does nothing to alleviate the problem.

---

_[View the full topic](https://forums.unrealengine.com/t/help-improving-my-mario-style-jumping-setup/137432)._
