my computer keeps on saying that i don’t have a semi colon at the end of lines 22 and 18
My Scripts Below:
var speed = 24.0;
var rotateSpeed = 3.0;
var bullitPrefab:Transform;
function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
// Rotate around y - axis;
transform.Rotate(0, Input.GetAxis (“Horizontal”) * rotateSpeed, 0);
// Move forward / backward
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis (“Vertical”);
controller.SimpleMove(forward * curSpeed);
if(Input.GetButtonDown(“X”));
var bullit:Instiniate (bullitPrefab) GameObject.Find(“Spawn Point”)transform.position Quaternion.identity;
EOF;
script RequireComponent (CharacterController);EOF }
I don’t know the problem PLEASE HELP!!!
Later…
I’ve tried your suggestions but it gives another error … I don’t know if it’s the scripting program i’m using or what. I am getting very frustrated because i can’t test the game out until I figure out the scripting errors. I’ve tried doing the ‘Tornado Twins’, but it gives me a error that I can’t figure out!!! If it helps here are what the errors say…
-Assets/NewBehaviorScript.js(19,7): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-Assets/NewBehaviorScript.js(19,32): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-Assets/NewBehaviorScript.js(19,63): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-Assets/NewBehaviorScript.js(19,72): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-Assets/NewBehaviorScript.js(19,81): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-Assets/NewBehaviorScript.js(19,92): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-Assets/NewBehaviorScript.js(21,7): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-Assets/NewBehaviorScript.js(21,45): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-Assets/NewBehaviorScript.js(21,48): UCE0001: ‘;’ expected. Insert a semicolon at the end.
-All compiler errors have to be fixed before you can enter playmode! UnityEditor.SceneVeiw:ShowCompileErrorNotification()
Also, I made some changes to my script…
var speed = 24.0;
var rotateSpeed = 3.0;
var bullitPrefab:Transform;
function Update ()
{
var controller : CharacterController = GetComponent(CharacterController);
// Rotate around y - axis;
transform.Rotate(0, Input.GetAxis (“Horizontal”) * rotateSpeed, 0);
// Move forward / backward
var forward = transform.TransformDirection(Vector3.forward);
var curSpeed = speed * Input.GetAxis (“Vertical”);
controller.SimpleMove(forward * curSpeed);
if (Input.GetButtonDown(“X”))
bullit Instiniate(bullitPrefab) GameObject.Find(“Spawn Point”)transform position Quaternion identity;
script RequireComponent(CharacterController)EOF }
PLEASE ANSWER MY PRAYERS!!!: )
Which line because I can't find lines 18 and 22.
– NhommeBeurreOneThat's right, just do what the compiler tells you. Look at at the code at that line. But if you want help, you better learn how to format code and edit your reply, otherwise everyone will ignore your question
– TsengYou have two semi-colon on the first line.
– NhommeBeurreOne