- Home /
Question by
drakeboy44 · Mar 15, 2013 at 11:28 PM ·
compiler-error
how do i fix this error?
i have a compiler error ; Assets/moveAround.js(7,70): BCE0044: unexpected char: 0xAD. But I don't know what it means heres my code;
var speed = 3.0;
var rotateSpeed = 3.0;
function update ()
{
var controller : CharacterController = GetComponant(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);
}
@script RequireComponant(CharacterController)
Comment
Answer by DaveA · Mar 15, 2013 at 11:31 PM
My guess is you have an ascii char > 127 in line 7 and the editor doesn't show it. Delete that line. In fact, delete all white space from the end of line 6 to the // in line 8, then add it back.