remove damping smoothfollow2d

I’m making an auto 2D-sidescroller like Bit Trip Runner or Canabalt, and I’m using the smooth follow script.

The thing is that the smooth effect/damping make it looks like my character is placed to right. Becuase he’s always running the smooth effect is unnecessary. So my question is:

How can I remove the smooth follow effect and just make the camera follow the character?

Here’s the script:

var target : Transform;
var smoothTime = 0.3;
private var thisTransform : Transform;
private var velocity : Vector2;

function Start()
{
	thisTransform = transform;
}

function Update() 
{
	thisTransform.position.x = Mathf.SmoothDamp( thisTransform.position.x, 
		target.position.x, velocity.x, smoothTime);
}

If you want the camera locked to the player’s position on the x axis and y axis (assuming your 2 dimensions are x and y) then you’de use a much simpler script.

var target : Transform;
var distance : float;

function Update () {
    transform.position = target.position - transform.forward * distance;
}

That puts the player always right in the center of the screen with the camera backed up to distance.

Let’s say you wanted the camera to be centered just above the player, or just in front of the player.

var target : Transform;
var offset : Vector3;

function Update () {
    transform.position = target.position - offset;
}

Now in the inspector you can change the x & y values for offset to put the center of the camera wherever you want and the z value to move the camera forwards or backwards (negative will zoom out.)