Instance of Symbol 16 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
_root.gotoAndPlay(58);
}
}
Frame 2
var level1 = true;
var level2 = false;
var level3 = false;
var level4 = false;
var level5 = false;
var level6 = false;
var level7 = false;
Frame 11
stop();
var dead = false;
var health = 100;
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
Instance of Symbol 181 MovieClip "ninja" in Frame 11
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
}
Instance of Symbol 56 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
if (_root.level1 == true) {
if (Key.isDown(40)) {
_root.gotoAndPlay("level1");
}
}
}
}
Instance of Symbol 183 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.level2 == false) {
this.gotoAndStop(2);
}
if (this.hitTest(_root.ninja)) {
if (_root.level1 == true) {
if (Key.isDown(40)) {
_root.gotoAndPlay(60);
}
}
}
}
Frame 20
stop();
Frame 51
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
Instance of Symbol 209 MovieClip "target1" in Frame 51
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.middleattack == true) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 214 MovieClip "target2" in Frame 51
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.topattack == true) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 220 MovieClip "target3" in Frame 51
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.bottomattack == true) {
this.gotoAndPlay(2);
}
}
}
Instance of Symbol 223 MovieClip "spikes" in Frame 51
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 1;
}
}
Instance of Symbol 181 MovieClip "ninja" in Frame 51
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.help._x = _root.help._x - _root.speed;
_root.spikes._x = _root.spikes._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.target1._x = _root.target1._x - _root.speed;
_root.target2._x = _root.target2._x - _root.speed;
_root.target3._x = _root.target3._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.help._x = _root.help._x + _root.speed;
_root.spikes._x = _root.spikes._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.target1._x = _root.target1._x + _root.speed;
_root.target2._x = _root.target2._x + _root.speed;
_root.target3._x = _root.target3._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Frame 53
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
var enemyspeed = 5;
var enemyadead = true;
var ajumping = false;
var afalling = false;
var afallspeed = 0;
var ajumpspeed = 0;
var enemybdead = true;
var bjumping = false;
var bfalling = false;
var bfallspeed = 0;
var bjumpspeed = 0;
Instance of Symbol 241 MovieClip "thetrigger" in Frame 53
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
_root.enemyadead = false;
_root.enemybdead = false;
this.gotoAndPlay(2);
}
}
Instance of Symbol 181 MovieClip "ninja" in Frame 53
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.jarea._x = _root.jarea._x - _root.speed;
_root.thetrigger._x = _root.thetrigger._x - _root.speed;
_root.enemya._x = _root.enemya._x - _root.speed;
_root.enemyb._x = _root.enemyb._x - _root.speed;
_root.darkness._x = _root.darkness._x - _root.speed;
_root.spikes._x = _root.spikes._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.target1._x = _root.target1._x - _root.speed;
_root.target2._x = _root.target2._x - _root.speed;
_root.target3._x = _root.target3._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.jarea._x = _root.jarea._x + _root.speed;
_root.thetrigger._x = _root.thetrigger._x + _root.speed;
_root.enemya._x = _root.enemya._x + _root.speed;
_root.enemyb._x = _root.enemyb._x + _root.speed;
_root.darkness._x = _root.darkness._x + _root.speed;
_root.spikes._x = _root.spikes._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.target1._x = _root.target1._x + _root.speed;
_root.target2._x = _root.target2._x + _root.speed;
_root.target3._x = _root.target3._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Instance of Symbol 300 MovieClip "enemya" in Frame 53
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (this._x > _root.ninja._x) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyadead == false) {
if (this._x < _root.ninja._x) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemya.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyadead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.afalling = false;
} else {
_root.afalling = true;
}
if (_root.afalling == true) {
this._y = this._y + _root.afallspeed;
_root.afallspeed = _root.afallspeed + 0.75;
}
if (_root.afalling == false) {
_root.afallspeed = 0;
_root.ajumpspeed = 10;
}
if (_root.afallspeed > 10.1) {
_root.afallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (_root.afalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ajumping = true;
} else {
_root.ajumping = false;
}
}
}
if (_root.ajumping == true) {
_root.afalling = false;
_root.afallspeed = 0;
_root.ajumpspeed = _root.ajumpspeed - 0.5;
this._y = this._y - _root.ajumpspeed;
}
if (_root.ajumpspeed < 0) {
_root.ajumping = false;
_root.afalling = true;
}
}
Instance of Symbol 319 MovieClip "enemyb" in Frame 53
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (this._x > _root.ninja._x) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemybdead == false) {
if (this._x < _root.ninja._x) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyb.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemybdead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.bfalling = false;
} else {
_root.bfalling = true;
}
if (_root.bfalling == true) {
this._y = this._y + _root.bfallspeed;
_root.bfallspeed = _root.bfallspeed + 0.75;
}
if (_root.bfalling == false) {
_root.bfallspeed = 0;
_root.bjumpspeed = 10;
}
if (_root.bfallspeed > 10.1) {
_root.bfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (_root.bfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.bjumping = true;
} else {
_root.bjumping = false;
}
}
}
if (_root.bjumping == true) {
_root.bfalling = false;
_root.bfallspeed = 0;
_root.bjumpspeed = _root.bjumpspeed - 0.5;
this._y = this._y - _root.bjumpspeed;
}
if (_root.bjumpspeed < 0) {
_root.bjumping = false;
_root.bfalling = true;
}
}
Frame 55
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
var enemyspeed = 5;
var enemyadead = true;
var ajumping = false;
var afalling = false;
var afallspeed = 0;
var ajumpspeed = 0;
var enemybdead = true;
var bjumping = false;
var bfalling = false;
var bfallspeed = 0;
var bjumpspeed = 0;
var enemycdead = true;
var cjumping = false;
var cfalling = false;
var cfallspeed = 0;
var cjumpspeed = 0;
Instance of Symbol 319 MovieClip "enemyb" in Frame 55
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (this._x > _root.ninja._x) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemybdead == false) {
if (this._x < _root.ninja._x) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyb.arms.gotoAndStop("attack");
}
}
if (_root.enemybdead == false) {
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.bfalling = false;
} else {
_root.bfalling = true;
}
if (_root.bfalling == true) {
this._y = this._y + _root.bfallspeed;
_root.bfallspeed = _root.bfallspeed + 0.75;
}
if (_root.bfalling == false) {
_root.bfallspeed = 0;
_root.bjumpspeed = 10;
}
if (_root.bfallspeed > 10.1) {
_root.bfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (_root.bfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.bjumping = true;
} else {
_root.bjumping = false;
}
}
}
if (_root.bjumping == true) {
_root.bfalling = false;
_root.bfallspeed = 0;
_root.bjumpspeed = _root.bjumpspeed - 0.5;
this._y = this._y - _root.bjumpspeed;
}
if (_root.bjumpspeed < 0) {
_root.bjumping = false;
_root.bfalling = true;
}
}
Instance of Symbol 345 MovieClip "enemyc" in Frame 55
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (this._x > _root.ninja._x) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemycdead == false) {
if (this._x < _root.ninja._x) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyc.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemycdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.cfalling = false;
} else {
_root.cfalling = true;
}
if (_root.cfalling == true) {
this._y = this._y + _root.cfallspeed;
_root.cfallspeed = _root.cfallspeed + 0.75;
}
if (_root.cfalling == false) {
_root.cfallspeed = 0;
_root.cjumpspeed = 10;
}
if (_root.cfallspeed > 10.1) {
_root.cfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (_root.cfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.cjumping = true;
} else {
_root.cjumping = false;
}
}
}
if (_root.cjumping == true) {
_root.cfalling = false;
_root.cfallspeed = 0;
_root.cjumpspeed = _root.cjumpspeed - 0.5;
this._y = this._y - _root.cjumpspeed;
}
if (_root.cjumpspeed < 0) {
_root.cjumping = false;
_root.cfalling = true;
}
}
Instance of Symbol 355 MovieClip "roof" in Frame 55
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja._x, _root.ninja._y, true)) {
_root.jumping = false;
_root.jumpspeed = 0;
_root.falling = true;
}
}
Instance of Symbol 181 MovieClip "ninja" in Frame 55
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.jarea._x = _root.jarea._x - _root.speed;
_root.thetrigger._x = _root.thetrigger._x - _root.speed;
_root.enemya._x = _root.enemya._x - _root.speed;
_root.enemyb._x = _root.enemyb._x - _root.speed;
_root.enemyc._x = _root.enemyc._x - _root.speed;
_root.darkness._x = _root.darkness._x - _root.speed;
_root.extras._x = _root.extras._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.roof._x = _root.roof._x - _root.speed;
_root.cannon._x = _root.cannon._x - _root.speed;
_root.target3._x = _root.target3._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.jarea._x = _root.jarea._x + _root.speed;
_root.thetrigger._x = _root.thetrigger._x + _root.speed;
_root.enemya._x = _root.enemya._x + _root.speed;
_root.enemyb._x = _root.enemyb._x + _root.speed;
_root.enemyc._x = _root.enemyc._x + _root.speed;
_root.darkness._x = _root.darkness._x + _root.speed;
_root.extras._x = _root.extras._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.roof._x = _root.roof._x + _root.speed;
_root.cannon._x = _root.cannon._x + _root.speed;
_root.target3._x = _root.target3._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Instance of Symbol 241 MovieClip "thetrigger" in Frame 55
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
_root.enemybdead = false;
_root.enemycdead = false;
this.gotoAndPlay(2);
}
}
Frame 57
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
var enemyspeed = 4;
var enemyadead = true;
var ajumping = false;
var afalling = false;
var afallspeed = 0;
var ajumpspeed = 0;
var enemybdead = true;
var bjumping = false;
var bfalling = false;
var bfallspeed = 0;
var bjumpspeed = 0;
var enemycdead = true;
var cjumping = false;
var cfalling = false;
var cfallspeed = 0;
var cjumpspeed = 0;
var enemyddead = true;
var cjumping = false;
var dfalling = false;
var dfallspeed = 0;
var djumpspeed = 0;
var enemyedead = true;
var ejumping = false;
var efalling = false;
var efallspeed = 0;
var ejumpspeed = 0;
var enemyfdead = true;
var fjumping = false;
var ffalling = false;
var ffallspeed = 0;
var fjumpspeed = 0;
Instance of Symbol 241 MovieClip "thetrigger" in Frame 57
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
_root.enemyadead = false;
_root.enemybdead = false;
_root.enemycdead = false;
_root.enemyddead = false;
_root.enemyedead = false;
_root.enemyfdead = false;
this.gotoAndPlay(2);
}
}
Instance of Symbol 345 MovieClip "enemyc" in Frame 57
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemycdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyc.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemycdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.cfalling = false;
} else {
_root.cfalling = true;
}
if (_root.cfalling == true) {
this._y = this._y + _root.cfallspeed;
_root.cfallspeed = _root.cfallspeed + 0.75;
}
if (_root.cfalling == false) {
_root.cfallspeed = 0;
_root.cjumpspeed = 10;
}
if (_root.cfallspeed > 10.1) {
_root.cfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (_root.cfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.cjumping = true;
} else {
_root.cjumping = false;
}
}
}
if (_root.cjumping == true) {
_root.cfalling = false;
_root.cfallspeed = 0;
_root.cjumpspeed = _root.cjumpspeed - 0.5;
this._y = this._y - _root.cjumpspeed;
}
if (_root.cjumpspeed < 0) {
_root.cjumping = false;
_root.cfalling = true;
}
}
Instance of Symbol 405 MovieClip "enemyd" in Frame 57
onClipEvent (enterFrame) {
if (_root.enemyddead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyddead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyd.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyddead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.dfalling = false;
} else {
_root.dfalling = true;
}
if (_root.dfalling == true) {
this._y = this._y + _root.dfallspeed;
_root.dfallspeed = _root.dfallspeed + 0.75;
}
if (_root.dfalling == false) {
_root.dfallspeed = 0;
_root.djumpspeed = 10;
}
if (_root.dfallspeed > 10.1) {
_root.dfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyddead == false) {
if (_root.dfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.djumping = true;
} else {
_root.djumping = false;
}
}
}
if (_root.djumping == true) {
_root.dfalling = false;
_root.dfallspeed = 0;
_root.djumpspeed = _root.djumpspeed - 0.5;
this._y = this._y - _root.djumpspeed;
}
if (_root.djumpspeed < 0) {
_root.djumping = false;
_root.dfalling = true;
}
}
Instance of Symbol 431 MovieClip "enemyf" in Frame 57
onClipEvent (enterFrame) {
if (_root.enemyfdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyfdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyf.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemyfdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.ffalling = false;
} else {
_root.ffalling = true;
}
if (_root.ffalling == true) {
this._y = this._y + _root.ffallspeed;
_root.ffallspeed = _root.ffallspeed + 0.75;
}
if (_root.ffalling == false) {
_root.ffallspeed = 0;
_root.fjumpspeed = 10;
}
if (_root.ffallspeed > 10.1) {
_root.ffallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyfdead == false) {
if (_root.ffalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.fjumping = true;
} else {
_root.fjumping = false;
}
}
}
if (_root.fjumping == true) {
_root.ffalling = false;
_root.ffallspeed = 0;
_root.fjumpspeed = _root.fjumpspeed - 0.5;
this._y = this._y - _root.fjumpspeed;
}
if (_root.fjumpspeed < 0) {
_root.fjumping = false;
_root.ffalling = true;
}
}
Instance of Symbol 181 MovieClip "ninja" in Frame 57
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.jarea._x = _root.jarea._x - _root.speed;
_root.thetrigger._x = _root.thetrigger._x - _root.speed;
_root.enemya._x = _root.enemya._x - _root.speed;
_root.enemyb._x = _root.enemyb._x - _root.speed;
_root.enemyc._x = _root.enemyc._x - _root.speed;
_root.enemyd._x = _root.enemyd._x - _root.speed;
_root.enemye._x = _root.enemye._x - _root.speed;
_root.enemyf._x = _root.enemyf._x - _root.speed;
_root.darkness._x = _root.darkness._x - _root.speed;
_root.extras._x = _root.extras._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.roof._x = _root.roof._x - _root.speed;
_root.cannon._x = _root.cannon._x - _root.speed;
_root.target3._x = _root.target3._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.jarea._x = _root.jarea._x + _root.speed;
_root.thetrigger._x = _root.thetrigger._x + _root.speed;
_root.enemya._x = _root.enemya._x + _root.speed;
_root.enemyb._x = _root.enemyb._x + _root.speed;
_root.enemyc._x = _root.enemyc._x + _root.speed;
_root.enemyd._x = _root.enemyd._x + _root.speed;
_root.enemye._x = _root.enemye._x + _root.speed;
_root.enemyf._x = _root.enemyf._x + _root.speed;
_root.darkness._x = _root.darkness._x + _root.speed;
_root.extras._x = _root.extras._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.roof._x = _root.roof._x + _root.speed;
_root.cannon._x = _root.cannon._x + _root.speed;
_root.target3._x = _root.target3._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Instance of Symbol 300 MovieClip "enemya" in Frame 57
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyadead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemya.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyadead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.afalling = false;
} else {
_root.afalling = true;
}
if (_root.afalling == true) {
this._y = this._y + _root.afallspeed;
_root.afallspeed = _root.afallspeed + 0.75;
}
if (_root.afalling == false) {
_root.afallspeed = 0;
_root.ajumpspeed = 10;
}
if (_root.afallspeed > 10.1) {
_root.afallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (_root.afalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ajumping = true;
} else {
_root.ajumping = false;
}
}
}
if (_root.ajumping == true) {
_root.afalling = false;
_root.afallspeed = 0;
_root.ajumpspeed = _root.ajumpspeed - 0.5;
this._y = this._y - _root.ajumpspeed;
}
if (_root.ajumpspeed < 0) {
_root.ajumping = false;
_root.afalling = true;
}
}
Instance of Symbol 444 MovieClip "enemye" in Frame 57
onClipEvent (enterFrame) {
if (_root.enemyedead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyedead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemye.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemyedead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.efalling = false;
} else {
_root.efalling = true;
}
if (_root.efalling == true) {
this._y = this._y + _root.efallspeed;
_root.efallspeed = _root.efallspeed + 0.75;
}
if (_root.efalling == false) {
_root.efallspeed = 0;
_root.ejumpspeed = 10;
}
if (_root.efallspeed > 10.1) {
_root.efallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyedead == false) {
if (_root.efalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ejumping = true;
} else {
_root.ejumping = false;
}
}
}
if (_root.ejumping == true) {
_root.efalling = false;
_root.efallspeed = 0;
_root.ejumpspeed = _root.ejumpspeed - 0.5;
this._y = this._y - _root.ejumpspeed;
}
if (_root.ejumpspeed < 0) {
_root.ejumping = false;
_root.efalling = true;
}
}
Instance of Symbol 319 MovieClip "enemyb" in Frame 57
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - (_root.enemyspeed + 1);
this._xscale = 100;
}
} else if (_root.enemybdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + (_root.enemyspeed + 1);
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyb.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemybdead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.bfalling = false;
} else {
_root.bfalling = true;
}
if (_root.bfalling == true) {
this._y = this._y + _root.bfallspeed;
_root.bfallspeed = _root.bfallspeed + 0.75;
}
if (_root.bfalling == false) {
_root.bfallspeed = 0;
_root.bjumpspeed = 10;
}
if (_root.bfallspeed > 10.1) {
_root.bfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (_root.bfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.bjumping = true;
} else {
_root.bjumping = false;
}
}
}
if (_root.bjumping == true) {
_root.bfalling = false;
_root.bfallspeed = 0;
_root.bjumpspeed = _root.bjumpspeed - 0.5;
this._y = this._y - _root.bjumpspeed;
}
if (_root.bjumpspeed < 0) {
_root.bjumping = false;
_root.bfalling = true;
}
}
Frame 59
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
var enemyspeed = 8;
var enemyadead = true;
var ajumping = false;
var afalling = false;
var afallspeed = 0;
var ajumpspeed = 0;
var enemybdead = true;
var bjumping = false;
var bfalling = false;
var bfallspeed = 0;
var bjumpspeed = 0;
var enemycdead = true;
var cjumping = false;
var cfalling = false;
var cfallspeed = 0;
var cjumpspeed = 0;
var enemyddead = true;
var cjumping = false;
var dfalling = false;
var dfallspeed = 0;
var djumpspeed = 0;
var enemyedead = true;
var ejumping = false;
var efalling = false;
var efallspeed = 0;
var ejumpspeed = 0;
var enemyfdead = true;
var fjumping = false;
var ffalling = false;
var ffallspeed = 0;
var fjumpspeed = 0;
Instance of Symbol 431 MovieClip "enemyf" in Frame 59
onClipEvent (enterFrame) {
if (_root.enemyfdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - (_root.enemyspeed / 2);
this._xscale = 100;
}
} else if (_root.enemyfdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + (_root.enemyspeed / 2);
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyf.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemyfdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.ffalling = false;
} else {
_root.ffalling = true;
}
if (_root.ffalling == true) {
this._y = this._y + _root.ffallspeed;
_root.ffallspeed = _root.ffallspeed + 0.75;
}
if (_root.ffalling == false) {
_root.ffallspeed = 0;
_root.fjumpspeed = 10;
}
if (_root.ffallspeed > 10.1) {
_root.ffallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyfdead == false) {
if (_root.ffalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.fjumping = true;
} else {
_root.fjumping = false;
}
}
}
if (_root.fjumping == true) {
_root.ffalling = false;
_root.ffallspeed = 0;
_root.fjumpspeed = _root.fjumpspeed - 0.5;
this._y = this._y - _root.fjumpspeed;
}
if (_root.fjumpspeed < 0) {
_root.fjumping = false;
_root.ffalling = true;
}
}
Instance of Symbol 300 MovieClip "enemya" in Frame 59
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyadead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemya.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyadead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.afalling = false;
} else {
_root.afalling = true;
}
if (_root.afalling == true) {
this._y = this._y + _root.afallspeed;
_root.afallspeed = _root.afallspeed + 0.75;
}
if (_root.afalling == false) {
_root.afallspeed = 0;
_root.ajumpspeed = 10;
}
if (_root.afallspeed > 10.1) {
_root.afallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (_root.afalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ajumping = true;
} else {
_root.ajumping = false;
}
}
}
if (_root.ajumping == true) {
_root.afalling = false;
_root.afallspeed = 0;
_root.ajumpspeed = _root.ajumpspeed - 0.5;
this._y = this._y - _root.ajumpspeed;
}
if (_root.ajumpspeed < 0) {
_root.ajumping = false;
_root.afalling = true;
}
}
Instance of Symbol 405 MovieClip "enemyd" in Frame 59
onClipEvent (enterFrame) {
if (_root.enemyddead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyddead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyd.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyddead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.dfalling = false;
} else {
_root.dfalling = true;
}
if (_root.dfalling == true) {
this._y = this._y + _root.dfallspeed;
_root.dfallspeed = _root.dfallspeed + 0.75;
}
if (_root.dfalling == false) {
_root.dfallspeed = 0;
_root.djumpspeed = 10;
}
if (_root.dfallspeed > 10.1) {
_root.dfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyddead == false) {
if (_root.dfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.djumping = true;
} else {
_root.djumping = false;
}
}
}
if (_root.djumping == true) {
_root.dfalling = false;
_root.dfallspeed = 0;
_root.djumpspeed = _root.djumpspeed - 0.5;
this._y = this._y - _root.djumpspeed;
}
if (_root.djumpspeed < 0) {
_root.djumping = false;
_root.dfalling = true;
}
}
Instance of Symbol 181 MovieClip "ninja" in Frame 59
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.boss._x = _root.boss._x - _root.speed;
_root.enemya._x = _root.enemya._x - _root.speed;
_root.enemyb._x = _root.enemyb._x - _root.speed;
_root.enemyc._x = _root.enemyc._x - _root.speed;
_root.enemyd._x = _root.enemyd._x - _root.speed;
_root.enemye._x = _root.enemye._x - _root.speed;
_root.enemyf._x = _root.enemyf._x - _root.speed;
_root.darkness._x = _root.darkness._x - _root.speed;
_root.extras._x = _root.extras._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.roof._x = _root.roof._x - _root.speed;
_root.cannon._x = _root.cannon._x - _root.speed;
_root.target3._x = _root.target3._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.boss._x = _root.boss._x + _root.speed;
_root.enemya._x = _root.enemya._x + _root.speed;
_root.enemyb._x = _root.enemyb._x + _root.speed;
_root.enemyc._x = _root.enemyc._x + _root.speed;
_root.enemyd._x = _root.enemyd._x + _root.speed;
_root.enemye._x = _root.enemye._x + _root.speed;
_root.enemyf._x = _root.enemyf._x + _root.speed;
_root.darkness._x = _root.darkness._x + _root.speed;
_root.extras._x = _root.extras._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.roof._x = _root.roof._x + _root.speed;
_root.cannon._x = _root.cannon._x + _root.speed;
_root.target3._x = _root.target3._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Instance of Symbol 345 MovieClip "enemyc" in Frame 59
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemycdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyc.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemycdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.cfalling = false;
} else {
_root.cfalling = true;
}
if (_root.cfalling == true) {
this._y = this._y + _root.cfallspeed;
_root.cfallspeed = _root.cfallspeed + 0.75;
}
if (_root.cfalling == false) {
_root.cfallspeed = 0;
_root.cjumpspeed = 10;
}
if (_root.cfallspeed > 10.1) {
_root.cfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (_root.cfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.cjumping = true;
} else {
_root.cjumping = false;
}
}
}
if (_root.cjumping == true) {
_root.cfalling = false;
_root.cfallspeed = 0;
_root.cjumpspeed = _root.cjumpspeed - 0.5;
this._y = this._y - _root.cjumpspeed;
}
if (_root.cjumpspeed < 0) {
_root.cjumping = false;
_root.cfalling = true;
}
}
Instance of Symbol 444 MovieClip "enemye" in Frame 59
onClipEvent (enterFrame) {
if (_root.enemyedead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyedead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemye.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemyedead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.efalling = false;
} else {
_root.efalling = true;
}
if (_root.efalling == true) {
this._y = this._y + _root.efallspeed;
_root.efallspeed = _root.efallspeed + 0.75;
}
if (_root.efalling == false) {
_root.efallspeed = 0;
_root.ejumpspeed = 10;
}
if (_root.efallspeed > 10.1) {
_root.efallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyedead == false) {
if (_root.efalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ejumping = true;
} else {
_root.ejumping = false;
}
}
}
if (_root.ejumping == true) {
_root.efalling = false;
_root.efallspeed = 0;
_root.ejumpspeed = _root.ejumpspeed - 0.5;
this._y = this._y - _root.ejumpspeed;
}
if (_root.ejumpspeed < 0) {
_root.ejumping = false;
_root.efalling = true;
}
}
Instance of Symbol 319 MovieClip "enemyb" in Frame 59
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - (_root.enemyspeed + 1);
this._xscale = 100;
}
} else if (_root.enemybdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + (_root.enemyspeed + 1);
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyb.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemybdead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.bfalling = false;
} else {
_root.bfalling = true;
}
if (_root.bfalling == true) {
this._y = this._y + _root.bfallspeed;
_root.bfallspeed = _root.bfallspeed + 0.75;
}
if (_root.bfalling == false) {
_root.bfallspeed = 0;
_root.bjumpspeed = 10;
}
if (_root.bfallspeed > 10.1) {
_root.bfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (_root.bfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.bjumping = true;
} else {
_root.bjumping = false;
}
}
}
if (_root.bjumping == true) {
_root.bfalling = false;
_root.bfallspeed = 0;
_root.bjumpspeed = _root.bjumpspeed - 0.5;
this._y = this._y - _root.bjumpspeed;
}
if (_root.bjumpspeed < 0) {
_root.bjumping = false;
_root.bfalling = true;
}
}
Instance of Symbol 617 MovieClip "cutscene" in Frame 59
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.boss.gotoAndPlay(3);
}
}
Frame 60
stop();
Frame 61
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
var enemyspeed = 4;
var enemyadead = true;
var ajumping = false;
var afalling = false;
var afallspeed = 0;
var ajumpspeed = 0;
var enemybdead = true;
var bjumping = false;
var bfalling = false;
var bfallspeed = 0;
var bjumpspeed = 0;
var enemycdead = true;
var cjumping = false;
var cfalling = false;
var cfallspeed = 0;
var cjumpspeed = 0;
var enemyddead = true;
var cjumping = false;
var dfalling = false;
var dfallspeed = 0;
var djumpspeed = 0;
var enemyedead = true;
var ejumping = false;
var efalling = false;
var efallspeed = 0;
var ejumpspeed = 0;
var enemyfdead = true;
var fjumping = false;
var ffalling = false;
var ffallspeed = 0;
var fjumpspeed = 0;
var enemygdead = true;
Instance of Symbol 345 MovieClip "enemyc" in Frame 61
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemycdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyc.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemycdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.cfalling = false;
} else {
_root.cfalling = true;
}
if (_root.cfalling == true) {
this._y = this._y + _root.cfallspeed;
_root.cfallspeed = _root.cfallspeed + 0.75;
}
if (_root.cfalling == false) {
_root.cfallspeed = 0;
_root.cjumpspeed = 10;
}
if (_root.cfallspeed > 10.1) {
_root.cfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (_root.cfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.cjumping = true;
} else {
_root.cjumping = false;
}
}
}
if (_root.cjumping == true) {
_root.cfalling = false;
_root.cfallspeed = 0;
_root.cjumpspeed = _root.cjumpspeed - 0.5;
this._y = this._y - _root.cjumpspeed;
}
if (_root.cjumpspeed < 0) {
_root.cjumping = false;
_root.cfalling = true;
}
}
Instance of Symbol 405 MovieClip "enemyd" in Frame 61
onClipEvent (enterFrame) {
if (_root.enemyddead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyddead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyd.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyddead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.dfalling = false;
} else {
_root.dfalling = true;
}
if (_root.dfalling == true) {
this._y = this._y + _root.dfallspeed;
_root.dfallspeed = _root.dfallspeed + 0.75;
}
if (_root.dfalling == false) {
_root.dfallspeed = 0;
_root.djumpspeed = 10;
}
if (_root.dfallspeed > 10.1) {
_root.dfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyddead == false) {
if (_root.dfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.djumping = true;
} else {
_root.djumping = false;
}
}
}
if (_root.djumping == true) {
_root.dfalling = false;
_root.dfallspeed = 0;
_root.djumpspeed = _root.djumpspeed - 0.5;
this._y = this._y - _root.djumpspeed;
}
if (_root.djumpspeed < 0) {
_root.djumping = false;
_root.dfalling = true;
}
}
Instance of Symbol 431 MovieClip "enemyf" in Frame 61
onClipEvent (enterFrame) {
if (_root.enemyfdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyfdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyf.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemyfdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.ffalling = false;
} else {
_root.ffalling = true;
}
if (_root.ffalling == true) {
this._y = this._y + _root.ffallspeed;
_root.ffallspeed = _root.ffallspeed + 0.75;
}
if (_root.ffalling == false) {
_root.ffallspeed = 0;
_root.fjumpspeed = 10;
}
if (_root.ffallspeed > 10.1) {
_root.ffallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyfdead == false) {
if (_root.ffalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.fjumping = true;
} else {
_root.fjumping = false;
}
}
}
if (_root.fjumping == true) {
_root.ffalling = false;
_root.ffallspeed = 0;
_root.fjumpspeed = _root.fjumpspeed - 0.5;
this._y = this._y - _root.fjumpspeed;
}
if (_root.fjumpspeed < 0) {
_root.fjumping = false;
_root.ffalling = true;
}
}
Instance of Symbol 300 MovieClip "enemya" in Frame 61
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyadead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemya.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyadead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.afalling = false;
} else {
_root.afalling = true;
}
if (_root.afalling == true) {
this._y = this._y + _root.afallspeed;
_root.afallspeed = _root.afallspeed + 0.75;
}
if (_root.afalling == false) {
_root.afallspeed = 0;
_root.ajumpspeed = 10;
}
if (_root.afallspeed > 10.1) {
_root.afallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (_root.afalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ajumping = true;
} else {
_root.ajumping = false;
}
}
}
if (_root.ajumping == true) {
_root.afalling = false;
_root.afallspeed = 0;
_root.ajumpspeed = _root.ajumpspeed - 0.5;
this._y = this._y - _root.ajumpspeed;
}
if (_root.ajumpspeed < 0) {
_root.ajumping = false;
_root.afalling = true;
}
}
Instance of Symbol 319 MovieClip "enemyb" in Frame 61
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - (_root.enemyspeed + 1);
this._xscale = 100;
}
} else if (_root.enemybdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + (_root.enemyspeed + 1);
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyb.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemybdead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.bfalling = false;
} else {
_root.bfalling = true;
}
if (_root.bfalling == true) {
this._y = this._y + _root.bfallspeed;
_root.bfallspeed = _root.bfallspeed + 0.75;
}
if (_root.bfalling == false) {
_root.bfallspeed = 0;
_root.bjumpspeed = 10;
}
if (_root.bfallspeed > 10.1) {
_root.bfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (_root.bfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.bjumping = true;
} else {
_root.bjumping = false;
}
}
}
if (_root.bjumping == true) {
_root.bfalling = false;
_root.bfallspeed = 0;
_root.bjumpspeed = _root.bjumpspeed - 0.5;
this._y = this._y - _root.bjumpspeed;
}
if (_root.bjumpspeed < 0) {
_root.bjumping = false;
_root.bfalling = true;
}
}
Instance of Symbol 241 MovieClip "thetriggera" in Frame 61
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
_root.enemyadead = false;
_root.enemybdead = false;
_root.enemycdead = false;
_root.enemyddead = false;
_root.enemyedead = false;
_root.enemyfdead = false;
this.gotoAndPlay(2);
}
}
Instance of Symbol 651 MovieClip "enemyg" in Frame 61
onClipEvent (enterFrame) {
if (_root.enemygdead == false) {
_root.enemyg.arms.gotoAndStop(2);
}
}
Instance of Symbol 241 MovieClip "thetriggerb" in Frame 61
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
_root.enemygdead = false;
this.gotoAndPlay(2);
}
}
Instance of Symbol 181 MovieClip "ninja" in Frame 61
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.extras._x = _root.extras._x - _root.speed;
_root.spikes._x = _root.spikes._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.enemya._x = _root.enemya._x - _root.speed;
_root.enemyb._x = _root.enemyb._x - _root.speed;
_root.enemyc._x = _root.enemyc._x - _root.speed;
_root.enemyd._x = _root.enemyd._x - _root.speed;
_root.enemye._x = _root.enemye._x - _root.speed;
_root.enemyf._x = _root.enemyf._x - _root.speed;
_root.enemyg._x = _root.enemyg._x - _root.speed;
_root.jarea._x = _root.jarea._x - _root.speed;
_root.thetriggera._x = _root.thetriggera._x - _root.speed;
_root.thetriggerb._x = _root.thetriggerb._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.extras._x = _root.extras._x + _root.speed;
_root.spikes._x = _root.spikes._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.enemya._x = _root.enemya._x + _root.speed;
_root.enemyb._x = _root.enemyb._x + _root.speed;
_root.enemyc._x = _root.enemyc._x + _root.speed;
_root.enemyd._x = _root.enemyd._x + _root.speed;
_root.enemye._x = _root.enemye._x + _root.speed;
_root.enemyf._x = _root.enemyf._x + _root.speed;
_root.enemyg._x = _root.enemyg._x + _root.speed;
_root.jarea._x = _root.jarea._x + _root.speed;
_root.thetriggera._x = _root.thetriggera._x + _root.speed;
_root.thetriggerb._x = _root.thetriggerb._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Instance of Symbol 444 MovieClip "enemye" in Frame 61
onClipEvent (enterFrame) {
if (_root.enemyedead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyedead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemye.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemyedead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.efalling = false;
} else {
_root.efalling = true;
}
if (_root.efalling == true) {
this._y = this._y + _root.efallspeed;
_root.efallspeed = _root.efallspeed + 0.75;
}
if (_root.efalling == false) {
_root.efallspeed = 0;
_root.ejumpspeed = 10;
}
if (_root.efallspeed > 10.1) {
_root.efallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyedead == false) {
if (_root.efalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ejumping = true;
} else {
_root.ejumping = false;
}
}
}
if (_root.ejumping == true) {
_root.efalling = false;
_root.efallspeed = 0;
_root.ejumpspeed = _root.ejumpspeed - 0.5;
this._y = this._y - _root.ejumpspeed;
}
if (_root.ejumpspeed < 0) {
_root.ejumping = false;
_root.efalling = true;
}
}
Frame 63
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
var moving = false;
var la = true;
var lb = true;
var lc = false;
var ra = false;
var rb = true;
var rc = false;
Instance of Symbol 181 MovieClip "ninja" in Frame 63
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.extras._x = _root.extras._x - _root.speed;
_root.roof._x = _root.roof._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.enemya._x = _root.enemya._x - _root.speed;
_root.enemyb._x = _root.enemyb._x - _root.speed;
_root.enemyc._x = _root.enemyc._x - _root.speed;
_root.enemyd._x = _root.enemyd._x - _root.speed;
_root.enemye._x = _root.enemye._x - _root.speed;
_root.enemyf._x = _root.enemyf._x - _root.speed;
_root.enemyg._x = _root.enemyg._x - _root.speed;
_root.jarea._x = _root.jarea._x - _root.speed;
_root.thetriggera._x = _root.thetriggera._x - _root.speed;
_root.thetriggerb._x = _root.thetriggerb._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.extras._x = _root.extras._x + _root.speed;
_root.roof._x = _root.roof._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.enemya._x = _root.enemya._x + _root.speed;
_root.enemyb._x = _root.enemyb._x + _root.speed;
_root.enemyc._x = _root.enemyc._x + _root.speed;
_root.enemyd._x = _root.enemyd._x + _root.speed;
_root.enemye._x = _root.enemye._x + _root.speed;
_root.enemyf._x = _root.enemyf._x + _root.speed;
_root.enemyg._x = _root.enemyg._x + _root.speed;
_root.jarea._x = _root.jarea._x + _root.speed;
_root.thetriggera._x = _root.thetriggera._x + _root.speed;
_root.thetriggerb._x = _root.thetriggerb._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Instance of Symbol 685 MovieClip "roof" in Frame 63
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja._x, _root.ninja._y, true)) {
_root.jumping = false;
_root.jumpspeed = 0;
_root.falling = true;
}
}
Frame 65
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 4;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
var enemyspeed = 4;
var enemyadead = true;
var ajumping = false;
var afalling = false;
var afallspeed = 0;
var ajumpspeed = 0;
var enemybdead = true;
var bjumping = false;
var bfalling = false;
var bfallspeed = 0;
var bjumpspeed = 0;
var enemycdead = true;
var cjumping = false;
var cfalling = false;
var cfallspeed = 0;
var cjumpspeed = 0;
var enemyddead = true;
var cjumping = false;
var dfalling = false;
var dfallspeed = 0;
var djumpspeed = 0;
var enemyedead = true;
var ejumping = false;
var efalling = false;
var efallspeed = 0;
var ejumpspeed = 0;
var enemyfdead = true;
var fjumping = false;
var ffalling = false;
var ffallspeed = 0;
var fjumpspeed = 0;
var enemygdead = true;
Instance of Symbol 345 MovieClip "enemyc" in Frame 65
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemycdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyc.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemycdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.cfalling = false;
} else {
_root.cfalling = true;
}
if (_root.cfalling == true) {
this._y = this._y + _root.cfallspeed;
_root.cfallspeed = _root.cfallspeed + 0.75;
}
if (_root.cfalling == false) {
_root.cfallspeed = 0;
_root.cjumpspeed = 10;
}
if (_root.cfallspeed > 10.1) {
_root.cfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemycdead == false) {
if (_root.cfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.cjumping = true;
} else {
_root.cjumping = false;
}
}
}
if (_root.cjumping == true) {
_root.cfalling = false;
_root.cfallspeed = 0;
_root.cjumpspeed = _root.cjumpspeed - 0.5;
this._y = this._y - _root.cjumpspeed;
}
if (_root.cjumpspeed < 0) {
_root.cjumping = false;
_root.cfalling = true;
}
}
Instance of Symbol 405 MovieClip "enemyd" in Frame 65
onClipEvent (enterFrame) {
if (_root.enemyddead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyddead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyd.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyddead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.dfalling = false;
} else {
_root.dfalling = true;
}
if (_root.dfalling == true) {
this._y = this._y + _root.dfallspeed;
_root.dfallspeed = _root.dfallspeed + 0.75;
}
if (_root.dfalling == false) {
_root.dfallspeed = 0;
_root.djumpspeed = 10;
}
if (_root.dfallspeed > 10.1) {
_root.dfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyddead == false) {
if (_root.dfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.djumping = true;
} else {
_root.djumping = false;
}
}
}
if (_root.djumping == true) {
_root.dfalling = false;
_root.dfallspeed = 0;
_root.djumpspeed = _root.djumpspeed - 0.5;
this._y = this._y - _root.djumpspeed;
}
if (_root.djumpspeed < 0) {
_root.djumping = false;
_root.dfalling = true;
}
}
Instance of Symbol 431 MovieClip "enemyf" in Frame 65
onClipEvent (enterFrame) {
if (_root.enemyfdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyfdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyf.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.enemyfdead == false) {
if (_root.bottomattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.ffalling = false;
} else {
_root.ffalling = true;
}
if (_root.ffalling == true) {
this._y = this._y + _root.ffallspeed;
_root.ffallspeed = _root.ffallspeed + 0.75;
}
if (_root.ffalling == false) {
_root.ffallspeed = 0;
_root.fjumpspeed = 10;
}
if (_root.ffallspeed > 10.1) {
_root.ffallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyfdead == false) {
if (_root.ffalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.fjumping = true;
} else {
_root.fjumping = false;
}
}
}
if (_root.fjumping == true) {
_root.ffalling = false;
_root.ffallspeed = 0;
_root.fjumpspeed = _root.fjumpspeed - 0.5;
this._y = this._y - _root.fjumpspeed;
}
if (_root.fjumpspeed < 0) {
_root.fjumping = false;
_root.ffalling = true;
}
}
Instance of Symbol 300 MovieClip "enemya" in Frame 65
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyadead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemya.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.enemyadead == false) {
if (_root.topattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.afalling = false;
} else {
_root.afalling = true;
}
if (_root.afalling == true) {
this._y = this._y + _root.afallspeed;
_root.afallspeed = _root.afallspeed + 0.75;
}
if (_root.afalling == false) {
_root.afallspeed = 0;
_root.ajumpspeed = 10;
}
if (_root.afallspeed > 10.1) {
_root.afallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyadead == false) {
if (_root.afalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ajumping = true;
} else {
_root.ajumping = false;
}
}
}
if (_root.ajumping == true) {
_root.afalling = false;
_root.afallspeed = 0;
_root.ajumpspeed = _root.ajumpspeed - 0.5;
this._y = this._y - _root.ajumpspeed;
}
if (_root.ajumpspeed < 0) {
_root.ajumping = false;
_root.afalling = true;
}
}
Instance of Symbol 444 MovieClip "enemye" in Frame 65
onClipEvent (enterFrame) {
if (_root.enemyedead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - _root.enemyspeed;
this._xscale = 100;
}
} else if (_root.enemyedead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + _root.enemyspeed;
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemye.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemyedead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.efalling = false;
} else {
_root.efalling = true;
}
if (_root.efalling == true) {
this._y = this._y + _root.efallspeed;
_root.efallspeed = _root.efallspeed + 0.75;
}
if (_root.efalling == false) {
_root.efallspeed = 0;
_root.ejumpspeed = 10;
}
if (_root.efallspeed > 10.1) {
_root.efallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemyedead == false) {
if (_root.efalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.ejumping = true;
} else {
_root.ejumping = false;
}
}
}
if (_root.ejumping == true) {
_root.efalling = false;
_root.efallspeed = 0;
_root.ejumpspeed = _root.ejumpspeed - 0.5;
this._y = this._y - _root.ejumpspeed;
}
if (_root.ejumpspeed < 0) {
_root.ejumping = false;
_root.efalling = true;
}
}
Instance of Symbol 319 MovieClip "enemyb" in Frame 65
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (this._x > (_root.ninja._x + 50)) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
this._x = this._x - (_root.enemyspeed + 1);
this._xscale = 100;
}
} else if (_root.enemybdead == false) {
if (this._x < (_root.ninja._x - 50)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
this._x = this._x + (_root.enemyspeed + 1);
this._xscale = -100;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.enemyb.arms.gotoAndStop("attack");
}
}
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.enemybdead == false) {
if (_root.middleattack == true) {
this.gotoAndPlay("dead");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.bfalling = false;
} else {
_root.bfalling = true;
}
if (_root.bfalling == true) {
this._y = this._y + _root.bfallspeed;
_root.bfallspeed = _root.bfallspeed + 0.75;
}
if (_root.bfalling == false) {
_root.bfallspeed = 0;
_root.bjumpspeed = 10;
}
if (_root.bfallspeed > 10.1) {
_root.bfallspeed = 10;
}
}
onClipEvent (enterFrame) {
if (_root.enemybdead == false) {
if (_root.bfalling == false) {
if (_root.jarea.hitTest(this._x, this._y, true)) {
_root.bjumping = true;
} else {
_root.bjumping = false;
}
}
}
if (_root.bjumping == true) {
_root.bfalling = false;
_root.bfallspeed = 0;
_root.bjumpspeed = _root.bjumpspeed - 0.5;
this._y = this._y - _root.bjumpspeed;
}
if (_root.bjumpspeed < 0) {
_root.bjumping = false;
_root.bfalling = true;
}
}
Instance of Symbol 651 MovieClip "enemyg" in Frame 65
onClipEvent (enterFrame) {
if (_root.enemygdead == false) {
_root.enemyg.arms.gotoAndStop(2);
}
}
Instance of Symbol 241 MovieClip "thetriggera" in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
_root.enemyadead = false;
_root.enemybdead = false;
_root.enemycdead = false;
_root.enemyddead = false;
_root.enemyedead = false;
_root.enemyfdead = false;
this.gotoAndPlay(2);
}
}
Instance of Symbol 241 MovieClip "thetriggerb" in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
_root.enemygdead = false;
_root.enemyspeed = 8;
this.gotoAndPlay(2);
}
}
Instance of Symbol 181 MovieClip "ninja" in Frame 65
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.extras._x = _root.extras._x - _root.speed;
_root.spikes._x = _root.spikes._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.enemya._x = _root.enemya._x - _root.speed;
_root.enemyb._x = _root.enemyb._x - _root.speed;
_root.enemyc._x = _root.enemyc._x - _root.speed;
_root.enemyd._x = _root.enemyd._x - _root.speed;
_root.enemye._x = _root.enemye._x - _root.speed;
_root.enemyf._x = _root.enemyf._x - _root.speed;
_root.enemyg._x = _root.enemyg._x - _root.speed;
_root.jarea._x = _root.jarea._x - _root.speed;
_root.thetriggera._x = _root.thetriggera._x - _root.speed;
_root.thetriggerb._x = _root.thetriggerb._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.extras._x = _root.extras._x + _root.speed;
_root.spikes._x = _root.spikes._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.enemya._x = _root.enemya._x + _root.speed;
_root.enemyb._x = _root.enemyb._x + _root.speed;
_root.enemyc._x = _root.enemyc._x + _root.speed;
_root.enemyd._x = _root.enemyd._x + _root.speed;
_root.enemye._x = _root.enemye._x + _root.speed;
_root.enemyf._x = _root.enemyf._x + _root.speed;
_root.enemyg._x = _root.enemyg._x + _root.speed;
_root.jarea._x = _root.jarea._x + _root.speed;
_root.thetriggera._x = _root.thetriggera._x + _root.speed;
_root.thetriggerb._x = _root.thetriggerb._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Instance of Symbol 706 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja._x, _root.ninja._y, true)) {
_root.jumping = false;
_root.jumpspeed = 0;
_root.falling = true;
}
}
Frame 67
stop();
var jumping = false;
var falling = false;
var fallspeed = 0;
var jumpspeed = 0;
var attack = false;
var speed = 5;
var topattack = false;
var middleattack = false;
var bottomattack = false;
var defend = false;
Instance of Symbol 720 MovieClip "ground" in Frame 67
onClipEvent (enterFrame) {
_root.frame = _root.frame + 1;
}
Instance of Symbol 181 MovieClip "ninja" in Frame 67
onClipEvent (enterFrame) {
if (_root.attack == false) {
if (Key.isDown(81)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("top");
}
}
if (_root.attack == false) {
if (Key.isDown(65)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("middle");
}
}
if (_root.attack == false) {
if (Key.isDown(90)) {
_root.attack = true;
_root.ninja.arms.gotoAndStop("bottom");
}
}
if (Key.isDown(40)) {
_root.defend = true;
} else {
_root.defend = false;
}
if (_root.defend == true) {
_root.topattack = false;
_root.middleattack = false;
_root.bottomattack = false;
_root.ninja.gotoAndStop("defend");
}
}
onClipEvent (enterFrame) {
if (_root.dead == false) {
if (_root.defend == false) {
if (Key.isDown(39)) {
if (!_root.leftwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x - (_root.speed / 2);
_root.ground._x = _root.ground._x - _root.speed;
_root.extras._x = _root.extras._x - _root.speed;
_root.roof._x = _root.roof._x - _root.speed;
_root.rightwall._x = _root.rightwall._x - _root.speed;
_root.leftwall._x = _root.leftwall._x - _root.speed;
_root.enemya._x = _root.enemya._x - _root.speed;
_root.enemyb._x = _root.enemyb._x - _root.speed;
_root.enemyc._x = _root.enemyc._x - _root.speed;
_root.enemyd._x = _root.enemyd._x - _root.speed;
_root.enemye._x = _root.enemye._x - _root.speed;
_root.enemyf._x = _root.enemyf._x - _root.speed;
_root.enemyg._x = _root.enemyg._x - _root.speed;
_root.jarea._x = _root.jarea._x - _root.speed;
_root.thetriggera._x = _root.thetriggera._x - _root.speed;
_root.thetriggerb._x = _root.thetriggerb._x - _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = 100;
}
} else if (Key.isDown(37)) {
if (_root.defend == false) {
if (!_root.rightwall.hitTest(this._x, this._y, true)) {
_root.back._x = _root.back._x + (_root.speed / 2);
_root.ground._x = _root.ground._x + _root.speed;
_root.extras._x = _root.extras._x + _root.speed;
_root.roof._x = _root.roof._x + _root.speed;
_root.rightwall._x = _root.rightwall._x + _root.speed;
_root.leftwall._x = _root.leftwall._x + _root.speed;
_root.enemya._x = _root.enemya._x + _root.speed;
_root.enemyb._x = _root.enemyb._x + _root.speed;
_root.enemyc._x = _root.enemyc._x + _root.speed;
_root.enemyd._x = _root.enemyd._x + _root.speed;
_root.enemye._x = _root.enemye._x + _root.speed;
_root.enemyf._x = _root.enemyf._x + _root.speed;
_root.enemyg._x = _root.enemyg._x + _root.speed;
_root.jarea._x = _root.jarea._x + _root.speed;
_root.thetriggera._x = _root.thetriggera._x + _root.speed;
_root.thetriggerb._x = _root.thetriggerb._x + _root.speed;
_root.ninja.legs.gotoAndStop("walk");
this._xscale = -100;
}
}
} else {
_root.ninja.legs.gotoAndPlay("idle");
}
}
}
if (_root.ground.hitTest(this._x, this._y, true)) {
_root.falling = false;
} else {
_root.falling = true;
}
if (_root.falling == true) {
_root.ninja.gotoAndStop("falling");
this._y = this._y + _root.fallspeed;
_root.fallspeed = _root.fallspeed + 0.75;
}
if (_root.falling == false) {
_root.fallspeed = 0;
_root.jumpspeed = 12;
}
if (_root.fallspeed > 10.1) {
_root.fallspeed = 10;
}
if (_root.falling == false) {
if (_root.jumping == false) {
if (Key.isDown(38)) {
if (_root.dead == false) {
_root.jumping = true;
} else {
_root.jumping = false;
}
}
}
}
if (_root.jumping == true) {
_root.ninja.gotoAndStop("jumping");
_root.fallingfalse;
_root.fallspeed = 0;
_root.jumpspeed = _root.jumpspeed - 0.5;
this._y = this._y - _root.jumpspeed;
}
if (_root.jumpspeed < 0) {
_root.jumping = false;
_root.falling = true;
}
if (_root.health < 1) {
_root.gotoAndStop(20);
}
}
Instance of Symbol 7 MovieClip in Symbol 13 MovieClip [e] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 2;
}
}
Instance of Symbol 7 MovieClip in Symbol 13 MovieClip [e] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 2;
}
}
Instance of Symbol 7 MovieClip in Symbol 13 MovieClip [e] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 2;
}
}
Instance of Symbol 8 MovieClip in Symbol 13 MovieClip [e] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 2;
}
}
Instance of Symbol 8 MovieClip in Symbol 13 MovieClip [e] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 2;
}
}
Instance of Symbol 8 MovieClip in Symbol 13 MovieClip [e] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 2;
}
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 3
_root.topattack = true;
Symbol 63 MovieClip Frame 5
_root.topattack = false;
Symbol 63 MovieClip Frame 6
_root.ninja.arms.gotoAndStop("still");
Symbol 73 MovieClip Frame 5
_root.middleattack = true;
Symbol 73 MovieClip Frame 7
_root.middleattack = false;
Symbol 73 MovieClip Frame 9
_root.ninja.arms.gotoAndPlay("still");
Symbol 80 MovieClip Frame 3
_root.bottomattack = true;
Symbol 80 MovieClip Frame 5
_root.bottomattack = false;
Symbol 80 MovieClip Frame 6
_root.ninja.arms.gotoAndPlay("still");
Symbol 81 MovieClip Frame 1
stop();
_root.attack = false;
Symbol 172 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
_root.ninja.gotoAndPlay(1);
Symbol 180 MovieClip Frame 2
_root.ninja.gotoAndPlay(1);
Symbol 181 MovieClip Frame 1
stop();
Instance of Symbol 172 MovieClip "blood" in Symbol 181 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(100 - _root.health);
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 120
_root.gotoAndPlay(11);
Instance of Symbol 202 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.gotoAndPlay(52);
}
}
Symbol 209 MovieClip Frame 1
stop();
stop();
Symbol 209 MovieClip Frame 6
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 5
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 6
stop();
Instance of Symbol 222 MovieClip in Symbol 223 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 1;
}
}
Symbol 241 MovieClip Frame 1
stop();
Instance of Symbol 263 MovieClip in Symbol 264 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.gotoAndPlay(54);
}
}
Symbol 291 MovieClip Frame 4
_root.health = _root.health - 5;
Symbol 291 MovieClip Frame 8
_root.enemya.arms.gotoAndPlay(1);
Symbol 292 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
_root.enemyadead = true;
Symbol 300 MovieClip Frame 8
stop();
Symbol 310 MovieClip Frame 4
_root.health = _root.health - 5;
Symbol 310 MovieClip Frame 6
_root.enemyb.arms.gotoAndPlay(1);
Symbol 311 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
_root.enemybdead = true;
Symbol 319 MovieClip Frame 8
stop();
Instance of Symbol 328 MovieClip "bounce" in Symbol 329 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja._x, _root.ninja._y, true)) {
_root.jumping = true;
}
}
Symbol 338 MovieClip Frame 4
_root.health = _root.health - 5;
Symbol 338 MovieClip Frame 7
_root.enemyc.arms.gotoAndPlay(1);
Symbol 339 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
_root.enemycdead = true;
Symbol 345 MovieClip Frame 6
stop();
Instance of Symbol 350 MovieClip in Symbol 353 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 10;
}
}
}
Instance of Symbol 350 MovieClip in Symbol 353 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 1;
}
}
}
Instance of Symbol 350 MovieClip in Symbol 353 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 10;
}
}
}
Instance of Symbol 350 MovieClip in Symbol 353 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 1;
}
}
}
Instance of Symbol 350 MovieClip in Symbol 353 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 10;
}
}
}
Instance of Symbol 350 MovieClip in Symbol 353 MovieClip Frame 29
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja.heart)) {
_root.health = _root.health - 1;
}
}
}
Instance of Symbol 263 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.gotoAndPlay(56);
}
}
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 2
stop();
Instance of Symbol 366 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 263 MovieClip in Symbol 367 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.gotoAndPlay(58);
}
}
Symbol 373 MovieClip Frame 1
stop();
Instance of Symbol 373 MovieClip in Symbol 375 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.health < 100) {
if (this.hitTest(_root.ninja)) {
_root.health = 100;
this.gotoAndStop(2);
_root.ninja.blood.gotoAndPlay(1);
}
}
}
Symbol 375 MovieClip Frame 44
stop();
Symbol 394 MovieClip Frame 4
_root.health = _root.health - 5;
Symbol 394 MovieClip Frame 7
_root.enemyd.arms.gotoAndPlay(1);
Symbol 395 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
_root.enemyddead = true;
Symbol 405 MovieClip Frame 10
stop();
Symbol 424 MovieClip Frame 10
_root.health = _root.health - 10;
Symbol 424 MovieClip Frame 17
_root.enemyf.arms.gotoAndPlay(1);
Symbol 425 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 2
_root.enemyfdead = true;
Symbol 431 MovieClip Frame 6
stop();
Symbol 438 MovieClip Frame 3
_root.health = _root.health - 2;
Symbol 438 MovieClip Frame 5
_root.enemye.arms.gotoAndPlay(1);
Symbol 439 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 2
_root.enemyedead = true;
Symbol 444 MovieClip Frame 5
stop();
Symbol 474 MovieClip Frame 59
_root.boss.attack.nextFrame();
Symbol 474 MovieClip Frame 60
stop();
Symbol 481 MovieClip Frame 20
_root.boss.arms.gotoAndPlay(1);
_root.boss.attack.nextFrame();
Symbol 485 MovieClip Frame 19
_root.boss.arms.gotoAndPlay(1);
_root.boss.attack.nextFrame();
Symbol 491 MovieClip Frame 44
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
Symbol 491 MovieClip Frame 45
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
Symbol 491 MovieClip Frame 46
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
Symbol 491 MovieClip Frame 47
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
Symbol 491 MovieClip Frame 48
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
Symbol 491 MovieClip Frame 49
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
Symbol 491 MovieClip Frame 50
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
Symbol 491 MovieClip Frame 51
_root.enemycdead = false;
_root.enemybdead = false;
_root.enemybdead = false;
_root.enemycdead = false;
_root.boss.arms.gotoAndPlay(1);
_root.boss.attack.nextFrame();
Symbol 493 MovieClip Frame 22
_root.enemya.prevFrame();
_root.enemyd.prevFrame();
Symbol 493 MovieClip Frame 23
_root.enemya.prevFrame();
_root.enemyd.prevFrame();
Symbol 493 MovieClip Frame 24
_root.enemya.prevFrame();
_root.enemyd.prevFrame();
Symbol 493 MovieClip Frame 25
_root.enemya.prevFrame();
_root.enemyd.prevFrame();
Symbol 493 MovieClip Frame 26
_root.enemya.prevFrame();
_root.enemyd.prevFrame();
Symbol 493 MovieClip Frame 27
_root.enemya.prevFrame();
_root.enemyd.prevFrame();
Symbol 493 MovieClip Frame 28
_root.enemya.prevFrame();
_root.enemyd.prevFrame();
Symbol 493 MovieClip Frame 29
_root.enemyadead = false;
_root.enemyadead = false;
_root.enemyadead = false;
_root.enemyddead = false;
_root.enemya.gotoAndStop(1);
_root.enemyd.gotoAndStop(1);
_root.boss.arms.gotoAndPlay(1);
_root.boss.attack.nextFrame();
Symbol 494 MovieClip Frame 22
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemye.prevFrame();
Symbol 494 MovieClip Frame 23
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemye.prevFrame();
Symbol 494 MovieClip Frame 24
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemye.prevFrame();
Symbol 494 MovieClip Frame 25
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemye.prevFrame();
Symbol 494 MovieClip Frame 26
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemye.prevFrame();
Symbol 494 MovieClip Frame 27
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemye.prevFrame();
Symbol 494 MovieClip Frame 28
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemye.prevFrame();
Symbol 494 MovieClip Frame 29
_root.enemyadead = false;
_root.enemybdead = false;
_root.enemyedead = false;
_root.enemya.gotoAndStop(1);
_root.enemyb.gotoAndStop(1);
_root.enemye.gotoAndStop(1);
_root.boss.arms.gotoAndPlay(1);
_root.boss.attack.nextFrame();
Symbol 495 MovieClip Frame 22
_root.enemyf.prevFrame();
Symbol 495 MovieClip Frame 23
_root.enemyf.prevFrame();
Symbol 495 MovieClip Frame 24
_root.enemyf.prevFrame();
Symbol 495 MovieClip Frame 25
_root.enemyf.prevFrame();
Symbol 495 MovieClip Frame 26
_root.enemyf.prevFrame();
Symbol 495 MovieClip Frame 27
_root.enemyf.prevFrame();
Symbol 495 MovieClip Frame 28
_root.enemyf.prevFrame();
Symbol 495 MovieClip Frame 29
_root.enemyfdead = false;
_root.enemyf.gotoAndStop(1);
_root.boss.arms.gotoAndPlay(1);
_root.boss.attack.nextFrame();
Symbol 497 MovieClip Frame 84
_root.boss.gotoAndPlay(2);
Symbol 499 MovieClip Frame 1
stop();
_root.boss.shield._alpha = 100;
Instance of Symbol 481 MovieClip in Symbol 499 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.enemya._x = _root.boss._x;
_root.enemya._y = _root.boss._y;
_root.enemyadead = false;
}
Symbol 499 MovieClip Frame 3
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 5
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 481 MovieClip in Symbol 499 MovieClip Frame 6
onClipEvent (enterFrame) {
_root.enemyb._x = _root.boss._x;
_root.enemyb._y = _root.boss._y;
_root.enemybdead = false;
}
Symbol 499 MovieClip Frame 7
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 9
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 10
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 11
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 481 MovieClip in Symbol 499 MovieClip Frame 12
onClipEvent (enterFrame) {
_root.enemyc._x = _root.boss._x;
_root.enemyc._y = _root.boss._y;
_root.enemycdead = false;
}
Symbol 499 MovieClip Frame 13
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 15
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 481 MovieClip in Symbol 499 MovieClip Frame 16
onClipEvent (enterFrame) {
_root.enemyd._x = _root.boss._x;
_root.enemyd._y = _root.boss._y;
_root.enemyddead = false;
}
Symbol 499 MovieClip Frame 17
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 19
_root.enemyspeed = 2;
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Symbol 499 MovieClip Frame 21
_root.enemyspeed = 8;
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 481 MovieClip in Symbol 499 MovieClip Frame 22
onClipEvent (enterFrame) {
_root.enemye._x = _root.boss._x;
_root.enemye._y = _root.boss._y;
_root.enemyedead = false;
}
Symbol 499 MovieClip Frame 23
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 24
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 25
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 481 MovieClip in Symbol 499 MovieClip Frame 26
onClipEvent (enterFrame) {
_root.enemyf._x = _root.boss._x;
_root.enemyf._y = _root.boss._y;
_root.enemyfdead = false;
}
Symbol 499 MovieClip Frame 27
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 28
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 29
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 31
_root.enemyspeed = 2;
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Symbol 499 MovieClip Frame 33
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 34
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 35
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Symbol 499 MovieClip Frame 37
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Instance of Symbol 485 MovieClip in Symbol 499 MovieClip Frame 38
onClipEvent (enterFrame) {
if (_root.defend == false) {
if (this.hitTest(_root.ninja)) {
_root.health = _root.health - 5;
}
}
}
Symbol 499 MovieClip Frame 39
_root.boss.shield._alpha = _root.boss.shield._alpha - 5;
Symbol 520 MovieClip Frame 1
stop();
stop();
stop();
Symbol 520 MovieClip Frame 2
stop();
stop();
stop();
Instance of Symbol 508 MovieClip in Symbol 520 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.attackarea)) {
if (_root.attack == true) {
_root.boss.gotoAndPlay(3);
}
}
}
Symbol 520 MovieClip Frame 35
stop();
stop();
_root.cutscene.gotoAndPlay(2);
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 141
Symbol 617 MovieClip Frame 348
_root.level2 = true;
_root.gotoAndPlay(11);
Instance of Symbol 632 MovieClip in Symbol 635 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja._x, _root.ninja._y, true)) {
_root.speed = 2;
} else {
_root.speed = 5;
}
}
Instance of Symbol 373 MovieClip in Symbol 635 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.health < 100) {
if (this.hitTest(_root.ninja)) {
_root.health = 100;
this.gotoAndStop(2);
_root.ninja.blood.gotoAndPlay(1);
}
}
}
Instance of Symbol 263 MovieClip in Symbol 635 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.gotoAndPlay(62);
}
}
Symbol 642 MovieClip Frame 27
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 28
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 29
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 30
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 31
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 32
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 33
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 34
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 35
_root.enemya.prevFrame();
_root.enemyb.prevFrame();
_root.enemyc.prevFrame();
_root.enemyd.prevFrame();
_root.enemye.prevFrame();
_root.enemyf.prevFrame();
Symbol 642 MovieClip Frame 36
_root.enemyadead = false;
_root.enemya.gotoAndStop(1);
_root.enemybdead = false;
_root.enemyb.gotoAndStop(1);
_root.enemycdead = false;
_root.enemyc.gotoAndStop(1);
_root.enemyddead = false;
_root.enemyd.gotoAndStop(1);
_root.enemyedead = false;
_root.enemye.gotoAndStop(1);
_root.enemyfdead = false;
_root.enemyf.gotoAndStop(1);
_root.enemyg.gotoAndPlay(2);
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 2
stop();
Symbol 651 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 10
stop();
Symbol 664 MovieClip Frame 1
stop();
Instance of Symbol 664 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.la == true) {
this.gotoAndStop(1);
}
if (_root.la == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 664 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lb == true) {
this.gotoAndStop(1);
}
if (_root.lb == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 664 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lc == true) {
this.gotoAndStop(1);
}
if (_root.lc == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 664 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ra == true) {
this.gotoAndStop(1);
}
if (_root.ra == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 664 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.rb == true) {
this.gotoAndStop(1);
}
if (_root.rb == false) {
this.gotoAndStop(2);
}
}
Instance of Symbol 664 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.rc == true) {
this.gotoAndStop(1);
}
if (_root.rc == false) {
this.gotoAndStop(2);
}
}
Symbol 666 MovieClip Frame 1
_root.moving = false;
stop();
Symbol 666 MovieClip Frame 2
_root.moving = true;
Symbol 666 MovieClip Frame 216
stop();
Instance of Symbol 666 MovieClip in Symbol 667 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.moving == false) {
if (_root.la == true) {
if (_root.lb == true) {
if (_root.lc == true) {
if (_root.ra == true) {
if (_root.rb == true) {
if (_root.rc == true) {
_root.ninja._y = _root.ninja._y - 2;
this.gotoAndPlay(2);
}
}
}
}
}
}
}
}
Symbol 672 MovieClip Frame 1
_root.la = false;
stop();
Symbol 672 MovieClip Frame 6
_root.la = true;
stop();
Symbol 673 MovieClip Frame 1
_root.lb = false;
stop();
Symbol 673 MovieClip Frame 6
_root.lb = true;
stop();
Symbol 674 MovieClip Frame 1
_root.lc = false;
stop();
Symbol 674 MovieClip Frame 6
_root.lc = true;
stop();
Symbol 675 MovieClip Frame 1
_root.ra = false;
stop();
Symbol 675 MovieClip Frame 6
_root.ra = true;
stop();
Symbol 676 MovieClip Frame 1
_root.rb = false;
stop();
Symbol 676 MovieClip Frame 6
_root.rb = true;
stop();
Symbol 677 MovieClip Frame 1
_root.rc = false;
stop();
Symbol 677 MovieClip Frame 6
_root.rc = true;
stop();
Instance of Symbol 672 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
onClipEvent (enterFrame) {
if (_root.la == false) {
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.topattack == true) {
this.gotoAndPlay(2);
}
}
}
if (_root.la == true) {
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.topattack == true) {
this.gotoAndPlay(7);
}
}
}
}
Instance of Symbol 673 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
onClipEvent (enterFrame) {
if (_root.lb == false) {
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.middleattack == true) {
this.gotoAndPlay(2);
}
}
}
if (_root.lb == true) {
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.middleattack == true) {
this.gotoAndPlay(7);
}
}
}
}
Instance of Symbol 674 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.lc == false) {
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.bottomattack == true) {
this.gotoAndPlay(2);
}
}
}
if (_root.lc == true) {
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.bottomattack == true) {
this.gotoAndPlay(7);
}
}
}
}
Instance of Symbol 675 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.ra == false) {
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.topattack == true) {
this.gotoAndPlay(2);
}
}
}
if (_root.ra == true) {
if (this.hitTest(_root.ninja.attackarea.topattackarea)) {
if (_root.topattack == true) {
this.gotoAndPlay(7);
}
}
}
}
Instance of Symbol 676 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(6);
}
onClipEvent (enterFrame) {
if (_root.rb == false) {
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.middleattack == true) {
this.gotoAndPlay(2);
}
}
}
if (_root.rb == true) {
if (this.hitTest(_root.ninja.attackarea.middleattackarea)) {
if (_root.middleattack == true) {
this.gotoAndPlay(7);
}
}
}
}
Instance of Symbol 677 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.rc == false) {
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.bottomattack == true) {
this.gotoAndPlay(2);
}
}
}
if (_root.rc == true) {
if (this.hitTest(_root.ninja.attackarea.bottomattackarea)) {
if (_root.bottomattack == true) {
this.gotoAndPlay(7);
}
}
}
}
Instance of Symbol 263 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.gotoAndPlay(63);
}
}
Instance of Symbol 373 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.health < 100) {
if (this.hitTest(_root.ninja)) {
_root.health = 100;
this.gotoAndStop(2);
_root.ninja.blood.gotoAndPlay(1);
}
}
}
Symbol 689 MovieClip Frame 999
_root.health = 0;
Instance of Symbol 263 MovieClip in Symbol 699 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.ninja.heart)) {
_root.gotoAndPlay(65);
}
}