Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

I need help with this simple jump code..

Discussion in 'Scripting' started by donghong61, Feb 3, 2013.

  1. donghong61

    donghong61

    Joined:
    Dec 31, 2012
    Posts:
    55
    As you can see in this link, a game "line runner" simulates a simple animation.
    http://www.youtube.com/watch?v=0Yo8dWGdQVA
    I've noticed that in my game, If you hold the jump button? a little longer?? the character actually stays in the air for a little more.!
    I have made my game with animation, created a moving camera and blocks.
    I'm not good at coding. Could somebody provide me some examples?? or anyway someone can help me with this problem??
    Thanks in advance
     
  2. FlyingAce

    FlyingAce

    Joined:
    Jan 12, 2013
    Posts:
    58
    You'd have to provide more info (code) for me to help you, sorry I don't know the problem. Look at the standard asset's character motor, it has some good jumping, might be a little overwhelming to a new coder though