Veyr new to Unity, and trying to get the ball rolling.
Follows a few tutorials, and now i’m stuck as id’ like to get my player to be restricted within a boundary on the axis.
this is my player movement code…
amtToMove = playerSpeed * Input.GetAxis("Horizontal") * Time.deltaTime;
transform.Translate(Vector3.right * amtToMove);
However I haven’t a clue where to go from here.
Any help, redirects would be most appreciated