How to decrease speed on an axis

I found out that my player object moves faster on higher frames. Does anyone know how to balance that. This is the only code I have so far

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Movement : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{
    
}

private void FixedUpdate()
{
    transform.Translate(Input.GetAxis("Horizontal"), 0f, 1f * Time.deltaTime);
}

}

Hi,

I assume that your player moves along the z axis consistently? If so, your question must relate to the x axis which is being manipulated by the “Horizontal” axis.

I recommend storing the value of the Horizontal axis in a variable and then defining a moveSpeed variable to control things better.

public float move;

void Update()
    {
            // Get the horizontal axis    
            var move = Input.GetAxis("Horizontal") * moveSpeed;
    
            //Move transform via translate across the object's z axis
            transform.Translate(move* Time.deltaTime, 0, 1f* Time.deltaTime);
    
    }

Here you can assign the move speed in the inspector and test the value until it feels right.

Hope that helps

That did thanks.