Search Unity

Help! Jumping too fast!

Discussion in '2D' started by yawnm3, Dec 23, 2014.

  1. yawnm3

    yawnm3

    Joined:
    Dec 20, 2014
    Posts:
    10
    Hi, how can I make sure the character jumping is maintained? For example, whenever I click on space, the character jumps. So when I click on left while jumping, the character seems like gliding in the air to the left. It's like a short distance flying. How do I avoid that? Locking the framerate?

     
  2. Ilingis

    Ilingis

    Joined:
    Dec 13, 2012
    Posts:
    63
    Can you better describe what is the problem you have? If you want the character to fall more quickly you can change its gravity via rigidbody2D.gravityscale.
     
  3. vakabaka

    vakabaka

    Joined:
    Jul 21, 2014
    Posts:
    1,153
    what "jump" do you will exactly ? :D
    if you dont need controlle over player if it is in air, so disable controlle. Like,
    if (!isJumping)
    {here moving script}

    if it too fast, then make as IIingis said.