Search Unity

Time.deltaTime not working? or is it another problem?

Discussion in 'Scripting' started by light766, Feb 24, 2010.

  1. light766

    light766

    Joined:
    Apr 23, 2009
    Posts:
    250
    I have a tank game and when i play the game, the tank goes fast, but when i go fullscreen the tank goes really slow? does anyone know why?

    i put * Time.deltaTime on everything moving already.
    How can i fix this problem? :(
     
  2. Aiursrage2k

    Aiursrage2k

    Joined:
    Nov 1, 2009
    Posts:
    4,835
    Prehaps in windowed mode vsync is enabled but in fullscreen mode its not.
     
  3. light766

    light766

    Joined:
    Apr 23, 2009
    Posts:
    250
    how can i change that?
     
  4. Sycle

    Sycle

    Joined:
    Nov 24, 2009
    Posts:
    446
    vsync shouldn't make a difference, the point of using Time.deltaTime is to make your game framerate independant.

    Light766, could you post the code you use to move the tank? Maybe we can troubleshoot it.