J
James Bond
Guest
My code for scores is not working corectly. Can someone help me fix it please
onClipEvent(enterFrame){
_root.Fail1._visible=false;
if(this.hitTest(_root.car1)){
_root.cone3._visible=false;
counter=counter+1;
_root.score=counter;
if (counter==1){
_root.score=Math.round((getTimer( )-time)/1000)+"seconds";
_root.strike1._visible=false;
_root.Fail1._visible=false;
}else{
}
if (counter == 2){
_root.strike2._visible=false;
_root.Fail1._visible=false;
}else{
}
if (counter == 3){
_root.strike3._visible=false;
_root.Fail1._visible = true;
}else{
}
}
}
onClipEvent(enterFrame){
_root.Fail1._visible=false;
if(this.hitTest(_root.car1)){
_root.cone3._visible=false;
counter=counter+1;
_root.score=counter;
if (counter==1){
_root.score=Math.round((getTimer( )-time)/1000)+"seconds";
_root.strike1._visible=false;
_root.Fail1._visible=false;
}else{
}
if (counter == 2){
_root.strike2._visible=false;
_root.Fail1._visible=false;
}else{
}
if (counter == 3){
_root.strike3._visible=false;
_root.Fail1._visible = true;
}else{
}
}
}