Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » Welcome! » Introduce Yourself! » Introduction: Hello my name is Knox Overstreet :-)

Introduction: Hello my name is Knox Overstreet :-)

View previous topic View next topic Go down  Message [Page 1 of 1]

KnoxOverstreet86


Member [Lv. 1]
Member [Lv. 1]
Hello my name is Knox Overstreet. I am a Corporate Trainer and Web Developer where I work. I am just now starting to get into Game Development. I am working on a couple of small projects before jumping into my first game idea. I have the first level almost complete, but I'm running into an issue with the code. It says to add a semicolon at the end of line 14,58. There is already a semicolon at the end of that line. Can anyone help me with these errors?

BEGINNING OF CODE FOR EXAMPLE


#pragma strict

function Start () {

}

function Update () {

var fowardSpeed ; float = 3;
var turnSpeed ; float - 2;


//this is the forward speed that will actually happen
var forwardMoveAmount = Input.GetAxis("Vertical")"forwardSpeed";

//actual turn amount
var turnAmount = Input.GetAxis("Horizontal")*turnSpeed;

transform.Rotate(0.699934,turnAmount,3.08);

//rotate the vehicle
transform.Rotate = (0,turnAmount,0);

//push the vehicle forward with a force
rigidbody.AddRelativeForce(x,y,z);



}

END OF CODE FOR EXAMPLE

ok so apparently it won't let me post the image. I will type out the error message.

ERROR MESSAGE

Assets/CarController.js(14,58): UCE0001: ';' expected. Insert a semicolon at the end.

any help would be greatly appreciated.

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum