- Home /
Question by
user-11907 (google) · Apr 22, 2011 at 07:27 PM ·
errorbce0044
Assets/NewBehaviourScript.js(10,29): BCE0044: expecting :, found ';'. HELP!
function Update ()
{
"if:(Input:GetButtonDown(Jump))"; {
"Transform:position:z : 1.0";
}
}
WHATS WRONG WITH THIS? THANKS :D
Comment
Answer by Chris D · Apr 22, 2011 at 07:47 PM
Your syntax is all off...a typical update function would look like this (in javascript):
function Update(){
if (Input.GetButton("Jump")){
transform.position.z = 1.0;
}
}
I'd recommend heading over to the scripting guide to take a look at how you should be writing your functions.
Your answer
![](https://koobas.hobune.stream/wayback/20220613124532im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
BCE0044: expecting '"', found '\r'. 1 Answer
BCE0044 error: OnControllerColliderHit 2 Answers
Error: expecting ( 1 Answer
SwipeControl package error in unity iPhone 1.7 1 Answer
BCE0044 error 1 Answer