Frame 1
stopAllSounds();
Stage.showMenu = false;
Frame 2
stop();
Frame 3
stop();
stopAllSounds();
_name = "menu";
joe = false;
_root.instructions._visible = false;
if (joe) {
_root.instructions._visible = true;
}
Frame 4
stop();
time = 60;
bizTimer = 0;
yos = false;
beserk = false;
spacePress = false;
doubletimerbox = "";
beserK = function () {
if (!_root.pau) {
if (((numBuddy <= 0) && (!beserk)) && (!yos)) {
if (Key.isDown(32)) {
if (!spacePress) {
besr = false;
beserk = true;
bizTimer = 10;
yos = true;
}
yo = true;
spacePress = true;
beserk = true;
} else {
spacePress = false;
}
}
}
};
reduceTime = function () {
if (!_root.pau) {
if (time != 0) {
time--;
if ((doubletimerbox != 0) && (doubletimerbox != "")) {
doubletimerbox--;
}
if (bizTimer != 0) {
bizTimer--;
}
if (bizTimer <= 0) {
beserk = false;
beserkKey = 0;
}
}
if (doubletimerbox == 0) {
doubled = false;
doubling = false;
totalgvalue = 1;
dbl = "";
doubletimerbox = "";
}
if ((time == 0) && (score >= 65)) {
gotoAndStop (5);
} else if ((time == 0) && (score <= 65)) {
gotoAndStop (18);
}
}
};
biz = setInterval(beserK, 20);
timer = setInterval(reduceTime, 1000);
gtimer = 0;
totalgvalue = 1;
spacePress = false;
gdepth = 0;
green = function () {
if (!_root.pau) {
if (gtimer == 0) {
g = attachMovie("one", "ones" + gdepth, 240 + gdepth);
g.gvalue = random(10);
gtimer = 75;
g._x = random(395);
g._y = 1;
if (bizTimer > 0) {
var _local3 = new Sound();
_local3.attachSound("Copperhead");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
gtimer = 10;
} else if (bizTimer <= 0) {
beserkKey = beserkKey - 1;
gtimer = 75;
}
g.done = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score + (this.gvalue * _root.totalgvalue);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a = 0;
while (a < 10) {
if (this.hitTest(_root["buddaroo" + a])) {
score = score + this.gvalue;
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a++;
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
g.interval = setInterval(g, "done", 40);
}
if (gdepth < 25) {
gdepth++;
} else {
gdepth = 0;
}
if (gtimer > 0) {
gtimer--;
}
}
};
grn = setInterval(green, 20);
rtimer = 0;
rdepth = 0;
red = function () {
if (!_root.pau) {
if (rtimer == 0) {
r = attachMovie("red", "reds" + rdepth, 290 + rdepth);
r.rvalue = random(10);
rtimer = 50;
r._x = random(395);
r._y = 1;
r.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - this.rvalue;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
r.interval = setInterval(r, "completed", 40);
}
if (rdepth < 25) {
rdepth++;
} else {
rdepth = 0;
}
if (rtimer > 0) {
rtimer--;
}
}
};
red = setInterval(red, 20);
btimer = 0;
bdepth = 0;
bounce = function () {
if (!_root.pau) {
if (time == 50) {
if (btimer == 0) {
b = attachMovie("ball_bounce", "ball_bounces" + bdepth, 190 + bdepth);
btimer = 80;
b._x = -100;
b._y = 335;
b.bounced = function () {
if (!_root.pau) {
if (this._x < 395) {
this._x = this._x + 2;
if (this.hitTest(_root.ground)) {
var _local3 = new Sound();
_local3.attachSound("");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
}
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - 40;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
b.interval = setInterval(b, "bounced", 40);
}
if (bdepth < 5) {
bdepth++;
} else {
bdepth = 0;
}
if (btimer > 0) {
btimer--;
}
}
}
};
ball = setInterval(bounce, 20);
dtimer = 0;
ddepth = 0;
dwaitforit = false;
dbl = "";
dpowerUp = function () {
if (!_root.pau) {
if (dtimer == 0) {
if ((time == 40) && (!dwaitforit)) {
d = attachMovie("double_powerup", "double_powerups" + pdepth, 210 + pdepth);
dtimer = 900;
d._x = random(395);
d._y = 1;
d.pu = function () {
doubling = false;
doubled = false;
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero) && (!doubling)) {
doubled = true;
doubling = true;
doubletimerbox = 15;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
if (doubling) {
_root.totalgvalue = 2;
if (doubled) {
dbl = "DOUBLING!";
}
}
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
}
d.interval = setInterval(d, "pu", 40);
}
if (ddepth < 25) {
ddepth++;
} else {
ddepth = 0;
}
if (dtimer > 0) {
dtimer--;
}
}
};
dpu = setInterval(dpowerUp, 20);
dscore = setInterval(scoreDouble, 20);
ptimer = 0;
pdepth = 0;
pwaitforit = false;
powerUp = function () {
if (!_root.pau) {
if (ptimer == 0) {
if ((time <= 65) && (!pwaitforit)) {
p = attachMovie("shoes", "shoess" + pdepth, 200 + pdepth);
ptimer = 1800;
p._x = random(395);
p._y = 1;
p.pass = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero)) {
this._x = _root.hero.speed++;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
p.interval = setInterval(p, "pass", 40);
}
if (pdepth < 25) {
pdepth++;
} else {
pdepth = 0;
}
if (ptimer > 0) {
ptimer--;
}
}
};
pu = setInterval(powerUp, 20);
sky.flow = function () {
this._rotation = this._rotation + 2;
};
setInterval(sky, "flow", 20);
ebtimer = 0;
ebdepth = 0;
box_die = function () {
if (!_root.pau) {
if (ebtimer == 0) {
if (time <= 55) {
eb = attachMovie("box_killer", "box_killers" + ebdepth, 700 + ebdepth);
ebtimer = 400;
eb._x = random(395);
eb._y = 1;
eb.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 3;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
_root.hero.life = _root.hero.life - 1;
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
eb.interval = setInterval(eb, "completed", 40);
}
if (ebdepth < 25) {
ebdepth++;
} else {
ebdepth = 0;
}
if (ebtimer > 0) {
ebtimer--;
}
}
};
eb = setInterval(box_die, 20);
score = 0;
besr = false;
pau = false;
hero.init = function () {
hero.speed = 5;
hero.life = 3;
hero.roll = false;
hero.facing = "right";
};
hero.movement = function () {
if (this.life <= 0) {
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
gotoAndStop (18);
}
if (!_root.pau) {
if (!this.roll) {
if (Key.isDown(80)) {
_root.paused._visible = true;
pau = true;
} else {
_root.paused._visible = false;
}
if (Key.isDown(39)) {
this._xscale = -100;
this._x = this._x + this.speed;
this.facing = "right";
this.gotoAndStop("run");
} else if (Key.isDown(37)) {
this._xscale = 100;
this._x = this._x - this.speed;
this.facing = "left";
this.gotoAndStop("run");
} else {
this.gotoAndStop("idle");
}
if (Key.isDown(68)) {
this.roll = true;
this.facing = "right";
this._xscale = -100;
this.gotoAndStop("roll");
}
if (Key.isDown(65)) {
this.roll = true;
this.facing = "left";
this._xscale = 100;
this.gotoAndStop("roll");
}
} else if (this.roll) {
if (this.facing == "right") {
this._x = this._x + this.speed;
} else {
this._x = this._x - this.speed;
}
}
}
};
her = setInterval(hero, "movement", 20);
hero.init();
Instance of Symbol 157 MovieClip "hero" in Frame 4
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Instance of Symbol 179 MovieClip in Frame 4
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.life);
if (_root.hero.life == 0) {
_root.hero.life._visible = false;
}
}
Instance of Symbol 199 MovieClip "paused" in Frame 4
/* no clip actions */
Instance of Symbol 202 MovieClip in Frame 4
onClipEvent (load) {
current = 1;
}
on (release) {
if (current == 1) {
_quality = "low";
current = 2;
} else if (current == 2) {
_quality = "medium";
current = 3;
} else if (current == 3) {
_quality = "high";
current = 1;
}
}
Frame 5
stop();
stopAllSounds();
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
budtimer = 0;
buddepth = 0;
yo = false;
dead = false;
numBuddy = 0;
buddy = function () {
if ((numBuddy >= 1) && (!dead)) {
if (Key.isDown(32) && (!yo)) {
bud = attachMovie("hopper_space", "buddaroo" + buddepth, 400 + buddepth);
yo = true;
numBuddy = numBuddy - 1;
bud._x = 400;
bud._y = 335;
if (numBuddy <= 0) {
yos = true;
}
bud.jumping = function () {
if (this._x > 5) {
this._x = this._x - 2;
} else {
yo = false;
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
bud.interval = setInterval(bud, "jumping", 40);
}
if (buddepth < 10) {
buddepth++;
} else {
buddepth = 0;
}
if (budtimer > 0) {
budtimer--;
}
}
};
bdy = setInterval(buddy, 20);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
Frame 6
stop();
besKey = function () {
if (besr == true) {
bik = attachMovie("beserk_key", "beserk_keys" + bikdepth, 4190 + bikdepth);
bik.attatching = function () {
bik._y = 375;
bik._x = 40;
};
}
bik.gotoAndStop(beserkKey);
if (!besr) {
bik._visible = false;
removeMovieClip(this);
clearInterval(this);
}
bik.interval = setInterval(bik, "attatching", 20);
};
biks = setInterval(besKey, 20);
time = 60;
bizTimer = 0;
yos = false;
beserk = false;
spacePress = false;
doubletimerbox = "";
beserK = function () {
if (!_root.pau) {
if (((numBuddy <= 0) && (!beserk)) && (!yos)) {
if (Key.isDown(32)) {
if (!spacePress) {
besr = false;
beserk = true;
bizTimer = 10;
yos = true;
}
yo = true;
spacePress = true;
beserk = true;
} else {
spacePress = false;
}
}
}
};
reduceTime = function () {
if (!_root.pau) {
if (time != 0) {
time--;
if ((doubletimerbox != 0) && (doubletimerbox != "")) {
doubletimerbox--;
}
if (bizTimer != 0) {
bizTimer--;
}
if (bizTimer <= 0) {
beserk = false;
beserkKey = 0;
}
}
if (doubletimerbox == 0) {
doubled = false;
doubling = false;
totalgvalue = 1;
dbl = "";
doubletimerbox = "";
}
if ((time == 0) && (score >= 80)) {
gotoAndStop (7);
} else if ((time == 0) && (score <= 80)) {
gotoAndStop (18);
}
}
};
biz = setInterval(beserK, 20);
timer = setInterval(reduceTime, 1000);
gtimer = 0;
totalgvalue = 1;
spacePress = false;
gdepth = 0;
green = function () {
if (!_root.pau) {
if (gtimer == 0) {
g = attachMovie("one", "ones" + gdepth, 240 + gdepth);
g.gvalue = random(10);
gtimer = 75;
g._x = random(395);
g._y = 1;
if (bizTimer > 0) {
var _local3 = new Sound();
_local3.attachSound("Copperhead");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
gtimer = 10;
} else if (bizTimer <= 0) {
beserkKey = beserkKey - 1;
gtimer = 80;
}
g.done = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score + (this.gvalue * _root.totalgvalue);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a = 0;
while (a < 10) {
if (this.hitTest(_root["buddaroo" + a])) {
score = score + this.gvalue;
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a++;
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
g.interval = setInterval(g, "done", 40);
}
if (gdepth < 25) {
gdepth++;
} else {
gdepth = 0;
}
if (gtimer > 0) {
gtimer--;
}
}
};
grn = setInterval(green, 20);
rtimer = 0;
rdepth = 0;
red = function () {
if (!_root.pau) {
if (rtimer == 0) {
r = attachMovie("red", "reds" + rdepth, 290 + rdepth);
r.rvalue = random(10);
rtimer = 45;
r._x = random(395);
r._y = 1;
r.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - this.rvalue;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
r.interval = setInterval(r, "completed", 40);
}
if (rdepth < 25) {
rdepth++;
} else {
rdepth = 0;
}
if (rtimer > 0) {
rtimer--;
}
}
};
red = setInterval(red, 20);
btimer = 0;
bdepth = 0;
bounce = function () {
if (!_root.pau) {
if (time == 50) {
if (btimer == 0) {
b = attachMovie("ball_bounce", "ball_bounces" + bdepth, 190 + bdepth);
btimer = 80;
b._x = -100;
b._y = 335;
b.bounced = function () {
if (!_root.pau) {
if (this._x < 395) {
this._x = this._x + 2;
if (this.hitTest(_root.ground)) {
var _local3 = new Sound();
_local3.attachSound("");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
}
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - 40;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
b.interval = setInterval(b, "bounced", 40);
}
if (bdepth < 5) {
bdepth++;
} else {
bdepth = 0;
}
if (btimer > 0) {
btimer--;
}
}
}
};
ball = setInterval(bounce, 20);
dtimer = 0;
ddepth = 0;
dwaitforit = false;
dbl = "";
dpowerUp = function () {
if (!_root.pau) {
if (dtimer == 0) {
if ((time == 40) && (!dwaitforit)) {
d = attachMovie("double_powerup", "double_powerups" + pdepth, 210 + pdepth);
dtimer = 900;
d._x = random(395);
d._y = 1;
d.pu = function () {
doubling = false;
doubled = false;
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero) && (!doubling)) {
doubled = true;
doubling = true;
doubletimerbox = 15;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
if (doubling) {
_root.totalgvalue = 2;
if (doubled) {
dbl = "DOUBLING!";
}
}
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
}
d.interval = setInterval(d, "pu", 40);
}
if (ddepth < 25) {
ddepth++;
} else {
ddepth = 0;
}
if (dtimer > 0) {
dtimer--;
}
}
};
dpu = setInterval(dpowerUp, 20);
dscore = setInterval(scoreDouble, 20);
ptimer = 0;
pdepth = 0;
pwaitforit = false;
powerUp = function () {
if (!_root.pau) {
if (ptimer == 0) {
if ((time <= 65) && (!pwaitforit)) {
p = attachMovie("shoes", "shoess" + pdepth, 200 + pdepth);
ptimer = 1800;
p._x = random(395);
p._y = 1;
p.pass = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero)) {
this._x = _root.hero.speed++;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
p.interval = setInterval(p, "pass", 40);
}
if (pdepth < 25) {
pdepth++;
} else {
pdepth = 0;
}
if (ptimer > 0) {
ptimer--;
}
}
};
pu = setInterval(powerUp, 20);
sky.flow = function () {
this._rotation = this._rotation + 2;
};
setInterval(sky, "flow", 20);
ebtimer = 0;
ebdepth = 0;
box_die = function () {
if (!_root.pau) {
if (ebtimer == 0) {
if (time <= 55) {
eb = attachMovie("box_killer", "box_killers" + ebdepth, 700 + ebdepth);
ebtimer = 400;
eb._x = random(395);
eb._y = 1;
eb.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 3;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
_root.hero.life = _root.hero.life - 1;
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
eb.interval = setInterval(eb, "completed", 40);
}
if (ebdepth < 25) {
ebdepth++;
} else {
ebdepth = 0;
}
if (ebtimer > 0) {
ebtimer--;
}
}
};
eb = setInterval(box_die, 20);
score = 0;
besr = false;
pau = false;
hero.init = function () {
hero.speed = 5;
hero.life = 3;
hero.roll = false;
hero.facing = "right";
};
hero.movement = function () {
if (this.life <= 0) {
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
gotoAndStop (18);
}
if (!_root.pau) {
if (!this.roll) {
if (Key.isDown(80)) {
_root.paused._visible = true;
pau = true;
} else {
_root.paused._visible = false;
}
if (Key.isDown(39)) {
this._xscale = -100;
this._x = this._x + this.speed;
this.facing = "right";
this.gotoAndStop("run");
} else if (Key.isDown(37)) {
this._xscale = 100;
this._x = this._x - this.speed;
this.facing = "left";
this.gotoAndStop("run");
} else {
this.gotoAndStop("idle");
}
if (Key.isDown(68)) {
this.roll = true;
this.facing = "right";
this._xscale = -100;
this.gotoAndStop("roll");
}
if (Key.isDown(65)) {
this.roll = true;
this.facing = "left";
this._xscale = 100;
this.gotoAndStop("roll");
}
} else if (this.roll) {
if (this.facing == "right") {
this._x = this._x + this.speed;
} else {
this._x = this._x - this.speed;
}
}
}
};
her = setInterval(hero, "movement", 20);
hero.init();
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Instance of Symbol 157 MovieClip "hero" in Frame 6
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Instance of Symbol 179 MovieClip in Frame 6
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.life);
if (_root.hero.life == 0) {
_root.hero.life._visible = false;
}
}
Frame 7
stopAllSounds();
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
budtimer = 0;
buddepth = 0;
yo = false;
numBuddy = 0;
buddy = function () {
if (numBuddy >= 1) {
if (Key.isDown(32) && (!yo)) {
bud = attachMovie("hopper_space", "buddaroo" + buddepth, 400 + buddepth);
yo = true;
numBuddy = numBuddy - 1;
bud._x = 400;
bud._y = 335;
bud.jumping = function () {
if (this._x > 5) {
this._x = this._x - 2;
} else {
yo = false;
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
bud.interval = setInterval(bud, "jumping", 40);
}
if (buddepth < 10) {
buddepth++;
} else {
buddepth = 0;
}
if (budtimer > 0) {
budtimer--;
}
}
};
bdy = setInterval(buddy, 20);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Frame 8
time = 60;
bizTimer = 0;
yos = false;
beserk = false;
spacePress = false;
doubletimerbox = "";
beserK = function () {
if (!_root.pau) {
if (((numBuddy <= 0) && (!beserk)) && (!yos)) {
if (Key.isDown(32)) {
if (!spacePress) {
besr = false;
beserk = true;
bizTimer = 10;
yos = true;
}
yo = true;
spacePress = true;
beserk = true;
} else {
spacePress = false;
}
}
}
};
reduceTime = function () {
if (!_root.pau) {
if (time != 0) {
time--;
if ((doubletimerbox != 0) && (doubletimerbox != "")) {
doubletimerbox--;
}
if (bizTimer != 0) {
bizTimer--;
}
if (bizTimer <= 0) {
beserk = false;
beserkKey = 0;
}
}
if (doubletimerbox == 0) {
doubled = false;
doubling = false;
totalgvalue = 1;
dbl = "";
doubletimerbox = "";
}
if ((time == 0) && (score >= 85)) {
gotoAndStop (9);
} else if ((time == 0) && (score <= 85)) {
gotoAndStop (18);
}
}
};
biz = setInterval(beserK, 20);
timer = setInterval(reduceTime, 1000);
gtimer = 0;
totalgvalue = 1;
spacePress = false;
gdepth = 0;
green = function () {
if (!_root.pau) {
if (gtimer == 0) {
g = attachMovie("one", "ones" + gdepth, 240 + gdepth);
g.gvalue = random(10);
gtimer = 85;
g._x = random(395);
g._y = 1;
if (bizTimer > 0) {
var _local3 = new Sound();
_local3.attachSound("Copperhead");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
gtimer = 10;
} else if (bizTimer <= 0) {
beserkKey = beserkKey - 1;
gtimer = 75;
}
g.done = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score + (this.gvalue * _root.totalgvalue);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a = 0;
while (a < 10) {
if (this.hitTest(_root["buddaroo" + a])) {
score = score + this.gvalue;
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a++;
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
g.interval = setInterval(g, "done", 40);
}
if (gdepth < 25) {
gdepth++;
} else {
gdepth = 0;
}
if (gtimer > 0) {
gtimer--;
}
}
};
grn = setInterval(green, 20);
rtimer = 0;
rdepth = 0;
red = function () {
if (!_root.pau) {
if (rtimer == 0) {
r = attachMovie("red", "reds" + rdepth, 290 + rdepth);
r.rvalue = random(10);
rtimer = 40;
r._x = random(395);
r._y = 1;
r.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - this.rvalue;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
r.interval = setInterval(r, "completed", 40);
}
if (rdepth < 25) {
rdepth++;
} else {
rdepth = 0;
}
if (rtimer > 0) {
rtimer--;
}
}
};
red = setInterval(red, 20);
btimer = 0;
bdepth = 0;
bounce = function () {
if (!_root.pau) {
if (time == 50) {
if (btimer == 0) {
b = attachMovie("ball_bounce", "ball_bounces" + bdepth, 190 + bdepth);
btimer = 80;
b._x = -100;
b._y = 335;
b.bounced = function () {
if (!_root.pau) {
if (this._x < 395) {
this._x = this._x + 2;
if (this.hitTest(_root.ground)) {
var _local3 = new Sound();
_local3.attachSound("");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
}
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - 40;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
b.interval = setInterval(b, "bounced", 40);
}
if (bdepth < 5) {
bdepth++;
} else {
bdepth = 0;
}
if (btimer > 0) {
btimer--;
}
}
}
};
ball = setInterval(bounce, 20);
dtimer = 0;
ddepth = 0;
dwaitforit = false;
dbl = "";
dpowerUp = function () {
if (!_root.pau) {
if (dtimer == 0) {
if ((time == 40) && (!dwaitforit)) {
d = attachMovie("double_powerup", "double_powerups" + pdepth, 210 + pdepth);
dtimer = 900;
d._x = random(395);
d._y = 1;
d.pu = function () {
doubling = false;
doubled = false;
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero) && (!doubling)) {
doubled = true;
doubling = true;
doubletimerbox = 15;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
if (doubling) {
_root.totalgvalue = 2;
if (doubled) {
dbl = "DOUBLING!";
}
}
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
}
d.interval = setInterval(d, "pu", 40);
}
if (ddepth < 25) {
ddepth++;
} else {
ddepth = 0;
}
if (dtimer > 0) {
dtimer--;
}
}
};
dpu = setInterval(dpowerUp, 20);
dscore = setInterval(scoreDouble, 20);
ptimer = 0;
pdepth = 0;
pwaitforit = false;
powerUp = function () {
if (!_root.pau) {
if (ptimer == 0) {
if ((time <= 65) && (!pwaitforit)) {
p = attachMovie("shoes", "shoess" + pdepth, 200 + pdepth);
ptimer = 1800;
p._x = random(395);
p._y = 1;
p.pass = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero)) {
this._x = _root.hero.speed++;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
p.interval = setInterval(p, "pass", 40);
}
if (pdepth < 25) {
pdepth++;
} else {
pdepth = 0;
}
if (ptimer > 0) {
ptimer--;
}
}
};
pu = setInterval(powerUp, 20);
sky.flow = function () {
this._rotation = this._rotation + 2;
};
setInterval(sky, "flow", 20);
ebtimer = 0;
ebdepth = 0;
box_die = function () {
if (!_root.pau) {
if (ebtimer == 0) {
if (time <= 55) {
eb = attachMovie("box_killer", "box_killers" + ebdepth, 700 + ebdepth);
ebtimer = 400;
eb._x = random(395);
eb._y = 1;
eb.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 3;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
_root.hero.life = _root.hero.life - 1;
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
eb.interval = setInterval(eb, "completed", 40);
}
if (ebdepth < 25) {
ebdepth++;
} else {
ebdepth = 0;
}
if (ebtimer > 0) {
ebtimer--;
}
}
};
eb = setInterval(box_die, 20);
score = 0;
besr = false;
pau = false;
hero.init = function () {
hero.speed = 5;
hero.life = 3;
hero.roll = false;
hero.facing = "right";
};
hero.movement = function () {
if (this.life <= 0) {
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
gotoAndStop (18);
}
if (!_root.pau) {
if (!this.roll) {
if (Key.isDown(80)) {
_root.paused._visible = true;
pau = true;
} else {
_root.paused._visible = false;
}
if (Key.isDown(39)) {
this._xscale = -100;
this._x = this._x + this.speed;
this.facing = "right";
this.gotoAndStop("run");
} else if (Key.isDown(37)) {
this._xscale = 100;
this._x = this._x - this.speed;
this.facing = "left";
this.gotoAndStop("run");
} else {
this.gotoAndStop("idle");
}
if (Key.isDown(68)) {
this.roll = true;
this.facing = "right";
this._xscale = -100;
this.gotoAndStop("roll");
}
if (Key.isDown(65)) {
this.roll = true;
this.facing = "left";
this._xscale = 100;
this.gotoAndStop("roll");
}
} else if (this.roll) {
if (this.facing == "right") {
this._x = this._x + this.speed;
} else {
this._x = this._x - this.speed;
}
}
}
};
her = setInterval(hero, "movement", 20);
hero.init();
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Instance of Symbol 157 MovieClip "hero" in Frame 8
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Instance of Symbol 179 MovieClip in Frame 8
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.life);
if (_root.hero.life == 0) {
_root.hero.life._visible = false;
}
}
Frame 9
stop();
stopAllSounds();
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
budtimer = 0;
buddepth = 0;
yo = false;
numBuddy = 0;
buddy = function () {
if (numBuddy >= 1) {
if (Key.isDown(32) && (!yo)) {
bud = attachMovie("hopper_space", "buddaroo" + buddepth, 400 + buddepth);
yo = true;
numBuddy = numBuddy - 1;
bud._x = 400;
bud._y = 335;
bud.jumping = function () {
if (this._x > 5) {
this._x = this._x - 2;
} else {
yo = false;
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
bud.interval = setInterval(bud, "jumping", 40);
}
if (buddepth < 10) {
buddepth++;
} else {
buddepth = 0;
}
if (budtimer > 0) {
budtimer--;
}
}
};
bdy = setInterval(buddy, 20);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Frame 10
time = 60;
bizTimer = 0;
yos = false;
beserk = false;
spacePress = false;
doubletimerbox = "";
beserK = function () {
if (!_root.pau) {
if (((numBuddy <= 0) && (!beserk)) && (!yos)) {
if (Key.isDown(32)) {
if (!spacePress) {
beserk = true;
bizTimer = 10;
yos = true;
}
yo = true;
spacePress = true;
beserk = true;
} else {
spacePress = false;
}
}
}
reduceTime = function () {
if (!_root.pau) {
if (time != 0) {
time--;
if ((doubletimerbox != 0) && (doubletimerbox != "")) {
doubletimerbox--;
}
if (bizTimer != 0) {
bizTimer--;
}
if (bizTimer <= 0) {
beserk = false;
beserkKey = 0;
}
}
if (doubletimerbox == 0) {
doubled = false;
doubling = false;
totalgvalue = 1;
dbl = "";
doubletimerbox = "";
}
if ((time == 0) && (score >= 90)) {
gotoAndStop (11);
} else if ((time == 0) && (score <= 90)) {
gotoAndStop (18);
}
}
};
};
biz = setInterval(beserK, 20);
timer = setInterval(reduceTime, 1000);
gtimer = 0;
totalgvalue = 1;
spacePress = false;
gdepth = 0;
green = function () {
if (!_root.pau) {
if (gtimer == 0) {
g = attachMovie("one", "ones" + gdepth, 240 + gdepth);
g.gvalue = random(10);
gtimer = 90;
g._x = random(395);
g._y = 1;
if (bizTimer > 0) {
var _local3 = new Sound();
_local3.attachSound("Copperhead");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
gtimer = 10;
} else if (bizTimer <= 0) {
beserkKey = beserkKey - 1;
gtimer = 75;
}
g.done = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score + (this.gvalue * _root.totalgvalue);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a = 0;
while (a < 10) {
if (this.hitTest(_root["buddaroo" + a])) {
score = score + this.gvalue;
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a++;
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
g.interval = setInterval(g, "done", 40);
}
if (gdepth < 25) {
gdepth++;
} else {
gdepth = 0;
}
if (gtimer > 0) {
gtimer--;
}
}
};
grn = setInterval(green, 20);
rtimer = 0;
rdepth = 0;
red = function () {
if (!_root.pau) {
if (rtimer == 0) {
r = attachMovie("red", "reds" + rdepth, 290 + rdepth);
r.rvalue = random(10);
rtimer = 40;
r._x = random(395);
r._y = 1;
r.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - this.rvalue;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
r.interval = setInterval(r, "completed", 40);
}
if (rdepth < 25) {
rdepth++;
} else {
rdepth = 0;
}
if (rtimer > 0) {
rtimer--;
}
}
};
red = setInterval(red, 20);
btimer = 0;
bdepth = 0;
bounce = function () {
if (!_root.pau) {
if (time == 50) {
if (btimer == 0) {
b = attachMovie("ball_bounce", "ball_bounces" + bdepth, 190 + bdepth);
btimer = 80;
b._x = -100;
b._y = 335;
b.bounced = function () {
if (!_root.pau) {
if (this._x < 395) {
this._x = this._x + 2;
if (this.hitTest(_root.ground)) {
var _local3 = new Sound();
_local3.attachSound("");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
}
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - 40;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
b.interval = setInterval(b, "bounced", 40);
}
if (bdepth < 5) {
bdepth++;
} else {
bdepth = 0;
}
if (btimer > 0) {
btimer--;
}
}
}
};
ball = setInterval(bounce, 20);
dtimer = 0;
ddepth = 0;
dwaitforit = false;
dbl = "";
dpowerUp = function () {
if (!_root.pau) {
if (dtimer == 0) {
if ((time == 40) && (!dwaitforit)) {
d = attachMovie("double_powerup", "double_powerups" + pdepth, 210 + pdepth);
dtimer = 900;
d._x = random(395);
d._y = 1;
d.pu = function () {
doubling = false;
doubled = false;
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero) && (!doubling)) {
doubled = true;
doubling = true;
doubletimerbox = 15;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
if (doubling) {
_root.totalgvalue = 2;
if (doubled) {
dbl = "DOUBLING!";
}
}
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
}
d.interval = setInterval(d, "pu", 40);
}
if (ddepth < 25) {
ddepth++;
} else {
ddepth = 0;
}
if (dtimer > 0) {
dtimer--;
}
}
};
dpu = setInterval(dpowerUp, 20);
dscore = setInterval(scoreDouble, 20);
ptimer = 0;
pdepth = 0;
pwaitforit = false;
powerUp = function () {
if (!_root.pau) {
if (ptimer == 0) {
if ((time <= 65) && (!pwaitforit)) {
p = attachMovie("shoes", "shoess" + pdepth, 200 + pdepth);
ptimer = 1800;
p._x = random(395);
p._y = 1;
p.pass = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero)) {
this._x = _root.hero.speed++;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
p.interval = setInterval(p, "pass", 40);
}
if (pdepth < 25) {
pdepth++;
} else {
pdepth = 0;
}
if (ptimer > 0) {
ptimer--;
}
}
};
pu = setInterval(powerUp, 20);
sky.flow = function () {
this._rotation = this._rotation + 2;
};
setInterval(sky, "flow", 20);
ebtimer = 0;
ebdepth = 0;
box_die = function () {
if (!_root.pau) {
if (ebtimer == 0) {
if (time <= 55) {
eb = attachMovie("box_killer", "box_killers" + ebdepth, 700 + ebdepth);
ebtimer = 400;
eb._x = random(395);
eb._y = 1;
eb.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 3;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
_root.hero.life = _root.hero.life - 1;
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
eb.interval = setInterval(eb, "completed", 40);
}
if (ebdepth < 25) {
ebdepth++;
} else {
ebdepth = 0;
}
if (ebtimer > 0) {
ebtimer--;
}
}
};
eb = setInterval(box_die, 20);
score = 0;
besr = false;
pau = false;
hero.init = function () {
hero.speed = 5;
hero.life = 3;
hero.roll = false;
hero.facing = "right";
};
hero.movement = function () {
if (this.life <= 0) {
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
gotoAndStop (18);
}
if (!_root.pau) {
if (!this.roll) {
if (Key.isDown(80)) {
_root.paused._visible = true;
pau = true;
} else {
_root.paused._visible = false;
}
if (Key.isDown(39)) {
this._xscale = -100;
this._x = this._x + this.speed;
this.facing = "right";
this.gotoAndStop("run");
} else if (Key.isDown(37)) {
this._xscale = 100;
this._x = this._x - this.speed;
this.facing = "left";
this.gotoAndStop("run");
} else {
this.gotoAndStop("idle");
}
if (Key.isDown(68)) {
this.roll = true;
this.facing = "right";
this._xscale = -100;
this.gotoAndStop("roll");
}
if (Key.isDown(65)) {
this.roll = true;
this.facing = "left";
this._xscale = 100;
this.gotoAndStop("roll");
}
} else if (this.roll) {
if (this.facing == "right") {
this._x = this._x + this.speed;
} else {
this._x = this._x - this.speed;
}
}
}
};
her = setInterval(hero, "movement", 20);
hero.init();
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Instance of Symbol 157 MovieClip "hero" in Frame 10
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Instance of Symbol 179 MovieClip in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.life);
if (_root.hero.life == 0) {
_root.hero.life._visible = false;
}
}
Frame 11
stop();
stopAllSounds();
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
budtimer = 0;
buddepth = 0;
yo = false;
numBuddy = 0;
buddy = function () {
if (numBuddy >= 1) {
if (Key.isDown(32) && (!yo)) {
bud = attachMovie("hopper_space", "buddaroo" + buddepth, 400 + buddepth);
yo = true;
numBuddy = numBuddy - 1;
bud._x = 400;
bud._y = 335;
bud.jumping = function () {
if (this._x > 5) {
this._x = this._x - 2;
} else {
yo = false;
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
bud.interval = setInterval(bud, "jumping", 40);
}
if (buddepth < 10) {
buddepth++;
} else {
buddepth = 0;
}
if (budtimer > 0) {
budtimer--;
}
}
};
bdy = setInterval(buddy, 20);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Frame 12
time = 60;
bizTimer = 0;
yos = false;
beserk = false;
spacePress = false;
doubletimerbox = "";
beserK = function () {
if (!_root.pau) {
if (((numBuddy <= 0) && (!beserk)) && (!yos)) {
if (Key.isDown(32)) {
if (!spacePress) {
beserk = true;
bizTimer = 10;
yos = true;
}
yo = true;
spacePress = true;
beserk = true;
} else {
spacePress = false;
}
}
}
reduceTime = function () {
if (!_root.pau) {
if (time != 0) {
time--;
if ((doubletimerbox != 0) && (doubletimerbox != "")) {
doubletimerbox--;
}
if (bizTimer != 0) {
bizTimer--;
}
if (bizTimer <= 0) {
beserk = false;
beserkKey = 0;
}
}
if (doubletimerbox == 0) {
doubled = false;
doubling = false;
totalgvalue = 1;
dbl = "";
doubletimerbox = "";
}
if ((time == 0) && (score >= 100)) {
gotoAndStop (13);
} else if ((time == 0) && (score <= 100)) {
gotoAndStop (18);
}
}
};
};
biz = setInterval(beserK, 20);
timer = setInterval(reduceTime, 1000);
gtimer = 0;
totalgvalue = 1;
spacePress = false;
gdepth = 0;
green = function () {
if (!_root.pau) {
if (gtimer == 0) {
g = attachMovie("one", "ones" + gdepth, 240 + gdepth);
g.gvalue = random(10);
gtimer = 55;
g._x = random(395);
g._y = 1;
if (bizTimer > 0) {
var _local3 = new Sound();
_local3.attachSound("Copperhead");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
gtimer = 10;
} else if (bizTimer <= 0) {
beserkKey = beserkKey - 1;
gtimer = 75;
}
g.done = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score + (this.gvalue * _root.totalgvalue);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a = 0;
while (a < 10) {
if (this.hitTest(_root["buddaroo" + a])) {
score = score + this.gvalue;
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a++;
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
g.interval = setInterval(g, "done", 40);
}
if (gdepth < 25) {
gdepth++;
} else {
gdepth = 0;
}
if (gtimer > 0) {
gtimer--;
}
}
};
grn = setInterval(green, 20);
rtimer = 0;
rdepth = 0;
red = function () {
if (!_root.pau) {
if (rtimer == 0) {
r = attachMovie("red", "reds" + rdepth, 290 + rdepth);
r.rvalue = random(10);
rtimer = 60;
r._x = random(395);
r._y = 1;
r.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - this.rvalue;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
r.interval = setInterval(r, "completed", 40);
}
if (rdepth < 25) {
rdepth++;
} else {
rdepth = 0;
}
if (rtimer > 0) {
rtimer--;
}
}
};
red = setInterval(red, 20);
btimer = 0;
bdepth = 0;
bounce = function () {
if (!_root.pau) {
if (time == 50) {
if (btimer == 0) {
b = attachMovie("ball_bounce", "ball_bounces" + bdepth, 190 + bdepth);
btimer = 80;
b._x = -100;
b._y = 335;
b.bounced = function () {
if (!_root.pau) {
if (this._x < 395) {
this._x = this._x + 2;
if (this.hitTest(_root.ground)) {
var _local3 = new Sound();
_local3.attachSound("");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
}
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - 40;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
b.interval = setInterval(b, "bounced", 40);
}
if (bdepth < 5) {
bdepth++;
} else {
bdepth = 0;
}
if (btimer > 0) {
btimer--;
}
}
}
};
ball = setInterval(bounce, 20);
dtimer = 0;
ddepth = 0;
dwaitforit = false;
dbl = "";
dpowerUp = function () {
if (!_root.pau) {
if (dtimer == 0) {
if ((time == 40) && (!dwaitforit)) {
d = attachMovie("double_powerup", "double_powerups" + pdepth, 210 + pdepth);
dtimer = 900;
d._x = random(395);
d._y = 1;
d.pu = function () {
doubling = false;
doubled = false;
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero) && (!doubling)) {
doubled = true;
doubling = true;
doubletimerbox = 15;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
if (doubling) {
_root.totalgvalue = 2;
if (doubled) {
dbl = "DOUBLING!";
}
}
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
}
d.interval = setInterval(d, "pu", 40);
}
if (ddepth < 25) {
ddepth++;
} else {
ddepth = 0;
}
if (dtimer > 0) {
dtimer--;
}
}
};
dpu = setInterval(dpowerUp, 20);
dscore = setInterval(scoreDouble, 20);
ptimer = 0;
pdepth = 0;
pwaitforit = false;
powerUp = function () {
if (!_root.pau) {
if (ptimer == 0) {
if ((time <= 65) && (!pwaitforit)) {
p = attachMovie("shoes", "shoess" + pdepth, 200 + pdepth);
ptimer = 1800;
p._x = random(395);
p._y = 1;
p.pass = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero)) {
this._x = _root.hero.speed++;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
p.interval = setInterval(p, "pass", 40);
}
if (pdepth < 25) {
pdepth++;
} else {
pdepth = 0;
}
if (ptimer > 0) {
ptimer--;
}
}
};
pu = setInterval(powerUp, 20);
sky.flow = function () {
this._rotation = this._rotation + 2;
};
setInterval(sky, "flow", 20);
ebtimer = 0;
ebdepth = 0;
box_die = function () {
if (!_root.pau) {
if (ebtimer == 0) {
if (time <= 55) {
eb = attachMovie("box_killer", "box_killers" + ebdepth, 700 + ebdepth);
ebtimer = 400;
eb._x = random(395);
eb._y = 1;
eb.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 3;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
_root.hero.life = _root.hero.life - 1;
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
eb.interval = setInterval(eb, "completed", 40);
}
if (ebdepth < 25) {
ebdepth++;
} else {
ebdepth = 0;
}
if (ebtimer > 0) {
ebtimer--;
}
}
};
eb = setInterval(box_die, 20);
score = 0;
besr = false;
pau = false;
hero.init = function () {
hero.speed = 5;
hero.life = 3;
hero.roll = false;
hero.facing = "right";
};
hero.movement = function () {
if (this.life <= 0) {
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
gotoAndStop (18);
}
if (!_root.pau) {
if (!this.roll) {
if (Key.isDown(80)) {
_root.paused._visible = true;
pau = true;
} else {
_root.paused._visible = false;
}
if (Key.isDown(39)) {
this._xscale = -100;
this._x = this._x + this.speed;
this.facing = "right";
this.gotoAndStop("run");
} else if (Key.isDown(37)) {
this._xscale = 100;
this._x = this._x - this.speed;
this.facing = "left";
this.gotoAndStop("run");
} else {
this.gotoAndStop("idle");
}
if (Key.isDown(68)) {
this.roll = true;
this.facing = "right";
this._xscale = -100;
this.gotoAndStop("roll");
}
if (Key.isDown(65)) {
this.roll = true;
this.facing = "left";
this._xscale = 100;
this.gotoAndStop("roll");
}
} else if (this.roll) {
if (this.facing == "right") {
this._x = this._x + this.speed;
} else {
this._x = this._x - this.speed;
}
}
}
};
her = setInterval(hero, "movement", 20);
hero.init();
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Instance of Symbol 157 MovieClip "hero" in Frame 12
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Instance of Symbol 179 MovieClip in Frame 12
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.life);
if (_root.hero.life == 0) {
_root.hero.life._visible = false;
}
}
Frame 13
stop();
stopAllSounds();
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
budtimer = 0;
buddepth = 0;
yo = false;
numBuddy = 0;
buddy = function () {
if (numBuddy >= 1) {
if (Key.isDown(32) && (!yo)) {
bud = attachMovie("hopper_space", "buddaroo" + buddepth, 400 + buddepth);
yo = true;
numBuddy = numBuddy - 1;
bud._x = 400;
bud._y = 335;
bud.jumping = function () {
if (this._x > 5) {
this._x = this._x - 2;
} else {
yo = false;
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
bud.interval = setInterval(bud, "jumping", 40);
}
if (buddepth < 10) {
buddepth++;
} else {
buddepth = 0;
}
if (budtimer > 0) {
budtimer--;
}
}
};
bdy = setInterval(buddy, 20);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Frame 14
time = 60;
bizTimer = 0;
yos = false;
beserk = false;
spacePress = false;
doubletimerbox = "";
beserK = function () {
if (!_root.pau) {
if (((numBuddy <= 0) && (!beserk)) && (!yos)) {
if (Key.isDown(32)) {
if (!spacePress) {
beserk = true;
bizTimer = 10;
yos = true;
}
yo = true;
spacePress = true;
beserk = true;
} else {
spacePress = false;
}
}
}
reduceTime = function () {
if (!_root.pau) {
if (time != 0) {
time--;
if ((doubletimerbox != 0) && (doubletimerbox != "")) {
doubletimerbox--;
}
if (bizTimer != 0) {
bizTimer--;
}
if (bizTimer <= 0) {
beserk = false;
beserkKey = 0;
}
}
if (doubletimerbox == 0) {
doubled = false;
doubling = false;
totalgvalue = 1;
dbl = "";
doubletimerbox = "";
}
if ((time == 0) && (score >= 125)) {
gotoAndStop (15);
} else if ((time == 0) && (score <= 125)) {
gotoAndStop (18);
}
}
};
};
biz = setInterval(beserK, 20);
timer = setInterval(reduceTime, 1000);
gtimer = 0;
totalgvalue = 1;
spacePress = false;
gdepth = 0;
green = function () {
if (!_root.pau) {
if (gtimer == 0) {
g = attachMovie("one", "ones" + gdepth, 240 + gdepth);
g.gvalue = random(10);
gtimer = 45;
g._x = random(395);
g._y = 1;
if (bizTimer > 0) {
var _local3 = new Sound();
_local3.attachSound("Copperhead");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
gtimer = 10;
} else if (bizTimer <= 0) {
beserkKey = beserkKey - 1;
gtimer = 75;
}
g.done = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score + (this.gvalue * _root.totalgvalue);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a = 0;
while (a < 10) {
if (this.hitTest(_root["buddaroo" + a])) {
score = score + this.gvalue;
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a++;
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
g.interval = setInterval(g, "done", 40);
}
if (gdepth < 25) {
gdepth++;
} else {
gdepth = 0;
}
if (gtimer > 0) {
gtimer--;
}
}
};
grn = setInterval(green, 20);
rtimer = 0;
rdepth = 0;
red = function () {
if (!_root.pau) {
if (rtimer == 0) {
r = attachMovie("red", "reds" + rdepth, 290 + rdepth);
r.rvalue = random(10);
rtimer = 40;
r._x = random(395);
r._y = 1;
r.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - this.rvalue;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
r.interval = setInterval(r, "completed", 40);
}
if (rdepth < 25) {
rdepth++;
} else {
rdepth = 0;
}
if (rtimer > 0) {
rtimer--;
}
}
};
red = setInterval(red, 20);
btimer = 0;
bdepth = 0;
bounce = function () {
if (!_root.pau) {
if (time == 50) {
if (btimer == 0) {
b = attachMovie("ball_bounce", "ball_bounces" + bdepth, 190 + bdepth);
btimer = 80;
b._x = -100;
b._y = 335;
b.bounced = function () {
if (!_root.pau) {
if (this._x < 395) {
this._x = this._x + 2;
if (this.hitTest(_root.ground)) {
var _local3 = new Sound();
_local3.attachSound("");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
}
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - 40;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
b.interval = setInterval(b, "bounced", 40);
}
if (bdepth < 5) {
bdepth++;
} else {
bdepth = 0;
}
if (btimer > 0) {
btimer--;
}
}
}
};
ball = setInterval(bounce, 20);
dtimer = 0;
ddepth = 0;
dwaitforit = false;
dbl = "";
dpowerUp = function () {
if (!_root.pau) {
if (dtimer == 0) {
if ((time == 40) && (!dwaitforit)) {
d = attachMovie("double_powerup", "double_powerups" + pdepth, 210 + pdepth);
dtimer = 900;
d._x = random(395);
d._y = 1;
d.pu = function () {
doubling = false;
doubled = false;
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero) && (!doubling)) {
doubled = true;
doubling = true;
doubletimerbox = 15;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
if (doubling) {
_root.totalgvalue = 2;
if (doubled) {
dbl = "DOUBLING!";
}
}
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
}
d.interval = setInterval(d, "pu", 40);
}
if (ddepth < 25) {
ddepth++;
} else {
ddepth = 0;
}
if (dtimer > 0) {
dtimer--;
}
}
};
dpu = setInterval(dpowerUp, 20);
dscore = setInterval(scoreDouble, 20);
ptimer = 0;
pdepth = 0;
pwaitforit = false;
powerUp = function () {
if (!_root.pau) {
if (ptimer == 0) {
if ((time <= 65) && (!pwaitforit)) {
p = attachMovie("shoes", "shoess" + pdepth, 200 + pdepth);
ptimer = 1800;
p._x = random(395);
p._y = 1;
p.pass = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero)) {
this._x = _root.hero.speed++;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
p.interval = setInterval(p, "pass", 40);
}
if (pdepth < 25) {
pdepth++;
} else {
pdepth = 0;
}
if (ptimer > 0) {
ptimer--;
}
}
};
pu = setInterval(powerUp, 20);
sky.flow = function () {
this._rotation = this._rotation + 2;
};
setInterval(sky, "flow", 20);
ebtimer = 0;
ebdepth = 0;
box_die = function () {
if (!_root.pau) {
if (ebtimer == 0) {
if (time <= 55) {
eb = attachMovie("box_killer", "box_killers" + ebdepth, 700 + ebdepth);
ebtimer = 400;
eb._x = random(395);
eb._y = 1;
eb.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 3;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
_root.hero.life = _root.hero.life - 1;
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
eb.interval = setInterval(eb, "completed", 40);
}
if (ebdepth < 25) {
ebdepth++;
} else {
ebdepth = 0;
}
if (ebtimer > 0) {
ebtimer--;
}
}
};
eb = setInterval(box_die, 20);
score = 0;
besr = false;
pau = false;
hero.init = function () {
hero.speed = 5;
hero.life = 3;
hero.roll = false;
hero.facing = "right";
};
hero.movement = function () {
if (this.life <= 0) {
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
gotoAndStop (18);
}
if (!_root.pau) {
if (!this.roll) {
if (Key.isDown(80)) {
_root.paused._visible = true;
pau = true;
} else {
_root.paused._visible = false;
}
if (Key.isDown(39)) {
this._xscale = -100;
this._x = this._x + this.speed;
this.facing = "right";
this.gotoAndStop("run");
} else if (Key.isDown(37)) {
this._xscale = 100;
this._x = this._x - this.speed;
this.facing = "left";
this.gotoAndStop("run");
} else {
this.gotoAndStop("idle");
}
if (Key.isDown(68)) {
this.roll = true;
this.facing = "right";
this._xscale = -100;
this.gotoAndStop("roll");
}
if (Key.isDown(65)) {
this.roll = true;
this.facing = "left";
this._xscale = 100;
this.gotoAndStop("roll");
}
} else if (this.roll) {
if (this.facing == "right") {
this._x = this._x + this.speed;
} else {
this._x = this._x - this.speed;
}
}
}
};
her = setInterval(hero, "movement", 20);
hero.init();
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Instance of Symbol 157 MovieClip "hero" in Frame 14
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Instance of Symbol 179 MovieClip in Frame 14
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.life);
if (_root.hero.life == 0) {
_root.hero.life._visible = false;
}
}
Frame 15
stop();
stopAllSounds();
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
budtimer = 0;
buddepth = 0;
yo = false;
numBuddy = 0;
buddy = function () {
if (numBuddy >= 1) {
if (Key.isDown(32) && (!yo)) {
bud = attachMovie("hopper_space", "buddaroo" + buddepth, 400 + buddepth);
yo = true;
numBuddy = numBuddy - 1;
bud._x = 400;
bud._y = 335;
bud.jumping = function () {
if (this._x > 5) {
this._x = this._x - 2;
} else {
yo = false;
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
bud.interval = setInterval(bud, "jumping", 40);
}
if (buddepth < 10) {
buddepth++;
} else {
buddepth = 0;
}
if (budtimer > 0) {
budtimer--;
}
}
};
bdy = setInterval(buddy, 20);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Frame 16
time = 60;
bizTimer = 0;
yos = false;
beserk = false;
spacePress = false;
doubletimerbox = "";
beserK = function () {
if (!_root.pau) {
if (numBuddy <= 0) {
if (Key.isDown(32)) {
if (!spacePress) {
bizTimer = 10;
spacePress = true;
}
} else {
spacePress = false;
}
}
}
reduceTime = function () {
if (!_root.pau) {
if (time != 0) {
time--;
if ((doubletimerbox != 0) && (doubletimerbox != "")) {
doubletimerbox--;
}
if (bizTimer != 0) {
bizTimer--;
}
if (bizTimer <= 0) {
beserk = false;
beserkKey = 0;
}
}
if (doubletimerbox == 0) {
doubled = false;
doubling = false;
totalgvalue = 1;
dbl = "";
doubletimerbox = "";
}
if ((time == 0) && (score >= 150)) {
gotoAndStop (17);
} else if ((time == 0) && (score <= 150)) {
gotoAndStop (18);
}
}
};
};
biz = setInterval(beserK, 20);
timer = setInterval(reduceTime, 1000);
gtimer = 0;
totalgvalue = 1;
spacePress = false;
gdepth = 0;
green = function () {
if (!_root.pau) {
if (gtimer == 0) {
g = attachMovie("one", "ones" + gdepth, 240 + gdepth);
g.gvalue = random(10);
gtimer = 40;
g._x = random(395);
g._y = 1;
if (bizTimer > 0) {
var _local3 = new Sound();
_local3.attachSound("Copperhead");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
gtimer = 10;
} else if (bizTimer <= 0) {
beserkKey = beserkKey - 1;
gtimer = 75;
}
g.done = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score + (this.gvalue * _root.totalgvalue);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a = 0;
while (a < 10) {
if (this.hitTest(_root["buddaroo" + a])) {
score = score + this.gvalue;
var _local3 = new Sound();
_local3.attachSound("print");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
a++;
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
g.interval = setInterval(g, "done", 40);
}
if (gdepth < 25) {
gdepth++;
} else {
gdepth = 0;
}
if (gtimer > 0) {
gtimer--;
}
}
};
grn = setInterval(green, 20);
rtimer = 0;
rdepth = 0;
red = function () {
if (!_root.pau) {
if (rtimer == 0) {
r = attachMovie("red", "reds" + rdepth, 290 + rdepth);
r.rvalue = random(10);
rtimer = 35;
r._x = random(395);
r._y = 1;
r.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - this.rvalue;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
r.interval = setInterval(r, "completed", 40);
}
if (rdepth < 25) {
rdepth++;
} else {
rdepth = 0;
}
if (rtimer > 0) {
rtimer--;
}
}
};
red = setInterval(red, 20);
btimer = 0;
bdepth = 0;
bounce = function () {
if (!_root.pau) {
if (time == 50) {
if (btimer == 0) {
b = attachMovie("ball_bounce", "ball_bounces" + bdepth, 190 + bdepth);
btimer = 80;
b._x = -100;
b._y = 335;
b.bounced = function () {
if (!_root.pau) {
if (this._x < 395) {
this._x = this._x + 2;
if (this.hitTest(_root.ground)) {
var _local3 = new Sound();
_local3.attachSound("");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
}
if (this.hitTest(_root.hero)) {
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
score = score - 40;
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
b.interval = setInterval(b, "bounced", 40);
}
if (bdepth < 5) {
bdepth++;
} else {
bdepth = 0;
}
if (btimer > 0) {
btimer--;
}
}
}
};
ball = setInterval(bounce, 20);
dtimer = 0;
ddepth = 0;
dwaitforit = false;
dbl = "";
dpowerUp = function () {
if (!_root.pau) {
if (dtimer == 0) {
if ((time == 40) && (!dwaitforit)) {
d = attachMovie("double_powerup", "double_powerups" + pdepth, 210 + pdepth);
dtimer = 900;
d._x = random(395);
d._y = 1;
d.pu = function () {
doubling = false;
doubled = false;
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero) && (!doubling)) {
doubled = true;
doubling = true;
doubletimerbox = 15;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
if (doubling) {
_root.totalgvalue = 2;
if (doubled) {
dbl = "DOUBLING!";
}
}
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
};
}
d.interval = setInterval(d, "pu", 40);
}
if (ddepth < 25) {
ddepth++;
} else {
ddepth = 0;
}
if (dtimer > 0) {
dtimer--;
}
}
};
dpu = setInterval(dpowerUp, 20);
dscore = setInterval(scoreDouble, 20);
ptimer = 0;
pdepth = 0;
pwaitforit = false;
powerUp = function () {
if (!_root.pau) {
if (ptimer == 0) {
if ((time <= 65) && (!pwaitforit)) {
p = attachMovie("shoes", "shoess" + pdepth, 200 + pdepth);
ptimer = 1800;
p._x = random(395);
p._y = 1;
p.pass = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 5;
if (this.hitTest(_root.hero)) {
this._x = _root.hero.speed++;
var _local3 = new Sound();
_local3.attachSound("redsfx");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
p.interval = setInterval(p, "pass", 40);
}
if (pdepth < 25) {
pdepth++;
} else {
pdepth = 0;
}
if (ptimer > 0) {
ptimer--;
}
}
};
pu = setInterval(powerUp, 20);
sky.flow = function () {
this._rotation = this._rotation + 2;
};
setInterval(sky, "flow", 20);
ebtimer = 0;
ebdepth = 0;
box_die = function () {
if (!_root.pau) {
if (ebtimer == 0) {
if (time <= 55) {
eb = attachMovie("box_killer", "box_killers" + ebdepth, 700 + ebdepth);
ebtimer = 400;
eb._x = random(395);
eb._y = 1;
eb.completed = function () {
if (!_root.pau) {
if (this._y < 395) {
this._y = this._y + 3;
this._rotation = this._rotation + 3;
if (this.hitTest(_root.hero)) {
_root.hero.life = _root.hero.life - 1;
var _local3 = new Sound();
_local3.attachSound("BONK");
_local3.start(0, 0);
_local3.setPan(0);
_local3.setVolume(100);
clearInterval(this.interval);
this.removeMovieClip(this);
}
} else {
clearInterval(this.interval);
this.removeMovieClip(this);
}
}
};
}
eb.interval = setInterval(eb, "completed", 40);
}
if (ebdepth < 25) {
ebdepth++;
} else {
ebdepth = 0;
}
if (ebtimer > 0) {
ebtimer--;
}
}
};
eb = setInterval(box_die, 20);
score = 0;
besr = false;
pau = false;
hero.init = function () {
hero.speed = 5;
hero.life = 3;
hero.roll = false;
hero.facing = "right";
};
hero.movement = function () {
if (this.life <= 0) {
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
gotoAndStop (18);
}
if (!_root.pau) {
if (!this.roll) {
if (Key.isDown(80)) {
_root.paused._visible = true;
pau = true;
} else {
_root.paused._visible = false;
}
if (Key.isDown(39)) {
this._xscale = -100;
this._x = this._x + this.speed;
this.facing = "right";
this.gotoAndStop("run");
} else if (Key.isDown(37)) {
this._xscale = 100;
this._x = this._x - this.speed;
this.facing = "left";
this.gotoAndStop("run");
} else {
this.gotoAndStop("idle");
}
if (Key.isDown(68)) {
this.roll = true;
this.facing = "right";
this._xscale = -100;
this.gotoAndStop("roll");
}
if (Key.isDown(65)) {
this.roll = true;
this.facing = "left";
this._xscale = 100;
this.gotoAndStop("roll");
}
} else if (this.roll) {
if (this.facing == "right") {
this._x = this._x + this.speed;
} else {
this._x = this._x - this.speed;
}
}
}
};
her = setInterval(hero, "movement", 20);
hero.init();
buddyKey = function () {
if (numBuddy >= 1) {
bk = attachMovie("buddy_key", "budds" + bkdepth, 440 + bkdepth);
bk.attatching = function () {
bk._y = 375;
bk._x = 40;
};
}
bk.gotoAndStop(numBuddy);
if (numBuddy == 0) {
bk._visible = false;
}
bk.interval = setInterval(bk, "attatching", 20);
};
bks = setInterval(buddyKey, 20);
Instance of Symbol 157 MovieClip "hero" in Frame 16
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Instance of Symbol 179 MovieClip in Frame 16
onClipEvent (enterFrame) {
gotoAndStop(_root.hero.life);
if (_root.hero.life == 0) {
_root.hero.life._visible = false;
}
}
Frame 17
stop();
stopAllSounds();
Frame 18
stopAllSounds();
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
Frame 19
stop();
stopAllSounds();
stopAllSounds();
clearInterval(timer);
clearInterval(grn);
clearInterval(red);
clearInterval(ball);
clearInterval(dscore);
clearInterval(pu);
clearInterval(sky);
clearInterval(eb);
clearInterval(her);
Symbol 78 MovieClip Frame 1
_root.stop();
pl = (al = 0);
update = function () {
pl = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
al = al + ((pl - al) * 0.05);
bL = (Math.floor(_root.getBytesLoaded() / 1000000) + ".") + Math.round((_root.getBytesLoaded() - (Math.floor(_root.getBytesLoaded() / 1000000) * 1000000)) / 10000);
bT = (Math.floor(_root.getBytesTotal() / 1000000) + ".") + Math.round((_root.getBytesTotal() - (Math.floor(_root.getBytesTotal() / 1000000) * 1000000)) / 10000);
text = ((((bL + " mB / ") + bT) + " mB - [ ") + Math.round(pl)) + "% ] ";
loadingBar._xscale = al;
if (pl == 100) {
_root.gotoAndStop(2);
}
};
onEnterFrame = update;
Symbol 95 Button
on (release) {
getURL ("http://www.fluidanims.com", "_blank");
}
Symbol 100 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 103 MovieClip Frame 60
stop();
Symbol 105 MovieClip Frame 1
_root.stop();
Symbol 105 MovieClip Frame 200
_root.play();
_root.gotoAndStop(3);
Symbol 109 Button
on (release) {
gotoAndStop (19);
}
Symbol 116 Button
on (release) {
joe = true;
_root.instructions._visible = true;
}
Symbol 118 Button
on (release) {
getURL ("http://www.fluidanims.com", "_blank");
}
Symbol 120 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 147 MovieClip Frame 25
_parent.roll = false;
Symbol 156 MovieClip Frame 1
_parent.ducking = false;
Symbol 157 MovieClip Frame 6
stop();
Symbol 157 MovieClip Frame 13
stop();
Symbol 157 MovieClip Frame 20
stop();
Symbol 157 MovieClip Frame 27
stop();
Symbol 168 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 190 Button
on (release) {
_root.paused._visible = false;
_root.pau = false;
}
Symbol 195 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 207 Button
on (release) {
numBuddy = 3;
gotoAndStop (6);
}
Symbol 212 Button
on (release) {
beserkKey = 1;
besr = true;
gotoAndStop (6);
}
Symbol 223 Button
on (release) {
numBuddy = 3;
gotoAndStop (8);
}
Symbol 224 Button
on (release) {
beserkKey = 1;
besr = true;
gotoAndStop (8);
}
Symbol 233 Button
on (release) {
numBuddy = 3;
gotoAndStop (10);
}
Symbol 234 Button
on (release) {
beserkKey = 1;
besr = true;
gotoAndStop (9);
}
Symbol 243 Button
on (release) {
numBuddy = 3;
gotoAndStop (12);
}
Symbol 244 Button
on (release) {
beserkKey = 1;
besr = true;
gotoAndStop (12);
}
Symbol 255 Button
on (release) {
numBuddy = 3;
gotoAndStop (14);
}
Symbol 256 Button
on (release) {
beserkKey = 1;
besr = true;
gotoAndStop (14);
}
Symbol 265 Button
on (release) {
numBuddy = 3;
gotoAndStop (16);
}
Symbol 266 Button
on (release) {
beserkKey = 1;
besr = true;
gotoAndStop (16);
}
Symbol 282 MovieClip Frame 70
stop();
Symbol 334 Button
on (release) {
_root.gotoAndStop(1);
}
Symbol 335 MovieClip Frame 51
stop();
Symbol 344 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 359 MovieClip Frame 1
if (_root.green._y < 395) {
_root.green._y = _root.green._y + 5;
_root.green._rotation = _root.green._rotation + 3;
}
Instance of Symbol 157 MovieClip "hero" in Symbol 359 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Instance of Symbol 157 MovieClip "hero" in Symbol 359 MovieClip Frame 80
onClipEvent (enterFrame) {
if (_x > Stage.width) {
_x = 0;
}
if (_x < 0) {
_x = Stage.width;
}
}
Symbol 359 MovieClip Frame 964
_root.gotoAndStop(4);