Unima9000
New member
Hello.
I'm making arcade shooter using UFPS2.
I want my character to be able to do a double jump. For that purpose i using parameter "Max Repeated Jump Count". Set it to 1.
But there is the problem occurs:
My character's jump force on ground is different than jump force while it being in air.
Seems like, the more character is being in air, the more it's being pushed by gravity towards the ground.
So, for example, if i jump with my character from super high platform and continues to fall for a long time, when i press "Jump" - char. wont jump, because accumulated gravity force if much bigger than jump force.
So, my question is:
How to reset accumulated gravity down to 0 at the moment when jump occurs?
Here is the gifs to illustrate the problem:
1) Jump on the ground
Jump occurs normally:
2) Jump in air, after long falling
I pressed jump right before ground several times, but it looks like i didn't at all, because accumulated gravity force is too strong:
I'm making arcade shooter using UFPS2.
I want my character to be able to do a double jump. For that purpose i using parameter "Max Repeated Jump Count". Set it to 1.
But there is the problem occurs:
My character's jump force on ground is different than jump force while it being in air.
Seems like, the more character is being in air, the more it's being pushed by gravity towards the ground.
So, for example, if i jump with my character from super high platform and continues to fall for a long time, when i press "Jump" - char. wont jump, because accumulated gravity force if much bigger than jump force.
So, my question is:
How to reset accumulated gravity down to 0 at the moment when jump occurs?
Here is the gifs to illustrate the problem:
1) Jump on the ground
Jump occurs normally:
2) Jump in air, after long falling
I pressed jump right before ground several times, but it looks like i didn't at all, because accumulated gravity force is too strong: