Search Unity

Error during jump

Discussion in '2D' started by aled96, Jul 11, 2014.

  1. aled96

    aled96

    Joined:
    Mar 9, 2014
    Posts:
    39
    Hi, i am making a 2D game, like "Super Mario", a platform game.

    I have a terrain composed by differt parts, that are placed side by side (each part has its own edge collider 2D).

    The character jumps if i press the UP arrow. Sometimes the character does a very big jump. This happens when the character jumps very near an object...

    What can i do to solve this problem ?

    Here you can download the demo of the game for testing and see what is the problem :)

    https://www.dropbox.com/sh/x8ff4ajzg70h2k2/AAA03gDiLqd7ZXNBrnLt2L87a

    Thank you so much :)
     
    Last edited: Jul 12, 2014
  2. Kilrath81

    Kilrath81

    Joined:
    Nov 19, 2013
    Posts:
    153
    First off you should put up web player for tests. You can do that with dropbox. Secondly you need to look at what your up arrow does for code... If your collider is picking up a wall as ground and you press the up button and it jumps again..
     
  3. aled96

    aled96

    Joined:
    Mar 9, 2014
    Posts:
    39
    I solve it, i just have to add an "if" :)
     
  4. aled96

    aled96

    Joined:
    Mar 9, 2014
    Posts:
    39
    Sorry but how can i create a web player and using with dropbox ? :)
    Thank you