- Home /
Question by
KuzummJakk · Jan 11, 2013 at 02:25 PM ·
errortransformtransform.position
Can't use tranform.position.z
I'm a beginner and I'm trying to use this code
function Start () {
}
function Update () {
if (Input.GetButtonDown("Jump"));
{
transform.position.z +=5;
}
}
but it gives me an error saying
Assets/Move1.js(10,38): BCE0044: expecting :, found '+='.
Comment
Your answer
Follow this Question
Related Questions
transform.position.x brings up error 1 Answer
How to determine speed of an object when using transform.position 2 Answers
transform.position not executed with OnTrigger2D 1 Answer
Move gameObject with mouse 1 Answer
Attaching Object to mouse 1 Answer