how do I fix compiler errors?

trying to follow the tornado twins tutorial:

but when I put the code into java to control my character I get a compiler error, what is wrong with the script or what can I do to control my character?

The error tells you what line is causing the problem and the type of problem.

Youtube tutorials are not … good to just blindly follow along with.

a good way may be to post ur code and the error here and see if anyone will help you :wink: most likely somebody will!

The compiler tells a pretty accurate story to you. It tells you the script, and line in question and the error type. Double click it, it takes you right there as well as highlights the object it is referencing. If you do not understand the error, google the error.

var speed : float = 3.0;
var rotateSpeed : float = 3.0;
function Update ()
{ var controller : CharacterController = GetComponent(CharacterController); transform.Rotate(0, Input.GetAxis (“Horizontal”) * rotateSpeed, 0); var forward : Vector3 = transform.TransformDirection(Vector3.forward); var curSpeed : float = speed * Input.GetAxis (“Vertical”); controller.SimpleMove(forward * curSpeed);
}
@script RequireComponent(CharacterCont*roller)

That was what was given in the tutorial

You spelt CharacterController, CharacterControll*er.

I didn’t spell anything, just copied it.

So is that error what’s causing the problem?

what does the error say? It tells you what is wrong