Frame 2
stop();
character = 1;
Frame 3
stop();
playerinitial = 2;
playerright = 5;
playerleft = 6;
Frame 4
stop();
Frame 5
maxPlatforms = 0;
for (i in this) {
if (i.substring(0, 5) == "platf") {
maxPlatforms++;
}
}
stop();
score = 0;
lives = 6;
timer = 30;
keys = 0;
pause = false;
Instance of Symbol 93 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(40) and this.hitTest(_root.player.hit)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndStop("level2");
}
}
Instance of Symbol 93 MovieClip in Frame 5
onClipEvent (enterFrame) {
if ((Key.isDown(40) and this.hitTest(_root.player.hit)) && (_root.keys >= 2)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndStop("level2");
}
}
Instance of Symbol 198 MovieClip "player" in Frame 5
onClipEvent (load) {
move = 0;
attack = false;
Redge = 680;
Ledge = 20;
this.gotoAndStop(_root.playerinitial);
damagetimer = 0;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
render();
if (_root.character == 1) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if ((Key.isDown(37) and (_x > Ledge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerleft);
this.hero.play();
}
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if ((Key.isDown(39) and (_x < Redge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerright);
this.hero.play();
}
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
if (Key.isDown(32) == true) {
if (_root.player.platform != null) {
this.hero.gotoAndPlay("attack");
attack = true;
attackok = false;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 3) == "key") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.keys = _root.keys + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 8) == "megacoin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 10;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 10;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hitTest(_root.player2.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 2;
this.hero.gotoAndStop(1);
}
}
}
}
Instance of Symbol 219 MovieClip "platform0" in Frame 5
/* no clip actions */
Instance of Symbol 219 MovieClip "platform1" in Frame 5
/* no clip actions */
Instance of Symbol 219 MovieClip "platform3" in Frame 5
onClipEvent (load) {
verticalplat = true;
horizontalplat = false;
velocity = 5;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if ((_y > 215) || (_y < 125)) {
velocity = velocity * -1;
}
_y = (_y + velocity);
}
}
Instance of Symbol 219 MovieClip "platform2" in Frame 5
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = 5;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if ((_x > 585) || (_x < 290)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
}
Instance of Symbol 250 MovieClip "robot0" in Frame 5
onClipEvent (load) {
movement = 4;
alive = true;
robotlives = 4;
damagetimer = 0;
flip = _xscale;
}
onClipEvent (enterFrame) {
if (((alive == true) and (damagetimer == 0)) and (!_root.pause)) {
this._x = this._x + movement;
if (this.hitTest(_root.player.hit) and (_root.player._alpha == 100)) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.player._alpha = 50;
_root.player.horizontal = _xscale / 10;
_root.player.vertical = -15;
_root.player.falling = false;
_root.player.rising = true;
_root.player.damagetimer = 0;
}
if ((this.hitTest(_root.player.hero.attackhit) and (this._alpha == 100)) and (alive == true)) {
robotlives = robotlives - 1;
if (robotlives <= 0) {
this.gotoAndStop("robdead");
alive = false;
} else {
this._alpha = 50;
damagetimer = 0;
}
}
if ((this.hitTest(_root.player.hero.chargebeam) and (this._alpha == 100)) and (alive == true)) {
robotlives = robotlives - 4;
if (robotlives <= 0) {
this.gotoAndStop("robdead");
alive = false;
} else {
this._alpha = 50;
damagetimer = 0;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha != 100) {
damagetimer = damagetimer + 1;
if (damagetimer >= 10) {
this._alpha = 100;
}
}
}
Instance of Symbol 250 MovieClip "robot1" in Frame 5
onClipEvent (load) {
movement = 4;
alive = true;
robotlives = 4;
damagetimer = 0;
flip = _xscale;
}
onClipEvent (enterFrame) {
if (((alive == true) and (damagetimer == 0)) and (!_root.pause)) {
this._x = this._x + movement;
if (this.hitTest(_root.player.hit) and (_root.player._alpha == 100)) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.player._alpha = 50;
_root.player.horizontal = _xscale / 10;
_root.player.vertical = -15;
_root.player.falling = false;
_root.player.rising = true;
_root.player.damagetimer = 0;
}
if ((this.hitTest(_root.player.hero.attackhit) and (this._alpha == 100)) and (alive == true)) {
robotlives = robotlives - 1;
if (robotlives <= 0) {
this.gotoAndStop("robdead");
alive = false;
} else {
this._alpha = 50;
damagetimer = 0;
}
}
if ((this.hitTest(_root.player.hero.chargebeam) and (this._alpha == 100)) and (alive == true)) {
robotlives = robotlives - 4;
if (robotlives <= 0) {
this.gotoAndStop("robdead");
alive = false;
} else {
this._alpha = 50;
damagetimer = 0;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha != 100) {
damagetimer = damagetimer + 1;
if (damagetimer >= 10) {
this._alpha = 100;
}
}
}
Instance of Symbol 276 MovieClip in Frame 5
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.player.hero.charge >= 40) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 7
maxPlatforms = 0;
for (i in this) {
if (i.substring(0, 5) == "platf") {
maxPlatforms++;
}
}
keys = 0;
stop();
timer = timer + 30;
Instance of Symbol 93 MovieClip in Frame 7
onClipEvent (enterFrame) {
if ((Key.isDown(40) and this.hitTest(_root.player.hit)) && (_root.keys >= 2)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndPlay("teamup");
}
}
Instance of Symbol 198 MovieClip "player" in Frame 7
onClipEvent (load) {
move = 0;
attack = false;
Redge = 680;
Ledge = 20;
this.gotoAndStop(_root.playerinitial);
damagetimer = 0;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
render();
if (_root.character == 1) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if ((Key.isDown(37) and (_x > Ledge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerleft);
this.hero.play();
}
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if ((Key.isDown(39) and (_x < Redge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerright);
this.hero.play();
}
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
if (Key.isDown(32) == true) {
if (_root.player.platform != null) {
this.hero.gotoAndPlay("attack");
attack = true;
attackok = false;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 3) == "key") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.keys = _root.keys + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 8) == "megacoin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 10;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 10;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hitTest(_root.player2.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 2;
this.hero.gotoAndStop(1);
}
}
}
}
Instance of Symbol 287 MovieClip "change0" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.playerinitial = 2;
_root.playerright = 5;
_root.playerleft = 6;
_root.player.gotoAndStop(playerinitial);
this.gotoAndStop(2);
}
}
Instance of Symbol 287 MovieClip "change1" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.playerinitial = 3;
_root.playerright = 7;
_root.playerleft = 8;
_root.player.gotoAndStop(playerinitial);
this.gotoAndStop(2);
}
}
Instance of Symbol 219 MovieClip "platform0" in Frame 7
/* no clip actions */
Instance of Symbol 219 MovieClip "platform2" in Frame 7
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = 5;
}
Instance of Symbol 219 MovieClip "platform3" in Frame 7
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = -2;
}
Instance of Symbol 219 MovieClip "platform1" in Frame 7
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = 5;
}
Instance of Symbol 219 MovieClip "platform4" in Frame 7
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = 7;
}
Instance of Symbol 219 MovieClip "platform5" in Frame 7
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = -2;
}
Instance of Symbol 293 MovieClip "platform8" in Frame 7
/* no clip actions */
Instance of Symbol 250 MovieClip "robot0" in Frame 7
onClipEvent (load) {
movement = 4;
alive = true;
robotlives = 4;
damagetimer = 0;
flip = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if ((alive == true) and (damagetimer == 0)) {
this._x = this._x + movement;
if (this.hitTest(_root.player.hit) and (_root.player._alpha == 100)) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.player._alpha = 50;
_root.player.horizontal = _xscale / 10;
_root.player.vertical = -15;
_root.player.falling = false;
_root.player.rising = true;
_root.player.damagetimer = 0;
}
if ((this.hitTest(_root.player.hero.attackhit) and (this._alpha == 100)) and (alive == true)) {
robotlives = robotlives - 1;
if (robotlives <= 0) {
this.gotoAndStop("robdead");
alive = false;
} else {
this._alpha = 50;
damagetimer = 0;
}
}
if ((this.hitTest(_root.player.hero.chargebeam) and (this._alpha == 100)) and (alive == true)) {
robotlives = robotlives - 4;
if (robotlives <= 0) {
this.gotoAndStop("robdead");
alive = false;
} else {
this._alpha = 50;
damagetimer = 0;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha != 100) {
damagetimer = damagetimer + 1;
if (damagetimer >= 10) {
this._alpha = 100;
}
}
}
}
Frame 9
maxPlatforms = 0;
for (i in this) {
if (i.substring(0, 5) == "platf") {
maxPlatforms++;
}
}
keys = 0;
stop();
character = 1;
timer = timer + 30;
Instance of Symbol 93 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (Key.isDown(40) and this.hitTest(_root.player.hit)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndStop("level4");
}
}
Instance of Symbol 198 MovieClip "player" in Frame 9
onClipEvent (load) {
move = 0;
attack = false;
Redge = 680;
Ledge = 20;
this.gotoAndStop(_root.playerinitial);
damagetimer = 0;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
render();
if (_root.character == 1) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if ((Key.isDown(37) and (_x > Ledge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerleft);
this.hero.play();
}
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if ((Key.isDown(39) and (_x < Redge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerright);
this.hero.play();
}
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
if (Key.isDown(32) == true) {
if (_root.player.platform != null) {
this.hero.gotoAndPlay("attack");
attack = true;
attackok = false;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 3) == "key") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.keys = _root.keys + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 8) == "megacoin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 10;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 10;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hit.hitTest(_root.player2.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 2;
this.hero.gotoAndStop(1);
}
}
}
}
Instance of Symbol 301 MovieClip "player2" in Frame 9
onClipEvent (load) {
move = 0;
Redge = 680;
Ledge = 20;
damagetimer = 0;
activate = false;
}
onClipEvent (keyUp) {
this.hero.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (!_root.pause) {
render();
if (activate == true) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if (Key.isDown(37) and (_x > Ledge)) {
this.gotoAndStop("left");
this.hero.play();
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if (Key.isDown(39) and (_x < Redge)) {
this.gotoAndStop("right");
this.hero.play();
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player2.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 10;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hitTest(_root.player.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 1;
this.hero.gotoAndStop(1);
}
}
if (this.hit.hitTest(_root.player.hit)) {
activate = true;
}
if ((activate == true) and (_root.character == 1)) {
if (this._x >= (_root.player._x + 10)) {
this._x = this._x - 10;
}
if (this._x <= (_root.player._x - 10)) {
this._x = this._x + 10;
}
if (this._y >= (_root.player._y + 10)) {
this._y = this._y - 10;
}
if (this._y <= (_root.player._y - 10)) {
this._y = this._y + 10;
}
}
}
}
Instance of Symbol 219 MovieClip "platform0" in Frame 9
/* no clip actions */
Instance of Symbol 293 MovieClip "platform1" in Frame 9
/* no clip actions */
Instance of Symbol 219 MovieClip "platform2" in Frame 9
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = -4;
}
Instance of Symbol 293 MovieClip "platform3" in Frame 9
/* no clip actions */
Instance of Symbol 219 MovieClip "platform4" in Frame 9
/* no clip actions */
Instance of Symbol 293 MovieClip "platform5" in Frame 9
/* no clip actions */
Instance of Symbol 293 MovieClip "platform6" in Frame 9
/* no clip actions */
Instance of Symbol 293 MovieClip "platform7" in Frame 9
/* no clip actions */
Instance of Symbol 293 MovieClip "platform8" in Frame 9
/* no clip actions */
Instance of Symbol 219 MovieClip "platform9" in Frame 9
/* no clip actions */
Instance of Symbol 309 MovieClip in Frame 9
onClipEvent (load) {
switched = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) || (this.hitTest(_root.player2))) {
this.gotoAndStop(2);
if (!switched) {
_root.wall4.gotoAndPlay(2);
}
switched = true;
}
}
Instance of Symbol 309 MovieClip in Frame 9
onClipEvent (load) {
switched = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) || (this.hitTest(_root.player2))) {
this.gotoAndStop(2);
if (!switched) {
_root.wall1.gotoAndPlay(2);
}
switched = true;
}
}
Instance of Symbol 309 MovieClip in Frame 9
onClipEvent (load) {
switched = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) || (this.hitTest(_root.player2))) {
this.gotoAndStop(2);
if (!switched) {
_root.platform10.gotoAndPlay(2);
}
switched = true;
}
}
Frame 11
maxPlatforms = 0;
for (i in this) {
if (i.substring(0, 5) == "platf") {
maxPlatforms++;
}
}
keys = 0;
stop();
character = 1;
timer = timer + 30;
Instance of Symbol 93 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (Key.isDown(40) and this.hitTest(_root.player.hit)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndStop("level5");
}
}
Instance of Symbol 198 MovieClip "player" in Frame 11
onClipEvent (load) {
move = 0;
attack = false;
Redge = 680;
Ledge = 20;
this.gotoAndStop(_root.playerinitial);
damagetimer = 0;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
render();
if (_root.character == 1) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if ((Key.isDown(37) and (_x > Ledge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerleft);
this.hero.play();
}
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if ((Key.isDown(39) and (_x < Redge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerright);
this.hero.play();
}
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
if (Key.isDown(32) == true) {
if (_root.player.platform != null) {
this.hero.gotoAndPlay("attack");
attack = true;
attackok = false;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 3) == "key") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.keys = _root.keys + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 8) == "megacoin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 10;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 10;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hit.hitTest(_root.player2.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 2;
this.hero.gotoAndStop(1);
}
}
}
}
Instance of Symbol 301 MovieClip "player2" in Frame 11
onClipEvent (load) {
move = 0;
Redge = 680;
Ledge = 20;
damagetimer = 0;
activate = false;
}
onClipEvent (keyUp) {
this.hero.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (!_root.pause) {
render();
if (activate == true) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if (Key.isDown(37) and (_x > Ledge)) {
this.gotoAndStop("left");
this.hero.play();
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if (Key.isDown(39) and (_x < Redge)) {
this.gotoAndStop("right");
this.hero.play();
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player2.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (this.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 10;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hitTest(_root.player.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 1;
this.hero.gotoAndStop(1);
}
}
if (this.hit.hitTest(_root.player.hit)) {
activate = true;
}
if ((activate == true) and (_root.character == 1)) {
if (this._x >= (_root.player._x + 10)) {
this._x = this._x - 10;
}
if (this._x <= (_root.player._x - 10)) {
this._x = this._x + 10;
}
if (this._y >= (_root.player._y + 10)) {
this._y = this._y - 10;
}
if (this._y <= (_root.player._y - 10)) {
this._y = this._y + 10;
}
}
}
}
Instance of Symbol 309 MovieClip in Frame 11
onClipEvent (load) {
switched = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) || (this.hitTest(_root.player2))) {
this.gotoAndStop(2);
if (!switched) {
_root.wall4.gotoAndPlay(2);
}
switched = true;
}
}
Instance of Symbol 219 MovieClip "platform0" in Frame 11
/* no clip actions */
Instance of Symbol 293 MovieClip "platform5" in Frame 11
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = 3;
}
Instance of Symbol 293 MovieClip "platform6" in Frame 11
/* no clip actions */
Instance of Symbol 293 MovieClip "platform7" in Frame 11
/* no clip actions */
Instance of Symbol 293 MovieClip "platform4" in Frame 11
/* no clip actions */
Instance of Symbol 293 MovieClip "platform2" in Frame 11
/* no clip actions */
Instance of Symbol 293 MovieClip "platform8" in Frame 11
/* no clip actions */
Instance of Symbol 293 MovieClip "platform12" in Frame 11
/* no clip actions */
Instance of Symbol 219 MovieClip "platform13" in Frame 11
onClipEvent (load) {
verticalplat = true;
horizontalplat = false;
velocity = 3;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if ((_y > 200) || (_y < 100)) {
velocity = velocity * -1;
}
_y = (_y + velocity);
}
}
Instance of Symbol 309 MovieClip in Frame 11
onClipEvent (load) {
switched = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) || (this.hitTest(_root.player2))) {
this.gotoAndStop(2);
if (!switched) {
_root.wall1.gotoAndPlay(2);
}
switched = true;
}
}
Instance of Symbol 309 MovieClip in Frame 11
onClipEvent (load) {
switched = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) || (this.hitTest(_root.player2))) {
this.gotoAndStop(2);
if (!switched) {
_root.platform9.gotoAndPlay(2);
}
if (!switched) {
_root.platform10.gotoAndPlay(2);
}
if (!switched) {
_root.platform11.gotoAndPlay(2);
}
switched = true;
}
}
Frame 13
maxPlatforms = 0;
for (i in this) {
if (i.substring(0, 5) == "platf") {
maxPlatforms++;
}
}
keys = 0;
stop();
character = 1;
timer = timer + 30;
Instance of Symbol 93 MovieClip in Frame 13
onClipEvent (enterFrame) {
if ((Key.isDown(40) and this.hitTest(_root.player.hit)) && (_root.keys >= 2)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndPlay("boss");
}
}
Instance of Symbol 198 MovieClip "player" in Frame 13
onClipEvent (load) {
move = 0;
attack = false;
Redge = 680;
Ledge = 20;
this.gotoAndStop(_root.playerinitial);
damagetimer = 0;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
render();
if (_root.character == 1) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if ((Key.isDown(37) and (_x > Ledge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerleft);
this.hero.play();
}
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if ((Key.isDown(39) and (_x < Redge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerright);
this.hero.play();
}
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
if (Key.isDown(32) == true) {
if (_root.player.platform != null) {
this.hero.gotoAndPlay("attack");
attack = true;
attackok = false;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 3) == "key") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.keys = _root.keys + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 8) == "megacoin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 10;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 10;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hitTest(_root.player2.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 2;
this.hero.gotoAndStop(1);
}
}
}
}
Instance of Symbol 219 MovieClip "platform0" in Frame 13
/* no clip actions */
Instance of Symbol 219 MovieClip "platform1" in Frame 13
/* no clip actions */
Instance of Symbol 219 MovieClip "platform3" in Frame 13
onClipEvent (load) {
verticalplat = true;
horizontalplat = false;
velocity = 5;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if ((_y > 350) || (_y < 175)) {
velocity = velocity * -1;
}
_y = (_y + velocity);
}
}
Instance of Symbol 219 MovieClip "platform2" in Frame 13
onClipEvent (load) {
verticalplat = false;
horizontalplat = true;
velocity = 5;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if ((_x > 585) || (_x < 370)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
}
Instance of Symbol 219 MovieClip "platform5" in Frame 13
/* no clip actions */
Instance of Symbol 219 MovieClip "platform4" in Frame 13
/* no clip actions */
Instance of Symbol 219 MovieClip "platform6" in Frame 13
/* no clip actions */
Instance of Symbol 219 MovieClip "platform7" in Frame 13
/* no clip actions */
Instance of Symbol 250 MovieClip "robot0" in Frame 13
onClipEvent (load) {
movement = 4;
alive = true;
robotlives = 4;
damagetimer = 0;
flip = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
if ((alive == true) and (damagetimer == 0)) {
this._x = this._x + movement;
if (this.hitTest(_root.player.hit) and (_root.player._alpha == 100)) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.player._alpha = 50;
_root.player.horizontal = _xscale / 10;
_root.player.vertical = -15;
_root.player.falling = false;
_root.player.rising = true;
_root.player.damagetimer = 0;
}
if ((this.hitTest(_root.player.hero.attackhit) and (this._alpha == 100)) and (alive == true)) {
robotlives = robotlives - 1;
if (robotlives <= 0) {
this.gotoAndStop("robdead");
alive = false;
} else {
this._alpha = 50;
damagetimer = 0;
}
}
if ((this.hitTest(_root.player.hero.chargebeam) and (this._alpha == 100)) and (alive == true)) {
robotlives = robotlives - 4;
if (robotlives <= 0) {
this.gotoAndStop("robdead");
alive = false;
} else {
this._alpha = 50;
damagetimer = 0;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha != 100) {
damagetimer = damagetimer + 1;
if (damagetimer >= 10) {
this._alpha = 100;
}
}
}
}
Frame 15
maxPlatforms = 0;
for (i in this) {
if (i.substring(0, 5) == "platf") {
maxPlatforms++;
}
}
keys = 0;
bosshealth = 100;
stop();
timer = timer + 30;
Instance of Symbol 198 MovieClip "player" in Frame 15
onClipEvent (load) {
move = 0;
attack = false;
Redge = 680;
Ledge = 20;
this.gotoAndStop(_root.playerinitial);
damagetimer = 0;
}
onClipEvent (enterFrame) {
if (!_root.pause) {
render();
if (_root.character == 1) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if ((Key.isDown(37) and (_x > Ledge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerleft);
this.hero.play();
}
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if ((Key.isDown(39) and (_x < Redge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerright);
this.hero.play();
}
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
if (Key.isDown(32) == true) {
if (_root.player.platform != null) {
this.hero.gotoAndPlay("attack");
attack = true;
attackok = false;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 3) == "key") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.keys = _root.keys + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 8) == "megacoin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 10;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 99999;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hitTest(_root.player2.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 2;
this.hero.gotoAndStop(1);
}
}
}
}
Instance of Symbol 276 MovieClip in Frame 15
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.player.hero.charge >= 40) {
this._visible = true;
} else {
this._visible = false;
}
}
Frame 17
maxPlatforms = 0;
for (i in this) {
if (i.substring(0, 5) == "platf") {
maxPlatforms++;
}
}
keys = 0;
stop();
bonus2 = timer * 15;
score2 = bonus2 + score;
if (score2 > 1500) {
message.gotoAndStop(2);
}
Instance of Symbol 198 MovieClip "player" in Frame 17
onClipEvent (load) {
move = 0;
attack = false;
Redge = 680;
Ledge = 20;
this.gotoAndStop(_root.playerinitial);
damagetimer = 0;
}
onClipEvent (enterFrame) {
render();
if (_root.character == 1) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if ((Key.isDown(37) and (_x > Ledge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerleft);
this.hero.play();
}
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if ((Key.isDown(39) and (_x < Redge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerright);
this.hero.play();
}
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
if (Key.isDown(32) == true) {
if (_root.player.platform != null) {
this.hero.gotoAndPlay("attack");
attack = true;
attackok = false;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 3) == "key") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.keys = _root.keys + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 8) == "megacoin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 10;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 99999;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hitTest(_root.player2.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 2;
this.hero.gotoAndStop(1);
}
}
}
Frame 19
maxPlatforms = 0;
for (i in this) {
if (i.substring(0, 5) == "platf") {
maxPlatforms++;
}
}
keys = 0;
stop();
bonus2 = timer * 50;
score = bonus2 + score;
if (score > 5000) {
message.gotoAndStop(2);
}
Instance of Symbol 93 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (Key.isDown(40) and this.hitTest(_root.player.hit)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndPlay("bonus4");
}
}
Instance of Symbol 93 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (Key.isDown(40) and this.hitTest(_root.player.hit)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndStop("extra1");
}
}
Instance of Symbol 93 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (Key.isDown(40) and this.hitTest(_root.player.hit)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndStop("extra2");
}
}
Instance of Symbol 93 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (Key.isDown(40) and this.hitTest(_root.player.hit)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndStop("extra3");
}
}
Instance of Symbol 198 MovieClip "player" in Frame 19
onClipEvent (load) {
move = 0;
attack = false;
Redge = 680;
Ledge = 20;
this.gotoAndStop(_root.playerinitial);
damagetimer = 0;
}
onClipEvent (enterFrame) {
render();
if (_root.character == 1) {
if (move == 0) {
this._x = this._x + Xstep;
Xstep = 0;
if ((Key.isDown(37) and (_x > Ledge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerleft);
this.hero.play();
}
Xstep = -10;
} else if (Key.isDown(37) and (_x < Ledge)) {
Xstep == 0;
}
if ((Key.isDown(39) and (_x < Redge)) and (!Key.isDown(32))) {
if (!clinging) {
this.gotoAndStop(_root.playerright);
this.hero.play();
}
Xstep = 10;
} else if (Key.isDown(39) and (this._x < Redge)) {
Xstep = 0;
}
}
if (Key.isDown(32) == true) {
if (_root.player.platform != null) {
this.hero.gotoAndPlay("attack");
attack = true;
attackok = false;
}
}
for (i in _root) {
if (i.substring(0, 4) == "wall") {
if (this.plathit.hitTest(_root[i])) {
_root.player.Xstep = 0;
}
}
}
for (i in _root) {
if (i.substring(0, 3) == "key") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.keys = _root.keys + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "coin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 1;
}
}
}
for (i in _root) {
if (i.substring(0, 8) == "megacoin") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.score = _root.score + 10;
}
}
}
for (i in _root) {
if (i.substring(0, 4) == "life") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.lives = _root.lives + 2;
if (_root.lives >= 6) {
_root.lives = 6;
}
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "clock") {
if (_root.player.hit.hitTest(_root[i])) {
_root[i].gotoAndStop(2);
_root.timer = _root.timer + 99999;
}
}
}
if (this._alpha == 100) {
damagetimer = 0;
} else if (this._alpha == 50) {
damagetimer = damagetimer + 1;
if (damagetimer >= 30) {
this._alpha = 100;
}
}
if ((Key.isDown(40) and this.hitTest(_root.player2.hit)) and (this._alpha == 100)) {
this._alpha = 50;
_root.character = 2;
this.hero.gotoAndStop(1);
}
}
}
Frame 42
stop();
Frame 93
stop();
Frame 94
stop();
Frame 95
stop();
Frame 118
stop();
Frame 152
stop();
Frame 186
stop();
Frame 198
stop();
Frame 199
stop();
Frame 200
stop();
Frame 235
stop();
Symbol 9 Button
on (release) {
_root.play("start");
}
Symbol 10 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 10 MovieClip Frame 2
gotoAndPlay (1);
Symbol 26 Button
on (release) {
_root.gotoAndPlay("howto");
}
Symbol 27 Button
on (release) {
_root.gotoAndPlay("hints");
}
Symbol 28 Button
on (release) {
_root.gotoAndPlay("credits");
}
Symbol 29 Button
on (release) {
_root.gotoAndPlay("intro");
}
Symbol 30 MovieClip Frame 19
stop();
Symbol 34 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("level1");
_root.playerinitial = 2;
_root.playerright = 5;
_root.playerleft = 6;
}
Symbol 36 MovieClip Frame 21
stop();
Symbol 41 Button
on (release) {
_root.gotoAndStop("level1");
_root.playerinitial = 2;
_root.playerright = 5;
_root.playerleft = 6;
}
Symbol 42 Button
on (release) {
_root.gotoAndStop("level1");
_root.playerinitial = 3;
_root.playerright = 7;
_root.playerleft = 8;
}
Symbol 43 Button
on (release) {
_root.gotoAndStop("level1");
_root.playerinitial = 4;
_root.playerright = 9;
_root.playerleft = 10;
}
Symbol 48 MovieClip Frame 1
Symbol 50 MovieClip Frame 1
Symbol 57 MovieClip Frame 35
stop();
Symbol 61 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("start");
}
Symbol 76 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 84 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 88 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_root.player.hit)) {
_root.gotoAndStop("gameover");
}
};
Symbol 93 MovieClip Frame 1
stop();
opened = false;
Symbol 93 MovieClip Frame 10
stop();
opened = true;
Symbol 96 MovieClip Frame 1
function onEnterFrame() {
if (!_root.pause) {
if (_root.player.rising || (_root.player.falling)) {
if (_root.player.hitTest(this)) {
if (Key.isDown(39)) {
_root.player._x = this._x;
_root.player.horizontal = 0;
_root.player.vertical = 0;
_root.player.clinging = true;
_root.player.rising = false;
_root.player.falling = false;
_root.player.gotoAndStop(_root.playerleft);
_root.player.hero.gotoAndStop(25);
_root.player.clingTo = this;
}
}
}
if (_root.player.clinging && (_root.player.clingTo == this)) {
if (Key.isDown(39)) {
_root.player.gotoAndStop(_root.playerleft);
_root.player._x = this._x;
}
if (Key.isDown(37) || (!_root.player.hitTest(this))) {
_root.player.vertical = 1;
_root.player.clinging = false;
_root.player.rising = false;
_root.player.falling = true;
}
}
}
}
Symbol 99 MovieClip Frame 1
function onEnterFrame() {
if (!_root.pause) {
if (_root.player.rising || (_root.player.falling)) {
if (_root.player.hitTest(this)) {
if (Key.isDown(37)) {
_root.player._x = this._x;
_root.player.horizontal = 0;
_root.player.vertical = 0;
_root.player.clinging = true;
_root.player.rising = false;
_root.player.falling = false;
_root.player.gotoAndStop(_root.playerright);
_root.player.hero.gotoAndStop("wallwalkup");
_root.player.clingTo = this;
}
}
}
if (_root.player.clinging && (_root.player.clingTo == this)) {
if (Key.isDown(37)) {
_root.player.gotoAndStop(_root.playerright);
_root.player._x = this._x;
}
if (Key.isDown(39) || (!_root.player.hitTest(this))) {
_root.player.vertical = 1;
_root.player.clinging = false;
_root.player.rising = false;
_root.player.falling = true;
}
}
}
}
Symbol 102 MovieClip Frame 1
function onEnterFrame() {
if (!_root.pause) {
if (_root.player.rising && (this.hitTest(_root.player))) {
_root.player.hanging = true;
_root.player.rising = false;
_root.player.vertical = 0;
_root.player._y = this._y;
_root.player.hangTo = this;
this.gotoAndStop(19);
}
if ((_root.player.hanging && (_root.player.hangTo == this)) && (!this.hitTest(_root.player))) {
_root.player.falling = true;
_root.player.hanging = false;
_root.player.rising = false;
_root.player.vertical = 1;
}
}
}
Symbol 155 MovieClip Frame 1
stop();
_parent.attack = false;
charge = 0;
Symbol 155 MovieClip Frame 7
gotoAndPlay (2);
Symbol 155 MovieClip Frame 8
charge = charge + 1;
Symbol 155 MovieClip Frame 9
if ((charge > 40) and (Key.isDown(32) == false)) {
gotoAndPlay ("charged");
}
Symbol 155 MovieClip Frame 17
_root.player.attack = false;
charge = 0;
gotoAndPlay (1);
Symbol 155 MovieClip Frame 18
stop();
Symbol 155 MovieClip Frame 19
stop();
Symbol 155 MovieClip Frame 25
gotoAndPlay (20);
Symbol 155 MovieClip Frame 31
gotoAndPlay (26);
Symbol 155 MovieClip Frame 37
gotoAndPlay (32);
Symbol 155 MovieClip Frame 39
charge = 0;
Symbol 155 MovieClip Frame 47
_root.player.attack = false;
charge = 0;
gotoAndPlay (1);
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 11
gotoAndPlay (2);
Symbol 176 MovieClip Frame 20
_root.player.attack = false;
gotoAndPlay (1);
Symbol 176 MovieClip Frame 21
stop();
Symbol 176 MovieClip Frame 22
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 11
gotoAndPlay (2);
Symbol 197 MovieClip Frame 20
_root.player.attack = false;
gotoAndPlay (1);
Symbol 197 MovieClip Frame 21
stop();
Symbol 197 MovieClip Frame 22
stop();
Symbol 198 MovieClip Frame 1
function hitPlatforms() {
var i;
var y;
var x;
i = 0;
while (i < _root.maxPlatforms) {
platform = eval ("_root.platform" + i);
y = _y + vertical;
x = _x + horizontal;
if (((_y < platform._y) && (y >= (platform._y - 10))) && (platform.hitTest(x, platform._y) == true)) {
_y = platform._y;
falling = false;
if (vertical != 0) {
this.hero.gotoAndPlay(1);
vertical = 0;
}
return(undefined);
}
i++;
}
platform = null;
return(undefined);
}
function hitCeilings() {
var i;
var y;
var x;
var b2 = this.getBounds(_root);
i = 0;
while (i < _root.maxPlatforms) {
platform2 = eval ("_root.platform" + i);
if (platform2.ceiling && (rising)) {
if (this.hitTest(platform2)) {
if (b2.yMax > platform2._y) {
var b = platform2.getBounds(_root);
var x = (b2.xMax - b2.xMin);
x = (x / 2) + b2.xMin;
if ((b.xMin < x) && (b.xMax > x)) {
_y = (_y + (b.yMax - b2.yMin));
falling = true;
vertical = 1;
rising = false;
return(undefined);
}
}
}
}
i++;
}
}
function render() {
var _local3;
var _local4;
_local4 = 0;
_local3 = _local4;
if (Math.abs(horizontal) < Math.abs(_local3)) {
horizontal = _local3;
} else {
horizontal = horizontal * friction;
if (Math.abs(horizontal) < 1) {
horizontal = 0;
}
}
if ((((((!hanging) && (!clinging)) && (vertical == 0)) && (!prevUp)) && (Key.isDown(38) == true)) and (_root.character == 1)) {
vertical = vforce * -1;
if (platform.horizontalplat == true) {
horizontal = horizontal + platform.velocity;
}
if (platform.verticalplat == true) {
vertical = vertical + platform.velocity;
}
hitPlatforms();
platform = null;
rising = true;
falling = false;
}
if (hanging && (Key.isDown(40))) {
falling = true;
hanging = false;
rising = false;
vertical = 1;
}
if (rising == true) {
vertical = vertical * gravity;
this.hero.gotoAndPlay("jump");
if (Math.abs(vertical) < 1) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
if (clinging && (Key.isDown(38))) {
_y = (_y - 10);
if ((hero._currentframe == 26) || (hero._currentframe == 32)) {
hero.gotoAndPlay("wallwalkup");
}
}
if (clinging && (Key.isDown(40))) {
_y = (_y + 10);
if ((hero._currentframe == 26) || (hero._currentframe == 32)) {
hero.gotoAndPlay("wallwalkdown");
}
}
if (falling == true) {
vertical = 1 + (vertical * accel);
this.hero.gotoAndPlay(19);
hitPlatforms();
}
if (falling == false) {
this.stand.gotoAndPlay(1);
}
lastX = _x;
lastY = _y;
if (platform.verticalplat == true) {
_y = (_y + platform.velocity);
} else if (platform.horizontalplat == true) {
_x = (_x + platform.velocity);
}
_y = (_y + vertical);
_x = (_x + horizontal);
if (rising) {
hitCeilings();
}
if ((Xstep == 0) && (hanging)) {
this.hero.gotoAndStop("roofwalk");
}
if (((!Key.isDown(38)) && (!Key.isDown(40))) && (clinging)) {
if (hero._currentframe >= 31) {
hero.gotoAndStop(32);
} else {
hero.gotoAndStop(26);
}
}
if (hanging && (this.hero._currentframe < 19)) {
this.hero.gotoAndStop(20);
}
if (((Xstep == 0) && (!attack)) && (!(((rising || (falling)) || (hanging)) || (clinging)))) {
this.hero.gotoAndStop(1);
}
if ((platform != null) && (platform.hitTest(_x, platform._y, true) == false)) {
vertical = 5;
falling = true;
}
if (_y > 450) {
_y = 450;
}
if (_y < 50) {
_y = 50;
}
prevUp = Key.isDown(38);
}
vforce = 70;
horizontal = 0;
vertical = 5;
friction = 0.8;
gravity = 0.55;
accel = 1.1;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
jump = false;
prevUp = false;
stop();
stop();
Symbol 198 MovieClip Frame 2
gotoAndStop (5);
Symbol 198 MovieClip Frame 3
gotoAndStop (7);
Symbol 198 MovieClip Frame 4
gotoAndStop (9);
Symbol 198 MovieClip Frame 5
stop();
Symbol 198 MovieClip Frame 6
stop();
Symbol 198 MovieClip Frame 7
stop();
Symbol 198 MovieClip Frame 8
stop();
Symbol 198 MovieClip Frame 9
stop();
Symbol 198 MovieClip Frame 10
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 204 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
function onEnterFrame() {
gotoAndStop(_root.keys + 1);
}
stop();
Symbol 206 MovieClip Frame 20
if (!_root.pause) {
_root.timer = _root.timer - 1;
if (_root.timer == 0) {
_root.gotoAndStop("gameover");
}
}
Symbol 208 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 209 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 212 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 215 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
this._visible = false;
onEnterFrame = function () {
for (i in _root) {
if (i.substring(0, 5) == "robot") {
if (this.hitTest(_root[i])) {
_root[i].flip = _root[i].flip * -1;
_root[i].movement = _root[i].movement * -1;
setProperty(_root[i], _xscale , _root[i].flip);
}
}
}
for (i in _root) {
if (i.substring(0, 5) == "platf") {
if (this.hitTest(_root[i])) {
_root[i].velocity = _root[i].velocity * -1;
}
}
}
};
Symbol 228 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 232 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 233 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Instance of Symbol 233 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit) and (_root.player._alpha == 100)) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.player._alpha = 50;
_root.player.damagetimer = 0;
}
}
Symbol 237 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 249 MovieClip Frame 21
stop();
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 2
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
stop();
Symbol 260 MovieClip Frame 3
stop();
Symbol 260 MovieClip Frame 4
stop();
Symbol 260 MovieClip Frame 5
stop();
Symbol 260 MovieClip Frame 6
stop();
Symbol 268 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.lives);
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lives <= 2) {
this.gotoAndStop(2);
} else if (_root.lives >= 2) {
this.gotoAndStop(1);
}
}
Symbol 279 Button
on (release) {
_parent.play();
}
Symbol 282 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (Key.isDown(80)) {
play();
}
};
Symbol 282 MovieClip Frame 2
_root.pause = true;
Symbol 282 MovieClip Frame 20
stop();
Symbol 282 MovieClip Frame 21
_root.pause = false;
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
Symbol 291 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Symbol 293 MovieClip Frame 1
ceiling = true;
Symbol 301 MovieClip Frame 1
function hitPlatforms() {
var i;
var y;
var x;
i = 0;
while (i < _root.maxPlatforms) {
platform = eval ("_root.platform" + i);
y = _y + vertical;
x = _x + horizontal;
if (((_y < platform._y) && (y >= (platform._y - 10))) && (platform.hitTest(x, platform._y) == true)) {
_y = platform._y;
falling = false;
if (vertical != 0) {
this.hero.gotoAndPlay(1);
vertical = 0;
}
return(undefined);
}
i++;
}
platform = null;
return(undefined);
}
function hitCeilings() {
var i;
var y;
var x;
var b2 = this.getBounds(_root);
i = 0;
while (i < _root.maxPlatforms) {
platform2 = eval ("_root.platform" + i);
if (platform2.ceiling && (rising)) {
if (this.hitTest(platform2)) {
if (b2.yMax > platform2._y) {
var b = platform2.getBounds(_root);
var x = (b2.xMax - b2.xMin);
x = (x / 2) + b2.xMin;
if ((b.xMin < x) && (b.xMax > x)) {
_y = (_y + (b.yMax - b2.yMin));
falling = true;
vertical = 1;
rising = false;
return(undefined);
}
}
}
}
i++;
}
}
function render() {
var _local2;
var _local3;
_local3 = 0;
_local2 = _local3;
if (Math.abs(horizontal) < Math.abs(_local2)) {
horizontal = _local2;
} else {
horizontal = horizontal * friction;
if (Math.abs(horizontal) < 1) {
horizontal = 0;
}
}
if ((((vertical == 0) && (Key.isDown(38) == true)) && (!prevUp)) and (this.activate == true)) {
vertical = vforce * -1;
if (platform.horizontalplat == true) {
horizontal = horizontal + platform.velocity;
}
if (platform.verticalplat == true) {
vertical = vertical + platform.velocity;
}
hitPlatforms();
platform = null;
rising = true;
falling = false;
}
if (rising == true) {
vertical = vertical * gravity;
this.hero.gotoAndPlay("jump");
if (Math.abs(vertical) < 1) {
vertical = Math.abs(vertical);
falling = true;
rising = false;
}
}
if (falling == true) {
vertical = 1 + (vertical * accel);
this.hero.gotoAndPlay("fall");
hitPlatforms();
}
if (falling == false) {
this.stand.gotoAndPlay(1);
}
lastX = _x;
lastY = _y;
if (platform.verticalplat == true) {
_y = (_y + platform.velocity);
} else if (platform.horizontalplat == true) {
_x = (_x + platform.velocity);
}
_y = (_y + vertical);
_x = (_x + horizontal);
if (rising) {
hitCeilings();
}
if (((Xstep == 0) && (!attack)) && (!(rising || (falling)))) {
this.hero.gotoAndStop(1);
}
if ((platform != null) && (platform.hitTest(_x, platform._y, true) == false)) {
vertical = 5;
falling = true;
}
prevUp = Key.isDown(38);
}
vforce = 70;
horizontal = 0;
vertical = 5;
friction = 0.8;
gravity = 0.55;
accel = 1.1;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
jump = false;
var prevUp = false;
stop();
stop();
Symbol 301 MovieClip Frame 2
stop();
Symbol 301 MovieClip Frame 3
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 15
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 28
stop();
Symbol 304 MovieClip Frame 1
stop();
Instance of Symbol 219 MovieClip "platform10" in Symbol 304 MovieClip Frame 1
/* no clip actions */
Symbol 304 MovieClip Frame 15
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
stop();
Instance of Symbol 219 MovieClip "platform4" in Symbol 312 MovieClip Frame 2
/* no clip actions */
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 10
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 10
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Instance of Symbol 219 MovieClip "platform4" in Symbol 315 MovieClip Frame 2
/* no clip actions */
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Instance of Symbol 219 MovieClip "platform4" in Symbol 316 MovieClip Frame 2
/* no clip actions */
Symbol 347 MovieClip Frame 1
stop();
Instance of Symbol 339 MovieClip in Symbol 348 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hero.attackhit)) {
_root.bosshealth = _root.bosshealth - 1;
}
if (this.hitTest(_root.player.hero.chargebeam)) {
_root.bosshealth = _root.bosshealth - 4;
}
if (_root.bosshealth <= 0) {
_root.gotoAndPlay("end");
}
}
Instance of Symbol 347 MovieClip in Symbol 348 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.bosshealth <= 50) {
this.gotoAndStop(2);
}
}
Instance of Symbol 347 MovieClip in Symbol 348 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.bosshealth <= 75) {
this.gotoAndStop(2);
}
}
Instance of Symbol 350 MovieClip in Symbol 351 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit) and (_root.player._alpha == 100)) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.player._alpha = 50;
_root.player.damagetimer = 0;
}
}
Instance of Symbol 364 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit) and (_root.player._alpha == 100)) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.player._alpha = 50;
_root.player.damagetimer = 0;
}
}
Instance of Symbol 367 MovieClip in Symbol 368 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit) and (_root.player._alpha == 100)) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.gotoAndStop("gameover");
}
_root.player._alpha = 50;
_root.player.damagetimer = 0;
}
}
Symbol 370 MovieClip Frame 1
onEnterFrame = function () {
if (!_root.pause) {
play();
} else {
stop();
}
};
Instance of Symbol 374 MovieClip in Symbol 380 MovieClip Frame 1
onClipEvent (enterFrame) {
setProperty(bossbar, _xscale , _root.bosshealth);
}
Symbol 385 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("start");
}
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 2
stop();
Instance of Symbol 93 MovieClip in Symbol 387 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(40) and this.hitTest(_root.player.hit)) {
this.play();
}
if (this.opened == true) {
_root.gotoAndStop("bonus");
}
}
Symbol 409 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("start");
}
Symbol 419 Button
on (release) {
_root.gotoAndStop("text2");
}
Symbol 421 Button
on (release) {
_root.gotoAndStop("text3");
}
Symbol 423 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("start");
}
Symbol 447 Button
on (release) {
_root.gotoAndStop("level3");
}