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
This is the prefab i instantiate: https://gyazo.com/e1b7ab7a95f9a44098df182a1bd5c37d And this is the object i try to change values on: https://gyazo.com/bfc6136f3a3c98bf8f64c0d6a996a8df
– nikcioAs Commoble said. Either it's not finding that gameobject named "Name" or the gameobject doesn't have Text. OR Druk_A_C[A] isn't returning an actual object.
– CesarNascimento