Question by
BruteAsura · Apr 13, 2020 at 06:25 PM ·
movementmovement scriptmovements
How can I state the movement speed of this script?
I need to state the speed of this script, can someone please help me? Script:
{ // Start is called before the first frame update void Start() {
}
// Update is called once per frame
void Update()
{
Vector3 horizontal = new Vector3(Input.GetAxis("Horizontal"), 0.0f, 0.0f);
transform.position = transform.position + horizontal * Time.deltaTime;
}
Comment
Your answer
Follow this Question
Related Questions
Continous movement issue 0 Answers
Character Rotation 0 Answers
Movement acceleration 1 Answer
Unusual movement script. Any ideas how to do that? 0 Answers
My controls are wierd 0 Answers