- Home /
Question by
nickm123456789 · Jul 02, 2011 at 08:59 AM ·
errorsyntax-errorbce0044
BCE0044: expecting :, found '='
{
//we're hit! Spin our character around
transform.Rotate(0,tumbleSpeed * Time.deltaTime,0, Space.World);
tumbleSpeed = tumbleSpeed-decreaseTime;
decreaseTime += decayTime;
}
}
function (hit : ControllerColliderHit) //onTriggerEnter : collider
{
if(hit.gameObject.tag == "fallout");
{
dead = true; //the error is on this line, please help!
//subtract life here
HealthControl.LIVES -= 1;
}
if(hit.gameObject.tag == "enemyProjectile")
{
gotHit = true;
}
}
Comment
Answer by Graham-Dunnett · Jul 02, 2011 at 08:45 PM
You have a semi-colon at the end of your if() statement. Also, your function appears to not have a name. Was that intentional? Also, also, the way the code is formatted suggests you might be missing a close bracket for the code before your function.
Answer by Grady · Jul 02, 2011 at 02:15 PM
Have you made sure that you can't find any errors, just make sure that you check it over and over, even the simple things!!!!
Hope this helps
-Grady
Your answer
Follow this Question
Related Questions
BCE0044 error: OnControllerColliderHit 2 Answers
SwipeControl package error in unity iPhone 1.7 1 Answer
(10,47): BCE0044: expecting :, found '='. 2 Answers
script error GUI super simple code 3 Answers
error help 2 Answers