Game behaves differently in build version

Hi there,

I have a little racing game that is coming along nicely but for some reason has just started playing up.

My car behaves perfectly in the preview window but when I build the game, acceleration and braking are ridiculously strong, yet the top speed is the same…

I am using Time.deltaTime… so I can’t see why this would be happening… here is the code:

// If W key is pressed, accelerate
    
    	if (Input.GetKey("w"))
    
    	{
    
    		if (fSpeed < fMaxSpeed)
    
    		{
    
    			fSpeed += fAcceleration;
    
    		}
    
    	
    
    		transform.Translate(0.0f, 0.0f, fSpeed * Time.deltaTime);
    
    	}
    
    	// If S key is pressed, brake
    
    	else if (Input.GetKey("s"))
    
    	{	
    
    		if (fSpeed > 0.0f) // Brakes only work if car is moving
    
    			{
    
    				fSpeed -= fBrakeForce;
    
    				transform.Translate(0.0f, 0.0f, fSpeed * Time.deltaTime);
    
    			}
    
    	}
    
    	// If no input, slow down gradually
    
    	else
    
    	{
    
    		if (fSpeed > 0.0f) // So that car doesn't move in reverse when comes to stop
    
    		{
    
    			fSpeed -= fDecceleration;
    
    			transform.Translate(0.0f, 0.0f, fSpeed * Time.deltaTime);
    
    		}
    
    	}

Time.deltaTime is basicly FPS or Frames Per Second. The editor uses less fps, which when you build your FPS is higher. So it’s fSpeed * Time.deltaTime. Imagine this your speed is 10 and first the editor’s FPS is 20. 10 x 20 = 200. Now you build. 10 x 30 = 300. Just by the fps being 10 more your speed increases by 100. I would suggest bringing the speed down.