Frame 1
Stage.showMenu = false;
unlock = false;
megaman = false;
mario = false;
stop();
Instance of Symbol 24 MovieClip in Frame 1
onClipEvent (enterFrame) {
loadedbytes = _root.getBytesLoaded();
totalbytes = _root.getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
if (loadedbytes == totalbytes) {
gotoAndStop (101);
} else {
gotoAndStop(percentbytes + 1);
}
}
Instance of Symbol 37 MovieClip in Frame 1
onClipEvent (load) {
this.startDrag(true);
Mouse.hide();
}
Frame 2
_quality = "LOW";
if (_root.musicplayer._currentframe != 2) {
_root.musicplayer.gotoAndStop(2);
}
Instance of Symbol 37 MovieClip in Frame 2
onClipEvent (load) {
this.startDrag(true);
Mouse.hide();
}
Frame 3
dots = 0;
Frame 4
megaman = false;
mario = false;
Instance of Symbol 78 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.megaman) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Frame 5
megaman = false;
mario = false;
Instance of Symbol 78 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.megaman) {
gotoAndStop (4);
} else if (_root.mario) {
gotoAndStop (5);
} else {
gotoAndStop (3);
}
}
Frame 6
if (_root.musicplayer._currentframe != 2) {
_root.musicplayer.gotoAndStop(2);
}
Frame 7
weapon = 1;
if (_root.musicplayer._currentframe != 2) {
_root.musicplayer.gotoAndStop(2);
}
Frame 11
function starthold() {
holdx = -1920;
holdy = -384;
holdxspeed = 0;
holdyspeed = 16;
holdtype = "teleportin";
holdtime = 20;
holdcinematic = true;
holddirect = 1;
holdladdertime = 0;
holdair = true;
holdinvuln = 0;
level.leftlim = -2048;
level.rightlim = 0;
level.goaly = 0;
level._y = 0;
}
function halfhold() {
holdx = 896;
holdy = 376;
holdxspeed = 0;
holdyspeed = 16;
holdtype = "teleportin";
holdtime = 20;
holdcinematic = true;
holddirect = 1;
holdladdertime = 0;
holdair = true;
holdinvuln = 0;
level.leftlim = 768;
level.rightlim = 1024;
level.goaly = -720;
level._y = -720;
}
function thirdhold() {
holdx = 1896;
holdy = -368;
holdxspeed = 0;
holdyspeed = 16;
holdtype = "teleportin";
holdtime = 20;
holdcinematic = true;
holddirect = 1;
holdladdertime = 0;
holdair = true;
holdinvuln = 0;
level.leftlim = 1792;
level.rightlim = 4096;
level.goaly = 0;
level._y = 0;
}
function endhold() {
holdx = 4224;
holdy = -368;
holdxspeed = 0;
holdyspeed = 16;
holdtype = "teleportin";
holdtime = 20;
holdcinematic = true;
holddirect = 1;
holdladdertime = 0;
holdair = true;
holdinvuln = 0;
level.leftlim = 4096;
level.rightlim = 4352;
level.goaly = 0;
level._y = 0;
}
stop();
gamepause = false;
hp = 28;
lives = 2;
weapon = 1;
weapon2 = 28;
weapon3 = 28;
weapon4 = 28;
weapon5 = 28;
halfway = false;
thirdway = false;
endlevel = false;
musicplayer.gotoAndStop("level");
starthold();
Instance of Symbol 558 MovieClip "level" in Frame 11
onClipEvent (load) {
goaly = 0;
leftlim = -2048;
rightlim = 0;
holdprev = false;
}
onClipEvent (enterFrame) {
if (_y > goaly) {
_y = (_y - 8);
player._y = player._y + 1;
if (_y == goaly) {
_root.holdy = player._y;
_root.holdcinematic = false;
if (!holdprev) {
nextFrame();
} else {
prevFrame();
holdprev = false;
}
}
} else if (_y < goaly) {
_y = (_y + 8);
player._y = player._y - 1;
if (_y == goaly) {
_root.holdy = player._y;
_root.holdcinematic = false;
if (!holdprev) {
nextFrame();
} else {
prevFrame();
holdprev = false;
}
}
} else {
_x = ((-player._x) + 128);
if (_x > (-leftlim)) {
_x = (-leftlim);
}
if (_x < ((-rightlim) + 256)) {
_x = ((-rightlim) + 256);
}
}
}
Instance of Symbol 560 MovieClip "hpmeter" in Frame 11
onClipEvent (load) {
goto = _root.hp;
soundtime = 3;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_alpha = 100;
if (_root.hp > goto) {
goto = goto + 0.8;
soundtime = soundtime - 1;
if (soundtime == 2) {
_root.sfx.heal.play();
} else if (soundtime == 0) {
soundtime = 3;
}
if (_root.hp < goto) {
goto = _root.hp;
}
} else if (_root.hp < goto) {
goto = _root.hp;
if (goto < 0) {
goto = 0;
}
soundtime = 3;
} else {
soundtime = 3;
}
gotoAndStop(Math.ceil(goto) + 1);
} else {
_alpha = 0;
}
}
Instance of Symbol 564 MovieClip in Frame 11
onClipEvent (load) {
goto = _root.hp;
soundtime = 3;
}
onClipEvent (enterFrame) {
if (_root.weapon == 2) {
goalgoto = _root.weapon2;
} else if (_root.weapon == 3) {
goalgoto = _root.weapon3;
} else if (_root.weapon == 4) {
goalgoto = _root.weapon4;
} else if (_root.weapon == 5) {
goalgoto = _root.weapon5;
}
if (!_root.gamepause) {
_alpha = 100;
if (_root.weapon == 1) {
_alpha = 0;
} else {
_alpha = 100;
}
if (goalgoto > goto) {
goto = goto + 0.8;
soundtime = soundtime - 1;
if (soundtime == 2) {
_root.sfx.heal.play();
} else if (soundtime == 0) {
soundtime = 3;
}
if (_root.hp < goto) {
goto = goalgoto;
}
} else if (goalgoto < goto) {
goto = goalgoto;
if (goto < 0) {
goto = 0;
}
soundtime = 3;
} else {
soundtime = 3;
}
gotoAndStop(Math.ceil(goto) + 1);
} else {
_alpha = 0;
goto = goalgoto;
gotoAndStop(Math.ceil(goto) + 1);
}
}
Instance of Symbol 568 MovieClip "bosshp" in Frame 11
onClipEvent (load) {
goto = -1;
myhp = -1;
soundtime = 3;
stop();
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (goto != -1) {
_alpha = 100;
} else {
_alpha = 0;
}
if (myhp > goto) {
goto = goto + 0.8;
soundtime = soundtime - 1;
if (soundtime == 2) {
_root.sfx.heal.play();
} else if (soundtime == 0) {
soundtime = 3;
}
if (_root.hp < goto) {
goto = myhp;
}
} else if (myhp < goto) {
goto = myhp;
if (goto < 0) {
goto = 0;
}
soundtime = 3;
} else {
soundtime = 3;
}
gotoAndStop(Math.ceil(goto) + 1);
} else {
_alpha = 0;
}
}
Instance of Symbol 635 MovieClip in Frame 11
onClipEvent (load) {
function pausegame() {
holdweap = _root.weapon;
_root.gamepause = true;
upkey = false;
downkey = false;
rightkey = false;
leftkey = false;
}
function unpausegame() {
_root.gamepause = false;
_parent.level.player.codebox.akey = false;
_parent.level.player.codebox.skey = false;
if (holdweap != _root.weapon) {
_parent.level.player.codebox.wiggletime = 6;
}
}
}
onClipEvent (enterFrame) {
if (!_parent.level.player.codebox.cinematic) {
if (Key.isDown(81)) {
if (pkey) {
_root.sfx.pause.play();
if (_root.gamepause) {
unpausegame();
} else {
pausegame();
}
}
pkey = false;
} else {
pkey = true;
}
}
if (_root.gamepause) {
gotoAndStop (2);
if (Key.isDown(83)) {
if (skey) {
_root.sfx.pause.play();
unpausegame();
}
skey = false;
} else {
skey = true;
}
if (Key.isDown(65)) {
if (akey) {
_root.sfx.pause.play();
unpausegame();
}
akey = false;
} else {
akey = true;
}
if (Key.isDown(40)) {
if (downkey) {
_root.sfx.option.play();
if (_root.weapon == 1) {
_root.weapon = 4;
} else if (_root.weapon == 2) {
_root.weapon = 3;
if (_root.unlock) {
_root.weapon = 5;
}
} else if (_root.weapon == 3) {
_root.weapon = 2;
} else if (_root.weapon == 4) {
_root.weapon = 1;
} else if (_root.weapon == 5) {
_root.weapon = 3;
}
}
downkey = false;
} else {
downkey = true;
}
if (Key.isDown(38)) {
if (upkey) {
_root.sfx.option.play();
if (_root.weapon == 1) {
_root.weapon = 4;
} else if (_root.weapon == 2) {
_root.weapon = 3;
} else if (_root.weapon == 3) {
_root.weapon = 2;
if (_root.unlock) {
_root.weapon = 5;
}
} else if (_root.weapon == 4) {
_root.weapon = 1;
} else if (_root.weapon == 5) {
_root.weapon = 2;
}
}
upkey = false;
} else {
upkey = true;
}
if (Key.isDown(39)) {
if (rightkey) {
_root.sfx.option.play();
if (_root.weapon == 1) {
_root.weapon = 3;
if (_root.unlock) {
_root.weapon = 5;
}
} else if (_root.weapon == 2) {
_root.weapon = 4;
} else if (_root.weapon == 3) {
_root.weapon = 1;
} else if (_root.weapon == 4) {
_root.weapon = 2;
} else if (_root.weapon == 5) {
_root.weapon = 1;
}
}
rightkey = false;
} else {
rightkey = true;
}
if (Key.isDown(37)) {
if (leftkey) {
_root.sfx.option.play();
if (_root.weapon == 1) {
_root.weapon = 3;
if (_root.unlock) {
_root.weapon = 5;
}
} else if (_root.weapon == 2) {
_root.weapon = 4;
} else if (_root.weapon == 3) {
_root.weapon = 1;
} else if (_root.weapon == 4) {
_root.weapon = 2;
} else if (_root.weapon == 5) {
_root.weapon = 1;
}
}
leftkey = false;
} else {
leftkey = true;
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 37 MovieClip in Frame 11
onClipEvent (load) {
this.startDrag(true);
Mouse.hide();
timer = 60;
}
onClipEvent (enterFrame) {
if (oldx != _x) {
timer = 60;
} else if (oldy != _y) {
timer = 60;
}
oldx = _x;
oldy = _y;
timer = timer - 1;
if (timer > 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
Instance of Symbol 15 MovieClip in Symbol 24 MovieClip Frame 101
on (press) {
_root.nextFrame();
}
Symbol 43 Button
on (press) {
if (unlock) {
gotoAndStop ("character2");
} else {
gotoAndStop ("character");
}
}
Symbol 47 Button
on (press) {
gotoAndStop ("password");
}
Symbol 48 Button
on (press) {
getURL ("http://www.mcsmstudios.com", "_blank", "GET");
}
Symbol 49 Button
on (press) {
getURL ("http://www.newgrounds.com", "_blank", "GET");
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
stop();
Symbol 56 Button
on (press) {
gotoAndStop ("menu");
}
Symbol 57 Button
on (press) {
if ((((((dot3.dotty && (dot8.dotty)) && (dot12.dotty)) && (dot13.dotty)) && (dot14.dotty)) && (dot18.dotty)) && (dots == 6)) {
unlock = true;
passguy.gotoAndPlay(4);
} else {
passguy.gotoAndPlay(2);
}
}
Symbol 61 Button
on (press) {
_root.dots = _root.dots + 1;
dotty = true;
nextFrame();
}
Symbol 64 Button
on (press) {
_root.dots = _root.dots - 1;
dotty = false;
prevFrame();
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 3
stop();
Symbol 68 MovieClip Frame 5
stop();
Symbol 79 Button
on (press) {
_root.megaman = false;
}
Symbol 80 Button
on (press) {
_root.megaman = true;
}
Symbol 81 Button
on (press) {
stopAllSounds();
gotoAndStop ("bossintro");
}
Symbol 82 Button
on (press) {
_root.megaman = false;
_root.mario = false;
}
Symbol 83 Button
on (press) {
_root.megaman = true;
_root.mario = false;
}
Symbol 84 Button
on (press) {
_root.megaman = false;
_root.mario = true;
}
Symbol 86 Button
on (press) {
stopAllSounds();
gotoAndStop ("game");
}
Symbol 93 MovieClip Frame 1
if (_root.megaman) {
nextFrame();
} else if (_root.mario) {
gotoAndStop (3);
} else {
stop();
}
Symbol 103 MovieClip Frame 1
if (_root.megaman) {
nextFrame();
} else if (_root.mario) {
gotoAndStop (3);
} else {
stop();
}
Symbol 119 MovieClip Frame 1
if (_root.megaman) {
gotoAndStop (2);
} else if (_root.mario) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
Instance of Symbol 98 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 119 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 119 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Symbol 132 MovieClip Frame 1
if (_root.megaman) {
gotoAndStop (2);
} else if (_root.mario) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
Instance of Symbol 98 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 132 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 132 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 132 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Symbol 138 MovieClip Frame 109
_root.weapon = 5;
Symbol 138 MovieClip Frame 110
_root.weapon = 1;
Symbol 138 MovieClip Frame 114
_root.weapon = 5;
Symbol 138 MovieClip Frame 116
_root.weapon = 1;
Symbol 138 MovieClip Frame 119
_root.weapon = 5;
Symbol 138 MovieClip Frame 122
_root.weapon = 1;
Symbol 138 MovieClip Frame 126
_root.weapon = 5;
Symbol 138 MovieClip Frame 127
_root.weapon = 1;
Symbol 138 MovieClip Frame 128
_root.weapon = 5;
Instance of Symbol 137 MovieClip "bullet1" in Symbol 138 MovieClip Frame 164
onClipEvent (load) {
function shoot() {
active = true;
yspeed = 0;
direct = 1;
xspeed = (direct * xmax) / 2;
_alpha = 100;
}
active = false;
xmax = 8;
shoot();
}
onClipEvent (enterFrame) {
if (active) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((direct == 1) && (xspeed < xmax)) {
xspeed = xspeed + 1;
} else if ((direct == -1) && (xspeed > (-xmax))) {
xspeed = xspeed - 1;
}
_xscale = (direct * 100);
} else {
_alpha = 0;
}
}
Instance of Symbol 137 MovieClip "bullet2" in Symbol 138 MovieClip Frame 194
onClipEvent (load) {
function shoot() {
active = true;
yspeed = 0;
direct = 1;
xspeed = (direct * xmax) / 2;
_alpha = 100;
}
active = false;
xmax = 8;
shoot();
}
onClipEvent (enterFrame) {
if (active) {
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((direct == 1) && (xspeed < xmax)) {
xspeed = xspeed + 1;
} else if ((direct == -1) && (xspeed > (-xmax))) {
xspeed = xspeed - 1;
}
_xscale = (direct * 100);
} else {
_alpha = 0;
}
}
Symbol 138 MovieClip Frame 270
_root.nextFrame();
Symbol 164 MovieClip Frame 225
_root.nextFrame();
Symbol 167 MovieClip Frame 2
if ((_root.level._currentframe >= 7) && (_root.level._currentframe < 99)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 167 MovieClip Frame 3
stop();
Instance of Symbol 15 MovieClip in Symbol 169 MovieClip Frame 1
onClipEvent (load) {
function bewall(guy) {
if (guy.vuln.hitTest(this)) {
if ((guy.codebox.oldy <= topbox) && (guy.codebox.movetype != "ladder")) {
guy.codebox.ground(topbox);
}
}
}
player = _parent._parent.player;
topbox = _parent._y - (_parent._yscale * 0.08);
bottombox = _parent._y + (_parent._yscale * 0.08);
leftbox = _parent._x - (_parent._xscale * 0.08);
rightbox = _parent._x + (_parent._xscale * 0.08);
}
onClipEvent (enterFrame) {
bewall(player);
if ((player.vuln.hitTest(this) && (Math.abs(player._x - _parent._x) < 8)) && (player.codebox.movetype != "slide")) {
player.codebox.laddertime = 2;
player.codebox.ladderx = _parent._x;
player.codebox.laddertop = topbox;
player.codebox.ladderbottom = bottombox;
}
}
Instance of Symbol 15 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (load) {
function bewall(guy) {
if (guy.vuln.hitTest(this)) {
if (guy.codebox.oldy <= topbox) {
guy.codebox.ground(topbox);
} else if ((guy.codebox.oldy - (guy.vuln._yscale * 0.08)) >= bottombox) {
guy.codebox.ceiling((bottombox + (guy.vuln._yscale * 0.08)) + 1);
} else if (guy.codebox.oldx < _parent._x) {
guy.codebox.rightwall((leftbox - (guy.vuln._xscale * 0.04)) - 1);
} else if (guy.codebox.oldx > _parent._x) {
guy.codebox.leftwall((rightbox + (guy.vuln._xscale * 0.04)) + 1);
}
}
}
function bewall2(guy) {
if (guy.visual.vuln.hitTest(this)) {
if (guy.codebox.oldy <= topbox) {
guy.codebox.ground(topbox);
} else if ((guy.codebox.oldy - (guy.visual.vuln._yscale * 0.08)) >= bottombox) {
guy.codebox.ceiling((bottombox + (guy.visual.vuln._yscale * 0.08)) + 1);
} else if (guy.codebox.oldx < _parent._x) {
guy.codebox.rightwall((leftbox - (guy.visual.vuln._xscale * 0.04)) - 1);
} else if (guy.codebox.oldx > _parent._x) {
guy.codebox.leftwall((rightbox + (guy.visual.vuln._xscale * 0.04)) + 1);
}
}
}
_alpha = 0;
player = _parent._parent.player;
topbox = _parent._y - (_parent._yscale * 0.08);
bottombox = _parent._y + (_parent._yscale * 0.08);
leftbox = _parent._x - (_parent._xscale * 0.08);
rightbox = _parent._x + (_parent._xscale * 0.08);
}
onClipEvent (enterFrame) {
bewall(player);
if (player.slider.hitTest(this)) {
if (player.codebox.movetime < 2) {
player.codebox.movetime = 2;
}
}
if (player.noslide1.hitTest(this)) {
player.codebox.canslide = false;
} else if (player.noslide2.hitTest(this)) {
player.codebox.canslide = false;
}
bewall(_parent._parent.bullet1);
bewall(_parent._parent.bullet2);
bewall(_parent._parent.bullet3);
bewall(_parent._parent.tankcoil);
bewall(_parent._parent.item1);
bewall(_parent._parent.item2);
bewall(_parent._parent.item3);
bewall(_parent._parent.item4);
bewall(_parent._parent.item5);
bewall2(_parent._parent.enemy1);
bewall2(_parent._parent.enemy2);
bewall2(_parent._parent.enemy3);
bewall2(_parent._parent.enemy4);
bewall2(_parent._parent.enemy5);
bewall2(_parent._parent.enemy6);
bewall2(_parent._parent.enemy7);
bewall2(_parent._parent.enemy8);
bewall2(_parent._parent.enemy9);
bewall2(_parent._parent.enemy10);
}
Instance of Symbol 15 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.player.vuln.hitTest(this) && (_parent._parent.player.codebox.yspeed < 4)) {
_parent._parent.player.codebox.movetype = "ladder";
}
_parent._y = 10000;
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(_parent.visual.vuln))) {
if (!mybullet.codebox.bounced) {
if (deflect && (_root.weapon != 5)) {
mybullet.codebox.deflect();
} else {
mybullet.codebox.smack();
hurt(1);
}
}
}
}
function hurt(damage) {
hp = hp - damage;
_root.sfx.enemyhit.play();
if (hp <= 0) {
movetype = "die";
movetime = 5;
_parent._parent.item1.codebox.drop(_parent.visual._x, _parent.visual._y);
}
}
player = _parent._parent.player;
active = false;
hp = 1;
movetype = "hide";
movetime = 1;
direct = -1;
deflect = true;
_parent.visual._x = _parent._x;
_parent.visual._y = _parent._y;
_parent._x = 0;
_parent._y = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent.visual._alpha = 100;
if (!active) {
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) < 144) {
active = true;
}
goto = 6;
} else {
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "hide") {
if (Math.abs(player._x - _parent.visual._x) < 72) {
movetype = "open";
deflect = false;
if (player._x > _parent.visual._x) {
direct = 1;
} else {
direct = -1;
}
}
movetime = 1;
} else if (movetype == "open") {
movetype = "aim";
movetime = 9;
} else if (movetype == "aim") {
movetype = "shoot";
movetime = 19;
_parent.bullet1.shoot();
_parent.bullet2.shoot();
_parent.bullet3.shoot();
} else if (movetype == "shoot") {
movetype = "close";
movetime = 1;
} else if (movetype == "close") {
movetype = "hide";
movetime = 60;
deflect = true;
} else if (movetype == "die") {
movetype = "gone";
movetime = 1;
}
}
}
if (player.vuln.hitTest(_parent.visual.vuln)) {
player.codebox.hurt(3);
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) > 176) {
movetype = "hide";
movetime = 1;
deflect = true;
active = false;
}
_parent.visual._xscale = direct * 100;
if (movetype == "hide") {
goto = 1;
} else if (movetype == "open") {
goto = 2;
} else if (movetype == "aim") {
goto = 3;
} else if (movetype == "shoot") {
goto = 3;
} else if (movetype == "close") {
goto = 2;
} else if (movetype == "die") {
goto = 5;
} else if (movetype == "gone") {
goto = 6;
}
}
_parent.visual.gotoAndStop(goto);
} else {
_parent.visual._alpha = 0;
}
}
Instance of Symbol 198 MovieClip "bullet1" in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
active = true;
xspeed = 3 * _parent.codebox.direct;
yspeed = 0;
timer = 2;
_x = _parent.visual._x;
_y = (_parent.visual._y - 10);
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this.vuln)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
timer = timer - 1;
if (timer == 0) {
_x = (_x + (xspeed / 3));
timer = 2;
}
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 198 MovieClip "bullet2" in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
active = true;
xspeed = 2 * _parent.codebox.direct;
yspeed = 2;
_x = _parent.visual._x;
_y = (_parent.visual._y - 10);
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this.vuln)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 198 MovieClip "bullet3" in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
active = true;
xspeed = 2 * _parent.codebox.direct;
yspeed = -2;
_x = _parent.visual._x;
_y = (_parent.visual._y - 10);
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this.vuln)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 200 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(_parent.visual.vuln))) {
if (!mybullet.codebox.bounced) {
if (deflect && (_root.weapon != 5)) {
mybullet.codebox.deflect();
} else {
mybullet.codebox.smack();
hurt(1);
}
}
}
}
function hurt(damage) {
hp = hp - damage;
_root.sfx.enemyhit.play();
if (hp <= 0) {
movetype = "die";
movetime = 5;
_parent._parent.item1.codebox.drop(_parent.visual._x, _parent.visual._y);
}
}
function ground(yspot) {
air = false;
yspeed = 0;
xspeed = 0;
_parent.visual._y = yspot;
}
function ceiling(yspot) {
yspeed = 0;
_parent.visual._y = yspot;
}
function rightwall(xspot) {
_parent.visual._x = xspot;
direct = -1;
xspeed = xspeed * -1;
}
function leftwall(xspot) {
_parent.visual._x = xspot;
direct = 1;
xspeed = xspeed * -1;
}
player = _parent._parent.player;
active = false;
hp = 1;
movetype = "hide";
movetime = 1;
direct = -1;
deflect = true;
xspeed = 0;
yspeed = 0;
ymax = 20;
yacc = 1;
jump = -12;
air = false;
_parent.visual._x = _parent._x;
_parent.visual._y = _parent._y;
_parent._x = 0;
_parent._y = 0;
originx = _parent.visual._x;
originy = _parent.visual._y;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent.visual._alpha = 100;
if (!active) {
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) < 144) {
active = true;
attacking = false;
}
goto = 6;
} else {
if (Math.abs(player._x - _parent.visual._x) < 72) {
attacking = true;
}
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "hide") {
if (attacking) {
movetype = "open";
deflect = false;
if (player._x > _parent.visual._x) {
direct = 1;
} else {
direct = -1;
}
}
movetime = 1;
} else if (movetype == "open") {
movetype = "shoot";
movetime = 8;
} else if (movetype == "shoot") {
movetype = "jump";
movetime = 1;
yspeed = jump;
air = true;
if (Math.abs(player._x - _parent.visual._x) < 32) {
xspeed = direct;
} else if (Math.abs(player._x - _parent.visual._x) > 64) {
xspeed = direct * 3;
} else {
xspeed = direct * 2;
}
} else if (movetype == "jump") {
if (!air) {
movetype = "close";
movetime = 1;
} else {
movetime = 1;
}
} else if (movetype == "close") {
movetype = "hide";
movetime = 30;
deflect = true;
} else if (movetype == "die") {
movetype = "gone";
movetime = 1;
}
}
oldx = _parent.visual._x;
oldy = _parent.visual._y;
if (movetype != "die") {
_parent.visual._x = _parent.visual._x + xspeed;
_parent.visual._y = _parent.visual._y + yspeed;
yspeed = yspeed + yacc;
}
}
if (player.vuln.hitTest(_parent.visual.vuln)) {
player.codebox.hurt(3);
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) > 176) {
if (Math.abs((_parent._parent._x + originx) - 128) > 176) {
movetype = "hide";
movetime = 1;
deflect = true;
active = false;
xspeed = 0;
yspeed = 0;
air = false;
_parent.visual._x = originx;
_parent.visual._y = originy - 1;
}
}
_parent.visual._xscale = direct * 100;
if (movetype == "die") {
goto = 5;
} else if (movetype == "gone") {
goto = 6;
} else if (air) {
goto = 4;
} else if (movetype == "hide") {
goto = 1;
} else if (movetype == "open") {
goto = 2;
} else if (movetype == "shoot") {
goto = 3;
} else if (movetype == "close") {
goto = 2;
}
}
_parent.visual.gotoAndStop(goto);
} else {
_parent.visual._alpha = 0;
}
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 207 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(_parent.visual.vuln))) {
if (!mybullet.codebox.bounced) {
attacking = true;
if ((mybullet._y > (_parent.visual._y - 16)) && (mybullet.codebox.oldx < _parent.visual._x)) {
mybullet.codebox.deflect();
xspeed = xmax;
} else if (hurttime == 0) {
mybullet.codebox.smack();
if (_root.weapon == 3) {
hurt(2);
} else if (_root.weapon == 5) {
hurt(4);
} else {
hurt(1);
}
}
}
}
}
function hurt(damage) {
hp = hp - damage;
_root.sfx.enemyhit.play();
hurttime = 5;
if (hp <= 0) {
movetype = "die";
movetime = 5;
_parent._parent.item1.codebox.drop(_parent.visual._x, _parent.visual._y);
}
}
function ground(yspot) {
air = false;
yspeed = 0;
_parent.visual._y = yspot;
}
function ceiling(yspot) {
yspeed = 0;
_parent.visual._y = yspot;
}
function rightwall(xspot) {
_parent.visual._x = xspot;
}
function leftwall(xspot) {
_parent.visual._x = xspot;
}
player = _parent._parent.player;
active = false;
hp = 3;
movetype = "charge";
movetime = 4;
direct = -1;
xspeed = 0;
yspeed = 0;
ymax = 20;
yacc = 1;
jump = -12;
xacc = 1;
xmax = 2;
hurttime = 0;
air = false;
_parent.visual._x = _parent._x;
_parent.visual._y = _parent._y;
_parent._x = 0;
_parent._y = 0;
originx = _parent.visual._x;
originy = _parent.visual._y;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent.visual._alpha = 100;
if (!active) {
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) < 144) {
active = true;
attacking = false;
}
goto = 6;
} else {
if ((Math.abs(player._x - _parent.visual._x) < 96) && (player._y <= _parent.visual._y)) {
attacking = true;
}
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "charge") {
movetime = 5;
if ((attacking && (xspeed > (-xmax))) && (hurttime == 0)) {
xspeed = xspeed - xacc;
}
} else if (movetype == "die") {
movetype = "gone";
movetime = 1;
}
}
oldx = _parent.visual._x;
oldy = _parent.visual._y;
if (_parent.visual._x > originx) {
_parent.visual._x = originx;
if (xspeed > 0) {
xspeed = 0;
}
}
if (movetype != "die") {
_parent.visual._x = _parent.visual._x + xspeed;
_parent.visual._y = _parent.visual._y + yspeed;
yspeed = yspeed + yacc;
}
}
if (player.vuln.hitTest(_parent.visual.vuln)) {
player.codebox.hurt(6);
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) > 176) {
if (Math.abs((_parent._parent._x + originx) - 128) > 176) {
movetype = "charge";
movetime = 4;
hp = 4;
active = false;
xspeed = 0;
yspeed = 0;
air = false;
_parent.visual._x = originx;
_parent.visual._y = originy - 1;
}
}
_parent.visual._xscale = direct * 100;
if (hurttime > 0) {
hurttime = hurttime - 1;
}
if (movetype == "charge") {
if (hurttime == 0) {
goto = 1;
} else {
goto = 2;
}
} else if (movetype == "die") {
goto = 3;
} else if (movetype == "gone") {
goto = 4;
}
}
_parent.visual.gotoAndStop(goto);
} else {
_parent.visual._alpha = 0;
}
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(_parent.visual.vuln))) {
if (!mybullet.codebox.bounced) {
mybullet.codebox.smack();
hurt(1);
}
}
}
function hurt(damage) {
hp = hp - damage;
_root.sfx.enemyhit.play();
if (hp <= 0) {
movetype = "die";
movetime = 5;
_parent._parent.item1.codebox.drop(_parent.visual._x, _parent.visual._y + 1);
}
}
player = _parent._parent.player;
active = false;
hp = 1;
movetype = "flyin";
movetime = 10;
direct = -1;
xspeed = 0;
yspeed = 0;
xacc = 1;
xmax = 5;
_parent.visual._x = _parent._x;
_parent.visual._y = _parent._y;
_parent._x = 0;
_parent._y = 0;
originx = _parent.visual._x;
originy = _parent.visual._y;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent.visual._alpha = 100;
if (!active) {
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) < 144) {
active = true;
if (player._x > _parent.visual._x) {
direct = 1;
} else {
direct = -1;
}
xspeed = xmax * direct;
}
goto = 3;
} else {
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "flyin") {
movetype = "slowdown";
movetime = 3;
} else if (movetype == "slowdown") {
if (xspeed > 0) {
xspeed = xspeed - xacc;
movetime = 3;
} else if (xspeed < 0) {
xspeed = xspeed + xacc;
movetime = 3;
} else {
movetype = "shoot";
movetime = 10;
_parent.bullet1.aim();
}
} else if (movetype == "shoot") {
movetype = "wait";
movetime = 5;
_parent.bullet1.shoot();
} else if (movetype == "wait") {
movetype = "flyout";
movetime = 3;
} else if (movetype == "flyout") {
if ((xspeed > (-xmax)) && (direct == -1)) {
xspeed = xspeed - xacc;
movetime = 3;
} else if ((xspeed < xmax) && (direct == 1)) {
xspeed = xspeed + xacc;
movetime = 3;
} else {
xspeed = xmax * direct;
movetime = 300;
}
} else if (movetype == "die") {
movetype = "gone";
movetime = 1;
}
}
oldx = _parent.visual._x;
oldy = _parent.visual._y;
if (movetype != "die") {
_parent.visual._x = _parent.visual._x + xspeed;
_parent.visual._y = _parent.visual._y + yspeed;
}
}
if (player.vuln.hitTest(_parent.visual.vuln)) {
player.codebox.hurt(3);
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) > 176) {
if (Math.abs((_parent._parent._x + originx) - 128) > 176) {
movetype = "flyin";
movetime = 10;
active = false;
xspeed = 2;
yspeed = 0;
_parent.visual._x = originx;
_parent.visual._y = originy;
}
}
_parent.visual._xscale = direct * 100;
if (movetype == "die") {
goto = 2;
} else if (movetype == "gone") {
goto = 3;
} else {
goto = 1;
}
}
_parent.visual.gotoAndStop(goto);
} else {
_parent.visual._alpha = 0;
}
}
Instance of Symbol 198 MovieClip "bullet1" in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
function aim() {
pointer = Math.atan2((_parent.visual._y - player._y) + 16, _parent.visual._x - player._x) / (Math.PI/180);
}
function shoot() {
active = true;
speed = 6;
yspeed = Math.round((-speed) * Math.sin(pointer * (Math.PI/180)));
xspeed = Math.round((-speed) * Math.cos(pointer * (Math.PI/180)));
_x = (_parent.visual._x + (_parent.codebox.direct * 8));
_y = (_parent.visual._y + 4);
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this.vuln)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 219 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(_parent.visual.vuln))) {
if (!mybullet.codebox.bounced) {
mybullet.codebox.smack();
if (_root.weapon == 3) {
hurt(2);
} else if (_root.weapon == 5) {
hurt(2);
} else {
hurt(1);
}
}
}
}
function hurt(damage) {
hp = hp - damage;
_root.sfx.enemyhit.play();
hurttime = 5;
if (hp <= 0) {
movetype = "die";
movetime = 5;
_parent._parent.item1.codebox.drop(_parent.visual._x, _parent.visual._y);
}
}
function ground(yspot) {
yspeed = 0;
_parent.visual._y = yspot;
}
function ceiling(yspot) {
yspeed = 0;
_parent.visual._y = yspot;
}
function rightwall(xspot) {
_parent.visual._x = xspot;
direct = -1;
xspeed = direct * xmax;
}
function leftwall(xspot) {
_parent.visual._x = xspot;
direct = 1;
xspeed = direct * xmax;
}
player = _parent._parent.player;
active = false;
hp = 2;
movetype = "crawl";
movetime = 30;
direct = -1;
xspeed = -1;
yspeed = 0;
ymax = 20;
yacc = 1;
xmax = 1;
hurttime = 0;
_parent.visual._x = _parent._x;
_parent.visual._y = _parent._y;
_parent._x = 0;
_parent._y = 0;
originx = _parent.visual._x;
originy = _parent.visual._y;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent.visual._alpha = 100;
if (!active) {
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) < 144) {
active = true;
}
goto = 5;
} else {
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "die") {
movetype = "gone";
movetime = 1;
} else if (movetype == "crawl") {
movetype = "aim";
movetime = 15;
_parent.bullet1.aim();
} else if (movetype == "aim") {
movetype = "shoot";
movetime = 15;
_parent.bullet1.shoot();
} else if (movetype == "shoot") {
movetype = "crawl";
movetime = 90;
}
}
}
oldx = _parent.visual._x;
oldy = _parent.visual._y;
if (movetype != "die") {
if ((hurttime == 0) && (movetype == "crawl")) {
_parent.visual._x = _parent.visual._x + xspeed;
}
_parent.visual._y = _parent.visual._y + yspeed;
yspeed = yspeed + yacc;
}
if (player.vuln.hitTest(_parent.visual.vuln)) {
player.codebox.hurt(4);
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) > 176) {
if (Math.abs((_parent._parent._x + originx) - 128) > 176) {
movetype = "crawl";
movetime = 30;
active = false;
xspeed = -1;
yspeed = 0;
direct = -1;
_parent.visual._x = originx;
_parent.visual._y = originy - 1;
}
}
_parent.visual._xscale = direct * 100;
if (hurttime > 0) {
hurttime = hurttime - 1;
}
if (movetype == "crawl") {
if (hurttime == 0) {
goto = 1;
} else {
goto = 3;
}
} else if (movetype == "die") {
goto = 4;
} else if (movetype == "gone") {
goto = 5;
} else if (hurttime == 0) {
goto = 2;
} else {
goto = 3;
}
}
_parent.visual.gotoAndStop(goto);
} else {
_parent.visual._alpha = 0;
}
}
Instance of Symbol 198 MovieClip "bullet1" in Symbol 219 MovieClip Frame 1
onClipEvent (load) {
function aim() {
pointer = Math.atan2((_parent.visual._y - player._y) + 16, _parent.visual._x - player._x) / (Math.PI/180);
}
function shoot() {
active = true;
speed = 6;
yspeed = Math.round((-speed) * Math.sin(pointer * (Math.PI/180)));
xspeed = Math.round((-speed) * Math.cos(pointer * (Math.PI/180)));
yspeed = 0;
xspeed = 4 * _parent.codebox.direct;
_x = (_parent.visual._x + (_parent.codebox.direct * 4));
_y = (_parent.visual._y - 12);
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this.vuln)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Symbol 225 MovieClip Frame 1
if (_root.megaman) {
gotoAndStop (2);
} else if (_root.mario) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
Instance of Symbol 98 MovieClip in Symbol 225 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 225 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 225 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Symbol 226 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (load) {
player = _parent._parent.player;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent._alpha = 100;
if (player.vuln.hitTest(this)) {
_root.lives = _root.lives + 1;
_root.sfx.up1.play();
_parent.nextFrame();
}
} else {
_parent._alpha = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 230 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 230 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Symbol 231 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
player = _parent._parent.player;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent._alpha = 100;
if (player.vuln.hitTest(this)) {
if (_root.weapon == 2) {
_root.weapon2 = _root.weapon2 + 10;
if (_root.weapon2 > 28) {
_root.weapon2 = 28;
}
} else if (_root.weapon == 3) {
_root.weapon3 = _root.weapon3 + 10;
if (_root.weapon3 > 28) {
_root.weapon3 = 28;
}
} else if (_root.weapon == 4) {
_root.weapon4 = _root.weapon4 + 10;
if (_root.weapon4 > 28) {
_root.weapon4 = 28;
}
} else if (_root.weapon == 5) {
_root.weapon5 = _root.weapon5 + 10;
if (_root.weapon5 > 28) {
_root.weapon5 = 28;
}
}
_parent.nextFrame();
}
} else {
_parent._alpha = 0;
}
}
Instance of Symbol 98 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 235 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 235 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Symbol 236 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip in Symbol 236 MovieClip Frame 1
onClipEvent (load) {
player = _parent._parent.player;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent._alpha = 100;
if (player.vuln.hitTest(this)) {
if (_root.weapon == 2) {
_root.weapon2 = _root.weapon2 + 2;
if (_root.weapon2 > 28) {
_root.weapon2 = 28;
}
} else if (_root.weapon == 3) {
_root.weapon3 = _root.weapon3 + 2;
if (_root.weapon3 > 28) {
_root.weapon3 = 28;
}
} else if (_root.weapon == 4) {
_root.weapon4 = _root.weapon4 + 2;
if (_root.weapon4 > 28) {
_root.weapon4 = 28;
}
} else if (_root.weapon == 5) {
_root.weapon5 = _root.weapon5 + 2;
if (_root.weapon5 > 28) {
_root.weapon5 = 28;
}
}
_parent.nextFrame();
}
} else {
_parent._alpha = 0;
}
}
Symbol 240 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
player = _parent._parent.player;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent._alpha = 100;
if (player.vuln.hitTest(this)) {
_root.hp = _root.hp + 2;
if (_root.hp > 28) {
_root.hp = 28;
}
_parent.nextFrame();
}
} else {
_parent._alpha = 0;
}
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 265 MovieClip Frame 1
onClipEvent (load) {
function ground(yspot) {
if (_parent._y >= (landy - 16)) {
air = false;
yspeed = 0;
_parent._y = yspot;
}
}
function shoot() {
if (!active) {
active = true;
yspeed = ymax;
direct = player.codebox.direct;
timer = 1;
_parent._y = (-_parent._parent.goaly) - 16;
_parent._x = player._x + (32 * player.codebox.direct);
movetype = "fall";
landy = player._y;
air = true;
}
}
player = _parent._parent.player;
active = false;
xspeed = 0;
yspeed = 0;
ymax = 12;
air = true;
spring = -16;
}
onClipEvent (enterFrame) {
if (_root.gamepause) {
active = false;
_parent._alpha = 0;
} else if (active) {
oldx = _parent._x;
oldy = _parent._y;
if (timer > 0) {
timer = timer - 1;
}
if (timer == 0) {
if (movetype == "fall") {
if (air) {
timer = 1;
} else {
movetype = "land";
timer = 5;
}
} else if (movetype == "land") {
movetype = "wait";
timer = 150;
} else if (movetype == "wait") {
movetype = "jump";
timer = 5;
} else if (movetype == "jump") {
movetype = "return";
yspeed = -ymax;
} else if (movetype == "spring") {
movetype = "jump";
timer = 5;
}
}
if (((movetype == "wait") && (player.vuln.hitTest(_parent.vuln))) && (player.codebox.yspeed > 2)) {
movetype = "spring";
timer = 15;
player.codebox.yspeed = spring;
player.codebox.air = true;
player.codebox.spring = true;
_root.weapon2 = _root.weapon2 - 4;
}
_parent._x = _parent._x + xspeed;
_parent._y = _parent._y + yspeed;
if ((movetype == "return") && (_parent._y < -16)) {
active = false;
}
if (_parent._y > ((-_parent._parent.goaly) + 288)) {
active = false;
}
if (_parent._x > ((-_parent._parent._x) + 288)) {
active = false;
} else if (_parent._x < ((-_parent._parent._x) - 32)) {
active = false;
}
_parent._alpha = 100;
_parent._xscale = 100 * direct;
if (movetype == "fall") {
goto = 1;
} else if (movetype == "land") {
goto = 2;
} else if (movetype == "wait") {
goto = 3;
} else if (movetype == "spring") {
goto = 4;
} else if (movetype == "jump") {
goto = 2;
} else if (movetype == "return") {
goto = 1;
}
if (_root.megaman) {
goto = goto + 10;
} else if (_root.mario) {
goto = goto + 20;
}
_parent.gotoAndStop(goto);
} else {
_parent._alpha = 0;
}
}
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 11
gotoAndStop (1);
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 11
gotoAndStop (1);
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 11
gotoAndStop (1);
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 11
gotoAndStop (1);
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 11
gotoAndStop (1);
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 11
gotoAndStop (1);
Symbol 431 MovieClip Frame 1
stop();
Symbol 431 MovieClip Frame 11
gotoAndStop (1);
Instance of Symbol 15 MovieClip "codebox" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
function savescreen() {
_root.holdx = _parent._x;
_root.holdy = _parent._y;
_root.holdxspeed = xspeed;
_root.holdyspeed = yspeed;
_root.holdtype = movetype;
_root.holdtime = movetime;
_root.holdcinematic = true;
_root.holddirect = direct;
_root.holdladdertime = laddertime;
_root.holdair = air;
_root.laddertophold = laddertop;
_root.ladderbottomhold = ladderbottom;
_root.holdinvuln = invuln;
}
function ground(yspot) {
if (air) {
_root.sfx.land.play();
}
air = false;
spring = false;
yspeed = 0;
_parent._y = yspot;
if (laddertime > 0) {
laddertime = 0;
movetype = "standard";
}
}
function ceiling(yspot) {
yspeed = 0;
_parent._y = yspot;
}
function rightwall(xspot) {
_parent._x = xspot;
if (movetype == "slide") {
movetype = "standard";
movetime = 0;
xspeed = (xmax - xacc) * direct;
}
}
function leftwall(xspot) {
_parent._x = xspot;
if (movetype == "slide") {
movetype = "standard";
movetime = 0;
xspeed = (xmax - xacc) * direct;
}
}
function shoot() {
if (_root.weapon == 1) {
okayshoot = true;
} else if (_root.weapon == 2) {
if ((!_parent._parent.tankcoil.codebox.active) && (_root.weapon2 >= 4)) {
_parent._parent.tankcoil.codebox.shoot();
aimtime = maxaim;
okayshoot = false;
} else {
okayshoot = true;
}
} else if (_root.weapon == 3) {
if (_root.weapon3 >= 2) {
if ((_parent._parent.bullet1.codebox.active && (_parent._parent.bullet2.codebox.active)) && (_parent._parent.bullet3.codebox.active)) {
} else {
_root.weapon3 = _root.weapon3 - 2;
}
okayshoot = true;
} else {
okayshoot = false;
}
} else if (_root.weapon == 4) {
if (_root.weapon4 >= 1.5) {
if (((!_parent._parent.bullet1.codebox.active) && (!_parent._parent.bullet2.codebox.active)) && (!_parent._parent.bullet3.codebox.active)) {
_root.weapon4 = _root.weapon4 - 1.5;
okayshoot = true;
} else {
okayshoot = false;
}
} else {
okayshoot = false;
}
} else if (_root.weapon == 5) {
if (_root.weapon5 >= 2) {
if ((_parent._parent.bullet1.codebox.active && (_parent._parent.bullet2.codebox.active)) && (_parent._parent.bullet3.codebox.active)) {
} else {
_root.weapon5 = _root.weapon5 - 2;
}
okayshoot = true;
} else {
okayshoot = false;
}
}
if (okayshoot) {
if (_root.weapon != 4) {
if (!_parent._parent.bullet1.codebox.active) {
_parent._parent.bullet1.codebox.shoot();
aimtime = maxaim;
guntime = gunmax;
if (_root.weapon != 5) {
_root.sfx.gun.play();
} else {
_root.sfx.bossgun2.play();
}
} else if (!_parent._parent.bullet2.codebox.active) {
_parent._parent.bullet2.codebox.shoot();
aimtime = maxaim;
guntime = gunmax;
if (_root.weapon != 5) {
_root.sfx.gun.play();
} else {
_root.sfx.bossgun2.play();
}
} else if (!_parent._parent.bullet3.codebox.active) {
_parent._parent.bullet3.codebox.shoot();
aimtime = maxaim;
guntime = gunmax;
if (_root.weapon != 5) {
_root.sfx.gun.play();
} else {
_root.sfx.bossgun2.play();
}
}
} else {
_parent._parent.bullet1.codebox.shoot();
_parent._parent.bullet2.codebox.shoot();
_parent._parent.bullet3.codebox.shoot();
aimtime = maxaim;
guntime = gunmax;
_root.sfx.gun.play();
}
}
}
function hurt(damage) {
if ((invuln == 0) && (!cinematic)) {
_root.hp = _root.hp - damage;
if (_root.hp <= 0) {
die();
} else {
invuln = 45;
movetype = "hurt";
movetime = 15;
xspeed = (-xacc) * direct;
_root.sfx.hurt.play();
}
}
}
function die() {
if (movetype != "die") {
cinematic = true;
movetype = "die";
movetime = 120;
_root.hp = 0;
stopAllSounds();
_root.sfx.die.play();
}
}
_parent._x = _root.holdx;
_parent._y = _root.holdy;
xspeed = _root.holdxspeed;
yspeed = _root.holdyspeed;
movetype = _root.holdtype;
movetime = _root.holdtime;
cinematic = _root.holdcinematic;
direct = _root.holddirect;
laddertime = _root.holdladdertime;
air = _root.holdair;
laddertop = _root.laddertophold;
ladderbottom = _root.ladderbottomhold;
invuln = _root.holdinvuln;
_parent._alpha = 0;
xmax = 3;
xacc = 1;
jump = -10;
if (_root.mario) {
jump = -12;
xmax = 4;
}
yacc = 1;
ymax = 16;
aimtime = 0;
maxaim = 8;
guntime = 0;
gunmax = 4;
spring = false;
wiggletime = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
oldx = _parent._x;
oldy = _parent._y;
if (!cinematic) {
if (movetype != "hurt") {
if (Key.isDown(39) && (!Key.isDown(37))) {
if (movetype == "standard") {
if (xspeed < xmax) {
xspeed = xspeed + xacc;
} else if (xspeed < 0) {
xspeed = 0;
}
noslow = true;
}
if (movetype != "ladder") {
direct = 1;
}
} else if (Key.isDown(37) && (!Key.isDown(39))) {
if (movetype == "standard") {
if (xspeed > (-xmax)) {
xspeed = xspeed - xacc;
} else if (xspeed > 0) {
xspeed = 0;
}
noslow = true;
}
if (movetype != "ladder") {
direct = -1;
}
}
if (((laddertime > 0) && (movetype != "slide")) && (aimtime == 0)) {
if (Key.isDown(38) && (_parent._y > (laddertop + 8))) {
movetype = "ladder";
yspeed = -xmax;
_parent.climber.nextFrame();
_parent.climber2.nextFrame();
_parent.climber3.nextFrame();
} else if (Key.isDown(40)) {
if ((_parent._y < (ladderbottom + 15)) && (movetype == "ladder")) {
yspeed = xmax;
_parent.climber.nextFrame();
_parent.climber2.nextFrame();
_parent.climber3.nextFrame();
} else if ((_parent._y <= laddertop) && (movetype == "standard")) {
movetype = "ladder";
yspeed = xmax;
_parent.climber.nextFrame();
_parent.climber2.nextFrame();
_parent.climber3.nextFrame();
_parent._y = laddertop + 13;
}
}
}
if (Key.isDown(83)) {
if (skey) {
if ((!air) && (movetype == "standard")) {
if (Key.isDown(40)) {
if (canslide) {
movetype = "slide";
movetime = 12;
laddertime = 0;
}
} else {
yspeed = jump;
air = true;
}
} else if ((movetype == "ladder") && (!Key.isDown(38))) {
yspeed = 0;
movetype = "standard";
laddertime = 0;
}
}
skey = false;
} else {
skey = true;
}
if (Key.isDown(65)) {
if (akey) {
if (guntime == 0) {
if (movetype == "standard") {
shoot();
} else if (movetype == "ladder") {
if (Key.isDown(39) && (!Key.isDown(37))) {
direct = 1;
} else if (Key.isDown(37)) {
direct = -1;
}
shoot();
}
}
akey = false;
}
} else {
akey = true;
}
}
_parent._x = _parent._x + xspeed;
_parent._y = _parent._y + Math.round(yspeed);
if (movetype != "ladder") {
if (((yspeed < 0) && (!Key.isDown(83))) && (!spring)) {
yspeed = 0;
} else if (yspeed < ymax) {
yspeed = yspeed + yacc;
}
if ((yspeed > yacc) && (!air)) {
air = true;
}
} else {
air = false;
_parent._x = ladderx;
if (yspeed > 0) {
yspeed = yspeed - xacc;
} else if (yspeed < 0) {
yspeed = yspeed + xacc;
}
}
if (moremove) {
moremove = false;
} else {
moremove = true;
}
if ((xspeed == xmax) && (moremove)) {
_parent._x = _parent._x + xacc;
} else if ((xspeed == (-xmax)) && (moremove)) {
_parent._x = _parent._x - xacc;
}
if (!noslow) {
if ((xspeed > 0) && (movetype != "hurt")) {
xspeed = xspeed - xacc;
} else if ((xspeed < 0) && (movetype != "hurt")) {
xspeed = xspeed + xacc;
}
}
if (movetype == "slide") {
if (air) {
movetype = "standard";
xspeed = 0;
} else {
xspeed = (xmax * direct) * 2;
}
}
if (movetype == "ladder") {
if (_parent._y < (laddertop + 8)) {
ground(laddertop);
} else if (_parent._y >= (ladderbottom + 16)) {
laddertime = 0;
movetype = "standard";
air = true;
}
}
if (_parent._x < (_parent._parent.leftlim + (_parent.vuln._xscale * 0.04))) {
rightwall(_parent._parent.leftlim + (_parent.vuln._xscale * 0.04));
} else if (_parent._x > (_parent._parent.rightlim - (_parent.vuln._xscale * 0.04))) {
leftwall(_parent._parent.rightlim - (_parent.vuln._xscale * 0.04));
}
if (_parent._y > ((-_parent._parent.goaly) + 272)) {
die();
}
if (aimtime > 0) {
aimtime = aimtime - 1;
}
if (guntime > 0) {
guntime = guntime - 1;
}
if (wiggletime > 0) {
wiggletime = wiggletime - 1;
}
if (laddertime > 0) {
laddertime = laddertime - 1;
if ((laddertime == 0) && (movetype == "ladder")) {
movetype = "standard";
}
}
if (invuln > 0) {
invuln = invuln - 1;
}
canslide = true;
}
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "slide") {
movetype = "standard";
xspeed = (xmax - xacc) * direct;
} else if (movetype == "hurt") {
movetype = "standard";
} else if (movetype == "die") {
_root.lives = _root.lives - 1;
if (_root.lives >= 0) {
_root.hp = 28;
_root.hpmeter.goto = 28;
_root.weapon = 1;
_root.ready.play();
_root.bosshp.goto = -1;
_root.bosshp.myhp = -1;
_root.musicplayer.gotoAndStop("return");
_root.musicplayer.gotoAndStop("level");
if (_root.endlevel) {
_root.endhold();
_parent._parent.gotoAndStop(103);
} else if (_root.thirdway) {
_root.thirdhold();
_parent._parent.gotoAndStop(102);
} else if (_root.halfway) {
_root.halfhold();
_parent._parent.gotoAndStop(101);
} else {
_root.starthold();
_parent._parent.gotoAndStop(100);
}
} else {
_root.gotoAndStop("gameover");
}
} else if (movetype == "teleportin") {
if (!air) {
movetype = "flickerin";
movetime = 6;
} else {
movetime = 1;
_parent._y = _parent._y + 16;
}
} else if (movetype == "flickerin") {
movetype = "standard";
cinematic = false;
} else if (movetype == "flickerout") {
movetype = "teleportout";
movetime = 1;
} else if (movetype == "teleportout") {
if (_parent._y < (_root.level.goaly - 240)) {
_root.unlock = true;
_root.gotoAndStop("weaponget");
} else {
movetime = 1;
_parent._y = _parent._y - 16;
}
}
}
}
_parent._xscale = 100 * direct;
if ((((invuln % 4) >= 2) && (!cinematic)) && (movetype != "hurt")) {
_parent._alpha = 0;
} else {
_parent._alpha = 100;
}
if (movetype == "die") {
goto = 15;
} else if (movetype == "teleportin") {
goto = 17;
} else if (movetype == "flickerin") {
goto = 19;
} else if (movetype == "teleportout") {
goto = 21;
} else if (movetype == "flickerout") {
goto = 19;
} else if (wiggletime > 0) {
goto = 19;
} else if (movetype == "hurt") {
goto = 13;
} else if (air) {
goto = 5;
} else if (movetype == "slide") {
goto = 7;
} else if (movetype == "ladder") {
if (_parent._y > (laddertop + 14)) {
goto = 9;
} else {
goto = 11;
}
} else if (noslow) {
goto = 3;
} else {
goto = 1;
}
if (aimtime > 0) {
goto = goto + 1;
}
if (_root.megaman) {
goto = goto + 30;
} else if (_root.mario) {
goto = goto + 60;
}
noslow = false;
} else {
_parent._alpha = 0;
}
_parent.gotoAndStop(goto);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 9
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 10
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 11
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 11
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 12
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 13
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 13
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 6);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + -6);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + 6);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + -6);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 3);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + -3);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + 3);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + -3);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 4);
_y = (_y + 4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + -4);
_y = (_y + 4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 4);
_y = (_y + -4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + -4);
_y = (_y + -4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 2);
_y = (_y + 2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + -2);
_y = (_y + 2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + 2);
_y = (_y + -2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 15
onClipEvent (enterFrame) {
_x = (_x + -2);
_y = (_y + -2);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 17
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 17
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 21
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 21
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 31
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 31
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 32
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 32
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 33
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 33
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 34
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 34
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 35
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 35
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 36
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 36
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 37
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 37
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 39
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 39
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 40
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 40
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 41
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 41
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 42
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 42
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 43
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 43
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 6);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + -6);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + 6);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + -6);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 3);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + -3);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + 3);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + -3);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 4);
_y = (_y + 4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + -4);
_y = (_y + 4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 4);
_y = (_y + -4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + -4);
_y = (_y + -4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 2);
_y = (_y + 2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + -2);
_y = (_y + 2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + 2);
_y = (_y + -2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 45
onClipEvent (enterFrame) {
_x = (_x + -2);
_y = (_y + -2);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 47
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 47
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 49
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 49
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 98 MovieClip in Symbol 434 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 434 MovieClip Frame 51
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 6);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + -6);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + 6);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + -6);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 3);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + -3);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + 3);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + -3);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 4);
_y = (_y + 4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + -4);
_y = (_y + 4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 4);
_y = (_y + -4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + -4);
_y = (_y + -4);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 2);
_y = (_y + 2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + -2);
_y = (_y + 2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + 2);
_y = (_y + -2);
}
Instance of Symbol 195 MovieClip in Symbol 434 MovieClip Frame 75
onClipEvent (enterFrame) {
_x = (_x + -2);
_y = (_y + -2);
}
Symbol 442 MovieClip Frame 1
if (_root.megaman) {
gotoAndStop (2);
} else if (_root.mario) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 450 MovieClip Frame 1
onClipEvent (load) {
function ground(yspot) {
if (((_root.weapon == 4) && (!bounced)) && (active)) {
deflect();
}
}
function ceiling(yspot) {
if (((_root.weapon == 4) && (!bounced)) && (active)) {
deflect();
}
}
function rightwall(xspot) {
if (((_root.weapon == 3) && (!bounced)) && (active)) {
_parent._x = xspot;
bounced = true;
xspeed = 0;
_root.sfx.deflect.play();
}
if (((_root.weapon == 4) && (!bounced)) && (active)) {
deflect();
}
}
function leftwall(xspot) {
if (((_root.weapon == 3) && (!bounced)) && (active)) {
_parent._x = xspot;
xspeed = 0;
bounced = true;
_root.sfx.deflect.play();
}
if (((_root.weapon == 4) && (!bounced)) && (active)) {
deflect();
}
}
function shoot() {
if (!active) {
active = true;
bounced = false;
if (_root.weapon == 1) {
xspeed = xmax * player.codebox.direct;
yspeed = 0;
direct = player.codebox.direct;
timer = 45;
_parent._y = player._y - 13;
_parent._x = player._x + (20 * player.codebox.direct);
} else if (_root.weapon == 2) {
xspeed = xmax * player.codebox.direct;
yspeed = 0;
direct = player.codebox.direct;
timer = 45;
_parent._y = player._y - 13;
_parent._x = player._x + (20 * player.codebox.direct);
} else if (_root.weapon == 3) {
xspeed = 0;
yspeed = 0;
direct = player.codebox.direct;
timer = 150;
_parent._y = player._y - 14;
_parent._x = player._x + (32 * player.codebox.direct);
} else if (_root.weapon == 5) {
xspeed = 0;
yspeed = 0;
direct = player.codebox.direct;
timer = 150;
_parent._y = player._y - 13;
_parent._x = player._x + (24 * player.codebox.direct);
} else if (_root.weapon == 4) {
if (_parent._name == "bullet1") {
xspeed = 2 * player.codebox.direct;
yspeed = -9;
} else if (_parent._name == "bullet2") {
xspeed = 4 * player.codebox.direct;
yspeed = -7;
} else if (_parent._name == "bullet3") {
xspeed = 6 * player.codebox.direct;
yspeed = -4;
}
direct = player.codebox.direct;
timer = 30;
_parent._y = player._y - 13;
_parent._x = player._x + (20 * player.codebox.direct);
}
}
}
function deflect() {
if (!bounced) {
xspeed = xspeed * -1;
yspeed = -xmax;
bounced = true;
if (_root.weapon == 3) {
xspeed = 0;
yspeed = 0;
timer = 5;
_root.sfx.deflect.play();
} else if (_root.weapon == 4) {
xspeed = 0;
yspeed = 0;
timer = 5;
_root.sfx.fart.play();
} else if (_root.weapon == 5) {
xspeed = xspeed * -1;
yspeed = 0;
bounced = false;
} else {
_root.sfx.deflect.play();
}
}
}
function smack() {
if (active) {
active = false;
if (_root.weapon == 3) {
active = true;
xspeed = 0;
yspeed = 0;
timer = 5;
} else if (_root.weapon == 5) {
active = true;
}
}
}
player = _parent._parent.player;
active = false;
xmax = 8;
xspeed = 0;
yspeed = 0;
bounced = false;
}
onClipEvent (enterFrame) {
if (_root.gamepause) {
active = false;
_parent._alpha = 0;
} else if (active) {
oldx = _parent._x;
oldy = _parent._y;
if (_root.weapon == 3) {
if ((timer < 145) && (!bounced)) {
if ((direct == 1) && (xspeed < (xmax / 2))) {
xspeed = xspeed + 1;
} else if ((direct == -1) && (xspeed > ((-xmax) / 2))) {
xspeed = xspeed - 1;
}
}
if (player.vuln.hitTest(_parent.vuln) && (bounced)) {
if (player.codebox.oldy <= (_parent._y - 2)) {
player.codebox.ground(_parent._y - 2);
}
}
} else if (_root.weapon == 5) {
if (!bounced) {
if ((direct == 1) && (xspeed < xmax)) {
xspeed = xspeed + 1;
} else if ((direct == -1) && (xspeed > (-xmax))) {
xspeed = xspeed - 1;
}
}
} else if (_root.weapon == 4) {
if (!bounced) {
yspeed = yspeed + 1;
}
}
_parent._x = _parent._x + xspeed;
_parent._y = _parent._y + yspeed;
timer = timer - 1;
if (timer == 0) {
active = false;
}
if (_parent._x > ((-_parent._parent._x) + 256)) {
active = false;
} else if (_parent._x < (-_parent._parent._x)) {
active = false;
}
_parent._alpha = 100;
if (_root.weapon != 4) {
_parent._xscale = 100 * direct;
} else {
_parent._xscale = 100;
}
if (_root.weapon == 1) {
goto = 1;
} else if (_root.weapon == 2) {
goto = 2;
} else if (_root.weapon == 3) {
if (timer >= 145) {
goto = 3;
} else if (timer <= 4) {
goto = 3;
} else {
goto = 4;
}
} else if (_root.weapon == 4) {
if (timer > 5) {
goto = 7;
} else {
goto = 3;
}
} else if (_root.weapon == 5) {
goto = 6;
}
_parent.gotoAndStop(goto);
} else {
_parent._alpha = 0;
oldx = player._x;
oldy = player._y;
}
}
Symbol 454 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip "codebox" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
function drop(dropx, dropy) {
if (!active) {
appear(dropx, dropy);
} else if (!_parent._parent.item2.codebox.active) {
_parent._parent.item2.codebox.appear(dropx, dropy);
} else if (!_parent._parent.item3.codebox.active) {
_parent._parent.item3.codebox.appear(dropx, dropy);
} else if (!_parent._parent.item4.codebox.active) {
_parent._parent.item4.codebox.appear(dropx, dropy);
} else if (!_parent._parent.item5.codebox.active) {
_parent._parent.item5.codebox.appear(dropx, dropy);
}
}
function appear(dropx, dropy) {
chooser = random(201);
active = true;
_parent._x = dropx;
_parent._y = dropy;
yspeed = 0;
timer = 150;
if (chooser < 25) {
item = "bigammo";
} else if (chooser < 50) {
item = "smallammo";
} else if (chooser < 75) {
item = "bighealth";
} else if (chooser < 100) {
item = "smallhealth";
} else if (chooser < 101) {
item = "1up";
} else {
active = false;
}
}
function ground(yspot) {
yspeed = 0;
_parent._y = yspot;
}
player = _parent._parent.player;
active = false;
yspeed = 0;
yacc = 3;
ymax = 20;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
oldy = _parent._y;
if (player.vuln.hitTest(_parent.vuln)) {
active = false;
if (item == "1up") {
_root.lives = _root.lives + 1;
_root.sfx.up1.play();
} else if (item == "bigammo") {
if (_root.weapon == 2) {
_root.weapon2 = _root.weapon2 + 10;
if (_root.weapon2 > 28) {
_root.weapon2 = 28;
}
} else if (_root.weapon == 3) {
_root.weapon3 = _root.weapon3 + 10;
if (_root.weapon3 > 28) {
_root.weapon3 = 28;
}
} else if (_root.weapon == 4) {
_root.weapon4 = _root.weapon4 + 10;
if (_root.weapon4 > 28) {
_root.weapon4 = 28;
}
} else if (_root.weapon == 5) {
_root.weapon5 = _root.weapon5 + 10;
if (_root.weapon5 > 28) {
_root.weapon5 = 28;
}
}
} else if (item == "smallammo") {
if (_root.weapon == 2) {
_root.weapon2 = _root.weapon2 + 2;
if (_root.weapon2 > 28) {
_root.weapon2 = 28;
}
} else if (_root.weapon == 3) {
_root.weapon3 = _root.weapon3 + 2;
if (_root.weapon3 > 28) {
_root.weapon3 = 28;
}
} else if (_root.weapon == 4) {
_root.weapon4 = _root.weapon4 + 2;
if (_root.weapon4 > 28) {
_root.weapon4 = 28;
}
} else if (_root.weapon == 5) {
_root.weapon5 = _root.weapon5 + 2;
if (_root.weapon5 > 28) {
_root.weapon5 = 28;
}
}
} else if (item == "bighealth") {
_root.hp = _root.hp + 10;
if (_root.hp > 28) {
_root.hp = 28;
}
} else if (item == "smallhealth") {
_root.hp = _root.hp + 2;
if (_root.hp > 28) {
_root.hp = 28;
}
}
}
_parent._y = _parent._y + yspeed;
yspeed = yspeed + yacc;
if (timer > 0) {
timer = timer - 1;
} else {
active = false;
}
if (_parent._y > ((-_parent._parent._y) + 300)) {
active = false;
}
if (_parent._x > ((-_parent._parent._x) + 256)) {
active = false;
} else if (_parent._x < (-_parent._parent._x)) {
active = false;
}
if (((timer % 4) >= 2) && (timer <= 30)) {
_parent._alpha = 0;
} else {
_parent._alpha = 100;
}
if (item == "1up") {
goto = 1;
} else if (item == "bigammo") {
goto = 2;
} else if (item == "smallammo") {
goto = 3;
} else if (item == "bighealth") {
goto = 4;
} else if (item == "smallhealth") {
goto = 5;
}
} else {
_parent._alpha = 0;
}
_parent.gotoAndStop(goto);
} else {
_parent._alpha = 0;
}
}
Instance of Symbol 15 MovieClip in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
function bewall(guy) {
if (guy.vuln.hitTest(this)) {
guy.codebox.hurt(28);
if (guy.codebox.oldy <= topbox) {
guy.codebox.ground(topbox);
} else if ((guy.codebox.oldy - (guy.vuln._yscale * 0.08)) >= bottombox) {
guy.codebox.ceiling((bottombox + (guy.vuln._yscale * 0.08)) + 1);
} else if (guy.codebox.oldx < _parent._x) {
guy.codebox.rightwall((leftbox - (guy.vuln._xscale * 0.04)) - 1);
} else if (guy.codebox.oldx > _parent._x) {
guy.codebox.leftwall((rightbox + (guy.vuln._xscale * 0.04)) + 1);
}
}
}
function bewall2(guy) {
if (guy.visual.vuln.hitTest(this)) {
guy.codebox.hurt(28);
if (guy.codebox.oldy <= topbox) {
guy.codebox.ground(topbox);
} else if ((guy.codebox.oldy - (guy.visual.vuln._yscale * 0.08)) >= bottombox) {
guy.codebox.ceiling((bottombox + (guy.visual.vuln._yscale * 0.08)) + 1);
} else if (guy.codebox.oldx < _parent._x) {
guy.codebox.rightwall((leftbox - (guy.visual.vuln._xscale * 0.04)) - 1);
} else if (guy.codebox.oldx > _parent._x) {
guy.codebox.leftwall((rightbox + (guy.visual.vuln._xscale * 0.04)) + 1);
}
}
}
_alpha = 0;
player = _parent._parent.player;
topbox = _parent._y - (_parent._yscale * 0.08);
bottombox = _parent._y + (_parent._yscale * 0.08);
leftbox = _parent._x - (_parent._xscale * 0.08);
rightbox = _parent._x + (_parent._xscale * 0.08);
}
onClipEvent (enterFrame) {
bewall(player);
if (player.slider.hitTest(this)) {
if (player.codebox.movetime < 2) {
player.codebox.movetime = 2;
}
}
bewall(_parent._parent.bullet1);
bewall(_parent._parent.bullet2);
bewall(_parent._parent.bullet3);
bewall(_parent._parent.tankcoil);
bewall(_parent._parent.item1);
bewall(_parent._parent.item2);
bewall(_parent._parent.item3);
bewall(_parent._parent.item4);
bewall(_parent._parent.item5);
bewall2(_parent._parent.enemy1);
bewall2(_parent._parent.enemy2);
bewall2(_parent._parent.enemy3);
bewall2(_parent._parent.enemy4);
bewall2(_parent._parent.enemy5);
bewall2(_parent._parent.enemy6);
bewall2(_parent._parent.enemy7);
bewall2(_parent._parent.enemy8);
bewall2(_parent._parent.enemy9);
bewall2(_parent._parent.enemy10);
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 469 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(_parent.visual.vuln))) {
if (!mybullet.codebox.bounced) {
attacking = true;
if ((mybullet._y > (_parent.visual._y - 32)) && (mybullet.codebox.oldx < _parent.visual._x)) {
mybullet.codebox.deflect();
xspeed = xmax;
} else if (hurttime == 0) {
mybullet.codebox.smack();
if (_root.weapon == 3) {
hurt(2);
} else if (_root.weapon == 5) {
hurt(2);
} else {
hurt(1);
}
}
}
}
}
function hurt(damage) {
hp = hp - damage;
_root.sfx.enemyhit.play();
hurttime = 5;
if (hp <= 0) {
movetype = "die";
movetime = 5;
_parent._parent.item1.codebox.drop(_parent.visual._x, _parent.visual._y);
}
}
function ground(yspot) {
air = false;
yspeed = 0;
_parent.visual._y = yspot;
}
function ceiling(yspot) {
yspeed = 0;
_parent.visual._y = yspot;
}
function rightwall(xspot) {
_parent.visual._x = xspot;
}
function leftwall(xspot) {
_parent.visual._x = xspot;
}
player = _parent._parent.player;
active = false;
hp = 4;
movetype = "charge";
movetime = 4;
direct = -1;
xspeed = 0;
yspeed = 0;
ymax = 20;
yacc = 1;
jump = -12;
xacc = 1;
xmax = 2;
hurttime = 0;
air = false;
_parent.visual._x = _parent._x;
_parent.visual._y = _parent._y;
_parent._x = 0;
_parent._y = 0;
originx = _parent.visual._x;
originy = _parent.visual._y;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent.visual._alpha = 100;
if (!active) {
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) < 144) {
active = true;
attacking = false;
}
goto = 6;
} else {
if ((Math.abs(player._x - _parent.visual._x) < 96) && (player._y <= _parent.visual._y)) {
attacking = true;
}
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "charge") {
movetime = 5;
if ((attacking && (xspeed > (-xmax))) && (hurttime == 0)) {
xspeed = xspeed - xacc;
}
} else if (movetype == "die") {
movetype = "gone";
movetime = 1;
}
}
oldx = _parent.visual._x;
oldy = _parent.visual._y;
if (_parent.visual._x > originx) {
_parent.visual._x = originx;
if (xspeed > 0) {
xspeed = 0;
}
}
if (movetype != "die") {
_parent.visual._x = _parent.visual._x + xspeed;
_parent.visual._y = _parent.visual._y + yspeed;
yspeed = yspeed + yacc;
}
}
if (player.vuln.hitTest(_parent.visual.vuln)) {
player.codebox.hurt(8);
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) > 176) {
if (Math.abs((_parent._parent._x + originx) - 128) > 176) {
movetype = "charge";
movetime = 4;
hp = 4;
active = false;
xspeed = 0;
yspeed = 0;
air = false;
_parent.visual._x = originx;
_parent.visual._y = originy - 1;
}
}
_parent.visual._xscale = direct * 100;
if (hurttime > 0) {
hurttime = hurttime - 1;
}
if (movetype == "charge") {
if (hurttime == 0) {
goto = 1;
} else {
goto = 2;
}
} else if (movetype == "die") {
goto = 3;
} else if (movetype == "gone") {
goto = 4;
}
}
_parent.visual.gotoAndStop(goto);
} else {
_parent.visual._alpha = 0;
}
}
Symbol 470 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
player = _parent._parent.player;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent._alpha = 100;
if (player.vuln.hitTest(this)) {
_root.hp = _root.hp + 10;
if (_root.hp > 28) {
_root.hp = 28;
}
_parent.nextFrame();
}
} else {
_parent._alpha = 0;
}
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 521 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(this))) {
if (!mybullet.codebox.bounced) {
mybullet.codebox.deflect();
}
}
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_parent._alpha = 100;
} else {
_parent._alpha = 0;
}
if (active) {
if (player.vuln.hitTest(this)) {
player.codebox.hurt(7);
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
}
_parent._y = _parent._y + 8;
if (_parent._y > ((-_parent._parent.goaly) + 272)) {
_parent._y = _parent._y - 304;
if (player._x < (_parent._x + 32)) {
active = true;
} else {
active = false;
}
}
} else {
_parent._alpha = 0;
}
}
Symbol 527 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip in Symbol 527 MovieClip Frame 1
onClipEvent (load) {
player = _parent._parent.player;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (player.vuln.hitTest(this)) {
player.codebox.cinematic = true;
player.codebox.savescreen();
_root.holdxspeed = 0;
_parent.play();
_parent._parent.leftlim = _parent._parent.rightlim - 256;
_parent._parent.nextFrame();
}
}
}
Instance of Symbol 15 MovieClip in Symbol 527 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.level.player.codebox.noslow = true;
}
Symbol 527 MovieClip Frame 18
if (_parent.rightlim < rightlim) {
_parent.rightlim = _parent.rightlim + 8;
_parent.leftlim = _parent.leftlim + 8;
_parent.player._x = _parent.player._x + 1;
if (fastwalk) {
_parent.player._x = _parent.player._x + 1;
fastwalk = false;
} else {
fastwalk = true;
}
}
Symbol 527 MovieClip Frame 19
if (_parent.rightlim != rightlim) {
gotoAndPlay (18);
} else {
_root.holdx = _parent.player._x;
_parent.nextFrame();
}
Symbol 527 MovieClip Frame 20
if (_name == "door2") {
_root.level.player.codebox.cinematic = false;
_root.level.player.codebox.yspeed = 0;
}
Instance of Symbol 15 MovieClip in Symbol 527 MovieClip Frame 20
onClipEvent (enterFrame) {
if (_parent._name == "door2") {
_root.level.player._x = _root.holdx;
_root.level.player.codebox.direct = 1;
}
}
Symbol 527 MovieClip Frame 32
if (_name == "door2") {
_parent.player.codebox.cinematic = true;
_parent.player.codebox.xspeed = 0;
_root.level.player.codebox.direct = 1;
stopAllSounds();
_root.musicplayer.gotoAndStop("boss");
} else {
_parent.player.codebox.cinematic = false;
}
stop();
Instance of Symbol 15 MovieClip "codebox" in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(_parent.visual.vuln))) {
if (!mybullet.codebox.bounced) {
if (hurttime == 0) {
mybullet.codebox.smack();
if (_root.weapon == 3) {
hurt(2);
} else if (_root.weapon == 5) {
hurt(3);
} else {
hurt(1);
}
}
}
}
}
function hurt(damage) {
hp = hp - damage;
_root.sfx.enemyhit.play();
hurttime = 5;
if (hp <= 0) {
movetype = "die";
movetime = 5;
_parent._parent.item1.codebox.drop(_parent.visual._x, _parent.visual._y);
}
}
function ground(yspot) {
air = false;
yspeed = 0;
xspeed = 0;
_parent.visual._y = yspot;
}
function ceiling(yspot) {
yspeed = 0;
_parent.visual._y = yspot;
}
function rightwall(xspot) {
_parent.visual._x = xspot;
direct = -1;
xspeed = xspeed * -1;
}
function leftwall(xspot) {
_parent.visual._x = xspot;
direct = 1;
xspeed = xspeed * -1;
}
player = _parent._parent.player;
active = false;
hp = 10;
movetype = "wait";
movetime = 30;
direct = -1;
xspeed = 0;
yspeed = 0;
ymax = 20;
yacc = 1;
jump = -12;
air = true;
hurttime = 0;
_parent.visual._x = _parent._x;
_parent.visual._y = _parent._y;
_parent._x = 0;
_parent._y = 0;
originx = _parent.visual._x;
originy = _parent.visual._y;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent.visual._alpha = 100;
if (!active) {
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) < 144) {
active = true;
}
goto = 5;
} else {
if (player.vuln.hitTest(_parent.visual.vuln)) {
player.codebox.hurt(8);
}
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "wait") {
movetype = "jump";
if (player._x > _parent.visual._x) {
direct = 1;
} else {
direct = -1;
}
if (Math.abs(player._x - _parent.visual._x) < 32) {
xspeed = direct;
} else if (Math.abs(player._x - _parent.visual._x) > 64) {
xspeed = direct * 3;
} else {
xspeed = direct * 2;
}
air = true;
yspeed = jump;
movetime = 1;
} else if (movetype == "jump") {
if (!air) {
movetype = "wait";
movetime = 20;
} else {
movetime = 1;
}
} else if (movetype == "die") {
movetype = "gone";
movetime = 1;
}
}
oldx = _parent.visual._x;
oldy = _parent.visual._y;
if (movetype != "die") {
_parent.visual._x = _parent.visual._x + xspeed;
_parent.visual._y = _parent.visual._y + yspeed;
yspeed = yspeed + yacc;
}
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
if (Math.abs((_parent._parent._x + _parent.visual._x) - 128) > 176) {
if (Math.abs((_parent._parent._x + originx) - 128) > 176) {
movetype = "wait";
movetime = 30;
active = false;
xspeed = 0;
yspeed = 0;
air = true;
hp = 10;
direct = -1;
_parent.visual._x = originx;
_parent.visual._y = originy - 1;
}
}
_parent.visual._xscale = direct * 100;
if (hurttime > 0) {
hurttime = hurttime - 1;
}
if (movetype == "die") {
goto = 4;
} else if (movetype == "gone") {
goto = 5;
} else if (hurttime != 0) {
goto = 3;
} else if (air) {
goto = 2;
} else if (movetype == "wait") {
goto = 1;
}
}
_parent.visual.gotoAndStop(goto);
} else {
_parent.visual._alpha = 0;
}
}
Symbol 537 MovieClip Frame 17
gotoAndPlay (9);
Symbol 538 MovieClip Frame 17
gotoAndPlay (9);
Symbol 539 MovieClip Frame 9
stop();
Symbol 541 MovieClip Frame 3
stop();
Symbol 544 MovieClip Frame 5
stop();
Symbol 550 MovieClip Frame 9
gotoAndPlay (3);
Symbol 551 MovieClip Frame 3
stop();
Symbol 552 MovieClip Frame 68
_root.sfx.bossland.play();
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 6);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + -6);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + 6);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + -6);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 3);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + -3);
_y = (_y + 0);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + 3);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 0);
_y = (_y + -3);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 4);
_y = (_y + 4);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + -4);
_y = (_y + 4);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 4);
_y = (_y + -4);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + -4);
_y = (_y + -4);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 2);
_y = (_y + 2);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + -2);
_y = (_y + 2);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + 2);
_y = (_y + -2);
}
Instance of Symbol 195 MovieClip in Symbol 553 MovieClip Frame 7
onClipEvent (enterFrame) {
_x = (_x + -2);
_y = (_y + -2);
}
Instance of Symbol 15 MovieClip "codebox" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
function bulletcheck(mybullet) {
if (mybullet.codebox.active && (mybullet.vuln.hitTest(_parent.visual.vuln))) {
if (!mybullet.codebox.bounced) {
mybullet.codebox.smack();
if (hurttime == 0) {
if (_root.weapon == 3) {
hurt(0.7);
} else if (_root.weapon == 5) {
hurt(0.2);
} else if (_root.weapon == 4) {
hurt(2);
} else {
hurt(0.7);
}
}
}
}
}
function hurt(damage) {
hp = hp - damage;
_root.sfx.enemyhit.play();
hurttime = 10;
if (hp <= 0) {
stopAllSounds();
_root.sfx.die.play();
movetype = "die";
movetime = 150;
}
}
function ground(yspot) {
if (air) {
_root.sfx.bossland.play();
}
air = false;
yspeed = 0;
_parent.visual._y = yspot;
}
function ceiling(yspot) {
yspeed = 0;
_parent.visual._y = yspot;
}
function rightwall(xspot) {
_parent.visual._x = xspot - 1;
if (movetype == "slide") {
movetime = 1;
yspeed = -6;
_parent.visual._y = _parent.visual._y - 1;
xspeed = (-direct) * 3;
air = true;
_root.sfx.bossland.play();
} else {
direct = -1;
xspeed = xspeed * -1;
}
}
function leftwall(xspot) {
_parent.visual._x = xspot + 1;
if (movetype == "slide") {
movetime = 1;
yspeed = -6;
_parent.visual._y = _parent.visual._y - 1;
xspeed = (-direct) * 3;
air = true;
_root.sfx.bossland.play();
} else {
direct = 1;
xspeed = xspeed * -1;
}
}
player = _parent._parent.player;
active = true;
hp = 28;
movetype = "enter";
movetime = 90;
direct = -1;
xspeed = 0;
xmax = 10;
yspeed = 0;
ymax = 20;
yacc = 1;
jump = -16;
air = false;
hurttime = 0;
shoottime = 10;
_parent.visual._x = _parent._x;
_parent.visual._y = _parent._y;
_parent._x = 0;
_parent._y = 0;
originx = _parent.visual._x;
originy = _parent.visual._y;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
_parent.visual._alpha = 100;
if (!active) {
goto = 8;
} else {
if (movetype != "enter") {
_root.bosshp.myhp = hp;
}
if (movetime > 0) {
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "enter") {
movetype = "enter2";
movetime = 90;
} else if (movetype == "enter2") {
player.codebox.cinematic = false;
movetype = "wait2";
movetime = 20;
if (player._x > _parent.visual._x) {
direct = 1;
} else {
direct = -1;
}
} else if (movetype == "wait1") {
movetype = "crouch";
movetime = 2;
if (player._x > _parent.visual._x) {
direct = 1;
} else {
direct = -1;
}
} else if (movetype == "crouch") {
movetype = "jump";
if (Math.abs(player._x - _parent.visual._x) < 32) {
xspeed = direct;
} else if (Math.abs(player._x - _parent.visual._x) > 64) {
xspeed = direct * 3;
} else {
xspeed = direct * 2;
}
air = true;
yspeed = jump;
movetime = 1;
shoottime = 4;
} else if (movetype == "jump") {
if (!air) {
movetype = "land";
movetime = 6;
xspeed = 0;
} else {
movetime = 1;
}
} else if (movetype == "land") {
movetype = "wait2";
movetime = 10;
if (player._x > _parent.visual._x) {
direct = 1;
} else {
direct = -1;
}
} else if (movetype == "wait2") {
movetype = "slide";
movetime = 1000;
} else if (movetype == "slide") {
movetype = "bump";
movetime = 1;
} else if (movetype == "bump") {
if (!air) {
movetype = "land2";
movetime = 6;
xspeed = 0;
} else {
movetime = 1;
}
} else if (movetype == "land2") {
movetype = "aim";
movetime = 10;
if (player._x > _parent.visual._x) {
direct = 1;
} else {
direct = -1;
}
} else if (movetype == "aim") {
movetype = "shoot";
movetime = 4;
} else if (movetype == "shoot") {
movetype = "shoot2";
movetime = 6;
_parent.bullet1.shoot();
} else if (movetype == "shoot2") {
movetype = "unaim";
movetime = 2;
} else if (movetype == "unaim") {
if (Math.abs(player._x - _parent.visual._x) < 48) {
movetype = "wait1";
movetime = 10;
} else {
movetype = "wait3";
movetime = 10;
_parent.portal1.shoot();
_parent.portal2.shoot();
}
} else if (movetype == "wait3") {
movetype = "jump2";
air = true;
yspeed = jump;
movetime = 1;
} else if (movetype == "jump2") {
if (yspeed == 0) {
movetype = "fall";
movetime = 1;
_parent.visual._x = _parent.portal2._x;
} else {
movetime = 1;
}
} else if (movetype == "fall") {
if (!air) {
movetype = "wait1";
movetime = 10;
} else {
movetime = 1;
}
} else if (movetype == "die") {
movetype = "gone";
_root.sfx.teleport.play();
player.codebox.cinematic = true;
player.codebox.movetype = "flickerout";
player.codebox.movetime = 6;
}
}
oldx = _parent.visual._x;
oldy = _parent.visual._y;
if (movetype != "die") {
_parent.visual._x = _parent.visual._x + xspeed;
_parent.visual._y = _parent.visual._y + yspeed;
yspeed = yspeed + yacc;
}
if (movetype == "jump") {
shoottime = shoottime - 1;
if (shoottime == 0) {
_parent.bullet2.shoot();
shoottime = 7;
}
} else if (movetype == "slide") {
if (slideup) {
if ((direct == 1) && (xspeed < xmax)) {
xspeed = xspeed + 1;
} else if ((direct == -1) && (xspeed > (-xmax))) {
xspeed = xspeed - 1;
}
slideup = false;
} else {
slideup = true;
}
}
}
if (player.vuln.hitTest(_parent.visual.vuln)) {
player.codebox.hurt(4);
}
bulletcheck(_parent._parent.bullet1);
bulletcheck(_parent._parent.bullet2);
bulletcheck(_parent._parent.bullet3);
_parent.visual._xscale = direct * 100;
if (hurttime > 0) {
hurttime = hurttime - 1;
}
if ((hurttime % 4) >= 2) {
_parent.visual._alpha = 0;
_parent.hurtspark._alpha = 100;
} else {
_parent.visual._alpha = 100;
_parent.hurtspark._alpha = 0;
}
_parent.hurtspark._x = _parent.visual._x;
_parent.hurtspark._y = _parent.visual._y - 20;
if (movetype == "die") {
goto = 7;
} else if (movetype == "gone") {
goto = 8;
} else if (movetype == "enter") {
goto = 9;
} else if (movetype == "wait1") {
goto = 1;
} else if (movetype == "crouch") {
goto = 5;
} else if (movetype == "jump") {
goto = 5;
} else if (movetype == "land") {
goto = 6;
} else if (movetype == "wait2") {
goto = 1;
} else if (movetype == "slide") {
goto = 4;
} else if (movetype == "bump") {
goto = 5;
} else if (movetype == "land2") {
goto = 6;
} else if (movetype == "aim") {
goto = 2;
} else if (movetype == "shoot") {
goto = 3;
} else if (movetype == "shoot2") {
goto = 3;
} else if (movetype == "unaim") {
goto = 2;
} else if (movetype == "wait3") {
goto = 1;
} else if (movetype == "jump2") {
goto = 5;
} else if (movetype == "fall") {
goto = 5;
} else if (movetype == "wait") {
goto = 1;
} else if (movetype == "wait") {
goto = 1;
} else if (movetype == "wait") {
goto = 1;
} else if (movetype == "wait") {
goto = 1;
}
}
_parent.visual.gotoAndStop(goto);
} else {
_parent.visual._alpha = 0;
_parent.hurtspark._alpha = 0;
}
}
Instance of Symbol 540 MovieClip "portal1" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
if (!active) {
active = true;
_x = _parent.visual._x;
_y = 48;
movetype = "open";
movetime = 60;
}
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "open") {
movetype = "close";
movetime = 8;
} else if (movetype == "close") {
active = false;
}
}
if (movetype == "open") {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
} else {
_alpha = 0;
gotoAndStop (4);
}
} else {
_alpha = 0;
}
}
Instance of Symbol 540 MovieClip "portal2" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
if (!active) {
active = true;
_x = player._x;
_y = 48;
if (_x > 4576) {
_x = 4576;
} else if (_x < 4384) {
_x = 4384;
}
movetype = "open";
movetime = 60;
}
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
movetime = movetime - 1;
if (movetime == 0) {
if (movetype == "open") {
movetype = "close";
movetime = 8;
} else if (movetype == "close") {
active = false;
}
}
if (movetype == "open") {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
} else {
_alpha = 0;
gotoAndStop (4);
}
} else {
_alpha = 0;
}
}
Instance of Symbol 137 MovieClip "bullet1" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
active = true;
yspeed = 0;
direct = _parent.codebox.direct;
xspeed = (direct * xmax) / 2;
_root.sfx.bossgun2.play();
_alpha = 100;
_x = (_parent.visual._x + (_parent.codebox.direct * 40));
_y = (_parent.visual._y - 22);
}
player = _parent._parent.player;
active = false;
xmax = 8;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this)) {
player.codebox.hurt(6);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if ((direct == 1) && (xspeed < xmax)) {
xspeed = xspeed + 1;
} else if ((direct == -1) && (xspeed > (-xmax))) {
xspeed = xspeed - 1;
}
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
_xscale = (direct * 100);
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 556 MovieClip "bullet2" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
if (!active) {
active = true;
xspeed = 6 * _parent.codebox.direct;
yspeed = 6;
direct = _parent.codebox.direct;
_root.sfx.bossgun1.play();
_x = (_parent.visual._x + (_parent.codebox.direct * 26));
_y = (_parent.visual._y - 8);
} else {
_parent.bullet3.shoot();
}
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
_xscale = (direct * 100);
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 556 MovieClip "bullet3" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
if (!active) {
active = true;
xspeed = 6 * _parent.codebox.direct;
yspeed = 6;
direct = _parent.codebox.direct;
_root.sfx.bossgun1.play();
_x = (_parent.visual._x + (_parent.codebox.direct * 26));
_y = (_parent.visual._y - 8);
} else {
_parent.bullet4.shoot();
}
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
_xscale = (direct * 100);
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 556 MovieClip "bullet4" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
if (!active) {
active = true;
xspeed = 6 * _parent.codebox.direct;
yspeed = 6;
direct = _parent.codebox.direct;
_root.sfx.bossgun1.play();
_x = (_parent.visual._x + (_parent.codebox.direct * 26));
_y = (_parent.visual._y - 8);
} else {
_parent.bullet5.shoot();
}
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
_xscale = (direct * 100);
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 556 MovieClip "bullet5" in Symbol 557 MovieClip Frame 1
onClipEvent (load) {
function shoot() {
if (!active) {
active = true;
xspeed = 6 * _parent.codebox.direct;
yspeed = 6;
direct = _parent.codebox.direct;
_root.sfx.bossgun1.play();
_x = (_parent.visual._x + (_parent.codebox.direct * 26));
_y = (_parent.visual._y - 8);
}
}
player = _parent._parent.player;
active = false;
}
onClipEvent (enterFrame) {
if (!_root.gamepause) {
if (active) {
_alpha = 100;
if (player.vuln.hitTest(this)) {
player.codebox.hurt(2);
}
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.abs((_parent._parent._x + _x) - 128) > 144) {
active = false;
}
_xscale = (direct * 100);
} else {
_alpha = 0;
}
} else {
_alpha = 0;
}
}
Symbol 558 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -240;
_parent.leftlim = -256;
_parent.nextFrame();
}
}
Instance of Symbol 226 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
if (_parent.permaitem111) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem111 = true;
}
}
Instance of Symbol 231 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
if (_parent.permaitem112) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem112 = true;
}
}
Instance of Symbol 226 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
if (_parent.permaitem117) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem117 = true;
}
}
Instance of Symbol 231 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
if (_parent.permaitem118) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem118 = true;
}
}
Instance of Symbol 236 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
if (_parent.permaitem113) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem113 = true;
}
}
Instance of Symbol 236 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
if (_parent.permaitem114) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem114 = true;
}
}
Instance of Symbol 240 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
if (_parent.permaitem115) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem115 = true;
}
}
Instance of Symbol 240 MovieClip in Symbol 558 MovieClip Frame 1
onClipEvent (load) {
if (_parent.permaitem116) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem116 = true;
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -480;
_parent.rightlim = 1024;
_parent.nextFrame();
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = 0;
_parent.leftlim = -2048;
_parent.holdprev = true;
_parent.prevFrame();
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -720;
_parent.leftlim = 768;
_root.halfway = true;
_parent.nextFrame();
}
}
Instance of Symbol 231 MovieClip in Symbol 558 MovieClip Frame 5
onClipEvent (load) {
if (_parent.permaitem119) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem119 = true;
}
}
Instance of Symbol 240 MovieClip in Symbol 558 MovieClip Frame 5
onClipEvent (load) {
if (_parent.permaitem138) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem138 = true;
}
}
Instance of Symbol 470 MovieClip in Symbol 558 MovieClip Frame 5
onClipEvent (load) {
if (_parent.permaitem120) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem120 = true;
}
}
Symbol 558 MovieClip Frame 7
_root.sky.gotoAndStop(3);
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -960;
_parent.rightlim = 2048;
_parent.nextFrame();
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -720;
_parent.leftlim = 1792;
_parent.nextFrame();
}
}
Instance of Symbol 231 MovieClip in Symbol 558 MovieClip Frame 9
onClipEvent (load) {
if (_parent.permaitem123) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem123 = true;
}
}
Instance of Symbol 231 MovieClip in Symbol 558 MovieClip Frame 9
onClipEvent (load) {
if (_parent.permaitem121) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem121 = true;
}
}
Instance of Symbol 470 MovieClip in Symbol 558 MovieClip Frame 9
onClipEvent (load) {
if (_parent.permaitem122) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem122 = true;
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -960;
_parent.leftlim = 768;
_parent.holdprev = true;
_parent.prevFrame();
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -480;
_parent.leftlim = 1792;
_parent.nextFrame();
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -720;
_parent.holdprev = true;
_parent.prevFrame();
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -240;
_parent.nextFrame();
}
}
Instance of Symbol 470 MovieClip in Symbol 558 MovieClip Frame 13
onClipEvent (load) {
if (_parent.permaitem124) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem124 = true;
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -480;
_parent.holdprev = true;
_parent.prevFrame();
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 15
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = 0;
_parent.rightlim = 4096;
_root.thirdway = true;
_parent.nextFrame();
}
}
Instance of Symbol 15 MovieClip in Symbol 558 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_parent.player.vuln.hitTest(this)) {
_parent.player.codebox.savescreen();
_parent.goaly = -240;
_parent.rightlim = 2048;
_parent.holdprev = true;
_parent.prevFrame();
}
}
Instance of Symbol 496 MovieClip in Symbol 558 MovieClip Frame 17
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer = timer + 1;
if (timer >= 8) {
timer = 0;
}
if (timer >= 4) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
Instance of Symbol 527 MovieClip "door1" in Symbol 558 MovieClip Frame 17
onClipEvent (load) {
rightlim = 4352;
}
Instance of Symbol 226 MovieClip in Symbol 558 MovieClip Frame 17
onClipEvent (load) {
if (_parent.permaitem126) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem126 = true;
}
}
Instance of Symbol 470 MovieClip in Symbol 558 MovieClip Frame 17
onClipEvent (load) {
if (_parent.permaitem125) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_currentframe > 1) {
_parent.permaitem125 = true;
}
}
Symbol 558 MovieClip Frame 19
_root.endlevel = true;
Instance of Symbol 527 MovieClip "door2" in Symbol 558 MovieClip Frame 19
onClipEvent (load) {
rightlim = 4608;
}
Symbol 558 MovieClip Frame 100
gotoAndStop (1);
Symbol 558 MovieClip Frame 101
gotoAndStop (7);
Symbol 558 MovieClip Frame 102
gotoAndStop (17);
Symbol 558 MovieClip Frame 103
gotoAndStop (19);
Instance of Symbol 98 MovieClip in Symbol 563 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 107 MovieClip in Symbol 563 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Instance of Symbol 563 MovieClip in Symbol 564 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.weapon);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.weapon);
}
Symbol 566 MovieClip Frame 36
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 1
stop();
Symbol 587 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 1
stop();
Instance of Symbol 602 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (load) {
if ((!_root.megaman) && (!_root.mario)) {
if (_root.weapon == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_root.weapon == 1) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if ((!_root.megaman) && (!_root.mario)) {
if (_root.weapon == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_root.weapon == 1) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Instance of Symbol 607 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
goto = _root.hp;
if (_root.weapon != 1) {
goto = goto + 100;
}
gotoAndStop(Math.floor(goto + 1));
}
Instance of Symbol 607 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
goto = _root.weapon4;
if (_root.weapon != 4) {
goto = goto + 100;
}
gotoAndStop(Math.floor(goto + 1));
}
Instance of Symbol 607 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (load) {
if (_root.unlock) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
goto = _root.weapon5;
if (_root.weapon != 5) {
goto = goto + 100;
}
gotoAndStop(Math.floor(goto + 1));
}
Instance of Symbol 607 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
goto = _root.weapon3;
if (_root.weapon != 3) {
goto = goto + 100;
}
gotoAndStop(Math.floor(goto + 1));
}
Instance of Symbol 607 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
goto = _root.weapon2;
if (_root.weapon != 2) {
goto = goto + 100;
}
gotoAndStop(Math.floor(goto + 1));
}
Instance of Symbol 610 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.weapon == 3) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 615 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (load) {
if (!_root.megaman) {
if (_root.weapon == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_root.weapon == 2) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
onClipEvent (enterFrame) {
if (!_root.megaman) {
if (_root.weapon == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
} else if (_root.weapon == 2) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
}
Instance of Symbol 619 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (load) {
if (_root.unlock) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.weapon == 5) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 622 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.weapon == 4) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 634 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop((Math.floor(_root.lives / 10) % 10) + 1);
}
onClipEvent (load) {
gotoAndStop((Math.floor(_root.lives / 10) % 10) + 1);
}
Instance of Symbol 634 MovieClip in Symbol 635 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop((_root.lives % 10) + 1);
}
onClipEvent (load) {
gotoAndStop((_root.lives % 10) + 1);
}