- Home /
error with script plz help!
Hi guys
I was learning a pdf tutorial about scripts and there is a code that I had to write so I copied the code from the tutorial and paste it in the script.But then a sentence appears at the bottom bar of unity saying:
"Assets/Move1.js(7,10): BCE0044: expecting (, found 'Update'."
as in this picture: http://www.freeimagehosting.net/image.php?8a543d92c1.jpg
and also when I click on Play A sentence appears saying: "All compiler errors have to be fixed before you can enter playmode!"
Any one knows how to fix this?
Thanks
Yes, please edit your post to include the script (as suggested below).
Please add your code as an edit to your original post, not as an answer. Also, please use the code formatting button (the one with the 1s and 0s on it), and indicate which line of code the error refers to.
Answer by FLASHDENMARK · Dec 04, 2010 at 08:19 PM
Well, we cant tell you precisely what is wrong with your script if you dont show us your script.
Answer by George 4 · Dec 04, 2010 at 10:14 PM
Oh yes I forgot :D
This is the script that I had to write:
===============================================
var speed = 5.0;
function Update () {
var x = Input.GetAxis("Horizontal") Time.deltaTime speed;
var z = Input.GetAxis("Vertical") Time.deltaTime speed;
transform.Translate(x, 0, z);
}
===============================================
And if you want you can download the pdf tutorial from here:
http://www.2shared.com/document/l62J0u4m/2_-_Scripting_Tutorial.html
note: the script that I had to write is in page 4.
Your answer
Follow this Question
Related Questions
HELP ME PLEASE!----------------------------!? 1 Answer
scripting problem with if statements 1 Answer
BCE0044: expecting }, found 'class' alond with BCE0044: expecting EOF, found 'Card' 1 Answer
Problems with my grenade PLEASE HELP! 1 Answer
Getting several BCE0044 compiler errors for OnCollisionEnter. Is my syntax wrong? 4 Answers