Combined Code
// unknown tag 88 length 65
movieClip 6 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 138
movieClip 9 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 11 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 13 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 15 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 17 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 19 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 21 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 24 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 28 {
}
movieClip 31 lightning {
frame 5 {
this.removeMovieClip(this);
}
frame 10 {
this.removeMovieClip(this);
}
}
movieClip 47 stone {
frame 1 {
this.onEnterFrame = function () {
if (_root.lvl == 3) {
this.removeMovieClip();
}
};
}
frame 29 {
this.removeMovieClip(this);
}
}
movieClip 70 fuel_bar {
frame 1 {
stop();
}
}
movieClip 75 {
}
movieClip 76 level4 {
}
movieClip 78 level1 {
}
movieClip 80 level2 {
}
movieClip 82 level3 {
}
movieClip 84 level5 {
}
movieClip 86 level6 {
}
movieClip 88 level7 {
}
movieClip 90 startlight {
}
movieClip 91 star3 {
frame 1 {
this.onEnterFrame = function () {
if (_root.lightning_timer._currentframe == 1) {
this._x += 1;
}
if (_root.lightning_timer._currentframe > 1) {
this._x += 2;
}
if (_root.starloader > 0) {
this._x += 20;
}
if (this._x > 750) {
this.removeMovieClip(this);
}
};
}
}
movieClip 92 star2 {
frame 1 {
this.onEnterFrame = function () {
if (_root.lightning_timer._currentframe == 1) {
this._x += 2;
}
if (_root.lightning_timer._currentframe > 1) {
this._x += 4;
}
if (_root.starloader > 0) {
this._x += 40;
}
if (this._x > 750) {
this.removeMovieClip(this);
}
};
}
}
movieClip 93 star {
frame 1 {
this.onEnterFrame = function () {
if (_root.lightning_timer._currentframe == 1) {
this._x += 4;
}
if (_root.lightning_timer._currentframe > 1) {
this._x += 8;
}
if (_root.starloader > 0) {
this._x += 80;
}
if (this._x > 750) {
this.removeMovieClip(this);
}
};
}
}
movieClip 108 glass {
frame 1 {
this._rotation = 90;
}
frame 14 {
this.removeMovieClip(this);
}
}
movieClip 110 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 112 gameover {
}
movieClip 114 elevelel {
}
movieClip 116 socresss {
}
movieClip 140 hthpee {
frame 1 {
stop();
}
}
movieClip 142 player {
}
movieClip 146 {
}
movieClip 147 enemy {
}
// unknown tag 88 length 87
movieClip 150 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();
}
}
movieClip 152 muchsound {
frame 1 {
stop();
}
}
movieClip 157 food {
frame 1 {
stop();
}
}
movieClip 165 silencer {
}
movieClip 166 mob {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
movieClip 168 {
}
movieClip 169 lightning_timer {
frame 1 {
stop();
}
}
movieClip 171 back_grounding {
}
frame 1 {
function createExplosion(targetX, targetY) {
var v6 = 0;
while (v6 < particleTotal) {
var v5 = flash.display.BitmapData.loadBitmap('fire.jpg');
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;
}
};
++v6;
}
}
lvl = 1;
score = 0;
pro = 0;
hp = 100;
xtimer = 0;
leveluptotal = 0;
streaktimer = 0;
_root.playagain._x = 375;
_root.loadload._alpha = 100;
gig = 0;
gig2 = 0;
loadinger = false;
second = -40;
_root.onEnterFrame = function () {
if (second < 0 & lvl == 2) {
second += 1;
}
if (loadinger == false) {
gig = 0;
gig2 = 0;
_root.htp._x = -1000;
_root.playbutton._x = -1000;
_root.credits._x = -1000;
}
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;
}
if (_root.hp <= 0) {
_root.score = (_root.streaktimer / 25) * _root.score;
}
_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(1);
}
if (_root.lvl == 2) {
_root.gotoAndStop(2);
}
if (_root.lvl == 3) {
_root.gotoAndStop(3);
Mouse.show();
}
if (_root.lvl == 4) {
_root.gotoAndStop(4);
}
if (_root.lvl == 5) {
_root.gotoAndStop(5);
}
if (_root.hp <= 0) {
_root.hp = 100;
_root.lvl = 3;
_root.again.play();
_root._alpha = 0;
}
if (_root.score >= 50) {
_root.pro = 1;
_root.speed = 9;
_root.turnRate = 6;
_root.leveluptimer.play();
}
if (_root.score >= 200) {
_root.pro = 2;
_root.speed = 10;
_root.turnRate = 7;
}
if (_root.score >= 400) {
_root.pro = 3;
_root.speed = 11;
_root.turnRate = 8;
}
if (_root.score >= 650) {
_root.pro = 4;
_root.speed = 12;
_root.turnRate = 9;
}
if (_root.score >= 1000) {
_root.pro = 5;
_root.speed = 13;
_root.turnRate = 10;
}
if (_root.score >= 1300) {
_root.pro = 6;
_root.speed = 14;
_root.turnRate = 11;
}
if (_root.score >= 1650) {
_root.pro = 7;
_root.speed = 15;
_root.turnRate = 12;
}
if (_root.score >= 2050) {
_root.pro = 8;
_root.speed = 16;
_root.turnRate = 13;
}
if (_root.score >= 2500) {
_root.pro = 9;
_root.speed = 17;
_root.turnRate = 14;
}
if (_root.score >= 3050) {
_root.pro = 10;
_root.speed = 18;
_root.turnRate = 15;
}
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;
}
frame 1 {
stop();
}
frame 1 {
star_timer = 10;
star2_timer = 6;
star3_timer = 4;
var i = 0;
back_ground.onEnterFrame = function () {
++i;
_root.star_timer -= 1;
_root.star2_timer -= 1;
_root.star3_timer -= 1;
if (_root.star_timer <= 0) {
_root.attachMovie('star', 'star' + i, _root.getNextHighestDepth());
_root['star' + i]._x = -10;
_root['star' + i]._y = random(610);
_root.star_timer = 10;
}
if (_root.star2_timer <= 0) {
_root.attachMovie('star2', 'star2' + i, _root.getNextHighestDepth());
_root['star2' + i]._x = -10;
_root['star2' + i]._y = random(610);
_root.star2_timer = 6;
}
if (_root.star3_timer <= 0) {
_root.attachMovie('star3', 'star3' + i, _root.getNextHighestDepth());
_root['star3' + i]._x = -10;
_root['star3' + i]._y = random(610);
_root.star3_timer = 4;
}
};
}
movieClip 173 {
frame 1 {
stop();
}
frame 10443 {
gotoAndPlay(2);
}
}
instance lightning_timer of movieClip 169 lightning_timer {
onClipEvent (load) {
this._visible = false;
}
}
movieClip 175 {
}
instance of movieClip 175 {
onClipEvent (enterFrame) {
if (_root.loadinger == false) {
this._alpha = 0;
} else {
this._alpha = 20;
}
}
}
button 182 {
on (release) {
_root.lvl = 2;
_root.loading.gotoAndPlay(2);
_root._alpha = 0;
}
}
button 187 {
on (release) {
_root.gig += 1;
}
}
button 191 {
on (release) {
_root.gig2 += 1;
}
}
movieClip 193 {
}
movieClip 195 {
instance of movieClip 193 {
onClipEvent (load) {
this._alpha = 20;
}
}
}
instance of movieClip 195 {
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;
}
}
}
movieClip 206 {
instance of movieClip 175 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 175 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 175 {
onClipEvent (load) {
this._alpha = 20;
}
}
instance of movieClip 175 {
onClipEvent (load) {
this._alpha = 20;
}
}
}
instance howtoplay of movieClip 206 {
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;
}
}
}
movieClip 210 {
}
movieClip 213 {
}
movieClip 224 {
}
movieClip 227 {
}
movieClip 229 {
}
movieClip 233 {
}
movieClip 234 {
}
movieClip 237 {
}
movieClip 241 {
}
movieClip 244 {
}
movieClip 245 {
}
movieClip 247 {
}
movieClip 248 {
}
movieClip 249 {
}
button 252 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 254 {
frame 40 {
stop();
}
}
movieClip 279 {
}
button 280 {
on (release) {
startMovie();
}
}
movieClip 281 {
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.loadinger = true;
_root._alpha = 0;
this.unloadMovie(this);
_root.htp._x = 358;
_root.musica.play();
_root.playbutton._x = 356;
_root.credits._x = 375;
}
_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 2 {
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 285 {
frame 1 {
stop();
}
}
instance mob1 of movieClip 166 mob {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 0) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 0) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 0) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 0) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 0 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 0 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 0 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 0 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 286 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 286 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 1) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 1) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 1) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 1) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 1 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 1 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 1 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 1 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 287 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 287 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 2) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 2) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 2) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 2) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 2 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 2 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 2 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 2 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 288 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 288 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 3) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 3) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 3) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 3) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 3 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 3 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 3 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 3 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 289 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 289 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 4) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 4) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 4) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 4) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 4 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 4 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 4 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 4 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 290 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 290 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 5) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 5) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 5) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 5) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 5 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 5 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 5 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 5 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 291 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 291 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 6) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 6) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 6) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 6) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 6 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 6 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 6 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 6 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 292 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 292 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 7) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 7) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 7) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 7) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 7 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 7 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 7 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 7 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 293 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 293 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 8) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 8) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 8) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 8) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 8 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 8 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 8 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 8 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 294 {
frame 1 {
stop();
}
frame 1 {
stop();
var i = 0;
onEnterFrame = function () {
++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;
}
};
}
}
instance of movieClip 294 {
onClipEvent (load) {
this._xscale = 100;
this._yscale = 100;
var speed = 8;
var taartx = speed * ((random(9) + 1) * 0.1);
var taarty = speed * ((random(9) + 1) * 0.1);
}
onClipEvent (enterFrame) {
this._x += taartx;
if (this._x > 740 && _root.pro >= 9) {
taartx = -speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(2);
this._alpha = 100;
}
if (this._x < 10 && _root.pro >= 9) {
taartx = speed * ((random(9) + 1) * 0.1);
this.gotoAndStop(1);
this._alpha = 100;
}
this._y += taarty;
if (this._y > 590 && _root.pro >= 9) {
taarty = -speed * ((random(9) + 1) * 0.1);
}
if (this._y < 10 && _root.pro >= 9) {
taarty = speed * ((random(9) + 1) * 0.1);
}
if (_root.pro < 9 && _root.enemy_mc._y < 300) {
this._y = 630;
}
if (_root.pro < 9 && _root.enemy_mc._y > 300) {
this._y = -30;
}
if (_root.pro < 9 && _root.enemy_mc._x < 375) {
this._x = 780;
}
if (_root.pro < 9 && _root.enemy_mc._x > 375) {
this._x = -30;
}
if (_root.lightning_timer._currentframe > 1) {
this._alpha = 10;
this.gotoAndStop(3);
}
}
}
movieClip 296 {
}
instance of movieClip 296 {
onClipEvent (enterFrame) {
if (_root._currentframe == 2) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (_root.enemy_mc.hitTest(this)) {
_root.xtimer = 0;
}
}
}
instance of movieClip 175 {
onClipEvent (enterFrame) {
if (_root.lvl != 2) {
this._alpha = 0;
} else {
this._alpha = 20;
}
}
}
instance food of movieClip 157 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) {
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) {
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) {
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) {
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) {
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) {
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) {
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 152 muchsound {
onClipEvent (load) {
this._visible = false;
}
}
movieClip 300 {
}
instance of movieClip 300 {
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);
}
}
}
}
movieClip 302 {
}
instance of movieClip 302 {
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);
}
}
}
}
movieClip 304 {
}
instance of movieClip 304 {
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);
}
}
}
}
movieClip 321 {
frame 11 {
this.gotoAndPlay(1);
}
frame 25 {
onEnterFrame = function () {
_root.cake._x = random(750);
_root.cake._y = -30;
_root.cake.gotoAndPlay(1);
};
}
}
instance cake of movieClip 321 {
onClipEvent (load) {
this._x = random(750);
this._y = -30;
var i = 0;
var speedi = 8;
}
onClipEvent (enterFrame) {
++i;
if (_root.enemy_mc.hitTest(this)) {
_root.lightning_timer.play();
_root.cake_timer.nextFrame();
_root.muchsound.gotoAndPlay(2);
_root.enemy_mc.gotoAndPlay(7);
this._x = random(750);
this._y = -30;
_root.attachMovie('glass', 'glass' + i, _root.getNextHighestDepth());
_root['glass' + i]._x = _root.enemy_mc._x;
_root['glass' + 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 += 4.5;
}
if (this._y >= 750) {
_root.cake_timer.nextFrame();
this._x = random(750);
this._y = -30;
}
}
}
instance cake_timer of movieClip 150 cake_timer {
onClipEvent (load) {
this._visible = false;
}
}
instance enemy_mc of movieClip 147 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 = -20;
this._y = 620;
_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;
}
}
}
instance player_mc of movieClip 142 player {
onClipEvent (enterFrame) {
this.startDrag(this);
}
}
instance of movieClip 140 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 3 {
stop();
}
instance of movieClip 175 {
onClipEvent (load) {
this._alpha = 20;
}
}
movieClip 324 {
}
instance of movieClip 112 gameover {
onClipEvent (load) {
this._x = 375;
}
}
button 328 {
on (release) {
_root.lvl = 1;
stopAllSounds();
_root.musica.gotoAndStop(1);
}
}
frame 4 {
stop();
}
frame 5 {
stop();
}