- Home /
Question by
TheDavyStar · Nov 30, 2012 at 08:56 AM ·
errorwith
Solve me this unexpected token error?
I'm starting with Unity cookie. I think I followed the script exactly (Albeit on Monodevelop) but I seem to have done something wrong with an empty line. If I take it away but the error is still thereabouts. Here's the script
var forwardSpeed : float : 3; var turnSpeed : float : 2;
function Update () -{ //this is the forward speed that will actually happen var forwardMoveAmount = input.GetAxis("Vertical")*forwardSpeed;
//actual turn amount var turnAmount = Input.GetAxis("Horizontal")*turnSpeed;
transform.Rotate(0,turnAmount,0);
Comment
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
How to use publisher account?? 0 Answers
Unity Script Editor Not Working 1 Answer
Set Graphics Emulation to No Emulation as Default? 2 Answers