- Home /
This question was
closed Feb 15, 2015 at 10:21 PM by
meat5000 for the following reason:
The question is answered, right answer was accepted
Question by
exogenesis12 · Nov 09, 2013 at 08:15 PM ·
errorbce0044uce0001bce0043
How can solve these errors in my java script
#pragma strict
var rotationSpeed = 100;
var jumpHeight = 8;
private var isFalling = false;
function Update ()
{
//Handle ball control
var rotation : float = Input.GetAxis ("Horizontal") * rotationSpeed;
rotation *= Time.deltaTime;
rigidbody.AddRelativeTorque (Vector3.back * rotation);
if (Input.GetKeyDown(KeyCode.W))
(
rigidbody.velocity.y =; jumpHeight;
}
}
Comment
Please format your code properly - it's very hard to read in its current state.
When asking about errors, you should always include full error message. Properly formatting your code, would be a good idea as well - please spend a moment on watching the tutorial video (link on the right of the page).
Btw - in your case, the problem is probably semicolon after = sign.
Best Answer
Answer by Starwalker · Nov 10, 2013 at 04:29 AM
rigidbody.velocity.y =; jumpHeight;
Please do a few tutorials before you post such errors. ";" ...
Follow this Question
Related Questions
3 java errors on a basic shooting script? 2 Answers
Please help, syntax error woe 2 Answers
Converting My JS code into UnityScript 1 Answer