Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Character Jump varies between computers

Discussion in '2D' started by FahidK, Nov 15, 2014.

  1. FahidK

    FahidK

    Joined:
    Oct 21, 2013
    Posts:
    11
    Greetings,

    I made a prototype for a 2d sidescroller in c#, I have a webplayer link for it too, so the character is constantly jumping after touching the ground "doodle jump" style, I tried the game on +10 computers, they all ran the game the way I planned, I bought a new lapotop and for some reason the jump height is irregular, the character doubles the jump height randomly both in Unity and web player.

    I'm very confused on what could be causing this but somehow I have a feeling that it's something within the laptop and not the code itself, so any thoughts on this issue is much appreciated.

    Thank you.
     
  2. shaderbytes

    shaderbytes

    Joined:
    Nov 11, 2010
    Posts:
    900
    I doubt its the laptop, how are moving the character when you jump? Are you using Time.deltaTime to make sure you get consistent behaviour for varying frame frates?
     
    FahidK likes this.
  3. FahidK

    FahidK

    Joined:
    Oct 21, 2013
    Posts:
    11
    Hi, Thanks for the response, I thought I had this in my code cause I usually use, turns out I didn't, I did add it and fixed other values to balance the jump height, it's working, thank you for the help :)