Combined Code
// unknown tag 88 length 65
movieClip 7 down2 {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 9 down {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
// unknown tag 88 length 99
movieClip 12 levelup {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 14 x4 {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 16 x3 {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 18 x2 {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 20 up4 {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 22 up3 {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 24 up2 {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 27 up {
frame 1 {
var dir = Math.random() * 6.2831853;
onEnterFrame = function () {
this._x += 1 * Math.cos(dir);
this._y += 1 * Math.sin(dir);
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip(this);
}
if (_root.lvl == 3) {
this._alpha = 0;
}
};
}
}
movieClip 31 {
}
movieClip 34 lightning {
frame 5 {
this.removeMovieClip(this);
}
frame 10 {
this.removeMovieClip(this);
}
}
movieClip 50 stone {
frame 1 {
this.onEnterFrame = function () {
if (_root.lvl == 3) {
this.removeMovieClip();
}
};
}
frame 29 {
this.removeMovieClip(this);
}
}
movieClip 73 fuel_bar {
frame 1 {
stop();
}
}
movieClip 78 {
}
movieClip 79 level4 {
}
movieClip 81 level1 {
}
movieClip 83 level2 {
}
movieClip 85 level3 {
}
movieClip 87 level5 {
}
movieClip 89 level6 {
}
movieClip 91 level7 {
}
movieClip 93 startlight {
}
movieClip 94 star3 {
frame 1 {
this.onEnterFrame = function () {
if (_root.lightning_timer._currentframe > 1) {
this._x += 2;
} else {
this._x += 1;
}
if (this._x > 750) {
this.removeMovieClip(this);
}
};
}
}
movieClip 95 star2 {
frame 1 {
this.onEnterFrame = function () {
if (_root.lightning_timer._currentframe > 1) {
this._x += 4;
} else {
this._x += 2;
}
if (this._x > 750) {
this.removeMovieClip(this);
}
};
}
}
movieClip 96 star {
frame 1 {
this.onEnterFrame = function () {
if (_root.lightning_timer._currentframe > 1) {
this._x += 8;
} else {
this._x += 4;
}
if (this._x > 750) {
this.removeMovieClip(this);
}
};
}
}
movieClip 99 glass2 {
frame 1 {
size = 100;
rot = 0;
xspeed = 0;
yspeed = 0;
count = 0;
count2 = 10;
radius = 13;
bounchtimer = 0;
molly = 0;
size = 200;
totalobs += 1;
onEnterFrame = function () {
this._xscale = size;
this._yscale = size;
radius = size / 2;
this._rotation += rot;
this._x += xspeed;
this._y += yspeed;
if (count == 1) {
yspeed += 0.7;
if (rot > 0) {
rot -= 0.1;
}
if (size > 0) {
size -= 0.9;
}
if (xspeed > 0) {
xspeed -= 0.01;
}
if (xspeed < 0) {
xspeed += 0.01;
}
}
if (this._y > 800) {
_root.totalobs -= 1;
this.unloadMovie(this);
}
if (this._y > 600 & bounchtimer == 0) {
yspeed *= -1;
yspeed *= 0.7;
bounchtimer = 1;
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
};
molly = 1;
i = random(2);
count = 1;
yspeed -= random(10) + 5;
rot = 10;
if (i == 1) {
xspeed += random(7);
}
if (i == 0) {
xspeed -= random(7);
}
}
frame 454 {
this.removeMovieClip(this);
}
}
movieClip 102 glass {
frame 1 {
size = 100;
rot = 0;
xspeed = 0;
yspeed = 0;
count = 0;
count2 = 10;
radius = 13;
bounchtimer = 0;
molly = 0;
size = 200;
totalobs += 1;
onEnterFrame = function () {
this._xscale = size;
this._yscale = size;
radius = size / 2;
this._rotation += rot;
this._x += xspeed;
this._y += yspeed;
if (count == 1) {
yspeed += 0.7;
if (rot > 0) {
rot -= 0.1;
}
if (size > 0) {
size -= 0.9;
}
if (xspeed > 0) {
xspeed -= 0.01;
}
if (xspeed < 0) {
xspeed += 0.01;
}
}
if (this._y > 800) {
_root.totalobs -= 1;
this.unloadMovie(this);
}
if (this._y > 600 & bounchtimer == 0) {
yspeed *= -1;
yspeed *= 0.7;
bounchtimer = 1;
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
};
molly = 1;
i = random(2);
count = 1;
yspeed -= random(10) + 5;
rot = 10;
if (i == 1) {
xspeed += random(7);
}
if (i == 0) {
xspeed -= random(7);
}
}
frame 454 {
this.removeMovieClip(this);
}
}
movieClip 104 dot {
frame 1 {
onEnterFrame = function () {
if (_root._xmouse >= this._x - 1000 & _root._xmouse <= this._x + 1000 & _root._ymouse >= this._y - 1000 & _root._ymouse <= this._y + 1000) {
this._xscale = 100;
this._yscale = 100;
}
if (_root._xmouse >= this._x - 50 & _root._xmouse <= this._x + 50 & _root._ymouse >= this._y - 50 & _root._ymouse <= this._y + 50) {
this._xscale = 110;
this._yscale = 110;
}
if (_root._xmouse >= this._x - 40 & _root._xmouse <= this._x + 40 & _root._ymouse >= this._y - 40 & _root._ymouse <= this._y + 40) {
this._xscale = 120;
this._yscale = 120;
}
if (_root._xmouse >= this._x - 30 & _root._xmouse <= this._x + 30 & _root._ymouse >= this._y - 30 & _root._ymouse <= this._y + 30) {
this._xscale = 130;
this._yscale = 130;
}
if (_root._xmouse >= this._x - 20 & _root._xmouse <= this._x + 20 & _root._ymouse >= this._y - 20 & _root._ymouse <= this._y + 20) {
this._xscale = 140;
this._yscale = 140;
}
if (_root._xmouse >= this._x - 10 & _root._xmouse <= this._x + 10 & _root._ymouse >= this._y - 10 & _root._ymouse <= this._y + 10) {
this._xscale = 150;
this._yscale = 150;
}
};
}
}
movieClip 106 mob2 {
}
movieClip 108 gameover {
}
movieClip 110 elevelel {
}
movieClip 112 socresss {
}
movieClip 136 hthpee {
frame 1 {
stop();
}
}
movieClip 138 player {
}
movieClip 142 {
}
movieClip 143 enemy {
}
// unknown tag 88 length 87
movieClip 146 cake_timer {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
}
movieClip 148 muchsound {
frame 1 {
stop();
}
}
movieClip 153 food {
frame 1 {
stop();
}
}
movieClip 161 silencer {
}
movieClip 162 mob {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
size = 100;
onEnterFrame = function () {
this._xscale = size;
this._yscale = size;
++i;
if (this.hitTest(_root.enemy_mc) && this._currentframe < 3) {
_root.hp -= 10;
_root.attachMovie('down', 'down' + i, _root.getNextHighestDepth());
_root['down' + i]._x = _root.enemy_mc._x;
_root['down' + i]._y = _root.enemy_mc._y;
}
if (_root.sizing == true) {
size = 40;
} else {
size = 100;
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
};
}
}
movieClip 164 {
}
movieClip 165 lightning_timer {
frame 1 {
stop();
}
}
movieClip 167 back_grounding {
}
frame 1 {
function createExplosion(targetX, targetY) {
var v6 = 0;
while (v6 < particleTotal) {
if (_root.boost == false) {
var v5 = flash.display.BitmapData.loadBitmap('fire.jpg');
particleTotal = 7;
particleFadeSpeed = 10;
} else {
var v5 = flash.display.BitmapData.loadBitmap('boost.jpg');
particleTotal = 9.33;
particleFadeSpeed = 13.33;
}
var v3 = _root.createEmptyMovieClip('main_holder', _root.getNextHighestDepth());
var v4 = v3.createEmptyMovieClip('internal_holder', v3.getNextHighestDepth());
v4._x = -v5.width / 2;
v4._y = -v5.height / 2;
v4.attachBitmap(v5, v4.getNextHighestDepth(), 'never');
v3._x = targetX;
v3._y = targetY;
v3._rotation = random(360);
v3._alpha = random(50) + 50;
v3.boundyLeft = targetX - particleRange;
v3.boundyTop = targetY - particleRange;
v3.boundyRight = targetX + particleRange;
v3.boundyBottom = targetY + particleRange;
v3.speedX = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
v3.speedY = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
v3.speedX *= particleMaxSpeed;
v3.speedY *= particleMaxSpeed;
v3.fadeSpeed = Math.random(particleFadeSpeed) * particleFadeSpeed;
++numberOfParticles;
v3.onEnterFrame = function () {
this._alpha -= this.fadeSpeed;
this._x += this.speedX;
this._y += this.speedY;
if (this._alpha <= 0 || this._x < this.boundyLeft || this._x > this.boundyRight || this._y < this.boundyTop || this._y > this.boundyBottom) {
this.removeMovieClip();
--numberOfParticles;
}
if (_root.lvl == 3) {
this.removeMovieClip();
--numberOfParticles;
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
};
++v6;
}
}
lvl = 0;
tot = 0;
score = 0;
pro = 0;
hp = 100;
en = 1;
xtimer = 0;
leveluptotal = 0;
streaktimer = 0;
_root.playagain._x = 375;
_root.loadload._alpha = 100;
gig = 0;
gig2 = 0;
booster = 0;
turner = 0;
slowhow = 0;
boosters = 0;
siser = 0;
timdejong = 0;
timdejong2 = 0;
timdejong3 = 0;
timdejong4 = 0;
timdejong5 = 0;
timdejong6 = 0;
second = -40;
star_timer = 10;
star2_timer = 6;
star3_timer = 4;
var i = 0;
slow = false;
boost = false;
sizing = false;
playlist = random(2);
onEnterFrame = function () {
if (playlist >= 2) {
playlist = 0;
}
if (playlist < 0) {
playlist = 1;
}
if (_root.boost == true) {
booster = _root.speed / 3;
turner = _root.turnRate / 3;
} else {
booster = 0;
turner = 0;
}
if (boosters > 0) {
boost = true;
boosters -= 1;
} else {
boost = false;
}
if (slowhow > 0) {
slowhow -= 1;
slow = true;
} else {
slow = false;
}
if (siser > 0) {
siser -= 1;
sizing = true;
} else {
sizing = false;
}
++i;
star_timer -= 1;
star2_timer -= 1;
star3_timer -= 1;
if (star_timer <= 0) {
_root.attachMovie('star', 'star' + i, _root.getNextHighestDepth());
_root['star' + i]._x = -10;
_root['star' + i]._y = random(610);
star_timer = 10;
}
if (star2_timer <= 0) {
_root.attachMovie('star2', 'star2' + i, _root.getNextHighestDepth());
_root['star2' + i]._x = -10;
_root['star2' + i]._y = random(610);
star2_timer = 6;
}
if (star3_timer <= 0) {
_root.attachMovie('star3', 'star3' + i, _root.getNextHighestDepth());
_root['star3' + i]._x = -10;
_root['star3' + i]._y = random(610);
star3_timer = 4;
}
if (second < 0 & lvl == 2) {
second += 1;
}
if (_root._alpha <= 100) {
_root._alpha += 5;
}
if (gig >= 2) {
gig = 0;
}
if (gig2 >= 2) {
gig2 = 0;
}
if (_root.xtimer > _root.streaktimer) {
_root.streaktimer = xtimer;
}
_root.backgroundsound.play();
if (_root.lvl == 2) {
createExplosion(_root.enemy_mc._x, _root.enemy_mc._y);
_root.particleRange = 50;
_root.particleTotal = 4;
_root.particleMaxSpeed = 1;
}
if (_root.lvl == 1) {
_root.gotoAndStop(90);
}
if (_root.lvl == 2) {
_root.gotoAndStop(91);
}
if (_root.lvl == 3) {
_root.gotoAndStop(92);
Mouse.show();
}
if (_root.lvl == 4) {
_root.gotoAndStop(93);
}
if (_root.lvl == 5) {
_root.gotoAndStop(94);
}
if (_root.hp <= 0) {
_root.tot = _root.pro;
_root.score = (_root.streaktimer / 25) * _root.score;
_root.hp = 100;
_root.lvl = 3;
_root.again.play();
_root._alpha = 0;
}
if (_root.lvl == 2) {
if (_root.score < 50) {
_root.speed = 8 + _root.booster;
_root.turnRate = 5 + _root.turner;
}
if (_root.score >= 50) {
_root.pro = 1;
_root.speed = 9 + _root.booster;
_root.turnRate = 6 + _root.turner;
_root.leveluptimer.play();
}
if (_root.score >= 200) {
_root.pro = 2;
_root.speed = 9.5 + _root.booster;
_root.turnRate = 6.5 + _root.turner;
}
if (_root.score >= 400) {
_root.pro = 3;
_root.speed = 10 + _root.booster;
_root.turnRate = 7 + _root.turner;
}
if (_root.score >= 650) {
_root.pro = 4;
_root.speed = 10.5 + _root.booster;
_root.turnRate = 7.5 + _root.turner;
}
if (_root.score >= 1000) {
_root.pro = 5;
_root.speed = 11 + _root.booster;
_root.turnRate = 8 + _root.turner;
}
if (_root.score >= 1300) {
_root.pro = 6;
_root.speed = 11.5 + _root.booster;
_root.turnRate = 8.5 + _root.turner;
}
if (_root.score >= 1650) {
_root.pro = 7;
_root.speed = 12 + _root.booster;
_root.turnRate = 9 + _root.turner;
}
if (_root.score >= 2050) {
_root.pro = 8;
_root.speed = 12 + _root.booster;
_root.turnRate = 9 + _root.turner;
}
if (_root.score >= 2500) {
_root.pro = 9;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 3050) {
_root.pro = 10;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 3500) {
_root.pro = 11;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
_root.leveluptimer.play();
}
if (_root.score >= 4000) {
_root.pro = 12;
_root.speed = 13 + _root.booster;
_root.turnRate = 6.5 + _root.turner;
}
if (_root.score >= 4500) {
_root.pro = 13;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 5000) {
_root.pro = 14;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 5500) {
_root.pro = 15;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 6000) {
_root.pro = 16;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 6500) {
_root.pro = 17;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 7000) {
_root.pro = 18;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 7500) {
_root.pro = 19;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.score >= 8000) {
_root.pro = 20;
_root.speed = 13 + _root.booster;
_root.turnRate = 10 + _root.turner;
}
if (_root.pro == 1 & _root.en == 1) {
_root.slowhow += 1.5;
}
if (_root.pro == 2 & _root.en == 2) {
_root.slowhow += 1.5;
}
if (_root.pro == 3 & _root.en == 3) {
_root.slowhow += 1.5;
}
if (_root.pro == 4 & _root.en == 4) {
_root.slowhow += 1.5;
}
if (_root.pro == 5 & _root.en == 5) {
_root.slowhow += 1.5;
}
if (_root.pro == 6 & _root.en == 6) {
_root.slowhow += 1.5;
}
if (_root.pro == 7 & _root.en == 7) {
_root.slowhow += 1.5;
}
if (_root.pro == 8 & _root.en == 8) {
_root.slowhow += 1.5;
}
if (_root.pro == 9 & _root.en == 9) {
_root.slowhow += 1.5;
}
if (_root.pro == 10 & _root.en == 10) {
_root.slowhow += 1.5;
}
if (_root.pro == 11 & _root.en == 11) {
_root.slowhow += 1.5;
}
if (_root.pro == 12 & _root.en == 12) {
_root.slowhow += 1.5;
}
if (_root.pro == 13 & _root.en == 13) {
_root.slowhow += 1.5;
}
if (_root.pro == 14 & _root.en == 14) {
_root.slowhow += 1.5;
}
if (_root.pro == 15 & _root.en == 15) {
_root.slowhow += 1.5;
}
if (_root.pro == 16 & _root.en == 16) {
_root.slowhow += 1.5;
}
if (_root.pro == 17 & _root.en == 17) {
_root.slowhow += 1.5;
}
if (_root.pro == 18 & _root.en == 18) {
_root.slowhow += 1.5;
}
if (_root.pro == 19 & _root.en == 19) {
_root.slowhow += 1.5;
}
if (_root.pro == 20 & _root.en == 20) {
_root.slowhow += 1.5;
}
}
if (_root.lightning_timer._currentframe > 1) {
_root.hp += 0.5;
} else {
_root.hp += 0.1;
}
if (_root.hp > 100) {
_root.hp = 100;
}
doFollow(enemy_mc, player_mc);
};
var particleMaxSpeed = 7;
var particleFadeSpeed = 10;
var particleTotal = 25;
var particleRange = 200;
}
movieClip 170 {
}
movieClip 172 {
}
movieClip 174 {
}
button 180 {
on (release) {
startMovie();
}
}
movieClip 181 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v4;
if (v4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop('loaded');
}
return undefined;
}
}
dt = getTimer() - time;
time += dt;
frameAccum += dt;
var v3 = 0;
for (;;) {
if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break;
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
frameAccum -= FRAME_TIME;
v3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return undefined;
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof clip[childName] == 'movieclip') {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.33333333333334;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
}
}
frame 89 {
_root.lvl = 1;
_root._alpha = 0;
}
frame 90 {
stop();
}
movieClip 183 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.playlist == 0) {
this.play();
} else {
this.gotoAndStop(1);
}
};
}
frame 5043 {
gotoAndPlay(1);
stopAllSounds();
}
}
movieClip 185 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.playlist == 1) {
this.play();
} else {
this.gotoAndStop(1);
}
};
}
frame 4683 {
gotoAndPlay(1);
stopAllSounds();
}
}
instance lightning_timer of movieClip 165 lightning_timer {
onClipEvent (load) {
this._visible = false;
}
}
movieClip 187 {
}
instance of movieClip 187 {
onClipEvent (enterFrame) {
if (_root.loadinger == false) {
this._alpha = 0;
} else {
this._alpha = 20;
}
}
}
movieClip 189 {
}
button 193 {
on (release) {
_root.lvl = 2;
_root._alpha = 0;
}
}
button 198 {
on (release) {
_root.gig += 1;
}
}
button 202 {
on (release) {
_root.gig2 += 1;
}
}
movieClip 203 {
}
movieClip 205 {
instance of movieClip 203 {
onClipEvent (load) {
this._alpha = 20;
}
}
}
instance of movieClip 205 {
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.gig2 == 0 & this._alpha >= 0) {
this._alpha -= 10;
}
if (_root.gig2 == 1 & this._alpha <= 100) {
this._alpha += 10;
}
}
}
instance of movieClip 187 {
onClipEvent (load) {
this._alpha = 20;
}
}
movieClip 207 {
}
button 208 {
on (release) {
stopAllSounds();
_root.playlist += 1;
}
}
movieClip 209 {
}
button 210 {
on (release) {
stopAllSounds();
_root.playlist -= 1;
}
}
movieClip 212 {
}
button 213 {
on (release) {
stopAllSounds();
}
}
movieClip 233 {
}
movieClip 235 {
}
movieClip 237 {
}
movieClip 239 {
}
movieClip 241 {
}
movieClip 243 {
}
movieClip 244 {
instance of movieClip 187 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 187 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 187 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 187 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 187 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 233 {
onClipEvent (enterFrame) {
this._rotation += 20;
}
}
instance of movieClip 235 {
onClipEvent (enterFrame) {
this._rotation += 20;
}
}
instance of movieClip 237 {
onClipEvent (enterFrame) {
this._rotation += 20;
}
}
instance of movieClip 239 {
onClipEvent (enterFrame) {
this._rotation += 20;
}
}
instance of movieClip 241 {
onClipEvent (enterFrame) {
this._rotation += 20;
}
}
instance of movieClip 243 {
onClipEvent (enterFrame) {
this._rotation += 20;
}
}
}
instance howtoplay of movieClip 244 {
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.gig == 0 & this._alpha >= 0) {
this._alpha -= 10;
}
if (_root.gig == 1 & this._alpha <= 100) {
this._alpha += 10;
}
}
}
frame 91 {
function doFollow(follower, target) {
var v2 = target._x - follower._x;
var v1 = target._y - follower._y;
distanceTotal = Math.sqrt(v2 * v2 + v1 * v1);
if (distanceTotal <= agroRange) {
var v6 = turnRate * v2 / distanceTotal;
var v5 = turnRate * v1 / distanceTotal;
moveX += v6;
moveY += v5;
var v4 = Math.sqrt(moveX * moveX + moveY * moveY);
moveX = speed * moveX / v4;
moveY = speed * moveY / v4;
follower._x += moveX;
follower._y += moveY;
follower._rotation = 180 * Math.atan2(moveY, moveX) / Math.PI;
}
}
var speed = 8;
var turnRate = 5;
var agroRange = 1000;
var moveX = 0;
var moveY = 0;
}
movieClip 248 {
frame 1 {
stop();
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = -1;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 1;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 3;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 5;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 7;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 9;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 11;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 13;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 15;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 162 mob {
onClipEvent (load) {
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
proo = 17;
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= proo) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= proo) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= proo) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= proo) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro <= proo && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro <= proo && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 250 {
frame 1 {
stop();
var i = 0;
size = 100;
onEnterFrame = function () {
this._xscale = size;
this._yscale = size;
++i;
if (this.hitTest(_root.enemy_mc) && this._currentframe < 3) {
_root.hp -= 5;
_root.attachMovie('down2', 'down2' + i, _root.getNextHighestDepth());
_root['down2' + i]._x = _root.enemy_mc._x;
_root['down2' + i]._y = _root.enemy_mc._y;
}
if (_root.sizing == true) {
size = 40;
} else {
size = 100;
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
};
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = -1;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 2;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 4;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 6;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 8;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 10;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 12;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 14;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 16;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 18;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
speed = 8;
timea = 0;
proo = 20;
xspeed = 0;
this._x = -30;
this._y = random(600);
}
onClipEvent (enterFrame) {
this._x += xspeed;
if (_root.pro >= proo & timea == 0) {
xspeed += 0.1;
}
if (_root.pro >= proo & timea == 1) {
xspeed -= 0.1;
}
if (timea == 0 & this._x > 2750) {
this._x = -30;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = random(10) + 5;
}
if (timea == 1 & this._x < -2000) {
this._x = 780;
this._y = random(600);
this._alpha = 100;
this.gotoAndStop(1);
xspeed = -random(10) + 5;
}
if (_root.pro <= proo && _root.enemy_mc._x < 375) {
this._x = 780;
this._rotation = -90;
timea = 0;
}
if (_root.pro <= proo && _root.enemy_mc._x > 375) {
this._x = -30;
this._rotation = 90;
timea = 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 252 {
}
instance of movieClip 252 {
onClipEvent (enterFrame) {
if (_root.lvl == 2) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (_root.enemy_mc.hitTest(this)) {
_root.xtimer = 0;
_root.vier = false;
_root.drie = false;
_root.twee = false;
}
}
}
instance of movieClip 187 {
onClipEvent (enterFrame) {
if (_root.lvl != 2) {
this._alpha = 0;
} else {
this._alpha = 20;
}
}
}
instance food of movieClip 153 food {
onClipEvent (load) {
this._x = random(750);
this._y = random(600);
var i = 0;
power = 0.1;
yspeed = 0;
xspeed = 0;
friction = 0.95;
}
onClipEvent (enterFrame) {
this._alpha += 3;
this._rotation += 5;
++i;
if (_root.enemy_mc.hitTest(this) & _root.xtimer < 5) {
if (_root.timdejongker._y < 0) {
_root.timdejong = random(30);
}
if (_root.timdejongker2._y < 0) {
_root.timdejong2 = random(30);
}
if (_root.timdejongker3._y < 0) {
_root.timdejong3 = random(30);
}
if (_root.timdejongker4._y < 0) {
_root.timdejong4 = random(30);
}
if (_root.timdejongker5._y < 0) {
_root.timdejong5 = random(30);
}
if (_root.timdejongker6._y < 0) {
_root.timdejong6 = random(30);
}
this._alpha = 0;
_root.xtimer += 1;
_root.score += 10;
_root.attachMovie('stone', 'stone' + i, _root.getNextHighestDepth());
_root['stone' + i]._x = _root.food._x;
_root['stone' + i]._y = _root.food._y;
_root.muchsound.gotoAndPlay(2);
this._x = random(750);
this._y = random(600);
_root.attachMovie('up', 'up' + i, _root.getNextHighestDepth());
_root['up' + i]._x = _root.enemy_mc._x;
_root['up' + i]._y = _root.enemy_mc._y;
}
if (_root.enemy_mc.hitTest(this) & _root.xtimer == 5) {
if (_root.timdejongker._y < 0) {
_root.timdejong = random(30);
}
if (_root.timdejongker3._y < 0) {
_root.timdejong3 = random(30);
}
if (_root.timdejongker4._y < 0) {
_root.timdejong4 = random(30);
}
if (_root.timdejongker5._y < 0) {
_root.timdejong5 = random(30);
}
if (_root.timdejongker6._y < 0) {
_root.timdejong6 = random(30);
}
this._alpha = 0;
_root.xtimer += 1;
_root.score += 20;
_root.attachMovie('stone', 'stone' + i, _root.getNextHighestDepth());
_root['stone' + i]._x = _root.food._x;
_root['stone' + i]._y = _root.food._y;
_root.muchsound.gotoAndPlay(2);
this._x = random(750);
this._y = random(600);
_root.attachMovie('up', 'up' + i, _root.getNextHighestDepth());
_root['up' + i]._x = _root.enemy_mc._x;
_root['up' + i]._y = _root.enemy_mc._y;
_root.attachMovie('x2', 'x2' + i, _root.getNextHighestDepth());
_root['x2' + i]._x = _root.enemy_mc._x;
_root['x2' + i]._y = _root.enemy_mc._y;
}
if (_root.enemy_mc.hitTest(this) & _root.xtimer < 10) {
if (_root.timdejongker._y < 0) {
_root.timdejong = random(30);
}
if (_root.timdejongker3._y < 0) {
_root.timdejong3 = random(30);
}
if (_root.timdejongker4._y < 0) {
_root.timdejong4 = random(30);
}
if (_root.timdejongker5._y < 0) {
_root.timdejong5 = random(30);
}
if (_root.timdejongker6._y < 0) {
_root.timdejong6 = random(30);
}
this._alpha = 0;
_root.xtimer += 1;
_root.score += 20;
_root.attachMovie('stone', 'stone' + i, _root.getNextHighestDepth());
_root['stone' + i]._x = _root.food._x;
_root['stone' + i]._y = _root.food._y;
_root.muchsound.gotoAndPlay(2);
this._x = random(750);
this._y = random(600);
_root.attachMovie('up', 'up' + i, _root.getNextHighestDepth());
_root['up' + i]._x = _root.enemy_mc._x;
_root['up' + i]._y = _root.enemy_mc._y;
_root.attachMovie('x2', 'x2' + i, _root.getNextHighestDepth());
_root['x2' + i]._x = _root.enemy_mc._x;
_root['x2' + i]._y = _root.enemy_mc._y;
}
if (_root.enemy_mc.hitTest(this) & _root.xtimer == 10) {
if (_root.timdejongker._y < 0) {
_root.timdejong = random(30);
}
if (_root.timdejongker4._y < 0) {
_root.timdejong4 = random(30);
}
if (_root.timdejongker5._y < 0) {
_root.timdejong5 = random(30);
}
if (_root.timdejongker6._y < 0) {
_root.timdejong6 = random(30);
}
this._alpha = 0;
_root.xtimer += 1;
_root.score += 30;
_root.attachMovie('stone', 'stone' + i, _root.getNextHighestDepth());
_root['stone' + i]._x = _root.food._x;
_root['stone' + i]._y = _root.food._y;
_root.muchsound.gotoAndPlay(2);
this._x = random(750);
this._y = random(600);
_root.attachMovie('up', 'up' + i, _root.getNextHighestDepth());
_root['up' + i]._x = _root.enemy_mc._x;
_root['up' + i]._y = _root.enemy_mc._y;
_root.attachMovie('x3', 'x3' + i, _root.getNextHighestDepth());
_root['x3' + i]._x = _root.enemy_mc._x;
_root['x3' + i]._y = _root.enemy_mc._y;
}
if (_root.enemy_mc.hitTest(this) & _root.xtimer < 15) {
if (_root.timdejongker._y < 0) {
_root.timdejong = random(30);
}
if (_root.timdejongker4._y < 0) {
_root.timdejong4 = random(30);
}
if (_root.timdejongker5._y < 0) {
_root.timdejong5 = random(30);
}
if (_root.timdejongker6._y < 0) {
_root.timdejong6 = random(30);
}
this._alpha = 0;
_root.xtimer += 1;
_root.score += 30;
_root.attachMovie('stone', 'stone' + i, _root.getNextHighestDepth());
_root['stone' + i]._x = _root.food._x;
_root['stone' + i]._y = _root.food._y;
_root.muchsound.gotoAndPlay(2);
this._x = random(750);
this._y = random(600);
_root.attachMovie('up', 'up' + i, _root.getNextHighestDepth());
_root['up' + i]._x = _root.enemy_mc._x;
_root['up' + i]._y = _root.enemy_mc._y;
_root.attachMovie('x3', 'x3' + i, _root.getNextHighestDepth());
_root['x3' + i]._x = _root.enemy_mc._x;
_root['x3' + i]._y = _root.enemy_mc._y;
}
if (_root.enemy_mc.hitTest(this) & _root.xtimer == 15) {
if (_root.timdejongker._y < 0) {
_root.timdejong = random(30);
}
if (_root.timdejongker5._y < 0) {
_root.timdejong5 = random(30);
}
if (_root.timdejongker6._y < 0) {
_root.timdejong6 = random(30);
}
this._alpha = 0;
_root.xtimer += 1;
_root.score += 40;
_root.attachMovie('stone', 'stone' + i, _root.getNextHighestDepth());
_root['stone' + i]._x = _root.food._x;
_root['stone' + i]._y = _root.food._y;
_root.muchsound.gotoAndPlay(2);
this._x = random(750);
this._y = random(600);
_root.attachMovie('up', 'up' + i, _root.getNextHighestDepth());
_root['up' + i]._x = _root.enemy_mc._x;
_root['up' + i]._y = _root.enemy_mc._y;
_root.attachMovie('x4', 'x4' + i, _root.getNextHighestDepth());
_root['x4' + i]._x = _root.enemy_mc._x;
_root['x4' + i]._y = _root.enemy_mc._y;
}
if (_root.enemy_mc.hitTest(this) & _root.xtimer < 19999999) {
if (_root.timdejongker._y < 0) {
_root.timdejong = random(30);
}
if (_root.timdejongker5._y < 0) {
_root.timdejong5 = random(30);
}
if (_root.timdejongker6._y < 0) {
_root.timdejong6 = random(30);
}
this._alpha = 0;
_root.xtimer += 1;
_root.score += 40;
_root.attachMovie('stone', 'stone' + i, _root.getNextHighestDepth());
_root['stone' + i]._x = _root.food._x;
_root['stone' + i]._y = _root.food._y;
_root.muchsound.gotoAndPlay(2);
this._x = random(750);
this._y = random(600);
_root.attachMovie('up', 'up' + i, _root.getNextHighestDepth());
_root['up' + i]._x = _root.enemy_mc._x;
_root['up' + i]._y = _root.enemy_mc._y;
_root.attachMovie('x4', 'x4' + i, _root.getNextHighestDepth());
_root['x4' + i]._x = _root.enemy_mc._x;
_root['x4' + i]._y = _root.enemy_mc._y;
}
if (this._x > _root.enemy_mc._x) {
xspeed -= power;
}
if (this._x < _root.enemy_mc._x) {
xspeed += power;
}
if (this._y > _root.enemy_mc._y) {
yspeed -= power;
}
if (this._y < _root.enemy_mc._y) {
yspeed += power;
}
xspeed *= friction;
yspeed *= friction;
_y = _y + yspeed;
_x = _x + xspeed;
if (this._x < 0) {
this._x = random(750);
this._y = random(600);
}
if (this._x > 750) {
this._x = random(750);
this._y = random(600);
}
if (this._y > 600) {
this._x = random(750);
this._y = random(600);
}
if (this._y < 0) {
this._x = random(750);
this._y = random(600);
}
if (_root.score == 50 && leveluptotal == 1) {
_root.attachMovie('levelup', 'levelup' + i, _root.getNextHighestDepth());
_root['levelup' + i]._x = _root.enemy_mc._x;
_root['levelup' + i]._y = _root.enemy_mc._y;
_root.leveluptotal += 1;
}
}
}
instance muchsound of movieClip 148 muchsound {
onClipEvent (load) {
this._visible = false;
}
}
movieClip 256 {
}
instance of movieClip 256 {
onClipEvent (load) {
xspeed = 10;
time = 0;
this._alpha = 10;
this._xscale = 600;
this._yscale = this._xscale;
}
onClipEvent (enterFrame) {
if (_root.second == 0) {
this._x += xspeed;
if (time == 0) {
xspeed += 0.4;
}
if (time == 1) {
xspeed -= 5;
}
if (time == 2) {
xspeed += 5;
}
if (time == 3) {
xpsedd += 0.4;
}
if (this._x > 375 & time == 0) {
time = 1;
_root.soundo.gotoAndStop(4);
}
if (this._x < 375 & time == 1) {
time = 2;
}
if (this._x > 375 & time == 2) {
time = 3;
}
if (this._x > 800) {
_root.second = 1;
this.unloadMovie(this);
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
movieClip 258 {
}
instance of movieClip 258 {
onClipEvent (load) {
xspeed = 10;
time = 0;
this._alpha = 10;
this._xscale = 600;
this._yscale = this._xscale;
}
onClipEvent (enterFrame) {
if (_root.second == 1) {
this._x += xspeed;
if (time == 0) {
xspeed += 0.4;
}
if (time == 1) {
xspeed -= 5;
}
if (time == 2) {
xspeed += 5;
}
if (time == 3) {
xpsedd += 0.4;
}
if (this._x > 375 & time == 0) {
time = 1;
_root.soundo.gotoAndStop(3);
}
if (this._x < 375 & time == 1) {
time = 2;
}
if (this._x > 375 & time == 2) {
time = 3;
}
if (this._x > 800) {
_root.second = 2;
this.unloadMovie(this);
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
movieClip 260 {
}
instance of movieClip 260 {
onClipEvent (load) {
xspeed = 10;
time = 0;
this._alpha = 10;
this._xscale = 600;
this._yscale = this._xscale;
}
onClipEvent (enterFrame) {
if (_root.second == 2) {
this._x += xspeed;
if (time == 0) {
xspeed += 0.4;
}
if (time == 1) {
xspeed -= 5;
}
if (time == 2) {
xspeed += 5;
}
if (time == 3) {
xpsedd += 0.4;
}
if (this._x > 375 & time == 0) {
time = 1;
_root.soundo.gotoAndStop(2);
}
if (this._x < 375 & time == 1) {
time = 2;
}
if (this._x > 375 & time == 2) {
time = 3;
}
if (this._x > 800) {
_root.second = 3;
this.unloadMovie(this);
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
movieClip 263 {
frame 1 {
hop = 0;
onEnterFrame = function () {
hop = _root.pro;
};
}
}
instance of movieClip 263 {
onClipEvent (load) {
xspeed = 0;
this._alpha = 20;
this._xscale = 200;
this._yscale = this._xscale;
}
onClipEvent (enterFrame) {
if (_root.slow == true) {
this._x += xspeed;
xspeed += 0.3;
if (this._x > 800) {
_root.slowhow = 0;
this._x = -155;
_root.en += 1;
xspeed = 0;
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance cake_timer of movieClip 146 cake_timer {
onClipEvent (load) {
this._visible = false;
}
}
instance of movieClip 233 {
onClipEvent (load) {
this._x = random(750);
this._y = -50;
var i = 0;
this._xscale = 200;
this._yscale = 200;
}
onClipEvent (enterFrame) {
this._rotation += 20;
++i;
if (_root.enemy_mc.hitTest(this)) {
_root.lightning_timer.play();
_root.cake_timer.nextFrame();
this._x = random(750);
this._y = -50;
_root.attachMovie('glass', 'glass' + i, _root.getNextHighestDepth());
_root['glass' + i]._x = _root.enemy_mc._x;
_root['glass' + i]._y = _root.enemy_mc._y;
_root.attachMovie('glass2', 'glass2' + i, _root.getNextHighestDepth());
_root['glass2' + i]._x = _root.enemy_mc._x;
_root['glass2' + i]._y = _root.enemy_mc._y;
}
if (_root.pro == 1 && _root.cake_timer._currentframe == 1) {
this._y += 5;
}
if (_root.pro == 2 && _root.cake_timer._currentframe == 2) {
this._y += 5;
}
if (_root.pro == 3 && _root.cake_timer._currentframe == 3) {
this._y += 5;
}
if (_root.pro == 4 && _root.cake_timer._currentframe == 4) {
this._y += 5;
}
if (_root.pro == 5 && _root.cake_timer._currentframe == 5) {
this._y += 5;
}
if (_root.pro == 6 && _root.cake_timer._currentframe == 6) {
this._y += 5;
}
if (_root.pro == 7 && _root.cake_timer._currentframe == 7) {
this._y += 5;
}
if (_root.pro == 8 && _root.cake_timer._currentframe == 8) {
this._y += 5;
}
if (_root.pro == 9 && _root.cake_timer._currentframe == 9) {
this._y += 5;
}
if (_root.pro == 10 && _root.cake_timer._currentframe == 10) {
this._y += 5;
}
if (_root.pro == 11 && _root.cake_timer._currentframe == 11) {
this._y += 5;
}
if (_root.pro == 12 && _root.cake_timer._currentframe == 12) {
this._y += 5;
}
if (_root.pro == 13 && _root.cake_timer._currentframe == 13) {
this._y += 5;
}
if (_root.pro == 14 && _root.cake_timer._currentframe == 14) {
this._y += 5;
}
if (_root.pro == 15 && _root.cake_timer._currentframe == 15) {
this._y += 5;
}
if (_root.pro == 16 && _root.cake_timer._currentframe == 16) {
this._y += 5;
}
if (_root.pro == 17 && _root.cake_timer._currentframe == 17) {
this._y += 5;
}
if (_root.pro == 18 && _root.cake_timer._currentframe == 18) {
this._y += 5;
}
if (_root.pro == 19 && _root.cake_timer._currentframe == 19) {
this._y += 5;
}
if (_root.pro == 20 && _root.cake_timer._currentframe == 20) {
this._y += 5;
}
if (this._y >= 800) {
_root.cake_timer.nextFrame();
this._x = random(750);
this._y = -50;
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance timdejongker of movieClip 235 {
onClipEvent (load) {
this._x = random(750);
this._y = -100;
var i = 0;
this._xscale = 200;
this._yscale = 200;
grav2 = random(10);
}
onClipEvent (enterFrame) {
this._rotation += 20;
++i;
if (_root.enemy_mc.hitTest(this)) {
_root.boosters = 200;
_root.timdejong = 0;
grav2 = random(10);
this._x = random(750);
this._y = -100;
_root.attachMovie('glass', 'glass' + i, _root.getNextHighestDepth());
_root['glass' + i]._x = _root.enemy_mc._x;
_root['glass' + i]._y = _root.enemy_mc._y;
_root.attachMovie('glass2', 'glass2' + i, _root.getNextHighestDepth());
_root['glass2' + i]._x = _root.enemy_mc._x;
_root['glass2' + i]._y = _root.enemy_mc._y;
}
if (this._y >= 800) {
_root.timdejong = 0;
grav2 = random(10);
this._x = random(750);
this._y = -100;
}
if (_root.timdejong == 1) {
this._y += grav2;
if (this._y < 0) {
this._y += 100;
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance timdejongker2 of movieClip 237 {
onClipEvent (load) {
this._x = random(750);
this._y = -100;
var i = 0;
this._xscale = 200;
this._yscale = 200;
grav3 = random(10);
}
onClipEvent (enterFrame) {
this._rotation += 20;
++i;
if (_root.enemy_mc.hitTest(this)) {
_root.xtimer = 5;
_root.timdejong2 = 0;
grav3 = random(10);
this._x = random(750);
this._y = -100;
_root.attachMovie('glass', 'glass' + i, _root.getNextHighestDepth());
_root['glass' + i]._x = _root.enemy_mc._x;
_root['glass' + i]._y = _root.enemy_mc._y;
_root.attachMovie('glass2', 'glass2' + i, _root.getNextHighestDepth());
_root['glass2' + i]._x = _root.enemy_mc._x;
_root['glass2' + i]._y = _root.enemy_mc._y;
}
if (this._y >= 800) {
_root.timdejong2 = 0;
grav3 = random(10);
this._x = random(750);
this._y = -100;
}
if (_root.timdejong2 == 1) {
this._y += grav3;
if (this._y < 0) {
this._y += 100;
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance timdejongker3 of movieClip 239 {
onClipEvent (load) {
this._x = random(750);
this._y = -100;
var i = 0;
this._xscale = 200;
this._yscale = 200;
grav4 = random(10);
}
onClipEvent (enterFrame) {
this._rotation += 20;
++i;
if (_root.enemy_mc.hitTest(this)) {
_root.xtimer = 10;
_root.timdejong3 = 0;
grav4 = random(10);
this._x = random(750);
this._y = -100;
_root.attachMovie('glass', 'glass' + i, _root.getNextHighestDepth());
_root['glass' + i]._x = _root.enemy_mc._x;
_root['glass' + i]._y = _root.enemy_mc._y;
_root.attachMovie('glass2', 'glass2' + i, _root.getNextHighestDepth());
_root['glass2' + i]._x = _root.enemy_mc._x;
_root['glass2' + i]._y = _root.enemy_mc._y;
}
if (this._y >= 800) {
_root.timdejong3 = 0;
grav4 = random(10);
this._x = random(750);
this._y = -100;
}
if (_root.timdejong3 == 1) {
this._y += grav4;
if (this._y < 0) {
this._y += 100;
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance timdejongker4 of movieClip 241 {
onClipEvent (load) {
this._x = random(750);
this._y = -100;
var i = 0;
this._xscale = 200;
this._yscale = 200;
grav5 = random(10);
}
onClipEvent (enterFrame) {
this._rotation += 20;
++i;
if (_root.enemy_mc.hitTest(this)) {
_root.xtimer = 15;
_root.timdejong4 = 0;
grav5 = random(10);
this._x = random(750);
this._y = -100;
_root.attachMovie('glass', 'glass' + i, _root.getNextHighestDepth());
_root['glass' + i]._x = _root.enemy_mc._x;
_root['glass' + i]._y = _root.enemy_mc._y;
_root.attachMovie('glass2', 'glass2' + i, _root.getNextHighestDepth());
_root['glass2' + i]._x = _root.enemy_mc._x;
_root['glass2' + i]._y = _root.enemy_mc._y;
}
if (this._y >= 800) {
_root.timdejong4 = 0;
grav5 = random(10);
this._x = random(750);
this._y = -100;
}
if (_root.timdejong4 == 1) {
this._y += grav5;
if (this._y < 0) {
this._y += 100;
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance timdejongker5 of movieClip 243 {
onClipEvent (load) {
this._x = random(750);
this._y = -100;
var i = 0;
this._xscale = 200;
this._yscale = 200;
grav6 = random(10);
}
onClipEvent (enterFrame) {
this._rotation += 20;
++i;
if (_root.enemy_mc.hitTest(this)) {
_root.siser = 200;
_root.timdejong5 = 0;
grav6 = random(10);
this._x = random(750);
this._y = -100;
_root.attachMovie('glass', 'glass' + i, _root.getNextHighestDepth());
_root['glass' + i]._x = _root.enemy_mc._x;
_root['glass' + i]._y = _root.enemy_mc._y;
_root.attachMovie('glass2', 'glass2' + i, _root.getNextHighestDepth());
_root['glass2' + i]._x = _root.enemy_mc._x;
_root['glass2' + i]._y = _root.enemy_mc._y;
}
if (this._y >= 800) {
_root.timdejong5 = 0;
grav6 = random(10);
this._x = random(750);
this._y = -100;
}
if (_root.timdejong5 == 1) {
this._y += grav6;
if (this._y < 0) {
this._y += 100;
}
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance enemy_mc of movieClip 143 enemy {
onClipEvent (load) {
_root.score = 0;
_root.pro = 0;
_root.hp = 100;
var starter = 250;
_root.xtimer = 0;
_root.streaktimer = 0;
}
onClipEvent (enterFrame) {
starter -= 1;
if (starter > 0) {
this._x = -30;
this._y = 630;
_root.food._x = 375;
_root.food._y = 300;
}
if (starter < 0) {
starter = 0;
}
if (this._x >= 730 && starter < 1) {
this._x = 730;
}
if (this._x <= 20 && starter < 1) {
this._x = 20;
}
if (this._y >= 580 && starter < 1) {
this._y = 580;
}
if (this._y <= 20 && starter < 1) {
this._y = 20;
}
if (this._x > 750 or this._x < 0 or this._y > 600 or this._y < 0) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance player_mc of movieClip 138 player {
onClipEvent (enterFrame) {
this.startDrag(this);
}
}
instance of movieClip 136 hthpee {
onClipEvent (enterFrame) {
if (_root.hp <= 0) {
this.gotoAndStop(1);
}
if (_root.hp >= 5) {
this.gotoAndStop(2);
}
if (_root.hp >= 10) {
this.gotoAndStop(3);
}
if (_root.hp >= 15) {
this.gotoAndStop(4);
}
if (_root.hp >= 20) {
this.gotoAndStop(5);
}
if (_root.hp >= 25) {
this.gotoAndStop(6);
}
if (_root.hp >= 30) {
this.gotoAndStop(7);
}
if (_root.hp >= 35) {
this.gotoAndStop(8);
}
if (_root.hp >= 40) {
this.gotoAndStop(9);
}
if (_root.hp >= 45) {
this.gotoAndStop(10);
}
if (_root.hp >= 50) {
this.gotoAndStop(11);
}
if (_root.hp <= 55) {
this.gotoAndStop(12);
}
if (_root.hp >= 60) {
this.gotoAndStop(13);
}
if (_root.hp >= 65) {
this.gotoAndStop(14);
}
if (_root.hp >= 70) {
this.gotoAndStop(15);
}
if (_root.hp >= 75) {
this.gotoAndStop(16);
}
if (_root.hp >= 80) {
this.gotoAndStop(17);
}
if (_root.hp >= 85) {
this.gotoAndStop(18);
}
if (_root.hp >= 90) {
this.gotoAndStop(19);
}
if (_root.hp >= 100) {
this.gotoAndStop(22);
}
}
}
frame 92 {
stop();
}
instance of movieClip 187 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 108 gameover {
onClipEvent (load) {
this._x = 375;
}
}
button 268 {
on (release) {
_root.lvl = 1;
stopAllSounds();
_root.musica1.gotoAndStop(1);
_root.musica2.gotoAndStop(1);
playlist = random(2);
}
}