Hi, I'm having some trouble with semicolons. Whenever I try to run the simple game using this script, it says all compiler errors must be corrected. I have googled this problem, and it seems all the solutions are not similar, it's just a problem with the script. I copied this script through a video tutorial, and it would be great if someone could help and find my error.
Thanks, Quinn
var moveSpeed: float - 1.0;
var turnSpeed: float - 1.0;
function Update ()
{
/*
if(Input.GetButtonDown("jump"))
{
transform.position.z += 1.0;
}
*/
if(Input.GetButton("Forward"))
{
transform.position += transform.forward * moveSpeed * Time.deltaTime;
}
if(Input.GetButton("Backward"))
{
transform.position += -transform.forward * moveSpeed * Time.deltaTime;
}
if(Input.GetButton("Left"))
{
transform.eulerAngles.y += -turnSpeed * Time.deltaTime;
}
if(Input.GetButton("Right"))
{
transform.eulerAngles.y += turnSpeed * Time.deltaTime;
}
}