Hi I am trying to make a simple 2D platformer and I am having the hardest time trying to figure
out how to get my block to move
and when I think that I fixed it Unity says
“An instance of type ‘UnityEngine.Transform’ is required to access non static member ‘Translate’.”
all I want is for it to move left and right THATS ALL!
Help!
public var movespeed = 5f;
function Update ()
{
if(Input.GetKeyDown(KeyCode.A)){
Transform.Translate(Vector3.left * movespeed * Time.deltaTime);
}
}