How can i make my character constantly run

You know how the game “temple run” Makes you constantly run im trying to make a game like that but in 1st person Any tips, Thanks :stuck_out_tongue:

The question pretty much answers itself.
Instead of sometimes not running, do always run instead.

I mean…

function Update() {
transform.position += transform.forward * speed * Time.deltaTime;
}

Or if you’re using a character collider I think there’s a SimpleMove that takes terrain changes into account.

If you are using a character controller you can do something like

var controller:CharacterController = GetComponent(CharacterController);
var MoveDirection:Vector3;
var speed : float = 100;

    function Update() {
      MoveDirection = transform.forward;
      MoveDirection *= speed;
      controller.Move(MoveDirection * Time.deltaTime); //or without deltaTime depending on what you want to achieve later on
    }

Or use transform.Translate(Vector3.forward * speed * Time.deltaTime); //but beware of collisions