Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Scripitng Problem please help

Discussion in 'Scripting' started by OSCAR DEVELOPMENT, Mar 6, 2016.

  1. OSCAR DEVELOPMENT

    OSCAR DEVELOPMENT

    Joined:
    Mar 6, 2016
    Posts:
    5
    Assets/BallControl.js(8,19) BCE0043: Unexpected token *=.

    please help
     
  2. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
    Sounds like an unexpected token problem.
     
    Kurt-Dekker, Kiwasi and ericbegue like this.
  3. OSCAR DEVELOPMENT

    OSCAR DEVELOPMENT

    Joined:
    Mar 6, 2016
    Posts:
    5
    i followed Brackeys tutorial and everything is same
     
  4. ericbegue

    ericbegue

    Joined:
    May 31, 2013
    Posts:
    1,353
    Can we see some code?
     
  5. OSCAR DEVELOPMENT

    OSCAR DEVELOPMENT

    Joined:
    Mar 6, 2016
    Posts:
    5
    #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
     
  6. ericbegue

    ericbegue

    Joined:
    May 31, 2013
    Posts:
    1,353
    I'm not familiar with using JavaScript in Unity, I use C#.

    But this line is weird to me:
     
  7. OSCAR DEVELOPMENT

    OSCAR DEVELOPMENT

    Joined:
    Mar 6, 2016
    Posts:
    5
    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.
     
  8. OSCAR DEVELOPMENT

    OSCAR DEVELOPMENT

    Joined:
    Mar 6, 2016
    Posts:
    5
    I solved the problem, thanks anyway