Question by
MegaDiscGames · Nov 22, 2016 at 09:05 AM ·
2djavascriptbutton
Unity2d Error BCE0043: Unexpected token
I'm a noob when it comes to Javascript, can anyone help? I searched online for answers but nothing helped me out...
var speed; float;
function Start() {
void {}
{ } rigidbody : velocity: transform.forward * speed;
};
Thank you!
Comment
Answer by lazerblade01 · Nov 23, 2016 at 05:20 AM
Try converting that first semi-colon to a colon.
var speed : float;
Also, you don't need the semi-colon after the end braces ( } ) - those close a function or section automatically, and don't need to be closed / ended with a semi-colon.