Make a Character Fall When a Button is Pressed?

Discussion in 'How Can I...?' started by cioccaapps, Dec 7, 2015.

  1. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    Is it possible to make a character fall back to the ground gradually when a button is held?
    I am able to get the character to float upwards with gravity settings but there does not seem to be a way to get them back down.
     
  2. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    As I understand you have a positive Y value for the gravitation so your physics objects including the character goes up instead of down? I guess then you need to have the jump force as a negative Y so when you "jump" it will go down...
     
  3. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    @trudnai Do you know if it's possible to make a character fall or come down for a prolonged time while holding a button?
     
  4. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Yes, you can achieve that either with the jump force and giving a big jump timeout or you can use the move down button...
     
  5. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    @trudnai What would be a good jump timeout amount to use? I have used the move down button before and it never did anything. Thanks.
     
  6. cioccaapps

    cioccaapps Boxer

    Joined:
    Dec 2, 2015
    Messages:
    45
    Likes Received:
    15
    Thanks so much for the info @trudnai I just messed around with the jump timeout amounts and it seems like it all works out.
     
  7. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    Cool man, glad it helped.
     

Share This Page