Help with Flash If Else Statement?

  • Thread starter Thread starter jamie k
  • Start date Start date
J

jamie k

Guest
I am getting 1 error saying:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 67:
'else' encountered without matching 'if'
} else {

Total ActionScript Errors: 1 Reported Errors: 1


This is my code on flash:

onClipEvent (enterFrame) {
if (!_root.ground.hitTest(this._x, this._y, true) && !jumping) {
this._y += 6; }
if (_root.dead) {
this.gotoAndStop("dead");}
} else {
if (dir == "right" && !_root.leftblock.hitTest(this._x+20, this._y, true)) {
_root.score._x += speed;
this._x += speed;
_root._x -= speed;
}


any help? tried anything
 
Back
Top