Hello, I have a basic movement code that works fine, but the problem is it goes VERY slow. Does anyone have tips on how to speed it up?
// Update is called once per frame
void Update () {
transform.Translate(Input.GetAxis(“Horizontal”) * Time.deltaTime, 0f, Input.GetAxis(“Vertical”) * Time.deltaTime);
}
}
You need to multiply your input axis’ by your movement speed. Preferably make it a public float to modify it in the inspector. For example:
public float MovementSpeed = 1000;
void Update()
{
transform.Translate(Input.GetAxis("Horizontal") * MovementSpeed * Time.deltaTime, 0f, Input.GetAxis("Vertical") * MovementSpeed * Time.deltaTime);
}