Slower Moving.

var Speed : float = 0.1;



function Update(){

  if(Input.GetKey(KeyCode.LeftArrow)){

  transform.Translate(Vector3(-Speed,0,0));

  } 

  else if(Input.GetKey(KeyCode.RightArrow)){

  transform.Translate(Vector3(Speed,0,0));

  }

}

Hi Everyone!

So easy question how can i make the object move slower ?

If i go lower than 1 the speed doesn’t reduce ?

Any reason for that, or is there a better way ?

Thanks in Advance
Wentzel

Hi!, use Time.deltaTime to reduce the speed…

multiply your speed with Time.deltaTime and there you go.

Thanks Dude!