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
Share
Go down
Member [Lv. 1]
Member [Lv. 1]
Posts : 3
Points : 1022
Rep : 0
Join date : 2015-10-09
View user profile

Introduction: Hello my name is Knox Overstreet :-)

on Fri Oct 09, 2015 7:53 pm
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.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum