Frame 2
stop();
FRAME = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + 1;
NewgroundsAPI.connectMovie(3003);
Instance of Symbol 50 MovieClip in Frame 2
onClipEvent (enterFrame) {
FRAME = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + 1;
gotoAndPlay(FRAME +1);
if (FRAME >= 100) {
_root.play();
}
}
Frame 52
stop();
Frame 54
stop();
var savefile = SharedObject.getLocal("CO-OPERATION");
seconds = 0;
minutes = 0;
i = 0;
while (i < 12) {
if (i == 1) {
TITLE = "INTRO";
}
if (i == 2) {
TITLE = "UNDERWOOD";
}
if (i == 3) {
TITLE = "UNDERWOOD 2";
}
if (i == 4) {
TITLE = "PYRAMID";
}
if (i == 5) {
TITLE = "MARATHON";
}
if (i == 6) {
TITLE = "RUN 2 THE HILLS";
}
if (i == 7) {
TITLE = "321 GO!";
}
if (i == 8) {
TITLE = "DETERMINATION";
}
if (i == 9) {
TITLE = "TRICYCLE";
}
if (i == 10) {
TITLE = "3S A CROWD";
}
if (i == 11) {
TITLE = "SHAFT";
}
if (i == 12) {
TITLE = "CREDITS";
}
if (savefile.data.COINS == undefined) {
_root[TITLE + "_MINUTES"] = "00";
_root[TITLE + "_SECONDS"] = "00";
} else {
_root[TITLE + "_MINUTES"] = savefile.data[TITLE + "_MINUTES"];
_root[TITLE + "_SECONDS"] = savefile.data[TITLE + "_SECONDS"];
}
i++;
}
if (savefile.data.COINS == undefined) {
COINS = 0;
L1LOCKED = false;
L2LOCKED = false;
L3LOCKED = true;
L4LOCKED = true;
L5LOCKED = true;
L6LOCKED = true;
L7LOCKED = true;
L8LOCKED = true;
L9LOCKED = true;
L10LOCKED = true;
L11LOCKED = true;
L12LOCKED = true;
} else {
COINS = savefile.data.COINS;
L1LOCKED = savefile.data.L1LOCKED;
L2LOCKED = savefile.data.L2LOCKED;
L3LOCKED = savefile.data.L3LOCKED;
L4LOCKED = savefile.data.L4LOCKED;
L5LOCKED = savefile.data.L5LOCKED;
L6LOCKED = savefile.data.L6LOCKED;
L7LOCKED = savefile.data.L7LOCKED;
L8LOCKED = savefile.data.L8LOCKED;
L9LOCKED = savefile.data.L9LOCKED;
L10LOCKED = savefile.data.L10LLOCKED;
L11LOCKED = savefile.data.L11LOCKED;
L12LOCKED = savefile.data.LL12OCKED;
}
Instance of Symbol 102 MovieClip "flag" in Frame 54
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "PYRAMID";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 119 MovieClip in Frame 54
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy.feet) || (this.hitTest(_root.blueguy.feet))) {
hit = true;
_root.ground.comic1._visible = true;
} else {
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 54
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy.feet) || (this.hitTest(_root.blueguy.feet))) {
hit = true;
_root.ground.comic2._visible = true;
} else {
hit = false;
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 54
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 54
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 54
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 54
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip in Frame 54
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 130 MovieClip "cam" in Frame 54
onClipEvent (enterFrame) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 100)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 101) / 4));
}
if ((_root.blueguy._y <= 160) && (_root.blackguy._y <= 160)) {
_x = (_x - ((_x - _root.Z._x) / 4));
} else {
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 54
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 152 MovieClip in Frame 54
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 54
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 54
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 278 MovieClip in Frame 54
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 112 MovieClip in Frame 54
onClipEvent (enterFrame) {
F = _root._currentframe - 1;
if (Key.isDown(16)) {
_root.gotoAndPlay(F);
}
}
Instance of Symbol 112 MovieClip "SOUND" in Frame 54
onClipEvent (load) {
_root.SFXVOLUME = 100;
coinget = new Sound(this);
coinget.attachSound("coinget");
grab = new Sound(this);
grab.attachSound("grab");
jump = new Sound(this);
jump.attachSound("jump");
jumpbig = new Sound(this);
jumpbig.attachSound("jumpbig");
keyget = new Sound(this);
keyget.attachSound("keyget");
unlocknoise = new Sound(this);
unlocknoise.attachSound("unlocknoise");
hurt = new Sound(this);
hurt.attachSound("hurt");
}
Instance of Symbol 112 MovieClip "MUSIC" in Frame 54
onClipEvent (load) {
_root.BGMVOLUME = 100;
BGM0 = new Sound(this);
BGM0.attachSound("BGM0");
BGM1 = new Sound(this);
BGM1.attachSound("BGM1");
BGM2 = new Sound(this);
BGM2.attachSound("BGM2");
BGM3 = new Sound(this);
BGM3.attachSound("BGM3");
BGM4 = new Sound(this);
BGM4.attachSound("BGM4");
BGM5 = new Sound(this);
BGM5.attachSound("BGM5");
BGM6 = new Sound(this);
BGM6.attachSound("BGM6");
BGM7 = new Sound(this);
BGM7.attachSound("BGM7");
BGM8 = new Sound(this);
BGM8.attachSound("BGM8");
BGM9 = new Sound(this);
BGM9.attachSound("BGM9");
BGM10 = new Sound(this);
BGM10.attachSound("BGM10");
BGM11 = new Sound(this);
BGM11.attachSound("BGM11");
BGM12 = new Sound(this);
BGM12.attachSound("BGM11");
BGMTITLE = new Sound(this);
BGMTITLE.attachSound("BGMTITLE");
}
onClipEvent (enterFrame) {
BGM0.setVolume(_root.BGMVOLUME);
BGM1.setVolume(_root.BGMVOLUME);
BGM2.setVolume(_root.BGMVOLUME);
BGM3.setVolume(_root.BGMVOLUME);
BGM4.setVolume(_root.BGMVOLUME);
BGM5.setVolume(_root.BGMVOLUME);
BGM6.setVolume(_root.BGMVOLUME);
BGM7.setVolume(_root.BGMVOLUME);
BGM8.setVolume(_root.BGMVOLUME);
BGM9.setVolume(_root.BGMVOLUME);
BGM10.setVolume(_root.BGMVOLUME);
BGM11.setVolume(_root.BGMVOLUME);
BGM12.setVolume(_root.BGMVOLUME);
}
Frame 55
stop();
i = 0;
while (i < 12) {
if (i == 1) {
TITLE = "INTRO";
}
if (i == 2) {
TITLE = "UNDERWOOD";
}
if (i == 3) {
TITLE = "UNDERWOOD 2";
}
if (i == 4) {
TITLE = "PYRAMID";
}
if (i == 5) {
TITLE = "MARATHON";
}
if (i == 6) {
TITLE = "RUN 2 THE HILLS";
}
if (i == 7) {
TITLE = "321 GO!";
}
if (i == 8) {
TITLE = "DETERMINATION";
}
if (i == 9) {
TITLE = "TRICYCLE";
}
if (i == 10) {
TITLE = "3S A CROWD";
}
if (i == 11) {
TITLE = "SHAFT";
}
if (i == 12) {
TITLE = "CREDITS";
}
savefile.data[TITLE + "_MINUTES"] = _root[TITLE + "_MINUTES"];
savefile.data[TITLE + "_SECONDS"] = _root[TITLE + "_SECONDS"];
i++;
}
_root.TITLE = "CHOOSE A LEVEL";
_root[TITLE + "MINUTES"] = 0;
_root[TITLE + "SECONDS"] = 0;
_root.LEVEL = 1;
_root.MUSIC.BGM0.stop();
_root.MUSIC.BGM1.stop();
_root.MUSIC.BGM2.stop();
_root.MUSIC.BGM3.stop();
_root.MUSIC.BGM4.stop();
_root.MUSIC.BGM5.stop();
_root.MUSIC.BGM6.stop();
_root.MUSIC.BGM7.stop();
_root.MUSIC.BGM8.stop();
_root.MUSIC.BGM9.stop();
_root.MUSIC.BGM10.stop();
_root.MUSIC.BGM11.stop();
_root.MUSIC.BGM12.stop();
_root.MUSIC.BGMTITLE.start(0, 99);
_root.MUSIC.BGMTITLE.setVolume(_root.BGMVOLUME / 2);
Instance of Symbol 332 MovieClip in Frame 55
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coinshow = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coinshow = "00" + _root.COINS;
}
if (_root[("L" + _root.LEVEL) + "LOCKED"] == false) {
gotoAndPlay (2);
} else {
gotoAndPlay (6);
}
var savefile = SharedObject.getLocal("CO-OPERATION");
savefile.data.COINS = _root.COINS;
savefile.data.L1LOCKED = _root.L1LOCKED;
savefile.data.L2LOCKED = _root.L2LOCKED;
savefile.data.L3LOCKED = _root.L3LOCKED;
savefile.data.L4LOCKED = _root.L4LOCKED;
savefile.data.L5LOCKED = _root.L5LOCKED;
savefile.data.L6LOCKED = _root.L6LOCKED;
savefile.data.L7LOCKED = _root.L7LOCKED;
savefile.data.L8LOCKED = _root.L8LOCKED;
savefile.data.L9LOCKED = _root.L9LOCKED;
savefile.data.L10LLOCKED = _root.L10LOCKED;
savefile.data.L11LOCKED = _root.L11LOCKED;
savefile.data.LL12OCKED = _root.L12LOCKED;
savefile.flush();
}
Instance of Symbol 340 MovieClip "cam" in Frame 55
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 112 MovieClip in Frame 56
onClipEvent (load) {
SHIFTDOWN = false;
}
onClipEvent (enterFrame) {
F = _root._currentframe - 1;
if (Key.isDown(16)) {
if (!SHIFTDOWN) {
_root.gotoAndPlay(F);
SHIFTDOWN = true;
}
} else {
SHIFTDOWN = false;
}
}
Frame 57
stop();
seconds = 0;
minutes = 0;
Level_name = "Intro";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM1.start(0, 99);
_root.MUSIC.BGM1.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 57
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "INTRO";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 119 MovieClip in Frame 57
onClipEvent (enterFrame) {
if (this.hitTest(_root[_root.guy]._x, _root[_root.guy]._y + 5, true)) {
hit = true;
_root.ground.wall.hit = true;
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 57
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 57
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 57
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 57
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 57
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 57
onClipEvent (enterFrame) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 57
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 112 MovieClip in Frame 57
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 278 MovieClip in Frame 57
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 57
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 57
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 57
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 59
stop();
seconds = 0;
minutes = 0;
Level_name = "Underwood";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM2.start(0, 99);
_root.MUSIC.BGM2.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 59
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "UNDERWOOD";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 59
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) {
hit = true;
_root.ground.wall.hit = true;
} else {
if (hit) {
_root.ground.wall.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) {
hit = true;
_root.ground.wall.hit = true;
} else {
if (hit) {
_root.ground.wall.hit = false;
}
hit = false;
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 59
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 59
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 59
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 59
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 59
onClipEvent (enterFrame) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 59
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 112 MovieClip in Frame 59
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 278 MovieClip in Frame 59
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 59
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 59
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 59
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 61
stop();
seconds = 0;
minutes = 0;
Level_name = "Underwood 2";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM3.start(0, 99);
_root.MUSIC.BGM3.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 61
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "UNDERWOOD 2";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 61
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) {
hit = true;
_root.ground.wall2.hit = true;
}
}
Instance of Symbol 119 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 5, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 5, true))) {
hit = true;
_root.ground.wall.hit = true;
}
}
Instance of Symbol 119 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) {
hit = true;
_root.ground.wall3.hit = true;
}
}
Instance of Symbol 119 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) {
hit = true;
_root.ground.wall4.hit = true;
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 61
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 61
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 61
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 61
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 61
onClipEvent (enterFrame) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 61
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 112 MovieClip in Frame 61
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 278 MovieClip in Frame 61
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 61
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 61
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 63
stop();
seconds = 0;
minutes = 0;
key = false;
Level_name = "Pyramid";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM4.start(0, 99);
_root.MUSIC.BGM4.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 63
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "PYRAMID";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 384 MovieClip "Key" in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.key = true;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 63
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy.feet) || (this.hitTest(_root.blueguy.feet))) {
hit = true;
_root.ground.wall.hit = true;
} else {
if (hit) {
_root.ground.wall.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 63
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy.feet) || (this.hitTest(_root.blueguy.feet))) {
hit = true;
_root.ground.wall2.hit = true;
} else {
if (hit) {
_root.ground.wall2.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip "BUTTON" in Frame 63
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy.feet) || (this.hitTest(_root.blueguy.feet))) {
if (_root.key == true) {
hit = true;
_root.ground.door.hit = true;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 63
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 63
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 63
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 63
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 63
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 63
onClipEvent (enterFrame) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
_root.BG._x = _root.BG._x - (((_x - _root[_root.guy]._x) - 51) / 8);
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
_root.BG._x = _root.BG._x - (((_x - _root[_root.guy]._x) + 51) / 8);
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 63
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 112 MovieClip in Frame 63
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 278 MovieClip in Frame 63
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 63
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 63
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 63
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 65
stop();
seconds = 0;
minutes = 0;
Level_name = "Marathon";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM5.start(0, 99);
_root.MUSIC.BGM5.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 65
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "MARATHON";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 410 MovieClip "Jpad" in Frame 65
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.5;
guy.speed = 20;
guy._xscale = guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 410 MovieClip "Jpad2" in Frame 65
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.5;
guy.speed = 20;
guy._xscale = -guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 65
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy.feet) || (this.hitTest(_root.blueguy.feet))) {
hit = true;
_root.Jpad.hit = true;
} else {
if (hit) {
_root.Jpad.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy.feet) || (this.hitTest(_root.blueguy.feet))) {
hit = true;
_root.ground.bridge1.hit = true;
}
}
Instance of Symbol 119 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy.feet) || (this.hitTest(_root.blueguy.feet))) {
hit = true;
_root.ground.wall1.hit = true;
}
}
Instance of Symbol 119 MovieClip "BUTTON" in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) {
hit = true;
_root.ground.wall2.hit = true;
} else {
if (hit) {
_root.ground.wall2.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) {
hit = true;
_root.Jpad2.hit = true;
} else {
if (hit) {
_root.Jpad2.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) {
hit = true;
_root.ground.wall3.hit = true;
_root.ground.wall2.Finalhit = true;
_root.ground.BUTTON.hit = false;
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 65
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 65
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 65
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 65
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 65
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 340 MovieClip "cam" in Frame 65
onClipEvent (enterFrame) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
Instance of Symbol 112 MovieClip in Frame 65
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 278 MovieClip in Frame 65
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 65
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 65
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 65
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 67
stop();
seconds = 0;
minutes = 0;
Level_name = "Run 2 The Hills";
_root.MUSIC.BGMTITLE.stop();
Instance of Symbol 410 MovieClip "Jpad3" in Frame 67
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy._y = guy._y - 5;
guy.fallspeed = guy.Jheight * 1.5;
guy.speed = 20;
guy._xscale = guy.X;
}
i++;
}
}
}
Instance of Symbol 410 MovieClip "Jpad2" in Frame 67
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy._y = guy._y - 5;
guy.fallspeed = guy.Jheight * 1.5;
guy.speed = 20;
guy._xscale = -guy.X;
}
i++;
}
}
}
Instance of Symbol 410 MovieClip "Jpad1" in Frame 67
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy._y = guy._y - 5;
guy.fallspeed = guy.Jheight * 1.5;
guy.speed = 20;
guy._xscale = guy.X;
}
i++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 67
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 67
onClipEvent (load) {
MUSIC = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 8, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 8, true))) {
hit = true;
_root.spikes.hit = true;
if (MUSIC == false) {
_root.MUSIC.BGM6.start(0, 99);
_root.MUSIC.BGM6.setVolume(_root.BGMVOLUME);
MUSIC = true;
}
}
}
Instance of Symbol 119 MovieClip in Frame 67
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) {
hit = true;
_root.Jpad1.hit = true;
_root.Jpad2.hit = true;
_root.Jpad3.hit = true;
} else {
if (hit) {
_root.Jpad1.hit = false;
_root.Jpad2.hit = false;
_root.Jpad3.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 67
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) {
hit = true;
_root.ground.wall1.hit = true;
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 67
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 67
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 67
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 67
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 495 MovieClip "spikes" in Frame 67
onClipEvent (load) {
X = _x + 25;
S = 40;
speed = 1;
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (hit == true) {
if (_x <= X) {
_x = (_x - ((_x - X) / 3));
}
if (S >= 0) {
S--;
} else if (_x <= 2700) {
_x = (_x + speed);
}
}
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (guy.hitTest(this.body)) {
guy.dead = true;
}
i++;
}
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 67
onClipEvent (enterFrame) {
if (!_root[_root.guy].dead) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 67
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 112 MovieClip in Frame 67
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 102 MovieClip "flag" in Frame 67
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "RUN 2 THE HILLS";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 278 MovieClip in Frame 67
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 67
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 112 MovieClip in Frame 67
onClipEvent (enterFrame) {
if ((_root.blueguy.dead == true) && (_root.blackguy.dead == true)) {
_root.gotoAndPlay("MENU");
}
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 67
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 67
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 69
stop();
seconds = 0;
minutes = 0;
Level_name = "321 GO!";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM12.start(0, 99);
_root.MUSIC.BGM12.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 69
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "321 GO!";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 69
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 69
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 69
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 69
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip in Frame 69
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 69
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 278 MovieClip in Frame 69
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 69
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 69
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 69
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 71
stop();
seconds = 0;
minutes = 0;
Level_name = "Determination";
player = 2;
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM8.start(0, 99);
_root.MUSIC.BGM8.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 71
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "DETERMINATION";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 71
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 504 MovieClip "snow" in Frame 71
onClipEvent (load) {
if (_name != "snow") {
_x = (_x - 300);
_x = (_x + (Math.random() * 600));
fallspeed = 1 + (Math.random() * 1);
speed = 5 - (Math.random() * 10);
RANDOM = Math.round(1 + (Math.random() * 10));
gotoAndPlay(RANDOM +1);
S = 0;
}
}
onClipEvent (enterFrame) {
S++;
_y = (_y + fallspeed);
_x = (_x + speed);
fallspeed = fallspeed + 0.1;
if (S >= 30) {
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 112 MovieClip in Frame 71
onClipEvent (load) {
snowcount = 0;
snowmax = 200;
}
onClipEvent (enterFrame) {
snowcount++;
duplicateMovieClip (_root.snow, "snow" + snowcount, snowcount);
_root["snow" + snowcount]._y = _root.snow._y;
_root["snow" + snowcount]._x = _root.snow._x;
if (snowcount >= snowmax) {
snowcount = 0;
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 71
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 71
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 71
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 71
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip in Frame 71
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 71
onClipEvent (enterFrame) {
if (!_root[_root.guy].dead) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 71
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 278 MovieClip in Frame 71
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 71
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 71
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 71
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 73
stop();
seconds = 0;
minutes = 0;
Level_name = "Tricycle";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM9.start(0, 99);
_root.MUSIC.BGM9.setVolume(_root.BGMVOLUME);
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel3._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel3._rotation - 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel3._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel3._rotation + 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel3._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel3._rotation + 180;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel3._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel3._rotation;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel2._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel2._rotation - 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel2._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel2._rotation + 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel2._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel2._rotation + 180;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel2._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel2._rotation;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 102 MovieClip "flag" in Frame 73
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "TRICYCLE";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 512 MovieClip "wheel2" in Frame 73
onClipEvent (enterFrame) {
_rotation = (_rotation+1);
}
Instance of Symbol 512 MovieClip "wheel3" in Frame 73
onClipEvent (enterFrame) {
_rotation = (_rotation+1);
}
Instance of Symbol 512 MovieClip "wheel" in Frame 73
onClipEvent (enterFrame) {
_rotation = (_rotation+1);
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel._rotation - 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel._rotation;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel._rotation + 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 508 MovieClip in Frame 73
onClipEvent (load) {
D = (_root.wheel._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel._rotation + 180;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = (Y + (D * Math.sin(R * (Math.PI/180))));
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 73
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 73
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 73
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 73
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 73
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 73
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip in Frame 73
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 3) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 73
onClipEvent (enterFrame) {
if (!_root[_root.guy].dead) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
}
Instance of Symbol 278 MovieClip in Frame 73
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 73
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 73
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 73
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
mc.stop();
}
}
Frame 75
stop();
seconds = 0;
minutes = 0;
Level_name = "3s A Crowd";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM10.start(0, 99);
_root.MUSIC.BGM10.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 75
onClipEvent (load) {
TOTAL = 3;
S = 10;
LEVEL = "3'S A CROWD";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (_root.redguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 410 MovieClip "Jpad" in Frame 75
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.5;
guy.speed = 20;
guy._xscale = guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 358 MovieClip in Frame 75
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) {
hit = true;
_root.Jpad.hit = true;
} else {
if (this.hitTest(_root.redguy)) {
hit = true;
_root.Jpad.hit = true;
} else if (hit) {
_root.Jpad.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 5, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 5, true))) {
hit = true;
_root.ground.wall.hit = true;
}
if (this.hitTest(_root.redguy._x, _root.redguy._y + 5, true)) {
hit = true;
_root.ground.wall.hit = true;
}
}
Instance of Symbol 112 MovieClip "redguyB" in Frame 75
onClipEvent (load) {
follow = _root.redguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "redguyF" in Frame 75
onClipEvent (load) {
follow = _root.redguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 75
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 75
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 75
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 75
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip in Frame 75
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 4) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (_root.player == 3) {
_root.guy = "redguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 75
onClipEvent (enterFrame) {
if (!_root[_root.guy].dead) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 75
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 278 MovieClip in Frame 75
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 75
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 75
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -40)) {
fallspeed++;
_y = (_y + fallspeed);
}
if (S <= -40) {
_visible = false;
}
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 75
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -30)) {
fallspeed++;
_y = (_y + fallspeed);
}
}
}
Instance of Symbol 274 MovieClip "redguy" in Frame 75
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -40)) {
fallspeed++;
_y = (_y + fallspeed);
}
if (S <= -40) {
_visible = false;
}
}
}
Frame 77
stop();
seconds = 0;
minutes = 0;
Level_name = "Shaft";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM11.start(0, 99);
_root.MUSIC.BGM11.setVolume(_root.BGMVOLUME);
Instance of Symbol 410 MovieClip "Jpad2" in Frame 77
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.1;
guy.speed = 22;
guy._xscale = -guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 77
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) || (this.hitTest(_root.redguy))) {
hit = true;
_root.Jpad2.hit = true;
} else {
if (hit) {
_root.Jpad2.hit = false;
}
hit = false;
}
}
Instance of Symbol 102 MovieClip "flag" in Frame 77
onClipEvent (load) {
TOTAL = 3;
S = 10;
LEVEL = "3'S A CROWD";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (_root.redguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 410 MovieClip "Jpad" in Frame 77
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.5;
guy.speed = 20;
guy._xscale = -guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 410 MovieClip "Jpad3" in Frame 77
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.5;
guy.speed = 20;
guy._xscale = guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 77
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) || (this.hitTest(_root.redguy))) {
hit = true;
_root.Jpad.hit = true;
_root.Jpad3.hit = true;
} else {
if (hit) {
_root.Jpad.hit = false;
_root.Jpad3.hit = false;
}
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 77
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true))) || (this.hitTest(_root.redguy._x, _root.redguy._y + 10, true))) {
hit = true;
_root.ground.wall1.hit = true;
}
}
Instance of Symbol 119 MovieClip in Frame 77
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) || (this.hitTest(_root.redguy))) {
hit = true;
_root.ground.lift._y = _root.ground.lift._y + 5;
} else {
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 77
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) || (this.hitTest(_root.redguy))) {
hit = true;
_root.ground.lift._y = _root.ground.lift._y - 5;
} else {
hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 77
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) || (this.hitTest(_root.redguy))) {
hit = true;
_root.ground.block.hit = true;
} else {
if (hit) {
_root.ground.block.hit = false;
}
hit = false;
}
}
Instance of Symbol 112 MovieClip "redguyB" in Frame 77
onClipEvent (load) {
follow = _root.redguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "redguyF" in Frame 77
onClipEvent (load) {
follow = _root.redguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 77
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 77
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 77
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 77
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 77
onClipEvent (enterFrame) {
if (!_root[_root.guy].dead) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 150)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 151) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 77
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 112 MovieClip in Frame 77
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 4) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (_root.player == 3) {
_root.guy = "redguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 278 MovieClip in Frame 77
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 152 MovieClip in Frame 77
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 77
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -40)) {
fallspeed++;
_y = (_y + fallspeed);
}
if (S <= -40) {
_visible = false;
}
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 77
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -30)) {
fallspeed++;
_y = (_y + fallspeed);
}
}
}
Instance of Symbol 274 MovieClip "redguy" in Frame 77
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -40)) {
fallspeed++;
_y = (_y + fallspeed);
}
if (S <= -40) {
_visible = false;
}
}
}
Frame 79
stop();
seconds = 0;
minutes = 0;
Level_name = "Credits";
_root.MUSIC.BGMTITLE.stop();
_root.MUSIC.BGM7.start(0, 99);
_root.MUSIC.BGM7.setVolume(_root.BGMVOLUME);
Instance of Symbol 102 MovieClip "flag" in Frame 79
onClipEvent (load) {
TOTAL = 2;
S = 10;
LEVEL = "DETERMINATION";
}
onClipEvent (enterFrame) {
guysonflag = 0;
if (_root.blueguy.hitTest(this)) {
guysonflag++;
}
if (_root.blackguy.hitTest(this)) {
guysonflag++;
}
if (guysonflag >= TOTAL) {
S--;
if (S <= 0) {
_root.back2base.play();
_root.T = (_root.minutes * 100) + _root.seconds;
if (_root.T <= _root[LEVEL + "_T"]) {
_root[LEVEL + "_MINUTES"] = _root.minutes;
_root[LEVEL + "_SECONDS"] = _root.seconds;
_root[LEVEL + "_T"] = _root.T;
}
if (_root.coins >= _root[LEVEL + "_COINS"]) {
_root[LEVEL + "_COINS"] = _root.coins;
}
}
}
}
Instance of Symbol 358 MovieClip in Frame 79
onClipEvent (load) {
hit = false;
R = 1 + Math.round(Math.random() * 18);
gotoAndPlay(R +1);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
if (!hit) {
if (_root[_root.guy].hitTest(this)) {
hit = true;
gotoAndPlay ("hit");
_root.COINS++;
}
}
}
Instance of Symbol 410 MovieClip "Jpad3" in Frame 79
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.3;
guy.speed = -20;
guy._xscale = -guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 79
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) || (this.hitTest(_root.redguy))) {
hit = true;
_root.Jpad3.hit = true;
} else {
if (hit) {
_root.Jpad3.hit = false;
}
hit = false;
}
}
Instance of Symbol 112 MovieClip "redguyB" in Frame 79
onClipEvent (load) {
follow = _root.redguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "redguyF" in Frame 79
onClipEvent (load) {
follow = _root.redguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyB" in Frame 79
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blueguyF" in Frame 79
onClipEvent (load) {
follow = _root.blueguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyB" in Frame 79
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x - (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 112 MovieClip "blackguyF" in Frame 79
onClipEvent (load) {
follow = _root.blackguy;
}
onClipEvent (enterFrame) {
_x = (follow._x + (20 * follow.Direction));
_y = follow._y;
while (!_root.ground.hitTest(_x, _y + 1, true)) {
_y = (_y+1);
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y-1);
}
}
Instance of Symbol 340 MovieClip "cam" in Frame 79
onClipEvent (enterFrame) {
if (!_root[_root.guy].dead) {
if (_root[_root.guy]._y <= (_y + 50)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 51) / 4));
}
if (_root[_root.guy]._y >= (_y + 100)) {
_y = (_y - (((_y - _root[_root.guy]._y) + 101) / 4));
}
if (_root[_root.guy]._x <= (_x - 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) - 51) / 4));
}
if (_root[_root.guy]._x >= (_x + 50)) {
_x = (_x - (((_x - _root[_root.guy]._x) + 51) / 4));
}
}
}
Instance of Symbol 134 MovieClip "back2base" in Frame 79
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 278 MovieClip in Frame 79
onClipEvent (enterFrame) {
if (_root.guy == "blackguy") {
_x = _root.blackguy._x;
_y = _root.blackguy._y;
gotoAndPlay (2);
}
if (_root.guy == "blueguy") {
_x = _root.blueguy._x;
_y = _root.blueguy._y;
gotoAndPlay (6);
}
if (_root.guy == "redguy") {
_x = _root.redguy._x;
_y = _root.redguy._y;
gotoAndPlay (11);
}
while (!_root.ground.hitTest(_x, _y, true)) {
_y = (_y+1);
}
}
Instance of Symbol 112 MovieClip in Frame 79
onClipEvent (load) {
SPACEDOWN = true;
S = 0;
_root.PAUSE = false;
ENTERDOWN = true;
}
onClipEvent (enterFrame) {
if (_root.COINS <= 99) {
_root.coins = "0" + _root.COINS;
}
if (_root.COINS <= 9) {
_root.coins = "00" + _root.COINS;
}
S = S + 0.04;
if ((_root.flag.guysonflag == _root.flag.TOTAL) || (_root.PAUSE == true)) {
S = S - 0.04;
}
if (S <= 9.5) {
_root.seconds = "0" + Math.round(S);
} else {
_root.seconds = Math.round(S);
}
if (_root.seconds >= 60) {
_root.minutes++;
S = 0;
}
if (!SPACEDOWN) {
if (Key.isDown(32)) {
SPACEDOWN = true;
_root.player++;
}
} else if (!Key.isDown(32)) {
SPACEDOWN = false;
}
if (_root.player >= 4) {
_root.player = 1;
}
if (_root.player == 1) {
_root.guy = "blackguy";
}
if (_root.player == 2) {
_root.guy = "blueguy";
}
if (_root.player == 3) {
_root.guy = "redguy";
}
if (!ENTERDOWN) {
if (Key.isDown(13)) {
ENTERDOWN = true;
if (!_root.PAUSE) {
_root.PAUSE = true;
} else {
_root.PAUSE = false;
}
}
} else if (!Key.isDown(13)) {
ENTERDOWN = false;
}
}
Instance of Symbol 119 MovieClip in Frame 79
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy._x, _root.blackguy._y + 5, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 5, true))) || (this.hitTest(_root.redguy._x, _root.redguy._y + 5, true))) {
hit = true;
_root.ground.wall2._name = "wall1";
_root.ground.wall1.hit = true;
} else {
hit = false;
_root.ground.wall1.hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 79
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy._x, _root.blackguy._y + 5, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 5, true))) || (this.hitTest(_root.redguy._x, _root.redguy._y + 5, true))) {
hit = true;
_root.ground.wall1._name = "wall2";
_root.ground.wall2.hit = true;
} else {
hit = false;
_root.ground.wall2.hit = false;
}
}
Instance of Symbol 410 MovieClip "Jpad" in Frame 79
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.3;
guy.speed = 20;
guy._xscale = guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 79
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) || (this.hitTest(_root.redguy))) {
hit = true;
_root.Jpad.hit = true;
} else {
if (hit) {
_root.Jpad.hit = false;
}
hit = false;
}
}
Instance of Symbol 410 MovieClip "Jpad2" in Frame 79
onClipEvent (enterFrame) {
if (hit) {
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (this.box.hitTest(guy._x, guy._y + 3, true)) {
guy.fallspeed = guy.Jheight * 1.3;
guy.speed = 20;
guy._xscale = guy.X;
guy._y = guy._y - 5;
}
i++;
}
}
}
Instance of Symbol 119 MovieClip in Frame 79
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy) || (this.hitTest(_root.blueguy))) || (this.hitTest(_root.redguy))) {
hit = true;
_root.Jpad2.hit = true;
} else {
if (hit) {
_root.Jpad2.hit = false;
}
hit = false;
}
}
Instance of Symbol 152 MovieClip in Frame 79
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
Instance of Symbol 119 MovieClip in Frame 79
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy._x, _root.blackguy._y + 5, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 5, true))) || (this.hitTest(_root.redguy._x, _root.redguy._y + 5, true))) {
hit = true;
_root.ground.wall5.hit = true;
} else {
hit = false;
_root.ground.wall5.hit = false;
}
}
Instance of Symbol 119 MovieClip in Frame 79
onClipEvent (enterFrame) {
if ((this.hitTest(_root.blackguy._x, _root.blackguy._y + 5, true) || (this.hitTest(_root.blueguy._x, _root.blueguy._y + 5, true))) || (this.hitTest(_root.redguy._x, _root.redguy._y + 5, true))) {
hit = true;
_root.ground.wall6.hit = true;
} else {
hit = false;
_root.ground.wall6.hit = false;
}
}
Instance of Symbol 274 MovieClip "blueguy" in Frame 79
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -40)) {
fallspeed++;
_y = (_y + fallspeed);
}
if (S <= -40) {
_visible = false;
}
}
}
Instance of Symbol 274 MovieClip "blackguy" in Frame 79
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -30)) {
fallspeed++;
_y = (_y + fallspeed);
}
}
}
Instance of Symbol 274 MovieClip "redguy" in Frame 79
onClipEvent (load) {
X = _xscale;
fallspeed = 0;
Jheight = -13;
grav = 2;
dead = false;
S = 30;
}
onClipEvent (enterFrame) {
if (!dead) {
if (!_root.PAUSE) {
mc.play();
Direction = (_xscale / X) * (X / 100);
Height = Math.sqrt(Direction * Direction);
Slope = _root[_name + "B"]._y - _root[_name + "F"]._y;
_x = (_x + (speed * Direction));
_y = (_y + fallspeed);
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed = fallspeed + (grav * Math.sqrt(Direction * Direction));
}
} else {
mc.stop();
}
while (_root.ground.hitTest(_x, _y - (2 * Height), true)) {
_y = (_y-1);
}
while (_root.ground.hitTest(_x + ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x-1);
}
while (_root.ground.hitTest(_x - ((15 * X) / 100), _y - (10 * Height), true)) {
_x = (_x+1);
}
} else {
S--;
if (S == 0) {
fallspeed = -10;
}
if ((S <= 0) && (S >= -40)) {
fallspeed++;
_y = (_y + fallspeed);
}
if (S <= -40) {
_visible = false;
}
}
}
Symbol 564 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 27 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 29 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 61 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 78 MovieClip Frame 1
_visible = false;
Symbol 78 MovieClip Frame 2
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
gotoAndPlay (1);
}
_visible = true;
Symbol 78 MovieClip Frame 6
_root.SOUND.coinget.start(0, 1);
_root.SOUND.coinget.setVolume(_root.SFXVOLUME);
Symbol 78 MovieClip Frame 15
_root.MUSIC.BGM0.start(0, 1);
_root.MUSIC.BGM0.setVolume(_root.SFXVOLUME);
stop();
Symbol 89 MovieClip Frame 190
_root.play();
Symbol 91 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 112 MovieClip Frame 1
_visible = false;
Instance of Symbol 107 MovieClip "comic1" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 111 MovieClip "comic2" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 112 MovieClip in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
Y = _height;
}
onClipEvent (enterFrame) {
_height = (Y - ((_root.getBytesLoaded() / _root.getBytesTotal()) * Y));
_visible = true;
}
Instance of Symbol 112 MovieClip in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
Y = _height;
}
onClipEvent (enterFrame) {
_height = (Y - ((_root.getBytesLoaded() / _root.getBytesTotal()) * Y));
_visible = true;
}
Symbol 119 MovieClip Frame 1
hit = false;
Symbol 119 MovieClip Frame 2
if (!hit) {
gotoAndPlay (1);
}
Symbol 119 MovieClip Frame 3
hit = true;
Symbol 119 MovieClip Frame 4
if (hit) {
gotoAndPlay(_currentframe - 1);
}
Symbol 125 Button
on (release) {
_root.BGMVOLUME = 0;
_root.SFXVOLUME = 0;
}
Symbol 127 Button
on (release) {
_root.BGMVOLUME = 100;
_root.SFXVOLUME = 100;
}
Symbol 128 MovieClip Frame 4
if (_root.BGMVOLUME >= 2) {
gotoAndPlay (1);
}
Symbol 128 MovieClip Frame 8
if (_root.BGMVOLUME <= 1) {
gotoAndPlay (5);
}
Symbol 129 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 130 MovieClip Frame 1
var copyrightNotice = "Copyright (c) 2006-2007 Sockpuppet Pty Ltd. All Rights Reserved. http://www.reanimator.net";
var reanimator = (new flash.geom.Transform(this));
var camera = (new flash.geom.Transform(this._parent));
var w = Stage.width;
var h = Stage.height;
this.onEnterFrame = function () {
this._parent.filters = this.filters;
var _local2 = reanimator.matrix;
camera.colorTransform = reanimator.colorTransform;
_local2.invert();
_local2.translate(w * 0.5, h * 0.5);
camera.matrix = _local2;
};
Symbol 134 MovieClip Frame 1
stop();
_visible = false;
Symbol 134 MovieClip Frame 2
_visible = true;
Symbol 134 MovieClip Frame 26
Symbol 134 MovieClip Frame 40
_root.gotoAndStop("MENU");
Symbol 137 Button
on (release) {
_root.PAUSE = false;
}
Symbol 142 Button
on (release) {
_root.gotoAndStop("MENU");
}
Symbol 146 Button
on (press) {
CLICK = true;
}
on (release) {
CLICK = false;
}
on (releaseOutside) {
CLICK = false;
}
Instance of Symbol 147 MovieClip in Symbol 148 MovieClip Frame 1
onClipEvent (load) {
_x = (_root.SFXVOLUME * 2);
}
onClipEvent (enterFrame) {
_root.SFXVOLUME = _x / 2;
if (CLICK) {
_x = ((_root._xmouse - _parent._x) - _parent._parent._x);
}
while (_x <= 0) {
_x = (_x+1);
}
while (_x >= 200) {
_x = (_x-1);
}
}
Instance of Symbol 147 MovieClip in Symbol 150 MovieClip Frame 1
onClipEvent (load) {
_x = (_root.BGMVOLUME * 2);
}
onClipEvent (enterFrame) {
_root.BGMVOLUME = _x / 2;
if (CLICK) {
_x = ((_root._xmouse - _parent._x) - _parent._parent._x);
}
while (_x <= 0) {
_x = (_x+1);
}
while (_x >= 200) {
_x = (_x-1);
}
}
Symbol 152 MovieClip Frame 1
_visible = false;
Symbol 152 MovieClip Frame 2
if (!_root.PAUSE) {
gotoAndPlay (1);
}
Symbol 152 MovieClip Frame 3
_visible = true;
Symbol 152 MovieClip Frame 4
if (_root.PAUSE) {
gotoAndPlay (3);
}
Symbol 177 MovieClip Frame 5
_parent.speed = 6;
Symbol 177 MovieClip Frame 8
_parent.speed = 4;
Symbol 177 MovieClip Frame 11
_parent.speed = 2;
Symbol 177 MovieClip Frame 13
_parent.speed = -2;
Symbol 177 MovieClip Frame 15
_parent.speed = -4;
Symbol 177 MovieClip Frame 17
_parent.speed = -6;
Symbol 177 MovieClip Frame 18
speed = -7;
Symbol 181 MovieClip Frame 1
if ((_parent.fallspeed <= -1) && (_parent.fallspeed >= -10)) {
_root.SOUND.jump.start(0, 1);
_root.SOUND.jump.setVolume(_root.SFXVOLUME);
} else if (_parent.fallspeed <= -1) {
_root.SOUND.jumpbig.start(0, 1);
_root.SOUND.jumpbig.setVolume(_root.SFXVOLUME);
}
Symbol 181 MovieClip Frame 11
gotoAndPlay (10);
Symbol 185 MovieClip Frame 6
gotoAndPlay (5);
Symbol 194 MovieClip Frame 5
_parent.fallspeed = -22 * _parent.Height;
_parent.speed = 6 * _parent.Height;
Symbol 208 MovieClip Frame 12
_parent.fallspeed = -22 * _parent.Height;
_parent.speed = -6 * _parent.Height;
Symbol 214 MovieClip Frame 6
gotoAndPlay (5);
Symbol 233 MovieClip Frame 19
gotoAndPlay (18);
Symbol 252 MovieClip Frame 15
gotoAndPlay (14);
Symbol 273 MovieClip Frame 1
_root.SOUND.hurt.start(0, 1);
_root.SOUND.hurt.setVolume(_root.SFXVOLUME);
Symbol 273 MovieClip Frame 7
stop();
Symbol 274 MovieClip Frame 1
if (!_root.PAUSE) {
if ((fallspeed >= (4 * Height)) || (fallspeed <= (-4 * Height))) {
gotoAndPlay ("jump");
}
if (_root.guy == _name) {
if (Key.isDown(39)) {
gotoAndPlay ("run");
speed = 7;
_xscale = X;
s = 6;
}
if (Key.isDown(37)) {
gotoAndPlay ("run");
speed = 7;
_xscale = (-X);
s = 6;
}
if (Key.isDown(40)) {
if (_root[_name + "F"]._y >= (_y + 20)) {
gotoAndPlay ("outstretched hand");
} else {
gotoAndPlay ("boost setup");
}
}
if (Key.isDown(38)) {
gotoAndPlay ("jump");
_y = (_y - (5 * Height));
fallspeed = Jheight * Math.sqrt(Direction * Direction);
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (guy.boost.hitTest(_x, _y, true)) {
fallspeed = (Jheight * 1.4) * Math.sqrt(Direction * Direction);
guy.gotoAndPlay(1);
guy._xscale = guy._xscale - (guy._xscale * 2);
}
i++;
}
}
}
}
Symbol 274 MovieClip Frame 2
if (!dead) {
gotoAndPlay (1);
speed = 0;
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 3
if (!_root.PAUSE) {
if (_xscale == X) {
if (Key.isDown(37)) {
gotoAndPlay ("runturn");
}
} else if (Key.isDown(39)) {
gotoAndPlay ("runturn");
}
if (_root.ground.hitTest(_root[_name + "F"]._x + (10 * Direction), _root[_name + "F"]._y - (60 * Height), true)) {
if (!_root.ground.hitTest(_root[_name + "F"]._x + (10 * Direction), _root[_name + "F"]._y - (20 * Height), true)) {
gotoAndPlay ("duck");
}
}
if (Key.isDown(38)) {
gotoAndPlay ("jump");
_y = (_y - 5);
fallspeed = Jheight * Height;
speed = 7 * Height;
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (guy.boost.hitTest(_x, _y, true)) {
fallspeed = (Jheight * 1.4) * Math.sqrt(Direction * Direction);
guy.gotoAndPlay(1);
guy._xscale = guy._xscale - (guy._xscale * 2);
}
i++;
}
}
}
Symbol 274 MovieClip Frame 4
if (!dead) {
if (!_root.PAUSE) {
if (_root.guy == _name) {
if (Key.isDown(39)) {
gotoAndPlay ("run");
}
if (Key.isDown(37)) {
gotoAndPlay ("run");
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
gotoAndPlay (1);
}
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay ("run");
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 5
if (Key.isDown(38)) {
_xscale = (_xscale - (_xscale * 2));
speed = speed - (speed * 2);
gotoAndPlay ("jump");
_y = (_y - 5);
fallspeed = Jheight * Math.sqrt(Direction * Direction);
}
if (fallspeed <= -3) {
gotoAndPlay ("jump");
}
Symbol 274 MovieClip Frame 6
if (!dead) {
if (mc._currentframe <= 27) {
gotoAndPlay ("runturn");
} else {
_xscale = (_xscale - (_xscale * 2));
gotoAndPlay ("run");
speed = 7;
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 7
if (grabhand.hitTest(_root[_name + "F"]._x, _root[_name + "F"]._y, true)) {
if (fallspeed >= 0) {
gotoAndPlay ("ledge hang");
_root.SOUND.grab.start(0, 1);
_root.SOUND.grab.setVolume(_root.SFXVOLUME);
}
}
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (grabhand.hitTest((guy.hand._x * guy.Direction) + guy._x, (guy.hand._y * guy.Height) + guy._y, true)) {
if (fallspeed >= 0) {
gotoAndPlay ("ledge hang");
_root.SOUND.grab.start(0, 1);
_root.SOUND.grab.setVolume(_root.SFXVOLUME);
}
}
i++;
}
Symbol 274 MovieClip Frame 8
if (!dead) {
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay (1);
_root.SOUND.grab.start(0, 1);
_root.SOUND.grab.setVolume(_root.SFXVOLUME);
} else {
gotoAndPlay ("jump");
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 9
fallspeed = 0;
speed = 0;
if (Key.isDown(38) && (_root.guy == _name)) {
gotoAndPlay ("climb up a ledge");
}
if (_xscale == X) {
if (Key.isDown(37)) {
if (Key.isDown(38) && (_root.guy == _name)) {
gotoAndPlay ("jump off a ledge");
}
}
} else if (Key.isDown(39)) {
if (Key.isDown(38) && (_root.guy == _name)) {
gotoAndPlay ("jump off a ledge");
}
}
Symbol 274 MovieClip Frame 10
if (!dead) {
gotoAndPlay ("ledge hang");
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 11
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (guy.hand.hitTest(this)) {
guy.gotoAndPlay("get up");
}
i++;
}
Symbol 274 MovieClip Frame 12
if (!dead) {
if (mc._currentframe <= 9) {
gotoAndPlay ("climb up a ledge");
} else {
gotoAndPlay ("jump");
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 13
if ((fallspeed <= 3) && (fallspeed >= -3)) {
fallspeed = 0;
}
i = 0;
while (i <= 3) {
if (i == 1) {
guy = _root.blackguy;
}
if (i == 2) {
guy = _root.blueguy;
}
if (i == 3) {
guy = _root.redguy;
}
if (guy.hand.hitTest(this)) {
guy.gotoAndPlay("get up");
}
i++;
}
Symbol 274 MovieClip Frame 14
if (!dead) {
if (mc._currentframe <= 14) {
gotoAndPlay ("jump off a ledge");
} else {
gotoAndPlay ("jump");
_xscale = (_xscale - (_xscale * 2));
speed = 6;
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 15
speed = 0;
Symbol 274 MovieClip Frame 16
if (!dead) {
if (_root.guy == _name) {
if (Key.isDown(37) || (Key.isDown(39))) {
gotoAndPlay (1);
}
}
gotoAndPlay ("boost setup");
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 17
speed = 0;
fallspeed = 0;
if (_root.ground.hitTest(_x + ((11 * _xscale) / 100), _y + 30, true)) {
_x = (_x + (_xscale / 100));
}
if (!_root.ground.hitTest(_x + ((10 * _xscale) / 100), _y + 30, true)) {
_x = (_x - (_xscale / 100));
}
if (_root.guy == _name) {
if (_xscale == X) {
if (Key.isDown(37)) {
gotoAndPlay ("get up");
}
} else if (Key.isDown(39)) {
gotoAndPlay ("get up");
}
if (Key.isDown(38)) {
gotoAndPlay ("get up");
}
}
Instance of Symbol 112 MovieClip in Symbol 274 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_parent.mc._currentframe >= 15) {
_name = "hand";
}
}
Symbol 274 MovieClip Frame 18
if (!dead) {
gotoAndPlay ("outstretched hand");
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 20
if (!dead) {
if (mc._currentframe <= 17) {
gotoAndPlay ("get up");
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 21
speed = 0;
if (mc._currentframe >= 14) {
gotoAndPlay ("ducked");
}
Symbol 274 MovieClip Frame 22
if (!dead) {
if (_root.ground.hitTest(_root[_name + "F"]._x + (10 * Direction), _root[_name + "F"]._y - (60 * Height), true)) {
if (!_root.ground.hitTest(_root[_name + "F"]._x + (10 * Direction), _root[_name + "F"]._y - (20 * Height), true)) {
gotoAndPlay ("duck");
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 23
if (_root.guy == _name) {
if (_xscale == X) {
if (Key.isDown(37)) {
F = mc._currentframe - 2;
mc.gotoAndPlay(F);
if (mc._currentframe <= 1) {
mc.gotoAndPlay(9);
}
speed = -3;
} else {
speed = 3;
}
} else if (Key.isDown(39)) {
F = mc._currentframe - 2;
mc.gotoAndPlay(F);
if (mc._currentframe <= 1) {
mc.gotoAndPlay(9);
}
speed = -3;
} else {
speed = 3;
}
} else {
gotoAndPlay ("ducked");
}
Symbol 274 MovieClip Frame 24
if (!dead) {
if (_root.guy == _name) {
if (Key.isDown(39)) {
gotoAndPlay ("crawl");
}
if (Key.isDown(37)) {
gotoAndPlay ("crawl");
}
if ((!Key.isDown(37)) && (!Key.isDown(39))) {
gotoAndPlay ("ducked");
}
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 25
speed = 0;
if (_root.guy == _name) {
if (Key.isDown(39) || (Key.isDown(37))) {
gotoAndPlay ("crawl");
}
}
Symbol 274 MovieClip Frame 26
if (!dead) {
if (_root.ground.hitTest(_x, _y - (60 * Height), true)) {
gotoAndPlay ("ducked");
} else {
gotoAndPlay ("unduck");
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 28
if (!dead) {
if (mc._currentframe <= 13) {
gotoAndPlay ("unduck");
} else {
gotoAndPlay (1);
}
} else {
gotoAndPlay ("dead");
}
Symbol 274 MovieClip Frame 29
dead = true;
Symbol 274 MovieClip Frame 30
stop();
Symbol 284 Button
on (release) {
_root.TITLE = "INTRO";
_root.LEVEL = 1;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 287 Button
on (release) {
_root.TITLE = "UNDERWOOD";
_root.LEVEL = 2;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 289 Button
on (release) {
_root.TITLE = "UNDERWOOD 2";
_root.LEVEL = 3;
_root.COST = 10;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 291 Button
on (release) {
_root.TITLE = "PYRAMID";
_root.LEVEL = 4;
_root.COST = 20;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 293 Button
on (release) {
_root.TITLE = "MARATHON";
_root.LEVEL = 5;
_root.COST = 20;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 295 Button
on (release) {
_root.TITLE = "RUN 2 THE HILLS";
_root.LEVEL = 6;
_root.COST = 20;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 297 Button
on (release) {
_root.TITLE = "321 GO!";
_root.LEVEL = 7;
_root.COST = 50;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 299 Button
on (release) {
_root.TITLE = "DETERMINATION";
_root.LEVEL = 8;
_root.COST = 30;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 301 Button
on (release) {
_root.TITLE = "TRICYCLE";
_root.LEVEL = 9;
_root.COST = 30;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 303 Button
on (release) {
_root.TITLE = "3S A CROWD";
_root.LEVEL = 10;
_root.COST = 30;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 305 Button
on (release) {
_root.TITLE = "SHAFT";
_root.LEVEL = 11;
_root.COST = 30;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = 0;
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 307 Button
on (release) {
_root.TITLE = "CREDITS";
_root.LEVEL = 12;
_root.COST = 30;
if (_root[_root.TITLE + "_MINUTES"] == undefined) {
_root[_root.TITLE + "_MINUTES"] = "00";
}
if (_root[_root.TITLE + "_SECONDS"] == undefined) {
_root[_root.TITLE + "_SECONDS"] = "00";
}
_root.MINUTES = _root[_root.TITLE + "_MINUTES"];
_root.SECONDS = _root[_root.TITLE + "_SECONDS"];
}
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 25
this.swapDepths(999);
this.removeMovieClip();
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L3LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L3LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L4LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L4LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L5LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L5LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L6LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L6LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L7LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L7LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L8LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L8LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L9LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L9LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L10LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L10LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L11LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L11LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.L12LOCKED == false) {
_visible = false;
}
fallspeed = -3;
speed = 3;
}
onClipEvent (enterFrame) {
if (_root.L12LOCKED == false) {
play();
fallspeed++;
_y = (_y + fallspeed);
_x = (_x - speed);
}
}
Symbol 324 Button
on (release) {
_root.MUSIC.stopAllSounds();
_root.gotoAndStop(_root.TITLE);
}
Symbol 331 Button
on (release) {
if (_root.COINS >= _root.COST) {
_root.COINS = _root.COINS - _root.COST;
_root[("L" + _root.LEVEL) + "LOCKED"] = false;
}
}
Symbol 340 MovieClip Frame 1
var copyrightNotice = "Copyright (c) 2006-2007 Sockpuppet Pty Ltd. All Rights Reserved. http://www.reanimator.net";
var reanimator = (new flash.geom.Transform(this));
var camera = (new flash.geom.Transform(this._parent));
var w = Stage.width;
var h = Stage.height;
this.onEnterFrame = function () {
this._parent.filters = this.filters;
var _local2 = reanimator.matrix;
camera.colorTransform = reanimator.colorTransform;
_local2.invert();
_local2.translate(w * 0.5, h * 0.5);
camera.matrix = _local2;
};
Instance of Symbol 128 MovieClip in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
if (_root.BGMVOLUME == 0) {
gotoAndPlay (5);
}
}
Instance of Symbol 342 MovieClip "wall" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
Y = _y + _height;
}
onClipEvent (enterFrame) {
if (hit) {
_y = (_y - ((_y - Y) / 6));
}
}
Instance of Symbol 112 MovieClip in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.blueguy._y >= _root.blackguy._y) {
_y = ((_root.blueguy._y + 100) - _parent._y);
} else {
_y = ((_root.blackguy._y + 100) - _parent._y);
}
_x = (_root.cam._x - _parent._x);
}
Symbol 358 MovieClip Frame 45
if (!hit) {
gotoAndPlay (1);
}
Symbol 358 MovieClip Frame 46
_root.SOUND.coinget.start(0, 1);
_root.SOUND.coinget.setVolume(_root.SFXVOLUME);
Symbol 358 MovieClip Frame 51
this.swapDepths(999);
this.removeMovieClip();
Instance of Symbol 112 MovieClip "wall" in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
Y = _y + _height;
Y2 = _y;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_y = (_y - ((_y - Y) / 5));
} else {
_y = (_y - ((_y - Y2) / 3));
}
}
Instance of Symbol 112 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.blueguy._y >= _root.blackguy._y) {
_y = ((_root.blueguy._y + 100) - _parent._y);
} else {
_y = ((_root.blackguy._y + 100) - _parent._y);
}
}
Instance of Symbol 112 MovieClip "wall3" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
Y = _y - _height;
Y2 = _y;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_y = (_y - ((_y - Y) / 5));
} else {
_y = (_y - ((_y - Y2) / 3));
}
}
Instance of Symbol 112 MovieClip "wall2" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
Y = _y - _height;
Y2 = _y;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_y = (_y - ((_y - Y) / 5));
} else {
_y = (_y - ((_y - Y2) / 3));
}
}
Instance of Symbol 112 MovieClip "wall" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
X = _x + _width;
X2 = _x;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_x = (_x - ((_x - X) / 10));
} else {
_x = (_x - ((_x - x2) / 10));
}
}
Instance of Symbol 112 MovieClip in Symbol 365 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.blueguy._y >= _root.blackguy._y) {
_y = ((_root.blueguy._y + 100) - _parent._y);
} else {
_y = ((_root.blackguy._y + 100) - _parent._y);
}
_x = (_root.cam._x - _parent._x);
}
Instance of Symbol 112 MovieClip "wall4" in Symbol 365 MovieClip Frame 1
onClipEvent (load) {
X = _x + _width;
X2 = _x;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_x = (_x - ((_x - X) / 10));
} else {
_x = (_x - ((_x - x2) / 10));
}
}
Instance of Symbol 342 MovieClip "wall" in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
Y = _y - _height;
Y2 = _y;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_y = (_y - ((_y - Y) / 5));
} else {
_y = (_y - ((_y - Y2) / 3));
}
}
Instance of Symbol 342 MovieClip "wall2" in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
Y = _height;
Y2 = 2;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_height = (_height - ((_height - Y) / 5));
} else {
_height = (_height - ((_height - Y2) / 10));
}
}
Instance of Symbol 112 MovieClip "door" in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
Y = _y - _height;
Y2 = _y;
hit = false;
sin = 0;
X = _x;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
if (_y >= Y) {
_y = (_y - 2);
_x = (X + Math.sin(sin));
sin = sin + 2;
}
}
}
Instance of Symbol 112 MovieClip in Symbol 372 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.blueguy._y >= _root.blackguy._y) {
_y = ((_root.blueguy._y + 100) - _parent._y);
} else {
_y = ((_root.blackguy._y + 100) - _parent._y);
}
_x = (_root.cam._x - _parent._x);
}
Instance of Symbol 112 MovieClip in Symbol 372 MovieClip Frame 1
onClipEvent (load) {
X = _x - _width;
X2 = _x;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_x = (_x - ((_x - X) / 4));
if (_root[_root.guy]._x <= ((_x + _parent._x) + (_width / 2))) {
hit = false;
}
} else {
if (_root[_root.guy]._x >= ((_x + _parent._x) + (_width / 2))) {
hit = true;
}
_x = (_x - ((_x - x2) / 4));
}
}
Symbol 384 MovieClip Frame 40
if (!hit) {
gotoAndPlay (1);
}
Symbol 384 MovieClip Frame 41
_root.keyget.start(0, 1);
_root.keyget.setVolume(_root.SFXVOLUME);
Symbol 384 MovieClip Frame 55
this.swapDepths(999);
this.removeMovieClip();
Symbol 388 MovieClip Frame 2
if ((_root.BUTTON.hit == true) && (_root.key == true)) {
play();
} else {
gotoAndPlay (1);
}
Symbol 388 MovieClip Frame 4
stop();
Symbol 410 MovieClip Frame 1
hit = false;
Symbol 410 MovieClip Frame 2
if (!hit) {
gotoAndPlay (1);
}
Symbol 410 MovieClip Frame 3
hit = true;
Symbol 410 MovieClip Frame 8
if (hit) {
gotoAndPlay (3);
}
Symbol 423 MovieClip Frame 1
_visible = false;
Symbol 423 MovieClip Frame 2
if (!hit) {
gotoAndPlay (1);
}
Symbol 423 MovieClip Frame 3
_visible = true;
Symbol 423 MovieClip Frame 24
gotoAndPlay ("stop");
Instance of Symbol 423 MovieClip "bridge1" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
Instance of Symbol 486 MovieClip "bolt" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
ScrewAmount = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root[_root.guy]._x, _root[_root.guy]._y + 5, true)) {
if (_root[_root.guy].speed >= 1) {
ScrewAmount = ScrewAmount - ((_root[_root.guy].Direction * _root[_root.guy].speed) / 4);
if ((S != 1) && (S != 99)) {
_root[_root.guy]._x = _root[_root.guy]._x - (_root[_root.guy].Direction * _root[_root.guy].speed);
}
}
}
if (ScrewAmount <= 0) {
ScrewAmount = 1;
}
if (ScrewAmount >= 100) {
ScrewAmount = 99;
}
S = Math.round(ScrewAmount);
gotoAndPlay(S);
stop();
_y = (Y + (S / 2));
}
Instance of Symbol 112 MovieClip "wall1" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
R = _rotation + 90;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_rotation = (_rotation - ((_rotation - R) / 5));
}
}
Instance of Symbol 112 MovieClip "wall2" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
Y = _y - _height;
Y2 = _y;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (!Finalhit) {
if (hit) {
_y = (_y - ((_y - Y) / 5));
} else {
_y = (_y - ((_y - Y2) / 3));
}
} else {
_y = (_y - ((_y - Y) / 5));
}
}
Instance of Symbol 488 MovieClip "wall3" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
Y = _y + 108.2;
}
onClipEvent (enterFrame) {
if (hit) {
_y = (_y - ((_y - Y) / 6));
}
}
Instance of Symbol 112 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
Y = _y;
}
onClipEvent (enterFrame) {
_visible = true;
_y = (Y - ((_parent.bolt.S / 100) * _height));
}
Instance of Symbol 112 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.blueguy._y >= _root.blackguy._y) {
_y = ((_root.blueguy._y + 100) - _parent._y);
} else {
_y = ((_root.blackguy._y + 100) - _parent._y);
}
_x = (_root.cam._x - _parent._x);
}
Instance of Symbol 488 MovieClip "wall1" in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
Y = _y - _height;
}
onClipEvent (enterFrame) {
if (hit) {
_y = (_y - ((_y - Y) / 6));
}
}
Symbol 504 MovieClip Frame 2
if (_name == "snow") {
gotoAndPlay (1);
}
Symbol 504 MovieClip Frame 115
this.swapDepths(999);
this.removeMovieClip();
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel3._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel3._rotation + 180;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel3._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel3._rotation + 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel3._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel3._rotation;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel3._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel3._rotation - 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel2._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel2._rotation + 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel2._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel2._rotation;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel2._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel2._rotation - 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel._rotation + 180;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel._rotation + 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel._rotation;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel._rotation - 90;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
D = (_root.wheel2._height / 2) - 15;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
R = _root.wheel2._rotation + 180;
_x = (X + (D * Math.cos(R * (Math.PI/180))));
_y = ((Y + (D * Math.sin(R * (Math.PI/180)))) + 100);
Xchange = _x - oldX;
Ychange = _y - oldY;
if (this.hitTest(_root.blackguy._x, _root.blackguy._y + 10, true)) {
_root.blackguy._x = _root.blackguy._x + Xchange;
_root.blackguy._y = _root.blackguy._y + Ychange;
}
if (this.hitTest(_root.blueguy._x, _root.blueguy._y + 10, true)) {
_root.blueguy._x = _root.blueguy._x + Xchange;
_root.blueguy._y = _root.blueguy._y + Ychange;
}
oldX = _x;
oldY = _y;
}
Instance of Symbol 112 MovieClip "wall" in Symbol 517 MovieClip Frame 1
onClipEvent (load) {
Y = _y - _height;
Y2 = _y;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_y = (_y - ((_y - Y) / 5));
} else {
_y = (_y - ((_y - Y2) / 3));
}
}
Instance of Symbol 522 MovieClip "lift" in Symbol 527 MovieClip Frame 1
onClipEvent (load) {
Y = _y;
}
onClipEvent (enterFrame) {
while (_y >= 1061.4) {
_y = (_y-1);
}
while (_y <= Y) {
_y = (_y+1);
}
}
Instance of Symbol 525 MovieClip "wall1" in Symbol 527 MovieClip Frame 1
onClipEvent (load) {
Y = _y - 140.6;
}
onClipEvent (enterFrame) {
if (hit) {
_y = (_y - ((_y - Y) / 6));
}
}
Instance of Symbol 112 MovieClip "block" in Symbol 527 MovieClip Frame 1
onClipEvent (load) {
X = _x - _width;
X2 = _x;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_x = (_x - ((_x - X) / 5));
} else {
_x = (_x - ((_x - X2) / 3));
}
}
Instance of Symbol 112 MovieClip "wall5" in Symbol 562 MovieClip Frame 1
onClipEvent (load) {
WIDTH = _width;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_width = (_width - ((_width - WIDTH) / 4));
} else {
_width = (_width * 0.8);
}
}
Instance of Symbol 112 MovieClip "wall6" in Symbol 562 MovieClip Frame 1
onClipEvent (load) {
WIDTH = _width;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_width = (_width * 0.8);
} else {
_width = (_width - ((_width - WIDTH) / 4));
}
}
Instance of Symbol 112 MovieClip in Symbol 562 MovieClip Frame 1
onClipEvent (load) {
speed = 5;
RIGHT = true;
}
onClipEvent (enterFrame) {
_visible = true;
if (RIGHT) {
_x = (_x + speed);
if (_root.blackguy.hitTest(this)) {
_root.blackguy._x = _root.blackguy._x + speed;
}
if (_root.blueguy.hitTest(this)) {
_root.blueguy._x = _root.blueguy._x + speed;
}
if (_root.redguy.hitTest(this)) {
_root.redguy._x = _root.redguy._x + speed;
}
if (_x >= _parent.R._x) {
speed = speed * 0.9;
}
if (speed <= 0.001) {
RIGHT = false;
speed = 5;
}
}
if (!RIGHT) {
_x = (_x - speed);
if (_root.blackguy.hitTest(this)) {
_root.blackguy._x = _root.blackguy._x - speed;
}
if (_root.blueguy.hitTest(this)) {
_root.blueguy._x = _root.blueguy._x - speed;
}
if (_root.redguy.hitTest(this)) {
_root.redguy._x = _root.redguy._x - speed;
}
if (_x <= _parent.L._x) {
speed = speed * 0.9;
}
if (speed <= 0.001) {
RIGHT = true;
speed = 5;
}
}
}
Instance of Symbol 112 MovieClip "wall1" in Symbol 562 MovieClip Frame 1
onClipEvent (load) {
HEIGHT = _height;
hit = false;
}
onClipEvent (enterFrame) {
_visible = true;
if (hit) {
_height = (_height * 0.8);
} else {
_height = (_height - ((_height - HEIGHT) / 4));
}
}