I’d like to ask about double jumping here. Now, I know it’s more about letting you do jump twice. However, when the game object is descending, the double jump force gets lessened, weaker than when I just tell the object to jump before it started descending. I want to make a consistent double jumping. Here’s my code so far for jump:
if (stateJump)
rigidbody2D.addForce(new Vector2 (0, 200*Time.deltaTime));
(stateJump being a state where it’s OK to jump, like if you press up arrow.)
Yes. But velocity fall is based on gravity. So, you let physics do it thing with gravity (or just give more force to the gravity itself), or you can disable gravity and manage yourself the falling.