- Home /
This question was
closed Jan 02, 2015 at 01:30 PM by
Landern for the following reason:
Duplicate Question
Question by
ramuskelbandit · Jan 02, 2015 at 01:30 PM ·
horizontal movement
Error UCE0001
Hello im new to coding in java script. I get this error on my code: UCE0001 ';' expected insert a semicolon at the end.
My code:
pragma strict
var rotationspeed = 80; var jumpheight = 7;
private var isfalling = false;
function Update () { //Flyttar bollen sidleds var rotation : float = Input.GetAxis ("Horizontal") rotationspeed; rotation = Time.deltaTime; rigidbody.AddRelativeTorque (Vector3.back * rotation);
if (Input.GetKeyDown (KeyCode.UpArrow) && isfalling == false)
{
rigidbody.velocity.y = jumpheight;
function (OnCollisionExit)
isFalling = true
}
function (OnCollisionStay)
isfalling = false;
}
Comment