Frame 1
Stage.scaleMode = "exactFit";
fscommand ("showmenu", false);
play();
Frame 4
function preloadSite() {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = Math.round((_local3 / _local2) * 100);
l_mc.gotoAndStop(_local4);
txtPer = _local4 + "%";
if (_local3 >= _local2) {
clearInterval(loadingCall);
play();
}
}
stop();
fscommand ("showmenu", false);
var loadingCall = setInterval(preloadSite, 50);
Frame 5
function btnVisible() {
play_btn._visible = true;
}
stop();
play_btn._visible = false;
setTimeout(btnVisible, 500);
play_btn.onRelease = function () {
play();
};
stop();
Frame 6
stop();
Frame 16
play();
Frame 25
function teleportParticle(padNum, padDestination) {
i = 1;
while (i <= 1) {
_root.particle.duplicateMovieClip("particle" + i, i);
_root["particle" + i]._x = _root["teleport" + padNum]._x;
_root["particle" + i]._y = _root["teleport" + padNum]._y;
_root["particle" + i].padDestination = padDestination;
i++;
}
}
_root.btnsnd = new Sound();
_root.btnsnd.attachSound("btnsnd");
_root.numbersnd = new Sound();
_root.numbersnd.attachSound("numbersnd");
_root.penrunsnd = new Sound();
_root.penrunsnd.attachSound("penguinrun");
_root.clashanimsnd = new Sound();
_root.clashanimsnd.attachSound("clashanim");
_root.pentxtsnd = new Sound();
_root.pentxtsnd.attachSound("txtfalling");
_root.btnanimsnd = new Sound();
_root.btnanimsnd.attachSound("btnanim");
_root.bgsnd = new Sound(_root.createEmptyMovieClip("gamebgsound", 5002));
_root.bgsnd.attachSound("bgsnd");
_root.menusnd = new Sound(_root.createEmptyMovieClip("menusound", 5004));
_root.menusnd.attachSound("menusnd");
_root.lvlendsnd = new Sound();
_root.lvlendsnd.attachSound("lvlendsnd");
_root.herohurtsnd = new Sound();
_root.herohurtsnd.attachSound("herohurt");
_root.shootsnd = new Sound();
_root.shootsnd.attachSound("shoot");
_root.woodsnd = new Sound();
_root.woodsnd.attachSound("wood");
_root.htibultsnd = new Sound();
_root.htibultsnd.attachSound("htibultsnd");
_root.goversnd = new Sound();
_root.goversnd.attachSound("goversnd");
_root.crysnd = new Sound(_root.createEmptyMovieClip("crysound", 5003));
_root.crysnd.attachSound("cry");
_root.lwinsnd = new Sound();
_root.lwinsnd.attachSound("lwinsnd");
Mouse.hide();
highestLevelCompleted = 0;
enemyN = 500;
bonus = 500;
_root.shots = 0;
practice = false;
highestLevelCompleted = _root.level - 1;
_root.gotoAndStop("menu");
Instance of Symbol 260 MovieClip "mouse_mc" in Frame 25
onClipEvent (load) {
this.swapDepths(10001);
}
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 27
stop();
_root.mouse_mc._visible = true;
stopAllSounds();
_root.menusnd.start();
_root.menusnd.onSoundComplete = function () {
_root.menusnd.start();
};
Instance of Symbol 353 MovieClip "sound_mc" in Frame 27
on (release, keyPress "m") {
if (_root.sound_mc._currentframe == 1) {
_root.btnsnd.setVolume(0);
_root.sound_mc.gotoAndStop(2);
} else if (_root.sound_mc._currentframe == 2) {
_root.btnsnd.setVolume(100);
_root.sound_mc.gotoAndStop(1);
}
}
Instance of Symbol 355 MovieClip "particle" in Frame 29
onClipEvent (load) {
seeking = false;
hyp = 10;
thisStopped = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (thisStopped == true) {
this.play();
thisStopped = false;
}
if (seeking == true) {
myRadians = Math.atan2(_root["teleport" + padDestination]._y - this._y, _root["teleport" + padDestination]._x - this._x);
myDegrees = Math.round((myRadians * 180) / 3.141593);
yChange = Math.round(_root["teleport" + padDestination]._y - this._y);
xChange = Math.round(_root["teleport" + padDestination]._x - this._x);
yMove = Math.round(yChange / 5);
xMove = Math.round(xChange / 5);
this._y = this._y + yMove;
this._x = this._x + xMove;
}
} else {
this.stop();
thisStopped = true;
}
}
Frame 30
test = 0;
nextFrame();
Frame 31
stop();
i = 1;
while (i <= 1000) {
_root["ball" + i]._visible = false;
_root["enemyBall" + i]._visible = false;
i++;
}
_root.player.removeMovieClip();
score = 0;
var mspeed = 0;
var life = 3;
_root.mouse_mc._visible = true;
_root.GamePaused = false;
_root.deadNum = 0;
_root.totalscore = 0;
_root.player.n = 500;
Mouse.hide();
_root.menusnd.setVolume(70);
_root.menusnd.onSoundComplete = function () {
_root.menusnd.start();
};
level = 1;
var playerDetails = SharedObject.getLocal("PenguinsClash");
trace(playerDetails.data.lev + "====");
if (playerDetails.data.lev == undefined) {
playerDetails.data.lev = _root.level;
} else {
_root.level = playerDetails.data.lev;
}
Frame 32
stop();
stopAllSounds();
_root.menusnd.start();
_root.menusnd.onSoundComplete = function () {
_root.menusnd.start();
};
_root.GamePaused = false;
_root.mouse_mc._visible = true;
_root.player._x = 10000;
_root.player._y = 10000;
onEnterFrame = function () {
if (_root.level >= 1) {
_root.helpmc.hel.lv_1_mc.i = i;
_root.helpmc.hel.lv_1_mc._alpha = 100;
_root.helpmc.hel.lv_1_mc.onRelease = function () {
_root.level = 1;
_root.playerDetails.data.lev = 1;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 2) {
_root.helpmc.hel.lv_2_mc.i = i;
_root.helpmc.hel.lv_2_mc._alpha = 100;
_root.helpmc.hel.lv_2_mc.onRelease = function () {
_root.level = 2;
_root.playerDetails.data.lev = 2;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 3) {
_root.helpmc.hel.lv_3_mc.i = i;
_root.helpmc.hel.lv_3_mc._alpha = 100;
_root.helpmc.hel.lv_3_mc.onRelease = function () {
_root.level = 3;
_root.playerDetails.data.lev = 3;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 4) {
_root.helpmc.hel.lv_4_mc.i = i;
_root.helpmc.hel.lv_4_mc._alpha = 100;
_root.helpmc.hel.lv_4_mc.onRelease = function () {
_root.level = 4;
_root.playerDetails.data.lev = 4;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 5) {
_root.helpmc.hel.lv_5_mc.i = i;
_root.helpmc.hel.lv_5_mc._alpha = 100;
_root.helpmc.hel.lv_5_mc.onRelease = function () {
_root.level = 5;
_root.playerDetails.data.lev = 5;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 6) {
_root.helpmc.hel.lv_6_mc.i = i;
_root.helpmc.hel.lv_6_mc._alpha = 100;
_root.helpmc.hel.lv_6_mc.onRelease = function () {
_root.level = 6;
_root.playerDetails.data.lev = 6;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 7) {
_root.helpmc.hel.lv_7_mc.i = i;
_root.helpmc.hel.lv_7_mc._alpha = 100;
_root.helpmc.hel.lv_7_mc.onRelease = function () {
_root.level = 7;
_root.playerDetails.data.lev = 7;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 8) {
_root.helpmc.hel.lv_8_mc.i = i;
_root.helpmc.hel.lv_8_mc._alpha = 100;
_root.helpmc.hel.lv_8_mc.onRelease = function () {
_root.level = 8;
_root.playerDetails.data.lev = 8;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 9) {
_root.helpmc.hel.lv_9_mc.i = i;
_root.helpmc.hel.lv_9_mc._alpha = 100;
_root.helpmc.hel.lv_9_mc.onRelease = function () {
_root.level = 9;
_root.playerDetails.data.lev = 9;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
if (_root.level >= 10) {
_root.helpmc.hel.lv_10_mc.i = i;
_root.helpmc.hel.lv_10_mc._alpha = 100;
_root.helpmc.hel.lv_10_mc.onRelease = function () {
_root.level = 10;
_root.playerDetails.data.lev = 10;
_root.numbersnd.start();
_root.helpmc.hel[_root.nam].onEnterFrame = function () {
if (_root.helpmc.hel[_root.nam]._xscale > 40) {
_root.helpmc.hel[_root.nam]._rotation = _root.helpmc.hel[_root.nam]._rotation + 20;
_root.helpmc.hel[_root.nam]._xscale = _root.helpmc.hel[_root.nam]._xscale - 5;
_root.helpmc.hel[_root.nam]._yscale = _root.helpmc.hel[_root.nam]._yscale - 5;
_root.helpmc.hel[_root.nam]._alpha = _root.helpmc.hel[_root.nam]._alpha - 5;
_root.helpmc.hel[_root.nam]._y = _root.helpmc.hel[_root.nam]._y + 5;
} else {
_root.gotoAndPlay("level" + _root.level);
}
};
};
}
};
onIce = false;
stop();
Frame 33
nextFrame();
Instance of Symbol 498 MovieClip "pause_mc" in Frame 33
on (release, keyPress "p") {
if (_root.GamePaused == false) {
this.gotoAndStop(2);
_root.GamePaused = true;
} else if (_root.GamePaused == true) {
this.gotoAndStop(1);
_root.GamePaused = false;
}
}
Frame 34
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.setVolume(70);
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 1;
_root.shots = 0;
score = 0;
enemyN = 51;
_root.player.n = 500;
enemies = 1;
enemyNum = enemies;
_root.icebg.gotoAndStop(1);
_root.player._x = 198;
_root.player._y = 210;
_root.player.reset();
Mouse.hide();
objects = 2;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
_root.displaybox_mc._visible = false;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
_root.GamePaused = false;
Instance of Symbol 506 MovieClip "hint" in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 34
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 34
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 579 MovieClip "ball" in Frame 34
onClipEvent (load) {
transportHit = false;
transHit = 0;
deg = _root.player.deg;
rad = deg * 0.01745329;
pballYspeed = hyp * Math.sin(rad);
pballXspeed = hyp * Math.cos(rad);
if (_root.player.objectHit == false) {
this._y = _root.player._y;
this._x = _root.player._x;
}
_root.player.turretRad = rad;
_root.player.recoilSpeed = Math.sqrt(Math.pow(pballXspeed, 2) + Math.pow(pballYspeed, 2));
fullHealth = 5;
health = fullHealth;
var moveball = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (moveball == false) {
this._x = this._x + pballXspeed;
this._y = this._y + pballYspeed;
}
if ((((this._x < 0) || (this._x > 750)) || (this._y < 0)) || (this._y > 550)) {
this.removeMovieClip();
}
j = 1;
while (j <= _root.transportNum) {
if (this.hitTest(_root["transport" + j].test)) {
if (transportHit == false) {
this._x = _root["transport" + _root["transport" + j].transDestination]._x;
this._y = _root["transport" + _root["transport" + j].transDestination]._y;
transportHit = true;
health--;
}
} else {
transHit++;
}
j++;
}
if (transHit == _root.transportNum) {
transHit = 0;
transportHit = false;
} else {
transHit = 0;
}
k = 1;
while (k <= _root.switchNum) {
if (this.hitTest(_root["switch" + k].test)) {
_root["switch" + k].switchOn = true;
}
k++;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root.htibultsnd.start();
_root["enemy" + i].moveSpeed = hyp;
_root["enemy" + i].angleRad = rad;
rad = rad - 3.141593;
pballXspeed = 0;
pballYspeed = 0;
this._x = this._x + (pballXspeed / 2);
this._y = this._y + (pballYspeed / 2);
_root.enmyhurtsnd.start();
health--;
this.removeMovieClip();
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideLeft) && (!moveball)) {
_root.woodsnd.start();
pballXspeed = pballXspeed * -1;
this._x = this._x + 1;
if (pballYspeed > 0) {
rad = Math.acos(pballXspeed / hyp);
} else {
rad = 6.283185 - Math.acos(pballXspeed / hyp);
}
_root["object" + n].xMove = hyp;
health--;
moveball = true;
this.gotoAndStop(2);
} else if (this.hitTest(_root["object" + n].sideRight) && (!moveball)) {
_root.woodsnd.start();
pballXspeed = pballXspeed * -1;
this._x = this._x + 1;
if (pballYspeed > 0) {
rad = Math.acos(pballXspeed / hyp) - 6.283185;
} else {
rad = -Math.acos(pballXspeed / hyp);
}
_root["object" + n].xMove = -hyp;
health--;
moveball = true;
this.gotoAndStop(2);
} else if (this.hitTest(_root["object" + n].sideBottom) && (!moveball)) {
_root.woodsnd.start();
pballYspeed = pballYspeed * -1;
this._y = this._y + 1;
if (pballXspeed > 0) {
rad = Math.asin(pballYspeed / hyp);
} else {
rad = 3.141593 - Math.asin(pballYspeed / hyp);
}
_root["object" + n].yMove = -hyp;
health--;
moveball = true;
this.gotoAndStop(2);
} else if (this.hitTest(_root["object" + n].sideTop) && (!moveball)) {
_root.woodsnd.start();
pballYspeed = pballYspeed * -1;
this._y = this._y - 1;
if (pballXspeed > 0) {
rad = Math.asin(pballYspeed / hyp);
} else {
rad = 3.141593 - Math.asin(pballYspeed / hyp);
}
_root["object" + n].yMove = hyp;
health--;
moveball = true;
this.gotoAndStop(2);
}
n++;
}
if (health > 0) {
this._alpha = health * (100 / fullHealth);
} else {
this.removeMovieClip();
}
}
}
Instance of Symbol 607 MovieClip "player" in Frame 34
onClipEvent (load) {
function reset() {
this.gotoAndStop(1);
dead = false;
direction = "";
explode = false;
hSpeed = 0;
vSpeed = 0;
objectHit = false;
anchored = false;
objectMiss = 0;
turretRad = 0;
recoilSpeed = 0;
ballSpeed = 0;
charging = false;
n = 500;
}
firingRate = 4;
maxSpeed = 5;
acc = 0.55;
up = false;
down = false;
left = false;
right = false;
transition = false;
teleporting = false;
teleportHit = 0;
reset();
this.swapDepths(10000);
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
_root.mspeed = ballSpeed;
_root.mtr._rotation = _root.mspeed * 12;
if (_root.onIce != true) {
acc = 0.55;
} else {
acc = 0.19;
}
_root.test = _root["ball" + n].hyp;
i = 1;
while (i <= _root.teleportNum) {
if (this.hitTest(_root["teleport" + i]) == false) {
teleportHit++;
}
i++;
}
if (teleportHit == _root.teleportNum) {
teleporting = false;
teleportHit = 0;
} else {
teleportHit = 0;
}
if (dead == false) {
if (transition == false) {
if (firingRate > 0) {
firingRate--;
}
x = _root._xmouse - this._x;
y = _root._ymouse - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this.penguin._rotation = deg;
if (anchored == false) {
if (recoilSpeed > 0) {
if (_root.onIce != true) {
recoilSpeed = recoilSpeed - 1.4;
} else {
recoilSpeed = recoilSpeed - 0.6;
}
xSpeed = recoilSpeed * Math.cos(turretRad);
ySpeed = recoilSpeed * Math.sin(turretRad);
this._x = this._x - xSpeed;
this._y = this._y - ySpeed;
} else {
recoilSpeed = 0;
}
}
if (charging == true) {
if (ballSpeed < 14) {
ballSpeed = ballSpeed + 0.5;
}
}
if (objectMiss == _root.objects) {
objectHit = false;
objectMiss = 0;
} else {
objectMiss = 0;
}
rotLimit = 0;
if (anchored == false) {
this._x = this._x + hSpeed;
if (Key.isDown(39) || (Key.isDown(68))) {
right = true;
if (Key.isDown(38) || (Key.isDown(87))) {
rotLimit = 45;
} else if (Key.isDown(40) || (Key.isDown(83))) {
} else {
rotLimit = 90;
}
if ((this.base._rotation < rotLimit) && (this.base._rotation >= (rotLimit - 180))) {
this.base._rotation = this.base._rotation + 15;
} else if ((this.base._rotation > rotLimit) || (this.base._rotation <= (rotLimit - 180))) {
this.base._rotation = this.base._rotation - 15;
}
if (hSpeed < maxSpeed) {
hSpeed = hSpeed + acc;
}
} else if (right == true) {
right = false;
}
if (Key.isDown(37) || (Key.isDown(65))) {
left = true;
if (Key.isDown(38) || (Key.isDown(87))) {
rotLimit = -45;
} else if (Key.isDown(40) || (Key.isDown(83))) {
rotLimit = -135;
} else {
rotLimit = -90;
}
if ((this.base._rotation > rotLimit) && (this.base._rotation <= (rotLimit + 180))) {
this.base._rotation = this.base._rotation - 15;
} else if ((this.base._rotation < rotLimit) || (this.base._rotation >= (rotLimit + 180))) {
this.base._rotation = this.base._rotation + 15;
}
if (hSpeed > (-maxSpeed)) {
hSpeed = hSpeed - acc;
}
} else if (left == true) {
left = false;
}
if ((left == false) && (right == false)) {
if (hSpeed > 0) {
hSpeed = hSpeed - acc;
if (hSpeed < acc) {
hSpeed = 0;
}
} else if (hSpeed < 0) {
hSpeed = hSpeed + acc;
if (hSpeed > acc) {
hSpeed = 0;
}
}
}
this._y = this._y + vSpeed;
if (Key.isDown(40) || (Key.isDown(83))) {
down = true;
if (Key.isDown(37) || (Key.isDown(65))) {
rotLimit = -135;
} else if (Key.isDown(39) || (Key.isDown(68))) {
} else {
rotLimit = 180;
}
if ((this.base._rotation < rotLimit) && (this.base._rotation >= (rotLimit - 180))) {
this.base._rotation = this.base._rotation + 15;
} else if ((this.base._rotation > rotLimit) || (this.base._rotation <= (rotLimit - 180))) {
this.base._rotation = this.base._rotation - 15;
}
if (vSpeed < maxSpeed) {
vSpeed = vSpeed + acc;
}
} else if (down == true) {
down = false;
}
if (Key.isDown(38) || (Key.isDown(87))) {
up = true;
if (Key.isDown(37) || (Key.isDown(65))) {
rotLimit = -45;
} else if (Key.isDown(39) || (Key.isDown(68))) {
rotLimit = 45;
} else {
rotLimit = 0;
}
if ((this.base._rotation < rotLimit) && (this.base._rotation >= (rotLimit - 180))) {
this.base._rotation = this.base._rotation + 15;
} else if ((this.base._rotation > rotLimit) && (this.base._rotation <= (rotLimit + 180))) {
this.base._rotation = this.base._rotation - 15;
}
if (vSpeed > (-maxSpeed)) {
vSpeed = vSpeed - acc;
}
} else if (up == true) {
up = false;
}
if ((down == false) && (up == false)) {
if (vSpeed > 0) {
vSpeed = vSpeed - acc;
if (vSpeed < acc) {
vSpeed = 0;
}
} else if (vSpeed < 0) {
vSpeed = vSpeed + acc;
if (vSpeed > acc) {
vSpeed = 0;
}
}
}
}
}
} else if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
onClipEvent (mouseDown) {
if (dead == false) {
if (transition == false) {
if (firingRate <= 0) {
this.gotoAndStop(2);
_root.mouse_mc.gotoAndPlay(2);
charging = true;
ballSpeed = 5;
}
}
}
}
onClipEvent (mouseUp) {
if (dead == false) {
if (transition == false) {
if (charging == true) {
firingRate = 4;
_root.shootsnd.start();
_root.mouse_mc.gotoAndPlay(21);
charging = false;
_root.ball.duplicateMovieClip("ball" + n, n);
_root["ball" + n].hyp = ballSpeed;
_root.player.penguin.blastanim.gotoAndPlay(2);
n++;
ballSpeed = 0;
_root.shots++;
}
}
}
}
Instance of Symbol 612 MovieClip "enemyBall" in Frame 34
onClipEvent (load) {
transportHit = false;
transHit = 0;
deg = _root["enemy" + enemyNum].deg;
rad = deg * 0.01745329;
eYspeed = hyp * Math.sin(rad);
eXspeed = hyp * Math.cos(rad);
this._y = _root["enemy" + enemyNum]._y + (eYspeed * 3);
this._x = _root["enemy" + enemyNum]._x + (eXspeed * 3);
fullHealth = 5;
health = fullHealth;
var moveit = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (moveit == false) {
this._x = this._x + eXspeed;
this._y = this._y + eYspeed;
}
if ((((this._x < 0) || (this._x > 750)) || (this._y < 0)) || (this._y > 550)) {
this.removeMovieClip();
}
if (this.hitTest(_root.player.test)) {
_root.htibultsnd.start();
_root.player.recoilSpeed = hyp;
_root.player.turretRad = rad - 3.141593;
eXspeed = eXspeed * -1;
eYspeed = eYspeed * -1;
health--;
this.removeMovieClip();
}
j = 1;
while (j <= _root.transportNum) {
if (this.hitTest(_root["transport" + j].test)) {
if (transportHit == false) {
this._x = _root["transport" + _root["transport" + j].transDestination]._x;
this._y = _root["transport" + _root["transport" + j].transDestination]._y;
transportHit = true;
health--;
}
} else {
transHit++;
}
j++;
}
if (transHit == _root.transportNum) {
transHit = 0;
transportHit = false;
} else {
transHit = 0;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n].sideLeft && (!moveit))) {
_root.woodsnd.start();
moveit = true;
if (eYspeed > 0) {
rad = Math.acos(eXspeed / hyp);
} else {
rad = 6.283185 - Math.acos(eXspeed / hyp);
}
_root["object" + n].xMove = hyp;
health--;
this.gotoAndStop(2);
} else if (this.hitTest(_root["object" + n].sideRight) && (!moveit)) {
_root.woodsnd.start();
moveit = true;
if (eYspeed > 0) {
rad = Math.acos(eXspeed / hyp) - 6.283185;
} else {
rad = -Math.acos(eXspeed / hyp);
}
_root["object" + n].xMove = -hyp;
health--;
this.gotoAndStop(2);
} else if (this.hitTest(_root["object" + n].sideBottom) && (!moveit)) {
_root.woodsnd.start();
moveit = true;
if (eXspeed > 0) {
rad = Math.asin(eYspeed / hyp);
} else {
rad = 3.141593 - Math.asin(eYspeed / hyp);
}
_root["object" + n].yMove = -hyp;
health--;
this.gotoAndStop(2);
} else if (this.hitTest(_root["object" + n].sideTop) && (!moveit)) {
_root.woodsnd.start();
moveit = true;
if (eXspeed > 0) {
rad = Math.asin(eYspeed / hyp);
} else {
rad = 3.141593 - Math.asin(eYspeed / hyp);
}
_root["object" + n].yMove = hyp;
health--;
this.gotoAndStop(2);
}
n++;
}
if (health > 0) {
this._alpha = health * (100 / fullHealth);
} else {
this.removeMovieClip();
}
}
}
Instance of Symbol 615 MovieClip "transition" in Frame 34
onClipEvent (load) {
function reset() {
this._alpha = 0;
shrink = true;
this._x = 350;
this._y = 248;
}
this.gotoAndPlay(25);
playing = false;
playerDead = false;
reset();
this._alpha = 100;
}
onClipEvent (enterFrame) {
if ((_root.enemyNum <= 0) || (playerDead == true)) {
this.play();
this._x = 350;
this._y = 250;
if (shrink == true) {
this._alpha = 100;
} else {
this._alpha = 100;
}
}
}
Instance of Symbol 655 MovieClip "displaybox_mc" in Frame 34
onClipEvent (load) {
this._visible = false;
}
Frame 35
nextFrame();
Frame 36
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 2;
enemyN = 51;
_root.icebg.gotoAndStop(2);
_root.player.n = 500;
enemies = 2;
enemyNum = enemies;
_root.player._x = 170;
_root.player._y = 150;
_root.enemy1._x = 553;
_root.enemy1._y = 403;
_root.enemy2._x = 608;
_root.enemy2._y = 86;
_root.player.reset();
Mouse.hide();
objects = 2;
teleportNum = 2;
switchNum = 0;
transportNum = 0;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 657 MovieClip "hint" in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
_root["enemy" + i].direction = "up";
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
_root["object" + n].direction = "up";
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player.direction = "up";
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 666 MovieClip "teleport1" in Frame 36
onClipEvent (load) {
padNum = 1;
padDestination = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.teleporting == false) {
_root.player.teleporting = true;
_root.teleportParticle(padNum, padDestination);
_root.player._x = _root["teleport" + padDestination]._x;
_root.player._y = _root["teleport" + padDestination]._y;
_root.player.transition = true;
_root.player._visible = false;
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 36
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 36
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 37
nextFrame();
Frame 38
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 3;
levelText.play();
enemyN = 51;
_root.player.n = 500;
enemies = 2;
enemyNum = enemies;
_root.icebg.gotoAndStop(3);
_root.player._x = 105;
_root.player._y = 132;
_root.enemy1._x = 547;
_root.enemy1._y = 114;
_root.enemy2._x = 385;
_root.enemy2._y = 350;
_root.player.reset();
Mouse.hide();
objects = 3;
teleportNum = 0;
switchNum = 0;
transportNum = 2;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 674 MovieClip "hint" in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 675 MovieClip "transport1" in Frame 38
onClipEvent (load) {
transNum = 1;
transDestination = 2;
}
Instance of Symbol 676 MovieClip "transport2" in Frame 38
onClipEvent (load) {
transNum = 2;
transDestination = 1;
}
Instance of Symbol 678 MovieClip "object2" in Frame 38
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._y < 250) {
this._y = this._y + 1.5;
} else {
reverse = true;
activate = true;
}
} else if (this._y > 95) {
this._y = this._y - 1.5;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 678 MovieClip "object3" in Frame 38
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._y < 400) {
this._y = this._y + 1.5;
} else {
reverse = true;
activate = true;
}
} else if (this._y > 280) {
this._y = this._y - 1.5;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 38
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 38
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 39
nextFrame();
Frame 40
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 4;
levelText.play();
enemyN = 51;
_root.player.n = 500;
enemies = 4;
enemyNum = enemies;
_root.icebg.gotoAndStop(4);
_root.player._x = 385;
_root.player._y = 440;
_root.enemy1._x = 592;
_root.enemy1._y = 309;
_root.enemy2._x = 124;
_root.enemy2._y = 295;
_root.enemy3._x = 552;
_root.enemy3._y = 110;
_root.enemy4._x = 197;
_root.enemy4._y = 100;
_root.player.reset();
Mouse.hide();
objects = 8;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 680 MovieClip "hint" in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 40
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 691 MovieClip "well1" in Frame 40
onClipEvent (load) {
playerGet = false;
used = false;
timer = 0;
}
onClipEvent (enterFrame) {
if (used == false) {
if (this.hitTest(_root.player._x, _root.player._y, true) && (playerGet == false)) {
playerGet = true;
_root.player.anchored = true;
_root.player._rotation = 0;
_root.player._x = this._x + 3;
_root.player._y = this._y;
this.nextFrame();
this.timerBar.bar._xscale = 100;
timer = 350;
lim = 100 / timer;
}
if (playerGet == true) {
if (timer > 0) {
timer--;
this.timerBar.bar._xscale = this.timerBar.bar._xscale - lim;
} else {
playerGet = false;
this.prevFrame();
used = true;
_root.player.anchored = false;
_root.player.recoilSpeed = 0;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
}
}
} else {
this.glow._visible = false;
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 40
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy3" in Frame 40
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy4" in Frame 40
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 40
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 41
nextFrame();
Frame 42
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 5;
levelText.play();
enemyN = 51;
_root.player.n = 500;
enemies = 4;
enemyNum = enemies;
_root.icebg.gotoAndStop(5);
_root.player._x = 320;
_root.player._y = 280;
_root.enemy1._x = 418;
_root.enemy1._y = 360;
_root.enemy2._x = 446;
_root.enemy2._y = 204;
_root.enemy3._x = 256;
_root.enemy3._y = 136;
_root.enemy4._x = 188;
_root.enemy4._y = 272;
_root.player.reset();
Mouse.hide();
objects = 3;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 695 MovieClip "hint" in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
_root["enemy" + i].direction = "up";
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
_root["object" + n].direction = "up";
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player.direction = "up";
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 42
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 42
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy3" in Frame 42
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy4" in Frame 42
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 42
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 43
nextFrame();
Frame 44
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 6;
levelText.play();
enemyN = 51;
_root.player.n = 500;
enemies = 4;
enemyNum = enemies;
_root.icebg.gotoAndStop(6);
_root.player._x = 360;
_root.player._y = 210;
_root.enemy1._x = 597;
_root.enemy1._y = 110;
_root.enemy2._x = 152;
_root.enemy2._y = 104;
_root.enemy3._x = 152;
_root.enemy3._y = 420;
_root.enemy4._x = 553;
_root.enemy4._y = 426;
_root.player.reset();
Mouse.hide();
objects = 6;
teleportNum = 0;
switchNum = 2;
transportNum = 0;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 697 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
_root["enemy" + i].direction = "left";
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
_root["object" + n].direction = "left";
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player.direction = "left";
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 44
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 44
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 44
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy3" in Frame 44
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy4" in Frame 44
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 678 MovieClip "object2" in Frame 44
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._y < 280) {
this._y = this._y + 1.5;
} else {
reverse = true;
activate = true;
}
} else if (this._y > 170) {
this._y = this._y - 1.5;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 678 MovieClip "object3" in Frame 44
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._y < 408) {
this._y = this._y + 1.5;
} else {
reverse = true;
activate = true;
}
} else if (this._y > 318) {
this._y = this._y - 1.5;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 678 MovieClip "object1" in Frame 44
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._y < 162) {
this._y = this._y + 1.5;
} else {
reverse = true;
activate = true;
}
} else if (this._y > 60) {
this._y = this._y - 1.5;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 678 MovieClip "object4" in Frame 44
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._y < 280) {
this._y = this._y + 1.5;
} else {
reverse = true;
activate = true;
}
} else if (this._y > 180) {
this._y = this._y - 1.5;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 699 MovieClip "object5" in Frame 44
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._x < 508) {
this._x = this._x + 2;
} else {
reverse = true;
activate = true;
}
} else if (this._x > 337) {
this._x = this._x - 2;
} else {
reverse = false;
activate = true;
}
}
}
}
Frame 45
nextFrame();
Frame 46
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 7;
levelText.play();
enemyN = 51;
_root.player.n = 500;
enemies = 4;
enemyNum = enemies;
_root.icebg.gotoAndStop(7);
_root.player._x = 320;
_root.player._y = 280;
_root.enemy1._x = 612;
_root.enemy1._y = 330;
_root.enemy2._x = 587;
_root.enemy2._y = 192;
_root.enemy3._x = 101;
_root.enemy3._y = 212;
_root.enemy4._x = 118;
_root.enemy4._y = 330;
_root.player.reset();
Mouse.hide();
objects = 4;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 701 MovieClip "hint" in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 46
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 574 MovieClip "enemy3" in Frame 46
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy4" in Frame 46
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 46
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 46
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 47
nextFrame();
Frame 48
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 8;
enemyN = 51;
_root.player.n = 500;
enemies = 6;
enemyNum = enemies;
_root.icebg.gotoAndStop(8);
_root.player._x = 104;
_root.player._y = 116;
_root.enemy1._x = 602;
_root.enemy1._y = 79;
_root.enemy2._x = 540;
_root.enemy2._y = 428;
_root.enemy3._x = 449;
_root.enemy3._y = 118;
_root.enemy4._x = 108;
_root.enemy4._y = 410;
_root.enemy5._x = 283;
_root.enemy5._y = 146;
_root.player.reset();
Mouse.hide();
objects = 2;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 703 MovieClip "hint" in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 48
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 678 MovieClip "object1" in Frame 48
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._y < 384) {
this._y = this._y + 1.5;
} else {
reverse = true;
activate = true;
}
} else if (this._y > 164) {
this._y = this._y - 1.5;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 678 MovieClip "object2" in Frame 48
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._y < 324) {
this._y = this._y + 1.5;
} else {
reverse = true;
activate = true;
}
} else if (this._y > 74) {
this._y = this._y - 1.5;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 48
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 15;
firingRate = 40;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 15;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 15;
}
}
if (dead == false) {
if (reverse == false) {
if (this._y < 350) {
this._y = this._y + 4;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._y > 80) {
this._y = this._y - 4;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy3" in Frame 48
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 40;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 15;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 15;
}
}
if (dead == false) {
if (reverse == false) {
if (this._y < 368) {
this._y = this._y + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._y > 100) {
this._y = this._y - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy5" in Frame 48
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 5;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 40;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 15;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 15;
}
}
if (dead == false) {
if (reverse == false) {
if (this._y < 366) {
this._y = this._y + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._y > 126) {
this._y = this._y - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy4" in Frame 48
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 48
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy6" in Frame 48
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 6;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 49
nextFrame();
Frame 50
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 9;
enemyN = 51;
_root.player.n = 500;
enemies = 6;
enemyNum = enemies;
_root.icebg.gotoAndStop(9);
_root.player._x = 360;
_root.player._y = 230;
_root.enemy1._x = 602;
_root.enemy1._y = 80;
_root.enemy2._x = 160;
_root.enemy2._y = 79;
_root.enemy3._x = 124;
_root.enemy3._y = 253;
_root.enemy4._x = 108;
_root.enemy4._y = 410;
_root.player.reset();
Mouse.hide();
objects = 2;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 705 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 50
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 699 MovieClip "object2" in Frame 50
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (reverse == false) {
if (this._x < 170) {
this._x = this._x + 2;
} else {
reverse = true;
activate = true;
}
} else if (this._x > 50) {
this._x = this._x - 2;
} else {
reverse = false;
activate = true;
}
}
}
Instance of Symbol 699 MovieClip "object1" in Frame 50
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._x < 345) {
this._x = this._x + 2;
} else {
reverse = true;
activate = true;
}
} else if (this._x > 262) {
this._x = this._x - 2;
} else {
reverse = false;
activate = true;
}
}
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 50
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 15;
firingRate = 40;
minlen = 380;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 15;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 15;
}
}
if (dead == false) {
if (reverse == false) {
if (this._x < 600) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > minlen) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 50
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 40;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 15;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 15;
}
}
if (dead == false) {
if (reverse == false) {
if (this._x < 350) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 160) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
this._rotation = 90;
deg = 90;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy3" in Frame 50
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy4" in Frame 50
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy5" in Frame 50
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 5;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy6" in Frame 50
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 6;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = random(15) + 5;
firingRate = random(25) + 25;
}
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 51
nextFrame();
Frame 52
stop();
stopAllSounds();
_root.bgsnd.start();
_root.bgsnd.onSoundComplete = function () {
_root.bgsnd.start();
};
level = 10;
enemyN = 51;
_root.player.n = 500;
enemies = 5;
enemyNum = enemies;
_root.player._x = 100;
_root.player._y = 80;
_root.enemy1._x = 304;
_root.enemy1._y = 187;
_root.enemy2._x = 106;
_root.enemy2._y = 308;
_root.enemy3._x = 547;
_root.enemy3._y = 429;
_root.enemy4._x = 388;
_root.enemy4._y = 80;
_root.enemy5._x = 339;
_root.enemy5._y = 298;
_root.icebg.gotoAndStop(10);
_root.enemy6._x = 269;
_root.enemy6._y = 399;
_root.player.reset();
Mouse.hide();
objects = 5;
teleportNum = 0;
switchNum = 0;
transportNum = 0;
_root.player.base._rotation = 90;
_root.player._xscale = 100;
_root.player._yscale = 100;
onIce = false;
Instance of Symbol 707 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "right";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "right";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "right";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
_root["enemy" + i].direction = "up";
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
_root["object" + n].direction = "up";
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
_root.player.direction = "up";
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "up";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "up";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "up";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip "hint" in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "down";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._y = _root["object" + n]._y + 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "down";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "down";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 508 MovieClip in Frame 52
onClipEvent (enterFrame) {
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
if (_root["enemy" + i].dead == false) {
_root["enemy" + i].gotoAndStop("dead");
_root["enemy" + i].moveSpeed = 0;
_root["enemy" + i].dead = true;
_root["enemy" + i].direction = "left";
}
}
i++;
}
n = 1;
while (n <= _root.objects) {
if (this.hitTest(_root["object" + n]._x, _root["object" + n]._y, true)) {
if (_root["object" + n].dead == false) {
_root["object" + n]._x = _root["object" + n]._x - 20;
_root["object" + n].gotoAndStop("dead");
_root["object" + n].dead = true;
_root["object" + n].direction = "left";
}
}
n++;
}
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.dead == false) {
_root.player.dead = true;
_root.player.gotoAndStop("dead");
_root.player.direction = "left";
}
}
}
Instance of Symbol 699 MovieClip "object2" in Frame 52
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._x < 215) {
this._x = this._x + 2;
} else {
reverse = true;
activate = true;
}
} else if (this._x > 75) {
this._x = this._x - 2;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 699 MovieClip "object1" in Frame 52
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._x < 484) {
this._x = this._x + 2;
} else {
reverse = true;
activate = true;
}
} else if (this._x > 380) {
this._x = this._x - 2;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 699 MovieClip "object3" in Frame 52
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._x < 355) {
this._x = this._x + 2;
} else {
reverse = true;
activate = true;
}
} else if (this._x > 120) {
this._x = this._x - 2;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 699 MovieClip "object4" in Frame 52
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._x < 384) {
this._x = this._x + 2;
} else {
reverse = true;
activate = true;
}
} else if (this._x > 284) {
this._x = this._x - 2;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 699 MovieClip "object5" in Frame 52
onClipEvent (load) {
activate = true;
reverse = false;
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (activate == true) {
if (reverse == false) {
if (this._x < 548) {
this._x = this._x + 2;
} else {
reverse = true;
activate = true;
}
} else if (this._x > 468) {
this._x = this._x - 2;
} else {
reverse = false;
activate = true;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy1" in Frame 52
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 1;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 20;
firingRate = 2;
}
deg = 0;
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (dead == false) {
this._rotation = this._rotation + 2;
deg = deg + 2;
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy4" in Frame 52
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 4;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
minlen = 328;
maxlen = 560;
trace("reset");
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 40;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 15;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 15;
}
}
if (dead == false) {
if (reverse == false) {
if (this._x < maxlen) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > minlen) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
maxlen = maxlen + 1;
minlen = minlen + 1;
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy5" in Frame 52
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 5;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 10;
firingRate = 40;
}
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 15;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 15;
}
}
if (dead == false) {
if (reverse == false) {
if (this._x < 490) {
this._x = this._x + 5;
} else {
reverse = true;
}
} else if (reverse == true) {
if (this._x > 205) {
this._x = this._x - 5;
} else {
reverse = false;
}
}
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
x = _root.player._x - this._x;
y = _root.player._y - this._y;
hyp = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
cos = x / hyp;
rad = Math.acos(cos);
deg = Math.floor(180 / (3.141593 / rad));
if (y < 0) {
deg = -deg;
}
this._rotation = deg;
this.test._rotation = -deg;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy2" in Frame 52
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 2;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 15;
firingRate = 5;
}
deg = 0;
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (dead == false) {
this._rotation = this._rotation + 1;
deg = deg + 1;
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Instance of Symbol 574 MovieClip "enemy3" in Frame 52
onClipEvent (load) {
function respawn() {
playing = false;
enemyNum = 3;
angleRad = 0;
moveSpeed = 0;
edgeOfScreen = false;
dead = false;
explode = false;
direction = "";
}
function reset() {
ballSpeed = 5;
charging = false;
firing = false;
chargeTime = 23;
firingRate = 11;
}
deg = 0;
reverse = false;
reset();
respawn();
}
onClipEvent (enterFrame) {
if (_root.GamePaused == false) {
if (this.test.hitTest(_root.player)) {
_root.player.vSpeed = 0;
_root.player.ySpeed = 0;
if (this._x > _root.player._x) {
_root.player._x = _root.player._x - 7;
} else if (this._x <= _root.player._x) {
_root.player._x = _root.player._x + 7;
}
}
if (dead == false) {
this._rotation = this._rotation - 2;
deg = deg - 2;
}
if (moveSpeed > 0) {
moveSpeed = moveSpeed - 1.2;
xSpeed = moveSpeed * Math.cos(angleRad);
ySpeed = moveSpeed * Math.sin(angleRad);
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
moveSpeed = 0;
}
if (_root.player.transition == false) {
if (dead == false) {
n = _root.enemyN;
if (firingRate <= 0) {
charging = true;
chargeTime--;
this.gotoAndStop(2);
if (chargeTime <= 0) {
firing = true;
charging = false;
}
} else {
firingRate--;
}
if (charging == true) {
if (ballSpeed < 15) {
ballSpeed = ballSpeed + 0.5;
}
}
if (firing == true) {
_root.enemyBall.duplicateMovieClip("enemyBall" + n, n);
_root["enemyBall" + n].hyp = ballSpeed;
_root["enemyBall" + n].enemyNum = enemyNum;
this.gotoAndStop(1);
_root.enemyN++;
reset();
}
}
}
if (explode == false) {
if (direction == "right") {
this._x = this._x + 1;
} else if (direction == "left") {
this._x = this._x - 1;
} else if (direction == "down") {
this._y = this._y + 1;
} else if (direction == "up") {
this._y = this._y - 1;
}
}
}
}
Frame 53
nextFrame();
Frame 54
stop();
stopAllSounds();
_root.lvlendsnd.onSoundComplete = function () {
_root.lvlendsnd.start();
};
switch (_root.level) {
case 1 :
_root.score = _root.score + 1000;
break;
case 2 :
_root.score = _root.score + 2000;
break;
case 3 :
_root.score = _root.score + 2000;
break;
case 4 :
_root.score = _root.score + 4000;
break;
case 5 :
_root.score = _root.score + 4000;
break;
case 6 :
_root.score = _root.score + 4000;
break;
case 7 :
_root.score = _root.score + 4000;
break;
case 8 :
_root.score = _root.score + 6000;
break;
case 9 :
_root.score = _root.score + 6000;
break;
case 10 :
_root.score = _root.score + 5000;
}
_root.totalscore = _root.score - (_root.shots * 10);
trace((((_root.score + "= shots :") + _root.shots) + " lvl=") + _root.level);
if (_root.totalscore < 0) {
_root.totalscore = 0;
}
if (_root.level >= 10) {
_root.gotoAndStop("gamewin");
}
_root.player.removeMovieClip();
Frame 56
function submitScore() {
var _local5 = _root.username;
trace(_local5);
var _local2 = _root.totalscore;
trace("submit score:" + _local2);
var _local3 = "";
if (_local2 == "") {
_local3 = _local3 + "The score is required\n";
}
if (_local3 != "") {
status_txt.text = _local3;
trace("hello1231233");
return(undefined);
}
var _local4 = new LoadVars();
_local4.name = _local5;
_local4.score = _local2;
_local4.send(path, "_blank", "POST");
}
stop();
Mouse.show();
stopAllSounds();
_root.mouse_mc._visible = false;
trace((("total " + _root.totalscore) + " deadNum ") + _root.deadNum);
if (_root.totalscore < 0) {
_root.totalscore = 0;
}
_root.player.removeMovieClip();
var path = "http://gameseverytime.com/score/MarioRide/submit.php";
Frame 58
function submitScore() {
var _local5 = _root.username;
trace(_local5);
var _local2 = _root.totalscore;
trace("submit score:" + _local2);
var _local3 = "";
if (_local2 == "") {
_local3 = _local3 + "The score is required\n";
}
if (_local3 != "") {
status_txt.text = _local3;
trace("hello1231233");
return(undefined);
}
var _local4 = new LoadVars();
_local4.name = _local5;
_local4.score = _local2;
_local4.send(path, "_blank", "POST");
}
stop();
stopAllSounds();
_root.lvlendsnd.start();
_root.lvlendsnd.onSoundComplete = function () {
_root.lvlendsnd.start();
};
_root.mouse_mc._visible = false;
_root.player.removeMovieClip();
Mouse.show();
var path = "http://gameseverytime.com/score/MarioRide/submit.php";
Symbol 12 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 100
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 100
_root.play();
Symbol 49 Button
on (press) {
_root.getURL("http://www.addictinggames.com");
}
Symbol 211 MovieClip Frame 147
stop();
Symbol 212 MovieClip Frame 1
_root.stop();
Symbol 212 MovieClip Frame 440
_root.play();
Symbol 238 Button
on (release) {
getURL ("http://www.gameseverytime.com", "_blank");
}
Symbol 256 MovieClip Frame 222
stop();
_root.play();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 20
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 7
stop();
Symbol 311 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 319 MovieClip Frame 7
stop();
Symbol 322 Button
on (release) {
_root.gotoAndPlay("level" + _root.level);
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 325 MovieClip Frame 6
stop();
Symbol 330 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 331 MovieClip Frame 6
stop();
Symbol 332 MovieClip Frame 10
stop();
Symbol 346 Button
on (release) {
_root.btnsnd.setVolume(0);
nextFrame();
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 352 Button
on (release) {
_root.btnsnd.setVolume(100);
prevFrame();
}
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 2
stop();
Symbol 355 MovieClip Frame 15
seeking = true;
Symbol 355 MovieClip Frame 40
stop();
_root.player.transition = false;
_root.player._visible = true;
_root.player.hSpeed = 0;
_root.player.vSpeed = 0;
_root.player.recoilSpeed = 0;
i = 1;
while (i <= 50) {
_root["particle" + i].removeMovieClip();
i++;
}
Symbol 364 Button
on (press) {
nextFrame();
}
Symbol 369 MovieClip Frame 45
stop();
Symbol 372 MovieClip Frame 60
stop();
Symbol 375 MovieClip Frame 45
stop();
Symbol 384 MovieClip Frame 55
stop();
Symbol 419 MovieClip Frame 7
stop();
Symbol 422 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 428 MovieClip Frame 7
stop();
Symbol 431 Button
on (release) {
_root.level = 1;
_root.gotoAndStop("help");
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 440 MovieClip Frame 7
stop();
Symbol 443 Button
on (release) {
_root.gotoAndStop("levelselect");
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 449 Button
on (release) {
_root.gotoAndStop("levelselect");
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 451 MovieClip Frame 1
Symbol 451 MovieClip Frame 34
_root.penrunsnd.start();
Symbol 451 MovieClip Frame 78
_root.pentxtsnd.start();
Symbol 451 MovieClip Frame 85
_root.pentxtsnd.start();
Symbol 451 MovieClip Frame 92
_root.pentxtsnd.start();
Symbol 451 MovieClip Frame 99
_root.pentxtsnd.start();
Symbol 451 MovieClip Frame 106
_root.pentxtsnd.start();
Symbol 451 MovieClip Frame 113
_root.pentxtsnd.start();
Symbol 451 MovieClip Frame 120
_root.pentxtsnd.start();
Symbol 451 MovieClip Frame 127
_root.pentxtsnd.start();
Symbol 451 MovieClip Frame 141
_root.clashanimsnd.start();
Symbol 451 MovieClip Frame 182
_root.btnanimsnd.start();
Symbol 451 MovieClip Frame 186
_root.btnanimsnd.start();
Symbol 451 MovieClip Frame 190
_root.btnanimsnd.start();
Symbol 451 MovieClip Frame 194
_root.btnanimsnd.start();
Symbol 451 MovieClip Frame 210
_root.menusnd.start();
Symbol 451 MovieClip Frame 230
stop();
Symbol 481 MovieClip Frame 1
stop();
Instance of Symbol 462 MovieClip "lv_1_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 464 MovieClip "lv_2_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 466 MovieClip "lv_3_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 468 MovieClip "lv_4_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 470 MovieClip "lv_5_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 472 MovieClip "lv_6_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 474 MovieClip "lv_7_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 476 MovieClip "lv_8_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 478 MovieClip "lv_9_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Instance of Symbol 480 MovieClip "lv_10_mc" in Symbol 481 MovieClip Frame 1
on (rollOver) {
_root.nam = _name;
}
Symbol 482 MovieClip Frame 10
stop();
var i = 1;
while (i <= 10) {
_root.helpmc.hel[("lv_" + i) + "_mc"]._alpha = 50;
i++;
}
Symbol 485 Button
on (press) {
_root.conti();
}
Symbol 491 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 494 Button
on (release) {
_root.GamePaused = true;
nextFrame();
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 497 Button
on (release) {
_root.GamePaused = false;
prevFrame();
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 2
stop();
Symbol 521 MovieClip Frame 1
gotoAndPlay(Number(random(200)) + 1);
Symbol 554 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 6
trace("666666666");
Symbol 573 MovieClip Frame 11
stop();
_root.enemyNum--;
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 3
_root.herohurtsnd.start();
Instance of Symbol 572 MovieClip in Symbol 574 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._xscale > 10) {
this._rotation = this._rotation + 20;
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
_parent.kuzov._rotation = _parent.kuzov._rotation + 20;
_parent.kuzov._xscale = _parent.kuzov._xscale - 5;
_parent.kuzov._yscale = _parent.kuzov._yscale - 5;
_parent.bashnya._rotation = _parent.bashnya._rotation + 20;
_parent.bashnya._xscale = _parent.bashnya._xscale - 5;
_parent.bashnya._yscale = _parent.bashnya._yscale - 5;
_parent.kuzov._alpha = _parent.kuzov._alpha - 5;
_parent.bashnya._alpha = _parent.bashnya._alpha - 5;
} else {
_parent.kuzov._alpha = 0;
_parent.bashnya._alpha = 100;
_parent.gotoAndStop(4);
}
}
Symbol 574 MovieClip Frame 4
explode = true;
Symbol 578 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 579 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 15
_root.player.gotoAndStop(1);
Symbol 591 MovieClip Frame 26
stop();
_root.transition.playerDead = true;
_root.player.removeMovieClip();
Symbol 607 MovieClip Frame 1
penguin.gotoAndStop(1);
stop();
Symbol 607 MovieClip Frame 2
penguin.gotoAndStop(2);
Symbol 607 MovieClip Frame 3
_root.herohurtsnd.start();
_root.deadNum++;
_root.life--;
gotoAndStop(this.direction);
Instance of Symbol 572 MovieClip in Symbol 607 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._parent._xscale > 10) {
this._parent._rotation = this._parent._rotation + 20;
this._parent._xscale = this._parent._xscale - 5;
this._parent._yscale = this._parent._yscale - 5;
this._parent._alpha = this._parent._alpha - 5;
} else {
this._parent._alpha = 100;
_parent.gotoAndStop(4);
}
}
Symbol 607 MovieClip Frame 4
explode = true;
stop();
trace(this.direction + "====");
Symbol 607 MovieClip Frame 5
explode = true;
stop();
trace(this.direction + "=");
Symbol 607 MovieClip Frame 6
explode = true;
stop();
trace(this.direction + "==");
Symbol 607 MovieClip Frame 7
explode = true;
stop();
trace(this.direction + "===");
Symbol 611 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 2
play();
Symbol 612 MovieClip Frame 16
trace("kjkjkjkjkjkjkjkjkjkj");
Symbol 615 MovieClip Frame 1
stop();
playing = false;
Symbol 615 MovieClip Frame 2
_root.player.transition = true;
i = 1;
while (i <= 1000) {
_root["ball" + i].removeMovieClip();
_root["enemyBall" + i].removeMovieClip();
i++;
}
playing = true;
this._visible = true;
Symbol 615 MovieClip Frame 24
if (_root.practice == true) {
_root.gotoAndStop("levelSelect");
} else if (playerDead == true) {
trace(_root.life + ": _root.life");
if (_root.life <= 0) {
_root.gotoAndStop("gameover");
} else {
_root.player.transition = falsee;
_root.displaybox_mc._visible = true;
_root.displaybox_mc.gotoAndPlay(2);
}
} else {
_root.gotoAndStop("levelcomplete");
}
Symbol 615 MovieClip Frame 25
play();
Symbol 615 MovieClip Frame 30
shrink = false;
Symbol 615 MovieClip Frame 52
reset();
_root.player.transition = false;
playerDead = false;
this._visible = false;
this.gotoAndStop(1);
Symbol 640 MovieClip Frame 7
stop();
Symbol 643 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 650 MovieClip Frame 7
stop();
Symbol 653 Button
on (release) {
_root.player.transition = false;
_root.displaybox_mc._visible = false;
_root.prevFrame();
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 655 MovieClip Frame 1
stop();
Symbol 655 MovieClip Frame 2
stopAllSounds();
_root.lvlendsnd.start();
_root.lvlendsnd.onSoundComplete = function () {
_root.lvlendsnd.start();
};
Symbol 655 MovieClip Frame 11
_root.clashanimsnd.start();
Symbol 655 MovieClip Frame 18
_root.clashanimsnd.start();
Symbol 655 MovieClip Frame 50
stop();
Symbol 665 MovieClip Frame 30
gotoAndPlay (10);
Symbol 666 MovieClip Frame 1
stop();
Instance of Symbol 668 MovieClip "sideBottom" in Symbol 670 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y + (_parent._height / 2)) + 15;
_root.player.ySpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y + (_parent._height / 2)) + 13;
_root["enemy" + i].ySpeed = 0;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideTop" in Symbol 670 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y - (_parent._height / 2)) - 15;
_root.player.ySpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y - (_parent._height / 2)) - 13;
_root["enemy" + i].ySpeed = 0;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideLeft" in Symbol 672 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x - (_parent._width / 2)) - 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x - (_parent._width / 2)) - 13;
_root["enemy" + i].xSpeed = 0;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideRight" in Symbol 672 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x + (_parent._width / 2)) + 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x + (_parent._width / 2)) + 13;
_root["enemy" + i].xSpeed = 0;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideLeft" in Symbol 678 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x - (_parent._width / 2)) - 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i].xSpeed = 0;
_root["enemy" + i]._x = (_parent._x - (_parent._width / 2)) - 13;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideRight" in Symbol 678 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x + (_parent._width / 2)) + 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x + (_parent._width / 2)) + 13;
}
i++;
}
}
Symbol 691 MovieClip Frame 1
stop();
Instance of Symbol 668 MovieClip "sideLeft" in Symbol 693 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x - (_parent._width / 2)) - 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x - (_parent._width / 2)) - 13;
_root["enemy" + i].xSpeed = 0;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideRight" in Symbol 693 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x + (_parent._width / 2)) + 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x + (_parent._width / 2)) + 13;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideBottom" in Symbol 699 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y + (_parent._height / 2)) + 15;
_root.player.ySpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y + (_parent._height / 2)) + 13;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideTop" in Symbol 699 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.vSpeed = 0;
_root.player._y = (_parent._y - (_parent._height / 2)) - 15;
_root.player.ySpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._y = (_parent._y - (_parent._height / 2)) - 13;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideLeft" in Symbol 699 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x - (_parent._width / 2)) - 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i].xSpeed = 0;
_root["enemy" + i]._x = (_parent._x - (_parent._width / 2)) - 13;
}
i++;
}
}
Instance of Symbol 668 MovieClip "sideRight" in Symbol 699 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.test)) {
_root.player.hSpeed = 0;
_root.player._x = (_parent._x + (_parent._width / 2)) + 15;
_root.player.xSpeed = 0;
}
i = 1;
while (i <= _root.enemies) {
if (this.hitTest(_root["enemy" + i].test)) {
_root["enemy" + i]._x = (_parent._x + (_parent._width / 2)) + 13;
}
i++;
}
}
Symbol 743 MovieClip Frame 7
stop();
Symbol 747 Button
on (release) {
_root.level++;
_root.playerDetails.data.lev = _root.level;
trace("S value:" + _root.playerDetails.data.lev);
_root.gotoAndPlay("level" + _root.level);
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 752 MovieClip Frame 7
stop();
Symbol 755 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 762 MovieClip Frame 2
_root.lwinsnd.start();
Symbol 762 MovieClip Frame 24
_root.clashanimsnd.start();
Symbol 762 MovieClip Frame 31
_root.clashanimsnd.start();
Symbol 762 MovieClip Frame 46
stop();
_root.lvlendsnd.start();
Symbol 764 Button
on (release) {
trace(level + "=level");
level++;
_root.gotoAndPlay("level" + level);
}
Symbol 794 MovieClip Frame 7
stop();
Symbol 797 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 802 MovieClip Frame 7
stop();
Symbol 805 Button
on (release) {
_root.score = 0;
_root.life = 3;
_root.GamePaused = false;
_root.deadNum = 0;
_root.totalscore = 0;
_root.shots = 0;
_root.gotoAndPlay("menu");
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 808 Button
on (release) {
trace("released");
_root.gotoAndStop("menu");
_root.score = 0;
_root.life = 3;
_root.GamePaused = false;
_root.deadNum = 0;
_root.totalscore = 0;
_root.shots = 0;
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 814 MovieClip Frame 1
_root.goversnd.start();
Symbol 814 MovieClip Frame 26
_root.clashanimsnd.start();
Symbol 814 MovieClip Frame 33
_root.clashanimsnd.start();
Symbol 814 MovieClip Frame 38
_root.clashanimsnd.start();
Symbol 814 MovieClip Frame 43
_root.clashanimsnd.start();
Symbol 814 MovieClip Frame 55
stop();
_root.crysnd.start();
_root.crysnd.setVolume(60);
_root.crysnd.onSoundComplete = function () {
_root.menusnd.start();
_root.menusnd.setVolume(70);
};
_root.menusnd.onSoundComplete = function () {
_root.menusnd.start();
};
Symbol 828 MovieClip Frame 7
stop();
Symbol 832 Button
on (release) {
_root.gotoAndStop("menu");
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 837 MovieClip Frame 7
stop();
Symbol 840 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 844 Button
on (release) {
_root.gotoAndStop("menu");
}
on (rollOver) {
_root.btnsnd.start();
}
Symbol 848 MovieClip Frame 29
_root.btnanimsnd.start();
Symbol 848 MovieClip Frame 34
_root.btnanimsnd.start();
Symbol 848 MovieClip Frame 36
_root.btnanimsnd.start();
Symbol 848 MovieClip Frame 38
_root.clashanimsnd.start();
Symbol 848 MovieClip Frame 51
stop();