Scripitng Problem please help

Assets/BallControl.js(8,19) BCE0043: Unexpected token *=.

please help

Sounds like an unexpected token problem.

3 Likes

i followed Brackeys tutorial and everything is same

Can we see some code?

#pragma strict

var rotationSpeed = 100;

function Update ()
{
var rotation : float = input.GetAxis (“Horizontal”) * rotationSpeed;
rotation *= Time.deltaTime;
rigidbody.AddRelativeTorque (Vector3.back Rotation);
}

Here it is

I’m not familiar with using JavaScript in Unity, I use C#.

But this line is weird to me:

i fixed this problem Assets/BallControl.js(8,19) BCE0043: Unexpected token *=. but now i have another
Assets/BallControll.js(7,25): UCE0001: ‘;’ expected. Insert a semicolon at the end.

I solved the problem, thanks anyway