Frame 1
stop();
Instance of Symbol 44 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
if (loaded == total) {
_root.play();
}
progress = loaded / total;
progress = progress * 100;
loadingBar._xscale = progress;
progress = Math.round(progress);
progress = progress + "%";
}
Frame 2
Frame 3
_root.savedata = SharedObject.getLocal("beeku1-savedata/sharedObject");
_root.hiscore = 0;
if (_root.savedata.data.exists != null) {
_root.hiscore = _root.savedata.data.hiscore;
}
MovieClip.prototype.colorTransform = function (_ra, _rb, _ga, _gb, _ba, _bb, _aa, _ab) {
var _local2 = new Color(this);
var _local3 = {ra:_ra, rb:_rb, ga:_ga, gb:_gb, ba:_ba, bb:_bb, aa:_aa, ab:_ab};
_local2.setTransform(_local3);
};
_root.gotoMenu = function () {
gotoAndStop (28);
};
_root.fade = function () {
_root.attachMovie("fadeout", "fadeout", 1000);
};
_root.flash = function () {
_root.attachMovie("flashA", "flashASA", 1000);
};
_root.flashDeath = function () {
_root.attachMovie("flashB", "flashB", 1000);
};
_root.heart = new Sound(this);
_root.heart.attachSound("heartbeat");
_root.squish = new Sound(this);
_root.squish.attachSound("squish.wav");
_root.gob = new Sound(this);
_root.gob.attachSound("gob.wav");
_root.clip = new Sound(this);
_root.clip.attachSound("loadclip");
gotoAndPlay ("end_init");
Frame 27
gotoAndPlay (60);
Frame 28
_root.flash();
this.hiscore_t.text = _root.hiscore;
this.hiscore_s.text = _root.hiscore;
_root.musicon = true;
stop();
Frame 57
this.clip.stop();
Frame 58
_root.score = 0;
_root.framerate = 34;
_root.slomo = 1;
_root.dead = false;
_root.win = false;
_root.combos = 0;
this.playfield.attachMovie("level1", "level", 0);
stop();
Instance of Symbol 458 MovieClip "backparallax" in Frame 58
onClipEvent (load) {
this.fullx = -46.1;
this.fully = -16;
}
Instance of Symbol 470 MovieClip "stats" in Frame 58
onClipEvent (load) {
this.health = 0;
this.ammo = 0;
}
onClipEvent (enterFrame) {
this.health_label.text = this.health;
this.ammo_label.text = this.ammo;
_root.ammo = this.ammo;
if (this.health > 0) {
_root.healthscore = this.health;
}
}
Instance of Symbol 472 MovieClip "slomo_controller" in Frame 58
onClipEvent (load) {
this._visible = false;
this.timer = -1;
this.startSlomo = function (t) {
this.timer = t;
_root.heart.start(0, 1000);
_root.music_controller.clip.setVolume(0);
_root.music_controller2.clip.setVolume(0);
_root.effect_controller.squish.setVolume(0);
_root.gun_controller.gun.setVolume(0);
_root.attachMovie("SlowItDown", "SlowText", 100);
_root.SlowText._y = 107.5;
_root.SlowText._x = -75;
};
}
onClipEvent (enterFrame) {
this.timer--;
if (this.timer == 0) {
_root.slomo = 1;
_root.heart.stop();
_root.effect_controller.squish.setVolume(100);
_root.gun_controller.gun.setVolume(100);
_root.music_controller.clip.setVolume(50);
_root.music_controller2.clip.setVolume(110);
}
if (_root.kick > 1) {
_root.KickBanner.play();
_root.combos++;
if (_root.combos > 2) {
_root.super_icon._visible = true;
_root.combos = 0;
}
}
if (_root.dead) {
_root.music_controller.clip.stop();
_root.music_controller2.clip.stop();
_root.effect_controller.squish.stop();
_root.gun_controller.gun.stop();
_root.play();
}
if (_root.score < 0) {
_root.score = 0;
}
_root.score_t.text = _root.score;
_root.score_s.text = _root.score;
}
Instance of Symbol 472 MovieClip "music_controller" in Frame 58
onClipEvent (load) {
this._visible = false;
if (_root.musicon) {
this.clip = new Sound(this);
this.clip.attachSound("Earthquake.mp3");
this.clip.setVolume(50);
}
}
onClipEvent (enterFrame) {
}
Instance of Symbol 472 MovieClip "effect_controller" in Frame 58
onClipEvent (load) {
this._visible = false;
this.heart = new Sound(this);
this.heart.attachSound("heartbeat");
this.squish = new Sound(this);
this.squish.attachSound("squish.wav");
this.gob = new Sound(this);
this.gob.attachSound("gob.wav");
this.clip = new Sound(this);
this.clip.attachSound("loadclip");
this.owww = new Sound(this);
this.owww.attachSound("owww.wav");
this.yum = new Sound(this);
this.yum.attachSound("yumyum.wav");
this.powerup = new Sound(this);
this.powerup.attachSound("powerup.wav");
this.wee = new Sound(this);
this.wee.attachSound("squishwe.wav");
this.jump = new Sound(this);
this.jump.attachSound("BOUNCED");
}
onClipEvent (enterFrame) {
}
Instance of Symbol 472 MovieClip "gun_controller" in Frame 58
onClipEvent (load) {
this._visible = false;
this.gun = new Sound(this);
this.gun.attachSound("mgun");
}
onClipEvent (enterFrame) {
}
Instance of Symbol 475 MovieClip "slomo_icon" in Frame 58
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 472 MovieClip "music_controller2" in Frame 58
onClipEvent (load) {
this._visible = false;
if (_root.musicon) {
this.clip = new Sound(this);
this.clip.attachSound("beekuboss.wav");
this.clip.setVolume(110);
}
}
onClipEvent (enterFrame) {
}
Instance of Symbol 516 MovieClip "super_icon" in Frame 58
onClipEvent (load) {
this._visible = false;
}
Frame 59
this.clip = new Sound(this);
this.clip.attachSound("NoWork");
this.clip.start();
_root.flash();
if (_root.win) {
gotoAndStop (1399);
}
stop();
Frame 60
this.clip = new Sound(this);
this.clip.attachSound("NoWork");
this.clip.start();
Frame 1398
gotoAndStop (28);
Frame 1399
if (!_root.dead) {
gotoAndStop (28);
} else {
play();
}
Frame 1458
this.health_t.text = _root.healthscore * 100;
this.health_s.text = _root.healthscore * 100;
this.ammo_t.text = _root.ammo * 10;
this.ammo_s.text = _root.ammo * 10;
Frame 1459
_root.flash();
Frame 1468
this.health_t.text = _root.healthscore * 100;
this.health_s.text = _root.healthscore * 100;
this.ammo_t.text = _root.ammo * 10;
this.ammo_s.text = _root.ammo * 10;
Frame 1469
_root.flash();
Frame 1478
this.health_t.text = _root.healthscore * 100;
this.health_s.text = _root.healthscore * 100;
this.ammo_t.text = _root.ammo * 10;
this.ammo_s.text = _root.ammo * 10;
this.score_t.text = (_root.score + (_root.healthscore * 100)) + (_root.ammo * 10);
this.score_s.text = (_root.score + (_root.healthscore * 100)) + (_root.ammo * 10);
if (((_root.score + (_root.healthscore * 100)) + (_root.ammo * 10)) > _root.hiscore) {
_root.hiscore = (_root.score + (_root.healthscore * 100)) + (_root.ammo * 10);
_root.savedata.data.hiscore = _root.hiscore;
_root.savedata.data.exists = true;
_root.savedata.flush();
}
Frame 1479
_root.flash();
stop();
Frame 1480
stop();
Symbol 6 MovieClip [splash] Frame 13
removeMovieClip(this);
Symbol 8 MovieClip [goo4] Frame 1
#initclip 12
Object.registerClass("goo4", Particle);
#endinitclip
this.init = function () {
mass = 0.35;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 10 MovieClip [goo3] Frame 1
#initclip 8
Object.registerClass("goo3", Particle);
#endinitclip
this.init = function () {
mass = 0.35;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 12 MovieClip [goo2] Frame 1
#initclip 9
Object.registerClass("goo2", Particle);
#endinitclip
this.init = function () {
mass = 0.35;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 14 MovieClip [goo1] Frame 1
#initclip 10
Object.registerClass("goo1", Particle);
#endinitclip
this.init = function () {
mass = 0.35;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 17 MovieClip [FadeOut] Frame 1
play();
Symbol 17 MovieClip [FadeOut] Frame 30
stop();
Symbol 20 MovieClip [flashA] Frame 1
play();
Symbol 20 MovieClip [flashA] Frame 8
this.removeMovieClip();
Symbol 21 MovieClip [flashB] Frame 1
play();
Symbol 21 MovieClip [flashB] Frame 4
this.removeMovieClip();
Symbol 26 MovieClip [SlowItDown] Frame 41
this.removeMovieClip();
Symbol 28 MovieClip Frame 1
_visible = false;
Symbol 29 MovieClip [Dummy] Frame 1
#initclip 11
Object.registerClass("Dummy", Character);
#endinitclip
this.init = function () {
mass = 1.5;
jumpPower = 0;
health = 75;
enable = false;
this.gotoAndStop(2);
this.white = false;
this.hitvalue = 1;
this.bitetimer = 6 / _root.slomo;
this.gg = 0;
};
this.controlWalk = function () {
this.testHitPlayer();
this.testHit();
};
this.controlFly = function () {
this.testHitPlayer();
this.testHit();
};
this.testHit = function () {
if (this.bounding_box.hitTest(level.player.bullet)) {
_parent.roach.gotoAndStop(4);
f = "sp" + String(this.gg++);
this.attachMovie("splash", f, 500 + this.gg);
this[f]._xscale = 40;
this[f]._yscale = 40;
this[f]._x = (-20 + (Math.random() * 40)) + 25;
this[f]._y = (-20 + (Math.random() * 40)) + 14;
if (gg > 100) {
gg = 0;
}
health = health - this.hitvalue;
x_thrust = 0;
}
};
this.spawnGibs = function () {
point = new Object();
point.x = this.gib_point._x;
point.y = this.gib_point._y;
point1 = new Object();
point1.x = (point.x + (Math.random() * 12)) - 6;
point1.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_1", point1);
point2 = new Object();
point2.x = (point.x + (Math.random() * 12)) - 6;
point2.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_2", point2);
point3 = new Object();
point3.x = (point.x + (Math.random() * 12)) - 6;
point3.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_3", point3);
if (Math.random() < 0.2) {
point4 = new Object();
point4.x = (point.x + (Math.random() * 8)) - 4;
point4.y = (point.y + (Math.random() * 12)) - 16;
g = level.addParticle(this, "Power_Slomo", point4);
}
point.x = point.x + ((Math.random() * 10) - 5);
point.y = point.y + 120;
level.setExplosion(this, point, 55, 530);
level.shake = level.shake + 32;
_root.flashDeath();
};
this.testHitPlayer = function () {
if (this.bounding_box.hitTest(level.player.bounding_box) && (_visible)) {
this.bitetimer = this.bitetimer - 1;
if ((this.bitetimer < 1) && (level.player.invincibility < 0)) {
level.player.gotoAndStop(6);
this.bitetimer = 6 / _root.slomo;
level.player.health = level.player.health - 50;
level.player.setInvincible();
}
}
};
stop();
Symbol 569 MovieClip [__Packages.Entity] Frame 0
class Entity extends MovieClip
{
var inted, level, maxTol, x_thrust, y_thrust, x_velocity, y_velocity, x_physics, _x, y_physics, _y, init, timeStep, control, lastExplosion, collisionmode, mass;
function Entity () {
super();
inted = false;
level = _root.level;
maxTol = 6.66666666666667E-5;
x_thrust = 0;
y_thrust = 0;
x_velocity = 0;
y_velocity = 0;
x_physics = new Integrator(_x, x_velocity, x_thrust);
y_physics = new Integrator(_y, y_velocity, y_thrust);
}
function onEnterFrame() {
if (!inted) {
init();
inted = true;
}
timeStep = (1 / _root.framerate) * _root.slomo;
control(timeStep);
if ((level.explosion != undefined) && (lastExplosion <= level.explosion.id)) {
collisionmode = fly_mode;
explode(level.explosion, level.explosion.power, level.explosion.radius, 1);
lastExplosion = level.explosion.id;
}
}
function applyForces(dt) {
var _local2 = y_thrust + (level.gravity * mass);
x_physics.setVDT(_x, x_velocity, x_thrust);
y_physics.setVDT(_y, y_velocity, _local2);
x_physics.tick(dt, mass, level.damp);
y_physics.tick(dt, mass, level.damp);
x_velocity = x_physics.v;
y_velocity = y_physics.v;
_x = x_physics.s;
_y = y_physics.s;
}
function impulse(pos, power, im) {
r_velocity = r_velocity + ((Math.random() * 40) - 20);
var _local2;
d = new Vector(_x - pos.x, _y - pos.y);
s = d.magnitude();
d.normalize();
vCollisionNormal = d;
vRelativeVelocity = new Vector((-d.x) * power, (-d.y) * power);
collisionmode = fly_mode;
disablesoft = false;
old_softtest = false;
var _local4 = 1;
var _local3 = (((-(1 + _local4)) * vRelativeVelocity.dotProduct(vCollisionNormal)) / 1) * ((1 / mass) + (1 / im));
_local2 = vCollisionNormal.multiplyScalar(_local3);
d = _local2.multiplyScalar(1 / mass);
applyImpulse(d);
}
function explode(pos, power, radius, im) {
r_velocity = r_velocity + ((Math.random() * 40) - 20);
var _local4;
d = new Vector(_x - pos.x, _y - pos.y);
s = d.magnitude();
if (s < radius) {
var _local3 = s / radius;
var _local2 = Math.sqrt(1 - (_local3 * _local3)) * power;
d.normalize();
vCollisionNormal = d;
vRelativeVelocity = new Vector((-d.x) * _local2, (-d.y) * _local2);
collisionmode = fly_mode;
disablesoft = false;
old_softtest = false;
var _local6 = 1;
var _local5 = (((-(1 + _local6)) * vRelativeVelocity.dotProduct(vCollisionNormal)) / 1) * ((1 / mass) + (1 / im));
_local4 = vCollisionNormal.multiplyScalar(_local5);
d = _local4.multiplyScalar(1 / mass);
applyImpulse(d);
}
}
function applyImpulse(i) {
x_velocity = x_velocity + i.x;
y_velocity = y_velocity + i.y;
}
var walk_mode = 1;
var fly_mode = 2;
}
Symbol 570 MovieClip [__Packages.Integrator] Frame 0
class Integrator
{
var s, v, t, f, a, k1, k2;
function Integrator (s2, v2, t2) {
setVDT(s2, v2, t2);
}
function setVDT(s2, v2, t2) {
s = s2;
v = v2;
t = t2;
}
function tick(dt, m, c) {
var _local2 = 1 / m;
f = t - (c * v);
a = f * _local2;
k1 = dt * a;
f = t - ((c * v) + (k1 * 0.5));
a = f * _local2;
k2 = dt * a;
v = v + ((k1 + k2) * 0.5);
s = s + (v * dt);
}
function tick_accurate(dt, m, c) {
var _local4 = new Object();
var _local13;
var _local12;
var _local3;
var _local2;
var _local6;
var _local10;
var _local9;
var _local11;
_local3 = t - (c * v);
_local2 = _local3 / m;
_local6 = dt * _local2;
_local3 = t - ((c * v) + (_local6 / 2));
_local2 = _local3 / m;
_local10 = dt * _local2;
_local3 = t - ((c * v) + (_local10 / 2));
_local2 = _local3 / m;
_local9 = dt * _local2;
_local3 = t - ((c * v) + _local9);
_local2 = _local3 / m;
_local11 = dt * _local2;
_local4.v = v + ((((_local6 + (2 * _local10)) + (2 * _local9)) + _local11) / 6);
_local4.s = s + (_local4.v * dt);
return(_local4);
}
}
Symbol 571 MovieClip [__Packages.Vector] Frame 0
class Vector
{
var x, y;
function Vector (nx, ny) {
x = nx;
y = ny;
}
function normalize() {
var _local2;
_local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function getNegative(v) {
return(new Vector(-x, -y));
}
function dotProduct(v) {
return((x * v.x) + (y * v.y));
}
function subtractVector(v) {
return(new Vector(x - v.x, y - v.y));
}
function addVector(v) {
return(new Vector(x + v.x, y + v.y));
}
function multiplyVector(v) {
return(new Vector(x * v.x, y * v.y));
}
function multiplyScalar(s) {
return(new Vector(x * s, y * s));
}
}
Symbol 572 MovieClip [__Packages.Particle] Frame 0
class Particle extends Entity
{
var mass, r_velocity, applyForces, action, _rotation, level, _y, removeMovieClip, _x;
function Particle () {
super();
enable = true;
mass = 0.5;
r_velocity = (Math.random() * 40) - 20;
}
function control(dt) {
applyForces(dt);
action();
_rotation = _rotation - (r_velocity * _root.slomo);
if (_y > ((-level._y) + 500)) {
removeMovieClip(this);
}
if (_x > ((-level._x) + 700)) {
removeMovieClip(this);
}
if (_x < ((-level._x) - 700)) {
removeMovieClip(this);
}
}
}
Symbol 573 MovieClip [__Packages.Character] Frame 0
class Character extends Entity
{
var enable, nosoft, collisionmode, fly_mode, disablesoft, softtest, old_softtest, scriptVM, _xscale, _x, _y, y_velocity, controlFly, walk_mode, controlWalk, sounds, level, timeStep, mass, x_thrust, y_thrust, x_velocity, x_physics, y_physics, maxTol, applyForces;
function Character () {
super();
enable = true;
nosoft = false;
collisionmode = fly_mode;
disablesoft = false;
softtest = false;
old_softtest = false;
scriptVM = new Scripter();
}
function control(dt) {
scriptVM.tick();
oldxscale = _xscale;
old_softtest = softtest;
softtest = isPointSoft(_x, _y);
if (y_velocity < -10) {
disablesoft = true;
} else if (old_softtest && (softtest)) {
disablesoft = true;
} else {
disablesoft = false;
}
if (collisionmode == fly_mode) {
if (enable) {
fly();
}
controlFly();
} else if (collisionmode == walk_mode) {
if (enable) {
walk();
}
controlWalk();
}
sounds();
}
function duplicate(t) {
level = t.level;
timeStep = t.timeStep;
damp = t.damp;
mass = t.mass;
_x = t._x;
_y = t._y;
nosoft = t.nosoft;
collisionmode = t.collisionmode;
old_softtest = t.old_softtest;
softtest = t.softtest;
disablesoft = t.disablesoft;
x_thrust = t.x_thrust;
y_thrust = t.y_thrust;
x_velocity = t.x_velocity;
y_velocity = t.y_velocity;
x_physics = new Integrator(_x, x_velocity, x_thrust);
y_physics = new Integrator(_y, y_velocity, y_thrust);
}
function fly() {
var _local2 = new Character();
var _local4 = timeStep;
var _local6 = maxTol;
tryAgain = true;
keepSearching = false;
var _local5 = 0;
while (tryAgain && (_local5 < 16)) {
_local5++;
tryAgain = false;
_local2.duplicate(this);
_local2.applyForces(_local4);
c = _local2.detectCollisionFlying();
if (c.r == -1) {
_local4 = _local4 * 0.5;
if (_local5 == 15) {
_local4 = 0;
}
tryAgain = true;
}
if (c.r == 1) {
tryAgain = false;
var _local3 = false;
if ((c.a && (c.d)) || (c.a)) {
_local2._x = _local2._x + 2;
_local2.x_velocity = 120;
_local3 = true;
}
if ((c.c && (c.e)) || (c.c)) {
_local2._x = _local2._x - 2;
_local2.x_velocity = -120;
_local3 = true;
}
if ((c.a || (c.b)) || (c.c)) {
_local2.y_velocity = 10;
_local2._y = _local2._y + 2;
} else if ((!_local3) && ((c.f || (c.g)) || (c.h))) {
_local2.collisionmode = walk_mode;
}
break;
}
}
if (_local5 >= 16) {
if (y_velocity >= 0) {
collisionmode = walk_mode;
_y = _y - 2;
}
if (y_velocity < 0) {
_y = _y + 2;
}
disablesoft = false;
softtest = true;
old_softtest = false;
trace(_local4 + ":m ");
trace((((c.a + " ") + c.b) + " ") + c.c);
trace((((c.d + " ") + c.m) + " ") + c.e);
trace((((c.f + " ") + c.g) + " ") + c.h);
} else {
duplicate(_local2);
_local2 = null;
}
}
function walk() {
oldx = _x;
oldy = _y;
y_thrust = 0;
y_velocity = 0;
applyForces(timeStep);
var _local2 = detectYCollisionWalking();
var _local4 = detectWallCollisionWalking();
if (!detectFloorCollisionWalking(9)) {
collisionmode = fly_mode;
} else {
if (_local4 != 0) {
_y = oldy;
_x = oldx;
}
_y = Math.floor(_y);
var _local3 = 0;
while ((_local2 != 0) && (_local3 < 256)) {
_local3++;
if (_local2 == -1) {
_y = _y - 1;
}
if (_local2 == 1) {
_y = _y + 1;
}
if (!detectFloorCollisionWalking(7)) {
break;
}
_local2 = detectYCollisionWalking();
}
if (_local3 >= 256) {
_y = oldy;
_x = oldx;
collisionmode = fly_mode;
y_velocity = 10;
}
}
}
function detectCollisionFlying() {
var _local2 = new Object();
var _local3 = false;
var _local4 = false;
_local2.a = testPoint(_x - 1, _y - 1);
_local2.b = testPoint(_x, _y - 1);
_local2.c = testPoint(_x + 1, _y - 1);
_local2.d = testPoint(_x - 1, _y);
_local2.m = testPoint(_x, _y);
_local2.e = testPoint(_x + 1, _y);
_local2.f = testPoint(_x - 1, _y + 1);
_local2.g = testPoint(_x, _y + 1);
_local2.h = testPoint(_x + 1, _y + 1);
if (((((((_local2.a || (_local2.b)) || (_local2.c)) || (_local2.d)) || (_local2.e)) || (_local2.f)) || (_local2.g)) || (_local2.h)) {
_local3 = true;
if (((((((_local2.a && (_local2.b)) && (_local2.c)) && (_local2.d)) && (_local2.e)) && (_local2.f)) && (_local2.g)) && (_local2.h)) {
_local4 = true;
}
}
_local2.r = 0;
if (_local3) {
_local2.r = 1;
}
if (_local4) {
_local2.r = -1;
}
return(_local2);
}
function detectWallCollisionWalking() {
var _local3 = true;
var _local4 = true;
var _local2 = 0;
while (_local2 < 9) {
if (!testPoint(_x + 1, _y - _local2)) {
_local3 = false;
}
_local2++;
}
_local2 = 0;
while (_local2 < 9) {
if (!testPoint(_x - 1, _y - _local2)) {
_local4 = false;
}
_local2++;
}
if (_local4 && (!_local3)) {
return(-1);
}
if ((!_local4) && (_local3)) {
return(1);
}
if (_local4 && (_local3)) {
return(2);
}
if ((!_local4) && (!_local3)) {
return(0);
}
}
function detectYCollisionWalking() {
var _local3 = testPoint(_x, _y);
var _local2 = testPoint(_x, _y + 1);
if (_local3 && (_local2)) {
return(-1);
}
if ((!_local3) && (!_local2)) {
return(1);
}
if ((!_local3) && (_local2)) {
return(0);
}
}
function detectFloorCollisionWalking(d) {
var _local3 = false;
var _local2 = 0;
while (_local2 < d) {
if (testPoint(_x - 1, _y + _local2)) {
_local3 = true;
}
_local2++;
}
return(_local3);
}
function isPoint(x, y) {
var _local2 = new Object();
_local2.x = x;
_local2.y = y;
level.localToGlobal(_local2);
if (level.hardCollisionMap.hitTest(_local2.x, _local2.y, true)) {
return(true);
}
if (level.softCollisionMap.hitTest(_local2.x, _local2.y, true)) {
return(true);
}
return(false);
}
function isPointSoft(x, y) {
var _local2 = new Object();
_local2.x = x;
_local2.y = y;
level.localToGlobal(_local2);
if (level.softCollisionMap.hitTest(_local2.x, _local2.y, true)) {
return(true);
}
return(false);
}
function isPointHard(x, y) {
var _local2 = new Object();
_local2.x = x;
_local2.y = y;
level.localToGlobal(_local2);
if (level.hardCollisionMap.hitTest(_local2.x, _local2.y, true)) {
return(true);
}
return(false);
}
function testPoint(x, y) {
var _local2 = new Object();
_local2.x = x;
_local2.y = y;
level.localToGlobal(_local2);
hitsoftplatform = level.softCollisionMap.hitTest(_local2.x, _local2.y, true);
hithardplatform = level.hardCollisionMap.hitTest(_local2.x, _local2.y, true);
if ((collisionmode == walk_mode) || (nosoft)) {
if (hithardplatform) {
return(true);
}
if (hitsoftplatform) {
return(true);
}
}
if (collisionmode == fly_mode) {
if (hitsoftplatform && (!disablesoft)) {
return(true);
}
if (hithardplatform) {
return(true);
}
}
return(false);
}
}
Symbol 574 MovieClip [__Packages.Scripter] Frame 0
class Scripter
{
var target, script, pc, paused, wait_time, trig, halt;
function Scripter () {
target = null;
script = null;
pc = 0;
paused = false;
wait_time = 0;
}
function setScript(s, t, o) {
if (script == null) {
target = t;
script = s;
trig = o;
pc = 0;
paused = false;
wait_time = 0;
}
}
function tick() {
if ((script != null) && (!halt)) {
script();
if (!paused) {
pc++;
}
}
}
function branch(i) {
pc = i - 1;
}
function setThrust(x, y) {
if (x != null) {
target.x_thrust = x;
}
if (y != null) {
target.y_thrust = y;
}
}
function setVelocity(x, y) {
target.x_velocity = x;
target.y_velocity = y;
}
function setULimit(y) {
target.ulimit = y;
}
function end() {
script = null;
target = null;
trig.script = null;
}
function setFreeze(tg, fs) {
target[tg].enable = !fs;
}
function setConstrain(f) {
target.hardCollisionMap.gotoAndStop(f);
}
function setLook(tg) {
target.look = target[tg];
}
function spawn(c, xy) {
return(target.addEntity(c, target[xy]));
}
function wait(f) {
f = f * (_root.timestep / _root.slomo);
wait_time++;
paused = true;
if (wait_time > f) {
paused = false;
wait_time = 0;
}
}
function waitLiteral(f) {
wait_time++;
paused = true;
if (wait_time > f) {
paused = false;
wait_time = 0;
}
}
}
Symbol 575 MovieClip [__Packages.Level] Frame 0
class Level extends MovieClip
{
var scrollSpeed, explosionID, particleCount, look, player, scriptVM, hardCollisionMap, screenWidth, screenHeight, softCollisionMap, levelWidth, _width, levelHeight, _height, _x, _y, explosion, expBuf, explosions_frame, attachMovie;
function Level () {
super();
scrollSpeed = 4;
explosionID = 0;
particleCount = 0;
_root.level = this;
look = player;
scriptVM = new Scripter();
hardCollisionMap.stop();
screenWidth = 450;
screenHeight = 327;
hardCollisionMap._visible = false;
softCollisionMap._visible = false;
levelWidth = _width;
levelHeight = _height;
_x = (-player._x) + (screenWidth * 0.5);
_y = ((-player._y) + (screenHeight * 0.5)) + 50;
}
function onEnterFrame() {
scriptVM.tick();
var _local4 = (-look._x) + (screenWidth * 0.5);
var _local3 = ((-look._y) + (screenHeight * 0.5)) + 50;
_local4 = _local4 + (Math.sin(t) * shake);
_local3 = _local3 + (Math.sin(t) * shake);
t = t + (0.9 * _root.slomo);
shake = shake * 0.9;
if (_x < _local4) {
var _local5 = _local4 - _x;
_x = _x + (_local5 / scrollSpeed);
}
if (_x > _local4) {
var _local5 = _x - _local4;
_x = _x - (_local5 / scrollSpeed);
}
if (_y < _local3) {
var _local5 = _local3 - _y;
_y = _y + (_local5 / scrollSpeed);
}
if (_y > _local3) {
var _local5 = _y - _local3;
_y = _y - (_local5 / scrollSpeed);
}
if (_y < ((-levelHeight) + screenHeight)) {
_y = (-levelHeight) + screenHeight;
}
if (_y < (-llimit)) {
_y = -llimit;
}
if (_y > ulimit) {
_y = ulimit;
}
if (_x < ((-levelWidth) + screenWidth)) {
_x = (-levelWidth) + screenWidth;
}
if (_x > 0) {
_x = 0;
}
if (explosion != undefined) {
explosion = undefined;
explosionID++;
}
if (expBuf != undefined) {
explosion = new Object();
explosion.x = expBuf.x;
explosion.y = expBuf.y;
explosion.power = expBuf.power;
explosion.radius = expBuf.radius;
explosion.id = expBuf.id;
expBuf = undefined;
}
_root.kick = explosions_frame;
explosions_frame = 0;
}
function addParticle(t, p, xy) {
t.localToGlobal(xy);
level.globalToLocal(xy);
var _local2 = "particle_" + particleCount;
attachMovie(p, _local2, particleCount + 200);
this[_local2]._x = xy.x;
this[_local2]._y = xy.y;
if (particleCount > 60000) {
particleCount = 0;
}
particleCount++;
return(this[_local2]);
}
function addEntity(p, xy) {
var _local2 = "entity_" + particleCount;
attachMovie(p, _local2, particleCount + 200);
this[_local2]._x = xy._x;
this[_local2]._y = xy._y;
if (particleCount > 60000) {
particleCount = 0;
}
particleCount++;
return(this[_local2]);
}
function setExplosion(o, t, p, r) {
expBuf = new Object();
o.localToGlobal(t);
level.globalToLocal(t);
expBuf.x = t.x;
expBuf.y = t.y;
expBuf.power = p;
expBuf.radius = r;
expBuf.id = explosionID;
explosions_frame++;
}
var ulimit = 0;
var llimit = 3000;
var shake = 0;
var t = 0;
}
Symbol 47 Button
on (release) {
_root.play();
}
Symbol 49 MovieClip Frame 1
this._visible = false;
Symbol 69 MovieClip Frame 2
_parent.enable = false;
_parent.x_thrust = 0;
_parent.y_thrust = 0;
_parent.x_velocity = 0;
_parent.y_velocity = 0;
_parent.collisionmode = "null";
_parent.spawnGibs();
_root.effect_controller.squish.start(0, 0);
Symbol 69 MovieClip Frame 20
_parent.removeMovieClip();
stop();
Symbol 79 MovieClip Frame 6
Symbol 79 MovieClip Frame 16
_parent.removeMovieClip();
stop();
Symbol 80 MovieClip [Grub] Frame 1
#initclip 31
Object.registerClass("Grub", Character);
#endinitclip
this.init = function () {
mass = 0.6;
jumpPower = 380;
health = 100;
this.gotoAndStop(2);
this.white = false;
this.hitvalue = 22;
this.bitetimer = 6 / _root.slomo;
this.timebomb = 600;
};
this.controlWalk = function () {
this.timebomb--;
this.testHitPlayer();
if (x_velocity < -90) {
x_velocity = -90;
} else if (x_velocity > 90) {
x_velocity = 90;
}
y_velocity = 0;
this.testHit();
if (level.player._x < _x) {
x_thrust = -105;
} else if (level.player._x >= _x) {
x_thrust = 105;
}
if (Math.random() < 0.02) {
y_velocity = -300;
collisionmode = fly_mode;
x_thrust = 0;
}
if ((x_thrust > 0) && (this._currentframe != 6)) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if ((x_thrust < 0) && (this._currentframe != 6)) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
};
this.controlFly = function () {
this.timebomb--;
this.testHitPlayer();
if (x_velocity < -120) {
x_velocity = -120;
} else if (x_velocity > 120) {
x_velocity = 120;
}
this.testHit();
if (health <= 0) {
this.gotoAndStop(3);
}
if (level.player._x < _x) {
x_thrust = -120;
} else if (level.player._x >= _x) {
x_thrust = 120;
}
if ((x_thrust > 0) && (this._currentframe != 6)) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if ((x_thrust < 0) && (this._currentframe != 6)) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
};
this.testHit = function () {
if (level.player._currentframe == 9) {
if (this.hitTest(level.player)) {
health = -100;
}
}
if (this.hitTest(level.player.bullet) && (this._currentframe != 3)) {
if (this._y < level.player._y) {
y_velocity = y_velocity - 10;
collisionmode = fly_mode;
}
if (this._x < level.player._x) {
x_velocity = x_velocity - 10;
}
if (this._x >= level.player._x) {
x_velocity = x_velocity + 10;
}
this.colorTransform(255, 255, 255, 255, 255, 255, 255, 255);
this.white = true;
health = health - this.hitvalue;
x_thrust = 0;
} else {
this.colorTransform(100, 0, 100, 0, 100, 0, 100, 0);
}
if ((health <= 0) || (this.timebomb < 0)) {
this.gotoAndStop(3);
_root.score = _root.score + 10;
}
};
this.spawnGibs = function () {
point = new Object();
point.x = this.gib_point._x;
point.y = this.gib_point._y;
point1 = new Object();
point1.x = (point.x + (Math.random() * 12)) - 6;
point1.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_1", point1);
point2 = new Object();
point2.x = (point.x + (Math.random() * 12)) - 6;
point2.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_2", point2);
point3 = new Object();
point3.x = (point.x + (Math.random() * 12)) - 6;
point3.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_3", point3);
point1 = new Object();
point1.x = (point.x + (Math.random() * 12)) - 6;
point1.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_1", point1);
point2 = new Object();
point2.x = (point.x + (Math.random() * 12)) - 6;
point2.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_2", point2);
point3 = new Object();
point3.x = (point.x + (Math.random() * 12)) - 6;
point3.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_3", point3);
if (Math.random() < 0.4) {
point4 = new Object();
point4.x = point.x;
point4.y = (point.y + (Math.random() * 12)) - 16;
if (Math.random() < 0.5) {
g = level.addParticle(this, "Power_Slomo", point4);
} else {
g = level.addParticle(this, "Power_Health", point4);
}
}
level.setExplosion(this, point, 36, 450);
level.shake = level.shake + 14;
_root.flashDeath();
};
this.testHitPlayer = function () {
if (this.bounding_box.hitTest(level.player.bounding_box) && (enable)) {
this.bitetimer = this.bitetimer - 1;
if ((this.bitetimer < 1) && (level.player.invincibility < 0)) {
level.player.getHurt();
this.bitetimer = 6 / _root.slomo;
level.player.health = level.player.health - 10;
level.player.setInvincible();
}
}
};
gotoAndStop (2);
Instance of Symbol 49 MovieClip "bounding_box" in Symbol 80 MovieClip [Grub] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 80 MovieClip [Grub] Frame 2
stop();
Symbol 103 MovieClip Frame 1
_parent.x_velocity = 0;
Symbol 103 MovieClip Frame 9
_root.effect_controller.gob.start(0, 0);
Symbol 103 MovieClip Frame 11
_parent.spit();
Symbol 103 MovieClip Frame 22
_parent.gotoAndStop(2);
Symbol 104 MovieClip [Bug] Frame 1
#initclip 13
Object.registerClass("Bug", Character);
#endinitclip
this.init = function () {
mass = 0.7;
jumpPower = 380;
health = 100;
this.gotoAndStop(2);
this.white = false;
this.hitvalue = 24;
this.spittimer = 0;
this.timebomb = 600;
};
this.controlWalk = function () {
this.timebomb--;
if (x_velocity > 90) {
x_velocity = 90;
}
if (x_velocity < -90) {
x_velocity = -90;
}
y_velocity = 0;
this.testHit();
if ((Math.random() < 0.03) && (level.player.collisionmode == fly_mode)) {
y_velocity = -300;
collisionmode = fly_mode;
x_thrust = 0;
}
x_thrust = 0;
if ((level.player._x + 75) < _x) {
x_thrust = -120;
}
if ((level.player._x - 75) > _x) {
x_thrust = 120;
}
this.spittimer--;
if (((Math.random() < (0.03 * _root.slomo)) && (this.spittimer < 0)) && (enable)) {
this.spittimer = 25 / _root.slomo;
this.gotoAndStop(4);
}
if (_x < level.player._x) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (_x > level.player._x) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
};
this.controlFly = function () {
this.timebomb--;
this.testHit();
x_thrust = 0;
if ((level.player._x + 75) < _x) {
x_thrust = -120;
}
if ((level.player._x - 75) > _x) {
x_thrust = 120;
}
this.spittimer--;
if (((Math.random() < (0.02 * _root.slomo)) && (this.spittimer < 0)) && (enable)) {
this.spittimer = 25 / _root.slomo;
this.gotoAndStop(4);
}
if (_x < level.player._x) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (_x > level.player._x) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
};
this.testHit = function () {
if (level.player._currentframe == 9) {
if (this.hitTest(level.player)) {
health = -100;
}
}
if (this.hitTest(level.player.bullet)) {
if (this._y < level.player._y) {
y_velocity = y_velocity - 10;
collisionmode = fly_mode;
}
if (this._x < level.player._x) {
x_velocity = x_velocity - 10;
}
if (this._x >= level.player._x) {
x_velocity = x_velocity + 10;
}
if (this._currentframe != 3) {
this.colorTransform(255, 255, 255, 255, 255, 255, 255, 255);
this.white = true;
health = health - this.hitvalue;
x_thrust = 0;
}
} else {
this.colorTransform(100, 0, 100, 0, 100, 0, 100, 0);
}
if ((health <= 0) || (this.timebomb < 0)) {
_root.score = _root.score + 10;
this.gotoAndStop(3);
enable = false;
}
};
this.spawnGibs = function () {
point = new Object();
point.x = (this.gib_point._x + (Math.random() * 10)) - 5;
point.y = this.gib_point._y - 20;
g = level.addParticle(this, "Gib_Bug_1", point);
point.x = (this.gib_point._x + (Math.random() * 10)) - 5;
point.y = this.gib_point._y + 15;
g = level.addParticle(this, "Gib_Bug_2", point);
point.x = (this.gib_point._x + (Math.random() * 10)) - 5;
point.y = this.gib_point._y + 30;
g = level.addParticle(this, "Gib_Bug_3", point);
if (Math.random() < 0.4) {
point4 = new Object();
point4.x = this.gib_point._x;
point4.y = (this.gib_point._y + (Math.random() * 12)) - 16;
if (Math.random() < 0.5) {
g = level.addParticle(this, "Power_Ammo", point4);
} else {
g = level.addParticle(this, "Power_Health", point4);
}
}
point.x = this.gib_point._x;
point.y = (this.gib_point._y + ((Math.random() * 30) - 15)) + 15;
level.setExplosion(this, point, 32, 450);
level.shake = level.shake + 12;
_root.flashDeath();
};
this.spit = function () {
var _local2 = new Object();
_local2.x = this.gob._x;
_local2.y = this.gob._y;
var _local3 = level.addParticle(this, "Gib_Gob", _local2);
if (this._xscale > 0) {
_local2.x = _local2.x - 2;
_local2.y = _local2.y + 1;
} else {
_local2.x = _local2.x + 2;
_local2.y = _local2.y + 1;
}
i = Math.abs(level.player._x - _x) / 200;
_local3.impulse(_local2, 40 * i, 500);
};
gotoAndStop (2);
Symbol 123 MovieClip Frame 1
this._visible = false;
Symbol 136 MovieClip Frame 2
_root.effect_controller.owww.start(0, 0);
Symbol 136 MovieClip Frame 22
_parent.gotoAndStop(2);
Symbol 183 MovieClip Frame 1
_parent.enable = false;
Symbol 183 MovieClip Frame 59
_parent.enable = true;
_parent.gotoAndStop(2);
Symbol 184 MovieClip [BeekuSettings] Frame 1
#initclip 14
Object.registerClass("BeekuSettings", Character);
#endinitclip
this.init = function () {
mass = 0.7;
jumpPower = 380;
this.shootplaying = false;
this.gotoAndStop(3);
this.alternate = 0;
this.health = 100;
this.ammo = 800;
collisionmode = walk_mode;
this.invincibility = 0;
this.white = false;
this.gotSlomo = false;
};
this.sounds = function () {
if (this.shootanim && (_root.slomo > 0.9)) {
if (!this.shootplaying) {
_root.gun_controller.gun.start(0, 1000);
}
this.shootplaying = true;
} else {
_root.gun_controller.gun.stop();
this.shootplaying = false;
}
};
this.controlWalk = function () {
this.flashIfInv();
this.invincibility = this.invincibility - (1 * _root.slomo);
this.updateStats();
if (x_velocity > 140) {
x_velocity = 140;
}
if (x_velocity < -140) {
x_velocity = -140;
}
this.oldxscale = _xscale;
if ((Key.isDown(32) && (this._currentframe == 2)) && (_root.super_icon._visible)) {
this.gotoAndStop(9);
_root.super_icon._visible = false;
}
if (_currentframe != 9) {
if ((Key.isDown(65) && (!isPoint(_x, _y - 1))) && (enable)) {
collisionmode = fly_mode;
x_thrust = 0;
y_velocity = -jumpPower;
_root.effect_controller.jump.start(0, 0);
this.gotoAndStop(4);
}
if ((((Key.isDown(83) && (enable)) && (this.ammo > 0)) && (this._currentframe != 6)) && (this._currentframe != 9)) {
x_velocity = 0;
x_thrust = 0;
if (Key.isDown(38)) {
this.gotoAndStop(7);
} else if (Key.isDown(40)) {
this.gotoAndStop(8);
} else {
this.gotoAndStop(5);
}
this.sprayShells();
if (Key.isDown(39) && (this._currentframe != 6)) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (Key.isDown(37) && (this._currentframe != 6)) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
} else if (Key.isDown(39) && (enable)) {
x_thrust = 360;
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
if ((collisionmode == walk_mode) && (this._currentframe != 6)) {
this.gotoAndStop(3);
}
} else if (Key.isDown(37) && (enable)) {
x_thrust = -360;
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
if ((collisionmode == walk_mode) && (this._currentframe != 6)) {
this.gotoAndStop(3);
}
} else {
x_velocity = 0;
x_thrust = 0;
if (this._currentframe != 6) {
this.gotoAndStop(2);
}
}
if (this.oldxscale != this._xscale) {
x_velocity = 0;
}
}
};
this.controlFly = function () {
if (this.enable) {
this.flashIfInv();
this.invincibility = this.invincibility - (1 * _root.slomo);
this.updateStats();
if (x_velocity > 140) {
x_velocity = 140;
}
if (x_velocity < -140) {
x_velocity = -140;
}
if (Key.isDown(39) && (enable)) {
x_thrust = 260;
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (Key.isDown(37) && (enable)) {
x_thrust = -260;
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
} else {
x_thrust = 0;
}
if (((Key.isDown(83) && (enable)) && (this.ammo > 0)) && (this._currentframe != 6)) {
if (Key.isDown(38)) {
this.gotoAndStop(7);
} else if (Key.isDown(40)) {
this.gotoAndStop(8);
} else {
this.gotoAndStop(5);
}
if (Key.isDown(39)) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (Key.isDown(37)) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
this.sprayShells();
} else if (this._currentframe != 6) {
this.gotoAndStop(4);
}
}
};
this.getHurt = function () {
if (this._currentframe != 9) {
this.gotoAndStop(6);
}
};
this.sprayShells = function () {
this.bullet._x = this.bullet.ox;
this.bullet._y = this.bullet.oy;
bx = this.bullet.ox;
by = this.bullet.oy;
this.bullet._width = 23;
this.bullet._height = 23;
if ((this.sprite._currentframe == 1) || (this.sprite._currentframe == 4)) {
this.traceBullet();
} else {
this.bullet._x = -5000;
}
if (this.ammo > 0) {
if ((this.sprite._currentframe == 1) && (_root.slomo == 1)) {
this.ammo = this.ammo - 1;
this.alternate = 0;
this.ejectShell();
} else if ((this.sprite._currentframe == 1) && (_root.slomo < 1)) {
this.alternate = 1 - alternate;
if (this.alternate == 0) {
this.ammo = this.ammo - 1;
this.ejectShell();
}
}
}
};
this.ejectShell = function () {
var _local2 = new Object();
_local2.x = this.eject._x;
_local2.y = this.eject._y;
var _local3 = level.addParticle(this, "shell", _local2);
if (this._xscale > 0) {
_local2.x = _local2.x + (1 + Math.random());
_local2.y = _local2.y + (2 + Math.random());
} else {
_local2.x = _local2.x - (1 + Math.random());
_local2.y = _local2.y + (2 + Math.random());
}
_local3.impulse(_local2, 30, 500);
};
this.traceBullet = function () {
var _local2 = 0;
if (this._currentframe == 5) {
this.bullet._width = 550;
this.bullet._x = bx + 225;
} else if (this._currentframe == 7) {
this.bullet._height = 550;
this.bullet._y = by - 225;
} else {
this.bullet._height = 550;
this.bullet._y = (by + 225) + 90;
}
};
this.flashIfInv = function () {
if (this.invincibility > 0) {
if (this.invincibility > 30) {
_root.score = _root.score - 5;
}
if ((!this.white) && (this._currentframe != 9)) {
this.colorTransform(255, 255, 0, 0, 0, 0, 255, 255);
this.white = true;
} else {
this.colorTransform(100, 0, 100, 0, 100, 0, 100, 0);
this.white = false;
}
} else {
this.colorTransform(100, 0, 100, 0, 100, 0, 100, 0);
}
};
this.setInvincible = function () {
if (this.invincibility > -25) {
_root.suck_banner.play();
_root.score = _root.score - 1000;
}
this.invincibility = 80;
};
this.updateStats = function () {
if (this._y > 1500) {
this._x = 678.4;
this._y = 388.5;
}
if (((this.gotSlomo && (Key.isDown(32))) && (_root.slomo == 1)) && (this._currentframe != 9)) {
_root.slomo = 0.5;
_root.slomo_controller.startSlomo(400);
this.gotSlomo = false;
}
if (this.gotSlomo) {
_root.slomo_icon._visible = true;
} else {
_root.slomo_icon._visible = false;
}
if ((health <= 0) || (this.ammo == 0)) {
_root.dead = true;
}
_root.stats.health = this.health;
_root.stats.ammo = this.ammo;
};
gotoAndStop (2);
Instance of Symbol 49 MovieClip "bounding_box" in Symbol 184 MovieClip [BeekuSettings] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 107 MovieClip "sprite" in Symbol 184 MovieClip [BeekuSettings] Frame 1
onClipEvent (load) {
_parent.shootanim = false;
}
Instance of Symbol 111 MovieClip "sprite" in Symbol 184 MovieClip [BeekuSettings] Frame 3
onClipEvent (load) {
_parent.shootanim = false;
}
Instance of Symbol 114 MovieClip "sprite" in Symbol 184 MovieClip [BeekuSettings] Frame 4
onClipEvent (load) {
_parent.shootanim = false;
}
Instance of Symbol 121 MovieClip "sprite" in Symbol 184 MovieClip [BeekuSettings] Frame 5
onClipEvent (load) {
_parent.shootanim = true;
}
Instance of Symbol 123 MovieClip "bullet" in Symbol 184 MovieClip [BeekuSettings] Frame 5
onClipEvent (load) {
this.ox = this._x;
this.oy = this._y;
}
Instance of Symbol 136 MovieClip "sprite" in Symbol 184 MovieClip [BeekuSettings] Frame 6
onClipEvent (load) {
_parent.shootanim = false;
}
Instance of Symbol 143 MovieClip "sprite" in Symbol 184 MovieClip [BeekuSettings] Frame 7
onClipEvent (load) {
_parent.shootanim = true;
}
Instance of Symbol 123 MovieClip "bullet" in Symbol 184 MovieClip [BeekuSettings] Frame 7
onClipEvent (load) {
this.ox = this._x;
this.oy = this._y;
}
Instance of Symbol 150 MovieClip "sprite" in Symbol 184 MovieClip [BeekuSettings] Frame 8
onClipEvent (load) {
_parent.shootanim = true;
}
Instance of Symbol 123 MovieClip "bullet" in Symbol 184 MovieClip [BeekuSettings] Frame 8
onClipEvent (load) {
this.ox = this._x;
this.oy = this._y;
}
Symbol 187 MovieClip [Gib_1] Frame 1
#initclip 15
Object.registerClass("Gib_1", Particle);
#endinitclip
this.init = function () {
mass = 0.52;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 190 MovieClip [Gib_2] Frame 1
#initclip 16
Object.registerClass("Gib_2", Particle);
#endinitclip
this.init = function () {
mass = 0.52;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 193 MovieClip [Gib_3] Frame 1
#initclip 17
Object.registerClass("Gib_3", Particle);
#endinitclip
this.init = function () {
mass = 0.52;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 196 MovieClip [Gib_Bug_1] Frame 1
#initclip 18
Object.registerClass("Gib_Bug_1", Particle);
#endinitclip
this.init = function () {
mass = 0.46;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 199 MovieClip [Gib_Bug_2] Frame 1
#initclip 19
Object.registerClass("Gib_Bug_2", Particle);
#endinitclip
this.init = function () {
mass = 0.46;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 202 MovieClip [Gib_Bug_3] Frame 1
#initclip 20
Object.registerClass("Gib_Bug_3", Particle);
#endinitclip
this.init = function () {
mass = 0.46;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 205 MovieClip [Gib_bug_4] Frame 1
#initclip 21
Object.registerClass("Gib_bug_4", Particle);
#endinitclip
this.init = function () {
mass = 0.5;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 208 MovieClip [Shell] Frame 1
#initclip 22
Object.registerClass("Shell", Particle);
#endinitclip
this.init = function () {
mass = 0.45;
r_velocity = (Math.random() * 40) - 20;
};
gotoAndStop (2);
Symbol 211 MovieClip [Gib_Gob] Frame 1
#initclip 23
Object.registerClass("Gib_Gob", Particle);
#endinitclip
this.init = function () {
mass = 0.5;
r_velocity = (Math.random() * 40) - 20;
this.bitetimer = 3 / _root.slomo;
};
this.action = function () {
if (this.hitTest(level.player.bounding_box)) {
if ((Math.abs(x_velocity) < 500) && (Math.abs(y_velocity) < 500)) {
this.bitetimer = this.bitetimer - 1;
if ((this.bitetimer < 1) && (level.player.invincibility < 0)) {
level.player.getHurt();
level.player.health = level.player.health - 10;
level.player.setInvincible();
this.removeMovieClip();
}
}
}
};
gotoAndStop (2);
Symbol 213 MovieClip [Power_Slomo] Frame 1
#initclip 24
Object.registerClass("Power_Slomo", Particle);
#endinitclip
this.init = function () {
mass = 0.3;
r_velocity = (Math.random() * 40) - 20;
};
this.action = function () {
if (this.hitTest(level.player.bounding_box)) {
_root.effect_controller.powerup.start(0, 0);
level.player.gotSlomo = true;
this.removeMovieClip();
}
};
stop();
Symbol 215 MovieClip [Power_Ammo] Frame 1
#initclip 25
Object.registerClass("Power_Ammo", Particle);
#endinitclip
this.init = function () {
mass = 0.3;
r_velocity = (Math.random() * 40) - 20;
};
this.action = function () {
if (this.hitTest(level.player.bounding_box)) {
level.player.ammo = level.player.ammo + 150;
_root.effect_controller.clip.start(0, 0);
_root.effect_controller.powerup.start(0, 0);
this.removeMovieClip();
}
};
stop();
Symbol 229 MovieClip Frame 4
_parent.spawnGibs();
Symbol 229 MovieClip Frame 22
_parent.removeMovieClip();
Symbol 230 MovieClip [Fly] Frame 1
#initclip 26
Object.registerClass("Fly", Character);
#endinitclip
this.init = function () {
mass = 1.5;
jumpPower = 0;
health = 200;
this.gotoAndStop(2);
this.hitvalue = 1;
this.bitetimer = 6 / _root.slomo;
};
this.controlWalk = function () {
this.testHitPlayer();
this.testHit();
if (x_velocity > 0) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (x_velocity < 0) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
};
this.controlFly = function () {
this.testHitPlayer();
this.testHit();
if (x_velocity > 0) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if (x_velocity < 0) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
};
this.testHit = function () {
if (this.hitTest(level.player.bullet) && (this._currentframe != 3)) {
this.colorTransform(255, 255, 255, 255, 255, 255, 255, 255);
health = health - this.hitvalue;
x_thrust = 0;
} else {
this.colorTransform(100, 0, 100, 0, 100, 0, 100, 0);
}
};
this.spawnGibs = function () {
point = new Object();
point.x = this.gib_point._x;
point.y = this.gib_point._y;
point1 = new Object();
point1.x = (point.x + (Math.random() * 12)) - 6;
point1.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_1", point1);
point2 = new Object();
point2.x = (point.x + (Math.random() * 12)) - 6;
point2.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_2", point2);
point3 = new Object();
point3.x = (point.x + (Math.random() * 12)) - 6;
point3.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_3", point3);
if (Math.random() < 0.2) {
point4 = new Object();
point4.x = (point.x + (Math.random() * 8)) - 4;
point4.y = (point.y + (Math.random() * 12)) - 16;
g = level.addParticle(this, "Power_Slomo", point4);
}
point.x = point.x + ((Math.random() * 10) - 5);
point.y = point.y + 120;
level.setExplosion(this, point, 45, 530);
level.shake = level.shake + 32;
_root.flashDeath();
};
this.testHitPlayer = function () {
if (this.bounding_box.hitTest(level.player.bounding_box) && (enable)) {
this.bitetimer = this.bitetimer - 1;
if ((this.bitetimer < 1) && (level.player.invincibility < 0)) {
level.player.getHurt();
this.bitetimer = 6 / _root.slomo;
level.player.health = level.player.health - 10;
level.player.setInvincible();
}
}
};
gotoAndStop (2);
Instance of Symbol 49 MovieClip "bounding_box" in Symbol 230 MovieClip [Fly] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 232 MovieClip [Power_Health] Frame 1
#initclip 27
Object.registerClass("Power_Health", Particle);
#endinitclip
this.init = function () {
mass = 0.3;
r_velocity = (Math.random() * 40) - 20;
};
this.action = function () {
if (this.hitTest(level.player.bounding_box)) {
level.player.health = level.player.health + 15;
_root.effect_controller.yum.start(0, 0);
this.removeMovieClip();
}
};
stop();
Symbol 244 MovieClip [Biter] Frame 1
#initclip 28
Object.registerClass("Biter", Character);
#endinitclip
this.init = function () {
mass = 0.5;
jumpPower = 380;
health = 100;
this.gotoAndStop(2);
this.white = false;
this.bitetimer = 6 / _root.slomo;
nosoft = true;
};
this.controlWalk = function () {
this.testHitPlayer();
if (x_velocity < -90) {
x_velocity = -90;
} else if (x_velocity > 90) {
x_velocity = 90;
}
y_velocity = 0;
this.testHit();
y_velocity = -300;
collisionmode = fly_mode;
if ((x_thrust > 0) && (this._currentframe != 6)) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if ((x_thrust < 0) && (this._currentframe != 6)) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
};
this.controlFly = function () {
this.testHitPlayer();
if (x_velocity < -120) {
x_velocity = -120;
} else if (x_velocity > 120) {
x_velocity = 120;
}
this.testHit();
if (health <= 0) {
this.gotoAndStop(3);
}
if (level.player._x < _x) {
x_thrust = -120;
} else if (level.player._x >= _x) {
x_thrust = 120;
}
x_velocity = x_velocity + ((Math.random() * 100) - 50);
if (_y > (level.player._y - 150)) {
y_thrust = -360;
} else {
y_thrust = 360;
}
if ((x_thrust > 0) && (this._currentframe != 6)) {
if (this._xscale < 0) {
this._xscale = this._xscale * -1;
}
} else if ((x_thrust < 0) && (this._currentframe != 6)) {
if (this._xscale > 0) {
this._xscale = this._xscale * -1;
}
}
};
this.testHit = function () {
if (this.hitTest(level.player.bullet) && (this._currentframe != 3)) {
if (this._y < level.player._y) {
y_velocity = y_velocity - 10;
collisionmode = fly_mode;
}
if (this._x < level.player._x) {
x_velocity = x_velocity - 10;
}
if (this._x >= level.player._x) {
x_velocity = x_velocity + 10;
}
this.colorTransform(255, 255, 255, 255, 255, 255, 255, 255);
this.white = true;
health = health - this.hitvalue;
x_thrust = 0;
} else {
this.colorTransform(100, 0, 100, 0, 100, 0, 100, 0);
}
if (health <= 0) {
this.gotoAndStop(3);
}
};
this.spawnGibs = function () {
point = new Object();
point.x = this.gib_point._x;
point.y = this.gib_point._y;
point1 = new Object();
point1.x = (point.x + (Math.random() * 12)) - 6;
point1.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_1", point1);
point2 = new Object();
point2.x = (point.x + (Math.random() * 12)) - 6;
point2.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_2", point2);
point3 = new Object();
point3.x = (point.x + (Math.random() * 12)) - 6;
point3.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_3", point3);
if (Math.random() < 0.3) {
point4 = new Object();
point4.x = point.x;
point4.y = (point.y + (Math.random() * 12)) - 16;
if (Math.random() < 0.5) {
g = level.addParticle(this, "Power_Slomo", point4);
} else {
g = level.addParticle(this, "Power_Health", point4);
}
}
level.setExplosion(this, point, 39, 230);
level.shake = level.shake + 14;
_root.flashDeath();
};
this.testHitPlayer = function () {
if (this.bounding_box.hitTest(level.player.bounding_box) && (enable)) {
this.bitetimer = this.bitetimer - 1;
if ((this.bitetimer < 1) && (level.player.invincibility < 0)) {
level.player.gotoAndStop(6);
this.bitetimer = 6 / _root.slomo;
level.player.health = level.player.health - 10;
level.player.setInvincible();
}
}
};
gotoAndStop (2);
Symbol 270 MovieClip Frame 54
stop();
Symbol 271 MovieClip [EggSac_Character] Frame 1
#initclip 29
Object.registerClass("EggSac_Character", Character);
#endinitclip
this.init = function () {
mass = 1.5;
jumpPower = 0;
health = 75;
enable = false;
this.gotoAndStop(2);
this.white = false;
this.hitvalue = 1;
this.bitetimer = 6 / _root.slomo;
};
this.controlWalk = function () {
this.testHitPlayer();
this.testHit();
};
this.controlFly = function () {
this.testHitPlayer();
this.testHit();
};
this.testHit = function () {
if (this.hitTest(level.player.bullet) && (this._currentframe != 3)) {
this.colorTransform(255, 255, 255, 255, 255, 255, 255, 255);
health = health - this.hitvalue;
x_thrust = 0;
} else {
this.colorTransform(100, 0, 100, 0, 100, 0, 100, 0);
}
if (health <= 0) {
_root.score = _root.score + 80;
health = 10000;
_root.super_icon._visible = true;
this.spawnGibs();
this.gotoAndStop(3);
}
};
this.spawnGibs = function () {
point = new Object();
point.x = this.gib_point._x;
point.y = this.gib_point._y;
point1 = new Object();
point1.x = (point.x + (Math.random() * 12)) - 6;
point1.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_1", point1);
point2 = new Object();
point2.x = (point.x + (Math.random() * 12)) - 6;
point2.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_2", point2);
point3 = new Object();
point3.x = (point.x + (Math.random() * 12)) - 6;
point3.y = (point.y + (Math.random() * 12)) - 6;
g = level.addParticle(this, "Gib_3", point3);
if (Math.random() < 0.2) {
point4 = new Object();
point4.x = (point.x + (Math.random() * 8)) - 4;
point4.y = (point.y + (Math.random() * 12)) - 16;
g = level.addParticle(this, "Power_Slomo", point4);
}
point.x = point.x + ((Math.random() * 10) - 5);
point.y = point.y + 120;
level.setExplosion(this, point, 55, 530);
level.shake = level.shake + 32;
_root.flashDeath();
};
this.testHitPlayer = function () {
if (this.bounding_box.hitTest(level.player.bounding_box) && (_visible)) {
this.bitetimer = this.bitetimer - 1;
if ((this.bitetimer < 1) && (level.player.invincibility < 0)) {
level.player.getHurt();
this.bitetimer = 6 / _root.slomo;
level.player.health = level.player.health - 10;
level.player.setInvincible();
}
}
};
stop();
Instance of Symbol 49 MovieClip "bounding_box" in Symbol 271 MovieClip [EggSac_Character] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 281 MovieClip [Gib_Egg] Frame 1
#initclip 30
Object.registerClass("Gib_Egg", Particle);
#endinitclip
this.init = function () {
mass = 0.54;
r_velocity = (Math.random() * 40) - 20;
this.bitetimer = 3 / _root.slomo;
};
this.action = function () {
if (this.hitTest(level.player.bounding_box)) {
if ((Math.abs(x_velocity) < 500) && (Math.abs(y_velocity) < 500)) {
this.bitetimer = this.bitetimer - 1;
if ((this.bitetimer < 1) && (level.player.invincibility < 0)) {
level.player.getHurt();
level.player.health = level.player.health - 10;
level.player.setInvincible();
}
}
}
};
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(this.targ)) {
_parent.scriptVM.setScript(this.script, _parent, this);
}
};
Symbol 297 MovieClip Frame 1
this._visible = false;
Symbol 298 MovieClip [Level1] Frame 1
#initclip 32
Object.registerClass("Level1", Level);
#endinitclip
this.gravity = 420;
this.damp = 0.3;
_root.flash();
_root.music_controller.clip.start(0, 1000);
stop();
Instance of Symbol 295 MovieClip "trigger_1" in Symbol 298 MovieClip [Level1] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.t = 0;
_root.getreadybanner.play();
this.setLook("camera_1");
this.setConstrain("constrain");
newEnemy = this.spawn("grub", "spawn_1");
break;
case 1 :
this.wait(90);
break;
case 2 :
_root.slomo = 0.5;
_root.slomo_controller.startSlomo(651);
break;
case 3 :
if (this.t > 60) {
newEnemy = this.spawn("grub", "spawn_1");
this.t = 0;
}
this.t++;
this.wait(650);
break;
case 4 :
this.setLook("player");
this.setConstrain("normal");
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Instance of Symbol 295 MovieClip "trigger_3" in Symbol 298 MovieClip [Level1] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.t = 0;
_root.getreadybanner.play();
this.setLook("camera_2");
this.setConstrain("constrain");
newEnemy = this.spawn("grub", "spawn_2");
break;
case 1 :
this.wait(30);
break;
case 2 :
if (this.t > (40 / _root.slomo)) {
if (Math.random() < 0.5) {
if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_2");
} else {
newEnemy = this.spawn("grub", "spawn_2");
}
} else if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_3");
} else {
newEnemy = this.spawn("grub", "spawn_3");
}
this.t = 0;
}
this.t++;
this.wait(600);
break;
case 3 :
this.t = 0;
this.wait(100);
break;
case 4 :
if (this.t > (50 / _root.slomo)) {
this.r = Math.random();
if (this.r < 0.3) {
newEnemy = this.spawn("grub", "spawn_4");
} else if (this.r < 0.6) {
newEnemy = this.spawn("grub", "spawn_5");
} else {
newEnemy = this.spawn("grub", "spawn_6");
}
newEnemy.y_velocity = -500;
this.t = 0;
}
this.t++;
this.wait(400);
break;
case 5 :
this.t = 0;
this.wait(100);
break;
case 6 :
if (this.t > (40 / _root.slomo)) {
if (Math.random() < 0.5) {
if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_2");
} else {
newEnemy = this.spawn("grub", "spawn_2");
}
} else if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_3");
} else {
newEnemy = this.spawn("grub", "spawn_3");
}
this.t = 0;
}
this.t++;
this.wait(600);
break;
case 7 :
this.setLook("player");
this.setConstrain("normal");
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Instance of Symbol 295 MovieClip "trigger_0" in Symbol 298 MovieClip [Level1] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.t = 0;
_root.getreadybanner.play();
this.nE = new Array();
this.setLook("camera_0");
this.setConstrain("constrain2");
break;
case 1 :
break;
case 2 :
if (Math.random() < 0.0153846153846154) {
this.newBug = this.spawn("bug", "spawn_0");
this.newBug.y_velocity = -500;
this.newBug.x_velocity = (Math.random() * 250) - 125;
}
this.wait(500);
break;
case 3 :
this.wait(150);
break;
case 4 :
this.setLook("player");
this.setConstrain("normal");
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Instance of Symbol 295 MovieClip "trigger_2" in Symbol 298 MovieClip [Level1] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.t = 0;
this.j = 0;
_root.getreadybanner.play();
this.setULimit(-950);
this.setConstrain("constrian3");
newEnemy = this.spawn("bug", "spawn_m");
break;
case 1 :
this.wait(90);
break;
case 2 :
break;
case 3 :
if (this.t > (60 / _root.slomo)) {
if (Math.random() < 0.5) {
this.newEnemy = this.spawn("bug", "spawn_m");
} else {
this.newEnemy = this.spawn("grub", "spawn_m");
}
this.newEnemy.x_velocity = (Math.random() * 100) - 50;
this.newEnemy.y_velocity = -50;
this.t = 0;
}
if (this.j > (200 / _root.slomo)) {
this.newEnemy = this.spawn("grub", "spawn_1");
this.j = 0;
}
this.j++;
this.t++;
this.wait(700);
break;
case 3 :
this.wait(50);
break;
case 4 :
if (this.t > (60 / _root.slomo)) {
if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_m");
} else {
newEnemy = this.spawn("grub", "spawn_m");
}
this.newEnemy.y_velocity = -50;
if (Math.random() < 0.3) {
newEnemy.x_velocity = 120;
}
this.t = 0;
}
if (this.j > (200 / _root.slomo)) {
this.newEnemy = this.spawn("grub", "spawn_1");
this.j = 0;
}
this.j++;
this.t++;
this.wait(700);
break;
case 5 :
if (this.t > 60) {
newEnemy = this.spawn("grub", "spawn_1");
this.t = 0;
}
this.t++;
this.wait(500);
break;
case 6 :
if (this.t > (60 / _root.slomo)) {
if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_m");
} else {
newEnemy = this.spawn("grub", "spawn_m");
}
this.newEnemy.y_velocity = -50;
if (Math.random() < 0.3) {
newEnemy.x_velocity = 120;
}
this.t = 0;
}
if (this.j > (200 / _root.slomo)) {
this.newEnemy = this.spawn("grub", "spawn_1");
this.j = 0;
}
this.j++;
this.t++;
this.wait(700);
break;
case 7 :
this.wait(150);
break;
case 8 :
this.setULimit(0);
this.setLook("player");
this.setConstrain("normal");
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Instance of Symbol 295 MovieClip "trigger_4" in Symbol 298 MovieClip [Level1] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.t = 0;
_root.getreadybanner.play();
this.boss = this.spawn("fly", "spawn_7");
this.bossScript = function () {
switch (this.pc) {
case 0 :
this.setVelocity(50, 0);
this.wait(250);
break;
case 1 :
this.setVelocity(-50, 0);
this.wait(250);
break;
case 2 :
this.branch(0);
break;
default :
trace("Boss Broke!");
}
};
this.boss.scriptVM.setScript(this.bossScript, this.boss, this);
this.setLook("camera_3");
this.setConstrain("constrain");
break;
case 1 :
if (this.t > (65 / _root.slomo)) {
if (Math.random() < 0.5) {
if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_8");
} else {
newEnemy = this.spawn("grub", "spawn_8");
}
} else if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_9");
} else {
newEnemy = this.spawn("grub", "spawn_9");
}
this.t = 0;
}
this.t++;
if (this.boss.health < 5) {
this.paused = false;
this.boss.gotoAndStop(3);
_root.score = _root.score + 5000;
} else {
this.paused = true;
}
break;
case 2 :
this.setLook("player");
this.setConstrain("normal");
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Instance of Symbol 295 MovieClip "trigger_5" in Symbol 298 MovieClip [Level1] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
_root.getreadybanner.play();
this.setLook("camera_4");
this.setConstrain("constrain2");
this.t = 0;
break;
case 1 :
if (this.t > (60 / _root.slomo)) {
newEnemy = this.spawn("grub", "spawn_101");
newEnemy = this.spawn("grub", "spawn_11");
newEnemy.y_velocity = -50;
this.t = 0;
}
this.t++;
this.wait(1000);
break;
case 2 :
this.wait(100);
break;
case 3 :
if (this.t > (60 / _root.slomo)) {
newEnemy = this.spawn("bug", "spawn_11");
this.t = 0;
}
this.t++;
this.wait(1000);
break;
case 4 :
this.wait(100);
break;
case 5 :
if (this.t > (60 / _root.slomo)) {
newEnemy = this.spawn("bug", "spawn_11");
newEnemy = this.spawn("grub", "spawn_101");
this.t = 0;
}
this.t++;
this.wait(1000);
break;
case 6 :
this.setLook("player");
this.setConstrain("normal");
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Instance of Symbol 295 MovieClip "trigger_7" in Symbol 298 MovieClip [Level1] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.setFreeze("player", true);
_root.fade();
break;
case 1 :
this.wait(75);
break;
case 2 :
_root.playfield.attachMovie("level2", "level", 0);
break;
default :
trace("Script Broke!");
}
};
}
Instance of Symbol 295 MovieClip "trigger_6" in Symbol 298 MovieClip [Level1] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.t = 0;
_root.getreadybanner.play();
this.boss = this.spawn("fly", "spawn_12");
this.bossScript = function () {
switch (this.pc) {
case 0 :
this.setVelocity(-50, 0);
this.wait(250);
break;
case 1 :
this.setVelocity(50, 0);
this.wait(250);
break;
case 2 :
this.branch(0);
break;
default :
trace("Boss Broke!");
}
};
this.boss.scriptVM.setScript(this.bossScript, this.boss, this);
this.setLook("camera_5");
this.setConstrain("constrain2");
break;
case 1 :
if (this.t > (65 / _root.slomo)) {
if (Math.random() < 0.5) {
if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_13");
} else {
newEnemy = this.spawn("grub", "spawn_13");
}
} else if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_12");
} else {
newEnemy = this.spawn("grub", "spawn_12");
}
this.t = 0;
}
this.t++;
if (this.boss.health < 5) {
this.boss.gotoAndStop(3);
this.paused = false;
_root.score = _root.score + 5000;
} else {
this.paused = true;
}
break;
case 2 :
this.setLook("player");
this.setConstrain("normal");
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Symbol 328 MovieClip Frame 37
_root.effect_controller.wee.start(0, 0);
_root.effect_controller.wee.start(0, 0);
_root.effect_controller.wee.start(0, 0);
_root.effect_controller.wee.start(0, 0);
Symbol 328 MovieClip Frame 46
trace(_parent._parent);
point = new Object();
point.x = _parent._parent.spawn_2._x;
point.y = _parent._parent.spawn_2._y;
trace(_parent._parent.spawn_2);
g = _parent._parent.addParticle(_parent._parent, "Gib_Egg", point);
g.x_velocity = Math.random() * 120;
_parent.gotoAndStop(1);
Symbol 347 MovieClip Frame 13
_root.effect_controller.wee.start(0, 0);
_root.effect_controller.wee.start(0, 0);
_root.effect_controller.wee.start(0, 0);
_root.effect_controller.wee.start(0, 0);
Symbol 347 MovieClip Frame 16
trace(_parent._parent);
point = new Object();
point.x = _parent._parent.spawn_3._x;
point.y = _parent._parent.spawn_3._y;
g = _parent._parent.addParticle(_parent._parent, "Gib_Egg", point);
g.x_velocity = -520;
g.y_velocity = -160;
g._visible = false;
Symbol 347 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 354 MovieClip Frame 16
_parent.gotoAndStop(1);
Symbol 417 MovieClip Frame 59
stop();
Symbol 418 MovieClip [RoachSettings] Frame 1
#initclip 34
Object.registerClass("RoachSettings", Character);
#endinitclip
stop();
Symbol 422 MovieClip [Level2] Frame 1
#initclip 33
Object.registerClass("Level2", Level);
#endinitclip
this.gravity = 460;
this.damp = 0.2;
this.llimit = 5;
_root.music_controller.clip.stop();
_root.music_controller2.clip.start(0, 1000);
_root.flash();
Instance of Symbol 295 MovieClip "trigger_1" in Symbol 422 MovieClip [Level2] Frame 1
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.t = 0;
_root.getreadybanner.play();
this.setLook("camera_5");
this.setConstrain("constrain2");
this.boss = this.target.dummy;
break;
case 1 :
if (this.t > (85 / _root.slomo)) {
if (Math.random() < 0.5) {
if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_1");
} else {
newEnemy = this.spawn("grub", "spawn_1");
}
} else if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_2");
} else {
newEnemy = this.spawn("grub", "spawn_2");
}
this.t = 0;
}
this.t++;
if (this.boss.health < 5) {
this.target.roach.gotoAndStop(5);
this.target.roach.spawnGibs();
this.boss.health = 10000;
this.boss._y = this.boss._y + 1000;
this.boss._x = this.boss._x + 100;
_root.win = true;
this.paused = false;
} else {
this.paused = true;
}
break;
case 2 :
this.wait(200);
this.setLook("player");
this.setConstrain("normal");
break;
case 3 :
this.target.player.health = -500;
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Symbol 422 MovieClip [Level2] Frame 35
stop();
Instance of Symbol 418 MovieClip [RoachSettings] "roach" in Symbol 422 MovieClip [Level2] Frame 35
onClipEvent (load) {
this.eggcount = 0;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
if (eggcount < 3) {
if (Math.random() < 0.1) {
this.gotoAndStop(2);
this.eggcount++;
}
} else {
this.gotoAndStop(3);
this.eggcount = 0;
}
}
}
Instance of Symbol 421 MovieClip in Symbol 422 MovieClip [Level2] Frame 35
onClipEvent (enterFrame) {
this.swapDepths(36000);
}
Instance of Symbol 295 MovieClip "trigger_1" in Symbol 422 MovieClip [Level2] Frame 35
onClipEvent (load) {
this._visible = false;
this.targ = _parent.player.bounding_box;
this.script = function () {
switch (this.pc) {
case 0 :
this.t = 0;
this.setLook("camera_5");
this.setConstrain("constrain2");
break;
case 1 :
if (this.t > (65 / _root.slomo)) {
if (Math.random() < 0.5) {
if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_13");
} else {
newEnemy = this.spawn("grub", "spawn_13");
}
} else if (Math.random() < 0.5) {
newEnemy = this.spawn("bug", "spawn_12");
} else {
newEnemy = this.spawn("grub", "spawn_12");
}
this.t = 0;
}
this.t++;
if (this.boss.health < 5) {
this.boss.gotoAndStop(3);
this.paused = false;
} else {
this.paused = true;
}
break;
case 2 :
this.setLook("player");
this.setConstrain("normal");
this.end();
break;
default :
trace("Script Broke!");
}
};
}
Symbol 453 Button
on (release) {
if (this.music_t.text == "MUSIC: ON ") {
this.music_t.text = "MUSIC: OFF ";
this.music_s.text = "MUSIC: OFF ";
_root.musicon = false;
} else {
this.music_t.text = "MUSIC: ON ";
this.music_s.text = "MUSIC: ON ";
_root.musicon = true;
}
}
Symbol 454 Button
on (release) {
play();
}
Symbol 455 Button
on (press) {
getURL ("http://www.arrogancy.net/", "_blank");
}
Symbol 462 MovieClip Frame 1
this._visible = false;
stop();
l = new Array();
this.onEnterFrame = function () {
if (l.push((t = getTimer())) > 9) {
gotoAndStop (2);
}
if (f.text < 16) {
f.text = 16;
}
if (f.text != "") {
_root.timestep = f.text / 34;
_root.framerate = f.text;
} else {
_root.timestep = 1;
_root.framerate = 34;
}
};
Symbol 462 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
l.push((t = getTimer()));
f.text = Math.round(100000 / (t - l.shift())) / 10;
if (f.text < 16) {
f.text = 16;
}
if (f.text != "") {
_root.timestep = f.text / 34;
_root.framerate = f.text;
} else {
_root.timestep = 1;
_root.framerate = 34;
}
};
Symbol 502 MovieClip Frame 1
_visible = false;
stop();
Symbol 502 MovieClip Frame 2
_visible = true;
Symbol 506 MovieClip Frame 1
_visible = false;
stop();
Symbol 506 MovieClip Frame 2
_visible = true;
Symbol 510 MovieClip Frame 1
_visible = false;
stop();
Symbol 510 MovieClip Frame 2
_visible = true;
_root.score = _root.score + 2500;
Symbol 527 Button
on (release) {
gotoAndStop (28);
}
Symbol 535 Button
on (release) {
_root.gotoMenu();
}
Symbol 568 Button
on (release) {
getURL ("http://www.macromedia.com/support/flash/flashplayer7updater.html");
}