Frame 1
mochi.as2.MochiServices.connect("9692fd2e420f2e60");
mochi.as2.MochiAd.showPreGameAd({id:"9692fd2e420f2e60", res:"720x576"});
fscommand ("allowscale", false);
fscommand ("showmenu", false);
var fmenu = new ContextMenu();
fmenu.hideBuiltInItems();
_root.soundsw = true;
_root.soundsw2 = true;
Frame 2
rezTotal = getBytesTotal();
rezLoaded = getBytesLoaded();
_root.rezPercent = Math.round(rezLoaded / (rezTotal / 100));
if (rezTotal == rezLoaded) {
loaderbuttons.gotoAndStop(2);
this.stop();
}
Frame 3
gotoAndPlay (2);
Frame 5
stop();
Mouse.show();
_root.goscrstarted = false;
local_data = SharedObject.getLocal("user_data");
_global.bestScore = local_data.data.bestScore;
_global.cLevel = local_data.data.clevel;
var keyListener = new Object();
keyListener.onKeyUp = function () {
if ((Key.getCode() == 112) || (Key.getCode() == 80)) {
if (!_root.pswitch) {
_root.pswitch = true;
gamepaused = true;
pauseGame();
} else {
_root.pswitch = false;
gamepaused = false;
unpauseGame();
}
}
if (Key.getCode() == 48) {
_root.gotoAndStop(5);
}
if ((Key.getCode() == 112) || (Key.getCode() == 80)) {
if (!_root.pswitch) {
_root.pswitch = true;
gamepaused = true;
pauseGame();
} else {
_root.pswitch = false;
gamepaused = false;
unpauseGame();
}
}
if ((Key.getCode() == 78) || (Key.getCode() == 110)) {
if (_root.soundsw) {
gameSound.setVolume(0);
gameSound.stop();
_root.soundsw = false;
} else {
gameSound.start();
gameSound.setVolume(40);
_root.soundsw = true;
}
}
if ((Key.getCode() == 77) || (Key.getCode() == 109)) {
if (_root.soundsw2) {
gameSound.stop();
_root.soundsw2 = false;
} else {
gameSound.start();
_root.soundsw2 = true;
}
}
if (Key.getCode() == 49) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
character.gun.gotoAndStop(1);
_global.activeWeapon = 1;
}
if (Key.getCode() == 50) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
character.gun.gotoAndStop(2);
_global.activeWeapon = 2;
}
};
Key.addListener(keyListener);
Frame 6
stop();
Instance of Symbol 88 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 91 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 94 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 3) {
this.gotoAndStop(2);
}
}
Instance of Symbol 97 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 4) {
this.gotoAndStop(2);
}
}
Instance of Symbol 100 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 5) {
this.gotoAndStop(2);
}
}
Instance of Symbol 103 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 6) {
this.gotoAndStop(2);
}
}
Instance of Symbol 106 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 7) {
this.gotoAndStop(2);
}
}
Instance of Symbol 109 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 8) {
this.gotoAndStop(2);
}
}
Instance of Symbol 112 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 9) {
this.gotoAndStop(2);
}
}
Instance of Symbol 115 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 10) {
this.gotoAndStop(2);
}
}
Instance of Symbol 118 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 11) {
this.gotoAndStop(2);
}
}
Instance of Symbol 121 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 12) {
this.gotoAndStop(2);
}
}
Instance of Symbol 124 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 13) {
this.gotoAndStop(2);
}
}
Instance of Symbol 127 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 14) {
this.gotoAndStop(2);
}
}
Instance of Symbol 130 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 15) {
this.gotoAndStop(2);
}
}
Instance of Symbol 133 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 16) {
this.gotoAndStop(2);
}
}
Instance of Symbol 136 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 17) {
this.gotoAndStop(2);
}
}
Instance of Symbol 139 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 18) {
this.gotoAndStop(2);
}
}
Instance of Symbol 142 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 19) {
this.gotoAndStop(2);
}
}
Instance of Symbol 145 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 20) {
this.gotoAndStop(2);
}
}
Instance of Symbol 148 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 21) {
this.gotoAndStop(2);
}
}
Instance of Symbol 151 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 22) {
this.gotoAndStop(2);
}
}
Instance of Symbol 154 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 23) {
this.gotoAndStop(2);
}
}
Instance of Symbol 157 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 24) {
this.gotoAndStop(2);
}
}
Instance of Symbol 160 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 25) {
this.gotoAndStop(2);
}
}
Instance of Symbol 163 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 26) {
this.gotoAndStop(2);
}
}
Instance of Symbol 166 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 27) {
this.gotoAndStop(2);
}
}
Instance of Symbol 169 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 28) {
this.gotoAndStop(2);
}
}
Instance of Symbol 172 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 29) {
this.gotoAndStop(2);
}
}
Instance of Symbol 175 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.cLevel >= 30) {
this.gotoAndStop(2);
}
}
Frame 7
stop();
Frame 8
_global.cLevel = 1;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
lighttrapAnim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
lighttrapAnim.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
lighttrapAnim.play();
}
Mouse.hide();
teleportOpen = false;
_global.mortal = true;
_global.activeWeapon = 1;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
_global.energy = 100;
_global.ammo = 100;
_root.score = 0;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
approachRatio = 1;
maxT = 1;
i = 1;
while (i <= maxT) {
targets["target" + (i - 1)].duplicateMovieClip("target" + i, i);
targets["target" + i]._x = 120;
targets["target" + i]._y = 180;
targets["target" + i].onEnterFrame = function () {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
if (!_root.pswitch) {
if (this._x < _root.character._x) {
this._x = this._x + approachRatio;
}
if (this._x > _root.character._x) {
this._x = this._x - approachRatio;
}
if (this._y < _root.character._y) {
this._y = this._y + approachRatio;
}
if (this._y > _root.character._y) {
this._y = this._y - approachRatio;
}
}
if (this.target1Hit.hitTest(_root.character.hitbox2)) {
if (_global.mortal) {
_global.energy = _global.energy - 1;
}
}
j = 1;
while (j <= _global.maxBullets) {
if (this.target1Hit.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 25;
this.gotoAndPlay(2);
}
j++;
}
};
i++;
}
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
fueltank02.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
fueltank03.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
lighttrapAnim.lighttrap1.lightHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
if (_global.mortal) {
_global.energy = _global.energy - 3;
}
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndStop(2);
}
j++;
}
};
lighttrapAnim.lighttrap2.lightHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
if (_global.mortal) {
_global.energy = _global.energy - 3;
}
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndStop(2);
}
j++;
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 9
_global.cLevel = 2;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level2enemy.enemy1_anim.stop();
cannonanim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level2enemy.enemy1_anim.stop();
cannonanim.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
level2enemy.enemy1_anim.play();
cannonanim.play();
}
Mouse.hide();
teleportOpen = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 51;
character._y = 525;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
approachRatio = 1;
maxT = 1;
i = 1;
while (i <= maxT) {
targets["target" + (i - 1)].duplicateMovieClip("target" + i, i);
targets["target" + i]._x = 120;
targets["target" + i]._y = 180;
targets["target" + i].onEnterFrame = function () {
myRadians = Math.atan2(_root.character._y - this._y, _root.character._x - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
if (!_root.pswitch) {
if (this._x < _root.character._x) {
this._x = this._x + approachRatio;
}
if (this._x > _root.character._x) {
this._x = this._x - approachRatio;
}
if (this._y < _root.character._y) {
this._y = this._y + approachRatio;
}
if (this._y > _root.character._y) {
this._y = this._y - approachRatio;
}
}
if (this.target1Hit.hitTest(_root.character.hitbox2)) {
if (_global.mortal) {
_global.energy = _global.energy - 1;
}
}
j = 1;
while (j <= _global.maxBullets) {
if (this.target1Hit.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 25;
this.gotoAndPlay(2);
}
j++;
}
};
i++;
}
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
fueltank02.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level2enemy.enemy1_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 10
_global.cLevel = 3;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level3enemy.enemy2_anim.stop();
_root.level3enemy2.enemy2_anim.stop();
_root.level3enemy3.enemy2_anim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level3enemy.enemy2_anim.stop();
_root.level3enemy2.enemy2_anim.stop();
_root.level3enemy3.enemy2_anim.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
_root.level3enemy.enemy2_anim.play();
_root.level3enemy2.enemy2_anim.play();
_root.level3enemy3.enemy2_anim.play();
}
Mouse.hide();
teleportOpen = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 54;
character._y = 282;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
fueltank02.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level3enemy.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level3enemy2.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level3enemy3.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 11
_global.cLevel = 4;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level4enemy.enemy2_anim.stop();
_root.level4enemy2.enemy2_anim.stop();
_root.level4enemy3.enemy2_anim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level4enemy.enemy2_anim.stop();
_root.level4enemy2.enemy2_anim.stop();
_root.level4enemy3.enemy2_anim.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
_root.level4enemy.enemy2_anim.play();
_root.level4enemy2.enemy2_anim.play();
_root.level4enemy3.enemy2_anim.play();
}
Mouse.hide();
teleportOpen = false;
switchboxOne = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 360;
character._y = 64;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
fueltank02.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level4enemy.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level4enemy2.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level4enemy3.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2) && (switchboxOne)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
switchbox1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
switchboxOne = true;
this.gotoAndStop(2);
}
};
laserfenceAnim.laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 10;
}
};
laserfenceAnim.laserfenceHit2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 10;
}
};
laserfenceAnim.laserfenceHit3.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 10;
}
};
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 12
_global.cLevel = 5;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level5enemy.enemy2_anim.stop();
_root.level5enemy2.enemy2_anim.stop();
_root.level5enemy3.enemy2_anim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level5enemy.enemy2_anim.stop();
_root.level5enemy2.enemy2_anim.stop();
_root.level5enemy3.enemy2_anim.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
_root.level5enemy.enemy2_anim.play();
_root.level5enemy2.enemy2_anim.play();
_root.level5enemy3.enemy2_anim.play();
}
Mouse.hide();
teleportOpen = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 110;
character._y = 467;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
fueltank02.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level5enemy.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level5enemy2.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level5enemy3.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 13
_global.cLevel = 6;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level6enemy.enemy2_anim.stop();
_root.level6enemy2.enemy2_anim.stop();
_root.level6enemy3.enemy2_anim2.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level6enemy.enemy2_anim.stop();
_root.level6enemy2.enemy2_anim.stop();
_root.level6enemy3.enemy2_anim2.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
_root.level6enemy.enemy2_anim.play();
_root.level6enemy2.enemy2_anim.play();
_root.level6enemy3.enemy2_anim2.play();
}
Mouse.hide();
teleportOpen = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 630;
character._y = 490;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
level6wall1.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level6wall2.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level6wall3.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level6enemy.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level6enemy2.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level6enemy3.enemy2_anim2.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 14
_global.cLevel = 7;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level7enemy.enemy2_anim.stop();
_root.level7enemy2.enemy2_anim.stop();
_root.level7enemy3.enemy2_anim2.stop();
_root.level7enemy4.enemy2_anim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level7enemy.enemy2_anim.stop();
_root.level7enemy2.enemy2_anim.stop();
_root.level7enemy3.enemy2_anim2.stop();
_root.level7enemy4.enemy2_anim.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
_root.level7enemy.enemy2_anim.play();
_root.level7enemy2.enemy2_anim.play();
_root.level7enemy3.enemy2_anim2.play();
_root.level7enemy4.enemy2_anim.play();
}
Mouse.hide();
teleportOpen = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 360;
character._y = 527;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
level7wall1.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level7wall2.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level7wall3.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level7wall4.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level7wall5.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level7wall6.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
};
level7enemy.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level7enemy2.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level7enemy3.enemy2_anim2.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level7enemy4.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 15
_global.cLevel = 8;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level8enemy.enemy2_anim.stop();
_root.level8enemy2.enemy2_anim.stop();
_root.level8enemy3.enemy2_anim2.stop();
_root.level8enemy4.enemy2_anim.stop();
_root.level8enemy5.enemy2_anim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level8enemy.enemy2_anim.stop();
_root.level8enemy2.enemy2_anim.stop();
_root.level8enemy3.enemy2_anim2.stop();
_root.level8enemy4.enemy2_anim.stop();
_root.level8enemy5.enemy2_anim.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
_root.level8enemy.enemy2_anim.play();
_root.level8enemy2.enemy2_anim.play();
_root.level8enemy3.enemy2_anim2.play();
_root.level8enemy4.enemy2_anim.play();
_root.level8enemy5.enemy2_anim.play();
}
Mouse.hide();
teleportOpen = false;
switchboxOne = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 360;
character._y = 527;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
level8enemy.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level8enemy2.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level8enemy3.enemy2_anim2.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level8enemy4.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level8enemy5.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2) && (switchboxOne)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
switchbox1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
switchboxOne = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 16
_global.cLevel = 9;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
_root.cannonanim2.stop();
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level9enemy.enemy2_anim.stop();
_root.level9enemy2.enemy2_anim.stop();
_root.level9enemy3.enemy2_anim.stop();
_root.level9enemy4.enemy2_anim.stop();
_root.level9enemy5.enemy2_anim.stop();
_root.level9enemy6.enemy2_anim.stop();
_root.level9enemy7.enemy2_anim.stop();
_root.level9enemy8.enemy2_anim.stop();
_root.level9enemy9.enemy2_anim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.cannonanim2.stop();
_root.level9enemy.enemy2_anim.stop();
_root.level9enemy2.enemy2_anim.stop();
_root.level9enemy3.enemy2_anim.stop();
_root.level9enemy4.enemy2_anim.stop();
_root.level9enemy5.enemy2_anim.stop();
_root.level9enemy6.enemy2_anim.stop();
_root.level9enemy7.enemy2_anim.stop();
_root.level9enemy8.enemy2_anim.stop();
_root.level9enemy9.enemy2_anim.stop();
}
function unpauseGame() {
_root.cannonanim2.play();
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
_root.level9enemy.enemy2_anim.play();
_root.level9enemy2.enemy2_anim.play();
_root.level9enemy3.enemy2_anim.play();
_root.level9enemy4.enemy2_anim.play();
_root.level9enemy5.enemy2_anim.play();
_root.level9enemy6.enemy2_anim.play();
_root.level9enemy7.enemy2_anim.play();
_root.level9enemy8.enemy2_anim.play();
_root.level9enemy9.enemy2_anim.play();
}
Mouse.hide();
teleportOpen = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 360;
character._y = 527;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
level9enemy.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level9enemy2.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level9enemy3.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level9enemy4.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level9enemy5.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level9enemy6.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level9enemy7.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 17
_global.cLevel = 10;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level10boss.l10a.stop();
_root.level10boss.level10BOSSanim.stop();
_root.level10enemy5.enemy2_anim.stop();
_root.level10enemy6.enemy2_anim.stop();
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
_root.level10boss.l10a.stop();
_root.level10boss.level10BOSSanim.stop();
_root.level10enemy5.enemy2_anim.stop();
_root.level10enemy6.enemy2_anim.stop();
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
_root.level10boss.l10a.play();
_root.level10boss.level10BOSSanim.play();
_root.level10enemy5.enemy2_anim.play();
_root.level10enemy6.enemy2_anim.play();
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 360;
character._y = 527;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
level10enemy5.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
level10enemy6.enemy2_anim.enemy1.target1Hit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 15;
this._parent.gotoAndPlay(2);
}
j++;
}
};
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
ammobox2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
ammobox3.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 18
stop();
Frame 19
_global.cLevel = 11;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 360;
character._y = 527;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
ammobox2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 20
_global.cLevel = 12;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 621;
character._y = 99;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 21
_global.cLevel = 13;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 671;
character._y = 527;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 652 MovieClip in Frame 21
/* no clip actions */
Instance of Symbol 652 MovieClip in Frame 21
/* no clip actions */
Instance of Symbol 652 MovieClip in Frame 21
/* no clip actions */
Instance of Symbol 652 MovieClip in Frame 21
/* no clip actions */
Instance of Symbol 652 MovieClip in Frame 21
/* no clip actions */
Instance of Symbol 652 MovieClip in Frame 21
/* no clip actions */
Instance of Symbol 652 MovieClip in Frame 21
/* no clip actions */
Frame 22
_global.cLevel = 14;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 51;
character._y = 527;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 23
_global.cLevel = 15;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 654;
character._y = 276;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 24
_global.cLevel = 16;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 567;
character._y = 523;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 25
_global.cLevel = 17;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 75;
character._y = 201;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 26
_global.cLevel = 18;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
switchboxOne = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 627;
character._y = 505;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2) && (switchboxOne)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
switchbox1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
switchboxOne = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 27
_global.cLevel = 19;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 625;
character._y = 91;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 28
_global.cLevel = 20;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
level10boss.level20BOSSanim.stop();
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
level10boss.level20BOSSanim.stop();
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
level10boss.level20BOSSanim.play();
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level20bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 361;
character._y = 509;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
ammobox2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 29
stop();
Frame 30
_global.cLevel = 21;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 617;
character._y = 495;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 854 MovieClip "level21wall" in Frame 30
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 30
/* no clip actions */
Frame 31
_global.cLevel = 22;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 74;
character._y = 291;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
fueltank01.fueltankHit.onEnterFrame = function () {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
this._parent.gotoAndPlay(2);
}
j++;
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 882 MovieClip "level21wall" in Frame 31
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 882 MovieClip "level21wall2" in Frame 31
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 882 MovieClip "level21wall3" in Frame 31
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Frame 32
_global.cLevel = 23;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
switchboxOne = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 163;
character._y = 164;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
ammobox2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2) && (switchboxOne)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
switchbox1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
switchboxOne = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 882 MovieClip "level21wall5" in Frame 32
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 882 MovieClip "level21wall4" in Frame 32
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Frame 33
_global.cLevel = 24;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 353;
character._y = 495;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 920 MovieClip "level24wall1" in Frame 33
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 921 MovieClip "level24wall2" in Frame 33
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Frame 34
_global.cLevel = 25;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 169;
character._y = 431;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 35
_global.cLevel = 26;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 560;
character._y = 433;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 920 MovieClip "level26wall1" in Frame 35
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level26wall2" in Frame 35
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level26wall3" in Frame 35
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level26wall4" in Frame 35
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Frame 36
_global.cLevel = 27;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 670;
character._y = 167;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 920 MovieClip "level27wall1" in Frame 36
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level27wall2" in Frame 36
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level27wall3" in Frame 36
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 855 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 36
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 36
/* no clip actions */
Frame 37
_global.cLevel = 28;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 197;
character._y = 423;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 920 MovieClip "level28wall1" in Frame 37
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level28wall2" in Frame 37
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 855 MovieClip in Frame 37
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 37
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 37
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 37
/* no clip actions */
Instance of Symbol 855 MovieClip in Frame 37
/* no clip actions */
Frame 38
_global.cLevel = 29;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
switchboxOne = false;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 650;
character._y = 282;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2) && (switchboxOne)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
switchbox1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
switchboxOne = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Instance of Symbol 920 MovieClip "level29wall1" in Frame 38
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level29wall2" in Frame 38
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level29wall3" in Frame 38
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Instance of Symbol 920 MovieClip "level29wall4" in Frame 38
onClipEvent (enterFrame) {
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
}
j++;
}
}
Frame 39
_global.cLevel = 30;
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
function pauseGame() {
boss3main.boss3anim.stop();
pausemc._alpha = 90;
ammotemp = _global.ammo;
_global.ammo = 0;
}
function levelstart() {
_root.pswitch = true;
gamepaused = true;
boss3main.boss3anim.stop();
ammotemp = _global.ammo;
_global.ammo = 0;
}
function unpauseGame() {
gamepaused = false;
boss3main.boss3anim.play();
pausemc._alpha = 0;
_global.ammo = ammotemp;
}
Mouse.hide();
teleportOpen = false;
_global.level10bossEnergy = 100;
_global.mortal = true;
_global.bulletCnt = 1;
_global.maxBullets = 20;
_global.weaponScroll = 0;
_global.level30bossEnergy = 100;
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
aim.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
character._x = 360;
character._y = 519;
this.onMouseUp = function () {
clearInterval(firingInterval);
};
ammoBar.ammoBarMask.onEnterFrame = function () {
this._width = _global.ammo * 1.7;
};
energyBar.energyBarMask.onEnterFrame = function () {
if ((_global.energy <= 0) && (!_root.goscrstarted)) {
_root.goscrstarted = true;
_root.gameover.gotoAndPlay(2);
}
this._width = _global.energy * 1.7;
};
stop();
ammobox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
ammobox2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
ammobox3.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.ammo = 100;
this.gotoAndStop(2);
}
};
switchbox.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
teleportOpen = true;
this.gotoAndStop(2);
}
};
health.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
health2.healthHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = 100;
_root.health.gotoAndStop(2);
}
};
function fireWeapon(weapon) {
if (_global.ammo > 0) {
if (_root.shootinprogress) {
attachMovie("bullet" + weapon, "bullet" + _global.bulletCnt, _global.bulletCnt);
_root.shootsnd.gotoAndPlay(2);
if (_global.activeWeapon == 1) {
_global.ammo--;
_root.character.gun.fireshots1._alpha = 100;
}
if (_global.activeWeapon == 2) {
_global.ammo = _global.ammo - 2;
_root.character.gun.fireshots2._alpha = 100;
}
_root["bullet" + _global.bulletCnt].onEnterFrame = function () {
if (((this.hitTest(_root.wall1) || (this.hitTest(_root.wall2))) || (this.hitTest(_root.wall3))) || (this.hitTest(_root.wall4))) {
removeMovieClip(this);
}
};
_root["bullet" + _global.bulletCnt]._rotation = character._rotation;
_root["bullet" + _global.bulletCnt]._x = character._x;
_root["bullet" + _global.bulletCnt]._y = character._y;
if (_global.bulletCnt < _global.maxBullets) {
_global.bulletCnt++;
} else {
_global.bulletCnt = 1;
}
}
} else {
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
}
}
shootListener = new Object();
shootListener.onMouseWheel = function (delta) {
_global.bulletCnt = 1;
clearInterval(firingInterval);
_global.weaponScroll = delta / 3;
character.gun.gotoAndStop(character.gun._currentframe + _global.weaponScroll);
};
shootListener.updateAfterEvent();
Mouse.addListener(shootListener);
_root.onMouseDown = function () {
_root.shootinprogress = true;
firingInterval = setInterval(fireWeapon, _global.fireRate, _global.activeWeapon);
fireWeapon(_global.activeWeapon);
};
_root.onMouseUp = function () {
_root.shootinprogress = false;
_root.character.gun.fireshots1._alpha = 0;
_root.character.gun.fireshots2._alpha = 0;
clearInterval(firingInterval);
};
weapons.onEnterFrame = function () {
this.gotoAndStop(_global.activeWeapon);
};
stop();
uKey = 38;
lKey = 37;
rKey = 39;
dKey = 40;
chspeed = 8;
alive = true;
chbot.onEnterFrame = function () {
this._x = character._x;
this._y = character._y;
};
character.onEnterFrame = function () {
myRadians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
};
this.onEnterFrame = function () {
if ((!gamepaused) && (alive)) {
chorient = "";
character.pointMid = {x:0, y:-7};
character.localToGlobal(character.pointMid);
this.fpx = character.pointMid.x;
this.fpy = character.pointMid.y;
chbot.hitpix.pointHit = {x:0, y:0};
chbot.hitpix.localToGlobal(chbot.hitpix.pointHit);
this.hpx = chbot.hitpix.pointHit.x;
this.hpy = chbot.hitpix.pointHit.y;
if (walkzone.hitTest(this.fpx, this.fpy, true)) {
hitfront = true;
} else {
hitfront = false;
}
if (walkzone.hitTest(this.hpx, this.hpy, true)) {
predict = true;
} else {
predict = false;
}
if (Key.isDown(lKey) || (Key.isDown(65))) {
chbot._rotation = -90;
if (hitfront && (predict)) {
character.play();
chorient = "left";
}
}
if (Key.isDown(rKey) || (Key.isDown(68))) {
chbot._rotation = 90;
if (hitfront && (predict)) {
character.play();
chorient = "right";
}
}
if (Key.isDown(uKey) || (Key.isDown(87))) {
chbot._rotation = 0;
if (hitfront && (predict)) {
character.play();
chorient = "up";
}
}
if (Key.isDown(dKey) || (Key.isDown(83))) {
chbot._rotation = 180;
if (hitfront && (predict)) {
character.play();
chorient = "down";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = -45;
if (hitfront && (predict)) {
chorient = "nw";
}
}
if ((Key.isDown(lKey) || (Key.isDown(65))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 225;
if (hitfront && (predict)) {
chorient = "sw";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(dKey) || (Key.isDown(83)))) {
chbot._rotation = 135;
if (hitfront && (predict)) {
chorient = "se";
}
}
if ((Key.isDown(rKey) || (Key.isDown(68))) && (Key.isDown(uKey) || (Key.isDown(87)))) {
chbot._rotation = 45;
if (hitfront && (predict)) {
chorient = "ne";
}
}
hitpix._x = character._x;
hitpix._y = character._y + 20;
oldx = character._x;
oldy = character._y;
if (chorient == "left") {
character._x = character._x - chspeed;
}
if (chorient == "right") {
character._x = character._x + chspeed;
}
if (chorient == "up") {
character._y = character._y - chspeed;
}
if (chorient == "down") {
character._y = character._y + chspeed;
}
if (chorient == "nw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "sw") {
character._x = character._x - (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
if (chorient == "ne") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y - (chspeed / 1.5);
}
if (chorient == "se") {
character._x = character._x + (chspeed / 1.5);
character._y = character._y + (chspeed / 1.5);
}
}
};
Frame 40
stop();
Frame 41
var gameSound = new Sound();
gameSound.setVolume(40);
gameSound.attachSound("soundtrack");
gameSound.stop();
gameSound.start();
gameSound.onSoundComplete = function () {
gameSound.start();
};
local_data = SharedObject.getLocal("user_data");
if (local_data.data.bestScore == undefined) {
local_data.data.bestScore = 0;
local_data.flush();
}
if (local_data.data.clevel == undefined) {
local_data.data.clevel = 1;
local_data.flush();
}
gotoAndStop (5);
Frame 42
stop();
_global.energy = 100;
_global.ammo = 100;
_root.score = 0;
if (_root.levelselected == 1) {
_root.gotoAndPlay(7);
}
if (_root.levelselected == 2) {
_root.gotoAndPlay(9);
}
if (_root.levelselected == 3) {
_root.gotoAndPlay(10);
}
if (_root.levelselected == 4) {
_root.gotoAndPlay(11);
}
if (_root.levelselected == 5) {
_root.gotoAndPlay(12);
}
if (_root.levelselected == 6) {
_root.gotoAndPlay(13);
}
if (_root.levelselected == 7) {
_root.gotoAndPlay(14);
}
if (_root.levelselected == 8) {
_root.gotoAndPlay(15);
}
if (_root.levelselected == 9) {
_root.gotoAndPlay(16);
}
if (_root.levelselected == 10) {
_root.gotoAndPlay(17);
}
if (_root.levelselected == 11) {
_root.gotoAndPlay(18);
}
if (_root.levelselected == 12) {
_root.gotoAndPlay(20);
}
if (_root.levelselected == 13) {
_root.gotoAndPlay(21);
}
if (_root.levelselected == 14) {
_root.gotoAndPlay(22);
}
if (_root.levelselected == 15) {
_root.gotoAndPlay(23);
}
if (_root.levelselected == 16) {
_root.gotoAndPlay(24);
}
if (_root.levelselected == 17) {
_root.gotoAndPlay(25);
}
if (_root.levelselected == 18) {
_root.gotoAndPlay(26);
}
if (_root.levelselected == 19) {
_root.gotoAndPlay(27);
}
if (_root.levelselected == 20) {
_root.gotoAndPlay(28);
}
if (_root.levelselected == 21) {
_root.gotoAndPlay(29);
}
if (_root.levelselected == 22) {
_root.gotoAndPlay(31);
}
if (_root.levelselected == 23) {
_root.gotoAndPlay(32);
}
if (_root.levelselected == 24) {
_root.gotoAndPlay(33);
}
if (_root.levelselected == 25) {
_root.gotoAndPlay(34);
}
if (_root.levelselected == 26) {
_root.gotoAndPlay(35);
}
if (_root.levelselected == 27) {
_root.gotoAndPlay(36);
}
if (_root.levelselected == 28) {
_root.gotoAndPlay(37);
}
if (_root.levelselected == 29) {
_root.gotoAndPlay(38);
}
if (_root.levelselected == 30) {
_root.gotoAndPlay(39);
}
Frame 43
Mouse.show();
var o = {n:[13, 9, 7, 15, 5, 1, 5, 14, 14, 5, 4, 6, 12, 10, 5, 1], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:"d97f515ee546ca51", score:score});
Frame 44
gotoAndStop (5);
Frame 45
Mouse.show();
var o = {n:[13, 9, 7, 15, 5, 1, 5, 14, 14, 5, 4, 6, 12, 10, 5, 1], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:"d97f515ee546ca51"});
Frame 46
gotoAndStop (5);
Symbol 6 MovieClip [bullet2] Frame 1
bullet._y = bullet._y - 20;
bullet2._y = bullet2._y - 20;
Symbol 6 MovieClip [bullet2] Frame 2
gotoAndPlay (1);
Symbol 7 MovieClip [bullet1] Frame 1
bullet._y = bullet._y - 15;
Symbol 7 MovieClip [bullet1] Frame 2
gotoAndPlay (1);
Symbol 1092 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
if (options.skip) {
ad_timeout = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
bar._visible = false;
delete options.no_progress_bar;
} else {
bar._x = 10;
bar._y = h - 20;
}
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside = bar.createEmptyMovieClip("_inside", 2);
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(w - 20, 0);
inside.lineTo(w - 20, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
mochi.as2.MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var _clip = this._parent._parent;
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = this._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside._xscale = pcnt;
options.ad_progress(pcnt);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:clip_pcnt}, clip._mochiad._containerLCName);
if (clip_pcnt == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((elapsed > chk.ad_timeout) && (clip_pcnt == 100)) {
options.ad_failed();
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (finished)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
}, ad_skipped:function () {
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
var sendHostProgress = false;
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
finished = true;
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
if (finished) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
mochi.as2.MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
return(s);
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (finished) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function _allowDomains(server) {
var hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
return(hostname);
}
static function load(options) {
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var clip = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = _getRes(options);
options.res = (wh[0] + "x") + wh[1];
options.server = options.server + options.id;
delete options.id;
clip._mochiad_loaded = true;
if (clip._url.indexOf("http") != 0) {
}
var lv = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in options) {
lv[k] = options[k];
}
var server = lv.server;
delete lv.server;
var hostname = _allowDomains(server);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var lc = new Object();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.hostname = hostname;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
lv.lc = name;
lv.st = getTimer();
if (!options.skip) {
lv.loadMovie(server + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var o = System.security;
if (o.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var b = options.clip.getBounds();
var w = 0;
var h = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = b.xMax - b.xMin;
h = b.yMax - b.yMin;
}
if ((w == 0) || (h == 0)) {
w = Stage.width;
h = Stage.height;
}
return([w, h]);
}
static function _parseOptions(options, defaults) {
var optcopy = {};
for (var k in defaults) {
optcopy[k] = defaults[k];
}
if (options) {
for (var k in options) {
optcopy[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var i = 0;
while (i < pairs.length) {
var kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
}
}
if (optcopy.id == "test") {
}
return(optcopy);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
return;
case "getValue" :
var val = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, val, clip._mochiad._containerLCName);
return;
case "runMethod" :
var ret = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, ret, clip._mochiad._containerLCName);
}
}
static function setValue(base, objectName, value) {
var nameArray = objectName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
base[nameArray[i]] = value;
}
static function getValue(base, objectName) {
var nameArray = objectName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
return(base[nameArray[i]]);
}
static function runMethod(base, methodName, argsArray) {
var nameArray = methodName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
if (typeof(base[nameArray[i]]) == "function") {
return(base[nameArray[i]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var container = clip._mochiad._mochiad_ctr.ad.app;
if (container.notify) {
container.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var container = clip._mochiad._mochiad_ctr.ad.app;
if (container.rpcResult) {
container.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1093 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
return;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1094 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
static function allowDomains(server) {
var hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
return(hostname);
}
static function get isNetworkAvailable() {
if (System.security) {
var o = System.security;
if (o.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var clipname = ("_mochiservices_com_" + id);
var _loader = new MovieClipLoader();
var _loaderListener = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var servicesURL = (_servURL + _services);
if (urlOptions().servicesURL) {
servicesURL = urlOptions().servicesURL;
}
allowDomains(servicesURL);
_clip = clip.createEmptyMovieClip(clipname, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener.onLoadError = loadError;
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((((servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var cb = pkg.callbackID;
var cblst = this._callbacks[cb];
if (!cblst) {
return(undefined);
}
var method = cblst.callbackMethod;
var obj = cblst.callbackObject;
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method != undefined) {
method.apply(obj, pkg.args);
}
delete this._callbacks[cb];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
return;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
return;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var request;
var callback;
while (_sendChannel._queue.length > 0) {
request = _sendChannel._queue.shift();
delete callback;
if (request.callbackID != null) {
callback = _listenChannel._callbacks[request.callbackID];
}
delete _listenChannel._callbacks[request.callbackID];
if (error) {
handleError(request.args, callback.callbackObject, callback.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var opts = {};
var options;
if (_root._url.indexOf("mochiad_options") != -1) {
var i = ((_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1);
options = _root._url.substr(i, _root._url.length);
} else if (_root.mochiad_options) {
options = _root.mochiad_options;
}
if (options) {
var pairs = _root.mochiad_options.split("&");
var i = 0;
while (i < pairs.length) {
var kv = pairs[i].split("=");
opts[unescape(kv[0])] = unescape(kv[1]);
i++;
}
}
return(opts);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
}
return(undefined);
}
var i = 0;
while (i < bid.length) {
switch (bid.charAt(i)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
return(undefined);
}
i++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var vars = new Object();
vars.mav = getVersion();
vars.swfv = btn.getSWFVersion() || 6;
vars.swfurl = btn._url;
vars.fv = System.capabilities.version;
vars.os = System.capabilities.os;
vars.lang = System.capabilities.language;
vars.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var i = 0;
for (var x in vars) {
if (i != 0) {
s = s + "&";
}
i++;
s = ((s + x) + "=") + escape(vars[x]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var nettest = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
nettest.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var clk = btn.createEmptyMovieClip("clk", 1001);
clk._alpha = 0;
clk.beginFill(1044735);
clk.moveTo(0, 0);
clk.lineTo(0, btn._height);
clk.lineTo(btn._width, btn._height);
clk.lineTo(btn._width, 0);
clk.lineTo(0, 0);
clk.endFill();
clk.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 1095 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var delegate = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
delegate.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
delegate.delegate = thisObject;
}
return(delegate);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var delegate = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var s in eventTable[event]) {
if (!compareDelegate(eventTable[event][s], delegate)) {
continue;
}
eventTable[event].splice(Number(s), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var i in eventTable[event]) {
eventTable[event][i].delegate(args);
}
}
}
Symbol 1096 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var args = {};
for (var s in style) {
args[s] = style[s];
}
args.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", args, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1097 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1098 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var n = Number(options.score);
if (isNaN(n)) {
} else if ((n == Number.NEGATIVE_INFINITY) || (n == Number.POSITIVE_INFINITY)) {
} else {
if (Math.floor(n) != n) {
}
options.score = n;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
} else {
if (Math.floor(score) != score) {
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var so = {};
var i;
var j;
var o;
var row_obj;
for (var item in scores) {
if (typeof(scores[item]) == "object") {
if ((scores[item].cols != null) && (scores[item].rows != null)) {
so[item] = [];
o = scores[item];
j = 0;
while (j < o.rows.length) {
row_obj = {};
i = 0;
while (i < o.cols.length) {
row_obj[o.cols[i]] = o.rows[j][i];
i++;
}
so[item].push(row_obj);
j++;
}
} else {
so[item] = {};
for (var param in scores[item]) {
so[item][param] = scores[item][param];
}
}
} else {
so[item] = scores[item];
}
}
return(so);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1099 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var s = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = s.charCodeAt(index++) ^ Encoder;
if (index < s.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var newEncode = int(2147483647 * Math.random());
Fragment = Fragment ^ (newEncode ^ Encoder);
Encoder = newEncode;
}
function toString() {
var s = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (s.concat(Sibling.toString())) : (s)));
}
}
Symbol 18 Button
on (release) {
_root.gotoAndPlay(41);
}
Symbol 19 MovieClip Frame 1
stop();
Instance of Symbol 13 MovieClip in Symbol 19 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.rezPercent * 2.17;
}
Symbol 19 MovieClip Frame 2
stop();
Symbol 28 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 30 MovieClip Frame 170
_root.preloader9p.gotoAndStop(2);
stop();
Symbol 32 MovieClip Frame 187
stop();
Symbol 33 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 2
stop();
Symbol 36 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 37 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 42 MovieClip Frame 7
stop();
Symbol 44 Button
on (release) {
_global.walkSpeed = 0;
_global.maxWalkSpeed = 30;
_global.energy = 100;
_global.ammo = 100;
_parent._parent.gotoAndPlay(6);
}
Symbol 47 MovieClip Frame 7
stop();
Symbol 48 Button
on (release) {
_parent.gotoAndPlay(26);
}
Symbol 51 MovieClip Frame 7
stop();
Symbol 52 Button
on (release) {
_root.gotoAndStop(45);
}
Symbol 55 MovieClip Frame 7
stop();
Symbol 56 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 57 MovieClip Frame 1
Symbol 62 Button
on (release) {
_parent.gotoAndPlay(21);
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 20
stop();
Symbol 64 MovieClip Frame 40
_parent.gotoAndPlay(1);
Symbol 71 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 20
stop();
Symbol 72 MovieClip Frame 40
_parent.gotoAndPlay(1);
Symbol 73 MovieClip Frame 25
stop();
Symbol 73 MovieClip Frame 26
stop();
Symbol 73 MovieClip Frame 27
stop();
Symbol 76 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 79 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 87 Button
on (release) {
_root.levelselected = 1;
_root.gotoAndPlay(42);
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 90 Button
on (release) {
_root.levelselected = 2;
_root.gotoAndPlay(42);
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 93 Button
on (release) {
_root.levelselected = 3;
_root.gotoAndPlay(42);
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
stop();
Symbol 96 Button
on (release) {
_root.levelselected = 4;
_root.gotoAndPlay(42);
}
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
stop();
Symbol 99 Button
on (release) {
_root.levelselected = 5;
_root.gotoAndPlay(42);
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 102 Button
on (release) {
_root.levelselected = 6;
_root.gotoAndPlay(42);
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 105 Button
on (release) {
_root.levelselected = 7;
_root.gotoAndPlay(42);
}
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 108 Button
on (release) {
_root.levelselected = 8;
_root.gotoAndPlay(42);
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 111 Button
on (release) {
_root.levelselected = 9;
_root.gotoAndPlay(42);
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
stop();
Symbol 114 Button
on (release) {
_root.levelselected = 10;
_root.gotoAndPlay(42);
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
stop();
Symbol 117 Button
on (release) {
_root.levelselected = 11;
_root.gotoAndPlay(42);
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 120 Button
on (release) {
_root.levelselected = 12;
_root.gotoAndPlay(42);
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 123 Button
on (release) {
_root.levelselected = 13;
_root.gotoAndPlay(42);
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 126 Button
on (release) {
_root.levelselected = 14;
_root.gotoAndPlay(42);
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
stop();
Symbol 129 Button
on (release) {
_root.levelselected = 15;
_root.gotoAndPlay(42);
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 132 Button
on (release) {
_root.levelselected = 16;
_root.gotoAndPlay(42);
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
stop();
Symbol 135 Button
on (release) {
_root.levelselected = 17;
_root.gotoAndPlay(42);
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 138 Button
on (release) {
_root.levelselected = 18;
_root.gotoAndPlay(42);
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 141 Button
on (release) {
_root.levelselected = 19;
_root.gotoAndPlay(42);
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 144 Button
on (release) {
_root.levelselected = 20;
_root.gotoAndPlay(42);
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
stop();
Symbol 147 Button
on (release) {
_root.levelselected = 21;
_root.gotoAndPlay(42);
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 150 Button
on (release) {
_root.levelselected = 22;
_root.gotoAndPlay(42);
}
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
stop();
Symbol 153 Button
on (release) {
_root.levelselected = 23;
_root.gotoAndPlay(42);
}
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 156 Button
on (release) {
_root.levelselected = 24;
_root.gotoAndPlay(42);
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 159 Button
on (release) {
_root.levelselected = 25;
_root.gotoAndPlay(42);
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
stop();
Symbol 162 Button
on (release) {
_root.levelselected = 26;
_root.gotoAndPlay(42);
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
stop();
Symbol 165 Button
on (release) {
_root.levelselected = 27;
_root.gotoAndPlay(42);
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 168 Button
on (release) {
_root.levelselected = 28;
_root.gotoAndPlay(42);
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
stop();
Symbol 171 Button
on (release) {
_root.levelselected = 29;
_root.gotoAndPlay(42);
}
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 2
stop();
Symbol 174 Button
on (release) {
_root.levelselected = 30;
_root.gotoAndPlay(42);
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 2
stop();
Symbol 179 MovieClip Frame 30
stop();
Symbol 180 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 184 MovieClip Frame 232
_root.nextFrame();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 10
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 10
removeMovieClip(this);
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 240 Button
on (keyPress "1") {
clearInterval(firingInterval);
dude.gun.gotoAndStop(1);
}
on (keyPress "2") {
clearInterval(firingInterval);
dude.gun.gotoAndStop(2);
}
on (keyPress "3") {
clearInterval(firingInterval);
dude.gun.gotoAndStop(3);
}
Symbol 250 MovieClip Frame 1
stop();
_global.activeWeapon = 1;
_global.fireRate = 300;
Symbol 250 MovieClip Frame 2
stop();
_global.activeWeapon = 2;
_global.fireRate = 100;
Symbol 284 MovieClip Frame 55
stop();
Symbol 290 MovieClip Frame 121
stop();
Symbol 293 MovieClip Frame 214
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 50
_root.nextFrame();
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
_global.mortal = false;
_global.energy = 0;
if (_root.score >= _global.bestScore) {
_root.local_data.data.bestScore = _root.score;
_root.local_data.flush();
}
if (_global.cLevel >= _root.local_data.data.clevel) {
_root.local_data.data.clevel = _global.cLevel;
_root.local_data.flush();
}
Symbol 301 MovieClip Frame 71
_root.gotoAndStop(43);
Symbol 303 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
_root.levelstart();
Symbol 307 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 10
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 10
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 10
_parent._parent.gotoAndStop(2);
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 2
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 334 MovieClip Frame 1
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 340 MovieClip Frame 55
stop();
Symbol 341 MovieClip Frame 1
_root.levelstart();
Symbol 341 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 10
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 10
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 353 MovieClip Frame 1
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 354 MovieClip Frame 1
cannonray2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 360 MovieClip Frame 55
stop();
Symbol 361 MovieClip Frame 1
_root.levelstart();
Symbol 361 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 10
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 10
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 2
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 1
stop();
Symbol 373 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 374 MovieClip Frame 1
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 374 MovieClip Frame 81
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 374 MovieClip Frame 123
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 2
stop();
Symbol 381 MovieClip Frame 55
stop();
Symbol 395 MovieClip Frame 210
stop();
Symbol 396 MovieClip Frame 1
_root.levelstart();
Symbol 396 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 404 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 10
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 10
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 2
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 418 MovieClip Frame 55
stop();
Symbol 424 MovieClip Frame 1
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit3.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit4.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 424 MovieClip Frame 31
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit3.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit4.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 424 MovieClip Frame 68
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit3.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit4.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 424 MovieClip Frame 90
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit3.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
laserfenceHit4.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 425 MovieClip Frame 1
_root.levelstart();
Symbol 425 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 10
stop();
Symbol 434 MovieClip Frame 4
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 2
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
stop();
Symbol 441 MovieClip Frame 1
stop();
Symbol 441 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 442 MovieClip Frame 40
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 2
stop();
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 2
stop();
Symbol 445 MovieClip Frame 1
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 446 MovieClip Frame 1
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 452 MovieClip Frame 55
stop();
Symbol 455 MovieClip Frame 1
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 455 MovieClip Frame 31
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 455 MovieClip Frame 46
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 455 MovieClip Frame 68
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 456 MovieClip Frame 1
_root.levelstart();
Symbol 456 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 473 MovieClip Frame 1
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 473 MovieClip Frame 81
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 473 MovieClip Frame 123
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 479 MovieClip Frame 55
stop();
Symbol 480 MovieClip Frame 1
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 480 MovieClip Frame 31
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 480 MovieClip Frame 46
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 480 MovieClip Frame 68
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 481 MovieClip Frame 1
_root.levelstart();
Symbol 481 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 2
stop();
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 2
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 2
stop();
Symbol 490 MovieClip Frame 4
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 490 MovieClip Frame 42
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 2
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 2
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 2
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 2
stop();
Symbol 496 MovieClip Frame 1
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 496 MovieClip Frame 81
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 496 MovieClip Frame 123
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 502 MovieClip Frame 55
stop();
Symbol 503 MovieClip Frame 1
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 504 MovieClip Frame 1
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 504 MovieClip Frame 31
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 504 MovieClip Frame 46
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 504 MovieClip Frame 68
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 505 MovieClip Frame 1
_root.levelstart();
Symbol 505 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 511 MovieClip Frame 4
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 2
stop();
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 20
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 2
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 2
stop();
Symbol 519 MovieClip Frame 10
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 519 MovieClip Frame 36
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 2
stop();
Symbol 521 MovieClip Frame 22
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 521 MovieClip Frame 48
bullet.gotoAndStop(1);
bullet.bulletHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 25;
this._parent.gotoAndPlay(2);
}
};
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 2
stop();
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 524 MovieClip Frame 2
stop();
Symbol 525 MovieClip Frame 45
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 525 MovieClip Frame 87
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 531 MovieClip Frame 55
stop();
Symbol 532 MovieClip Frame 1
_root.levelstart();
Symbol 532 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
stop();
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 2
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 2
stop();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 2
stop();
Symbol 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 2
stop();
Symbol 543 MovieClip Frame 45
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 543 MovieClip Frame 87
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 544 MovieClip Frame 45
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 544 MovieClip Frame 87
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 545 MovieClip Frame 17
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 545 MovieClip Frame 130
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 546 MovieClip Frame 17
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 546 MovieClip Frame 130
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 552 MovieClip Frame 36
_parent.nextFrame();
Instance of Symbol 560 MovieClip "blasterhit" in Symbol 561 MovieClip Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 2;
}
}
Instance of Symbol 560 MovieClip "blasterhit" in Symbol 561 MovieClip Frame 148
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 2;
}
}
Instance of Symbol 560 MovieClip "blasterhit" in Symbol 561 MovieClip Frame 200
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 2;
}
}
Symbol 562 MovieClip Frame 1
l10bosshit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
_global.level10bossEnergy = _global.level10bossEnergy - 1;
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 5;
_global.level10bossEnergy = _global.level10bossEnergy - 1;
}
j++;
}
};
stop();
Instance of Symbol 556 MovieClip in Symbol 562 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _global.level10bossEnergy * 0.96;
if (_global.level10bossEnergy <= 0) {
this._parent.gotoAndPlay(2);
}
}
Symbol 562 MovieClip Frame 17
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
_parent.gotoAndStop(356);
stop();
Symbol 566 MovieClip Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 566 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 20;
this._parent.gotoAndPlay(2);
}
}
Symbol 567 MovieClip Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 567 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 20;
this._parent.gotoAndPlay(2);
}
}
Symbol 568 MovieClip Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 568 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 20;
this._parent.gotoAndPlay(2);
}
}
Symbol 569 MovieClip Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 20;
this._parent.gotoAndPlay(2);
}
}
Symbol 570 MovieClip Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 570 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 20;
this._parent.gotoAndPlay(2);
}
}
Symbol 571 MovieClip Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 571 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 20;
this._parent.gotoAndPlay(2);
}
}
Symbol 572 MovieClip Frame 355
gotoAndPlay (1);
Symbol 572 MovieClip Frame 356
stop();
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 55
stop();
Symbol 580 MovieClip Frame 1
_root.levelstart();
Symbol 580 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 587 MovieClip Frame 1
Mouse.show();
Symbol 587 MovieClip Frame 236
Mouse.hide();
_root.score = _root.score + 1000;
_root.nextFrame();
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 2
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 2
stop();
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 602 MovieClip Frame 1
stop();
Instance of Symbol 601 MovieClip "exobot1hit" in Symbol 602 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pswitch) {
_parent._parent.stop();
} else {
_parent._parent.play();
}
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 25;
this._parent.gotoAndPlay(2);
}
j++;
}
}
Symbol 602 MovieClip Frame 9
stop();
this._parent.gotoAndStop(130);
Symbol 603 MovieClip Frame 129
gotoAndPlay (1);
Symbol 603 MovieClip Frame 130
stop();
Symbol 604 MovieClip Frame 139
gotoAndPlay (11);
Symbol 604 MovieClip Frame 140
stop();
Symbol 605 MovieClip Frame 129
gotoAndPlay (1);
Symbol 605 MovieClip Frame 130
stop();
Symbol 606 MovieClip Frame 139
gotoAndPlay (11);
Symbol 606 MovieClip Frame 140
stop();
Symbol 607 MovieClip Frame 139
gotoAndPlay (11);
Symbol 607 MovieClip Frame 140
stop();
Symbol 608 MovieClip Frame 139
gotoAndPlay (11);
Symbol 608 MovieClip Frame 140
stop();
Symbol 609 MovieClip Frame 139
gotoAndPlay (11);
Symbol 609 MovieClip Frame 140
stop();
Symbol 615 MovieClip Frame 55
stop();
Symbol 616 MovieClip Frame 1
_root.levelstart();
Symbol 616 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
stop();
Symbol 622 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 623 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 624 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 2
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 10
stop();
Symbol 626 MovieClip Frame 129
gotoAndPlay (1);
Symbol 626 MovieClip Frame 130
stop();
Symbol 627 MovieClip Frame 139
gotoAndPlay (11);
Symbol 627 MovieClip Frame 140
stop();
Symbol 628 MovieClip Frame 129
gotoAndPlay (1);
Symbol 628 MovieClip Frame 130
stop();
Symbol 629 MovieClip Frame 139
gotoAndPlay (11);
Symbol 629 MovieClip Frame 140
stop();
Symbol 630 MovieClip Frame 139
gotoAndPlay (11);
Symbol 630 MovieClip Frame 140
stop();
Symbol 631 MovieClip Frame 139
gotoAndPlay (11);
Symbol 631 MovieClip Frame 140
stop();
Symbol 637 MovieClip Frame 55
stop();
Symbol 638 MovieClip Frame 1
_root.levelstart();
Symbol 638 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 2
stop();
Symbol 644 MovieClip Frame 1
stop();
Symbol 644 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 651 MovieClip Frame 21
stop();
Symbol 652 MovieClip Frame 1
stop();
Instance of Symbol 648 MovieClip in Symbol 652 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox)) {
_root.score = _root.score + 100;
this._parent.gotoAndStop(2);
}
}
Symbol 652 MovieClip Frame 2
stop();
Symbol 653 MovieClip Frame 139
gotoAndPlay (11);
Symbol 653 MovieClip Frame 140
stop();
Symbol 654 MovieClip Frame 139
gotoAndPlay (11);
Symbol 654 MovieClip Frame 140
stop();
Symbol 655 MovieClip Frame 139
gotoAndPlay (11);
Symbol 655 MovieClip Frame 140
stop();
Symbol 656 MovieClip Frame 139
gotoAndPlay (11);
Symbol 656 MovieClip Frame 140
stop();
Symbol 657 MovieClip Frame 139
gotoAndPlay (11);
Symbol 657 MovieClip Frame 140
stop();
Symbol 658 MovieClip Frame 139
gotoAndPlay (11);
Symbol 658 MovieClip Frame 140
stop();
Symbol 659 MovieClip Frame 139
gotoAndPlay (11);
Symbol 659 MovieClip Frame 140
stop();
Symbol 660 MovieClip Frame 139
gotoAndPlay (11);
Symbol 660 MovieClip Frame 140
stop();
Symbol 666 MovieClip Frame 55
stop();
Symbol 667 MovieClip Frame 1
_root.levelstart();
Symbol 667 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 674 MovieClip Frame 139
gotoAndPlay (11);
Symbol 674 MovieClip Frame 140
stop();
Symbol 675 MovieClip Frame 139
gotoAndPlay (11);
Symbol 675 MovieClip Frame 140
stop();
Symbol 676 MovieClip Frame 139
gotoAndPlay (11);
Symbol 676 MovieClip Frame 140
stop();
Symbol 677 MovieClip Frame 139
gotoAndPlay (11);
Symbol 677 MovieClip Frame 140
stop();
Symbol 678 MovieClip Frame 83
gotoAndPlay (11);
Symbol 678 MovieClip Frame 130
stop();
Symbol 679 MovieClip Frame 83
gotoAndPlay (11);
Symbol 679 MovieClip Frame 130
stop();
Symbol 685 MovieClip Frame 55
stop();
Symbol 686 MovieClip Frame 1
_root.levelstart();
Symbol 686 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 692 MovieClip Frame 1
stop();
Symbol 692 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 693 MovieClip Frame 1
stop();
Symbol 693 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 2
stop();
Symbol 695 MovieClip Frame 139
gotoAndPlay (11);
Symbol 695 MovieClip Frame 140
stop();
Symbol 696 MovieClip Frame 139
gotoAndPlay (11);
Symbol 696 MovieClip Frame 140
stop();
Symbol 697 MovieClip Frame 83
gotoAndPlay (11);
Symbol 697 MovieClip Frame 130
stop();
Symbol 698 MovieClip Frame 83
gotoAndPlay (11);
Symbol 698 MovieClip Frame 130
stop();
Symbol 699 MovieClip Frame 83
gotoAndPlay (11);
Symbol 699 MovieClip Frame 130
stop();
Symbol 700 MovieClip Frame 83
gotoAndPlay (11);
Symbol 700 MovieClip Frame 130
stop();
Symbol 701 MovieClip Frame 83
gotoAndPlay (11);
Symbol 701 MovieClip Frame 130
stop();
Symbol 702 MovieClip Frame 83
gotoAndPlay (11);
Symbol 702 MovieClip Frame 130
stop();
Symbol 707 MovieClip Frame 1
stop();
Instance of Symbol 706 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 35;
this._parent.gotoAndPlay(2);
}
}
Symbol 707 MovieClip Frame 10
stop();
Symbol 708 MovieClip Frame 129
gotoAndPlay (1);
Symbol 708 MovieClip Frame 130
stop();
Symbol 714 MovieClip Frame 55
stop();
Symbol 715 MovieClip Frame 1
_root.levelstart();
Symbol 715 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 721 MovieClip Frame 1
stop();
Symbol 721 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 722 MovieClip Frame 1
stop();
Symbol 722 MovieClip Frame 2
stop();
Symbol 723 MovieClip Frame 1
stop();
Symbol 723 MovieClip Frame 2
stop();
Symbol 724 MovieClip Frame 83
gotoAndPlay (11);
Symbol 724 MovieClip Frame 130
stop();
Symbol 725 MovieClip Frame 83
gotoAndPlay (11);
Symbol 725 MovieClip Frame 130
stop();
Symbol 726 MovieClip Frame 83
gotoAndPlay (11);
Symbol 726 MovieClip Frame 130
stop();
Symbol 727 MovieClip Frame 83
gotoAndPlay (11);
Symbol 727 MovieClip Frame 130
stop();
Symbol 728 MovieClip Frame 83
gotoAndPlay (11);
Symbol 728 MovieClip Frame 130
stop();
Symbol 729 MovieClip Frame 129
gotoAndPlay (1);
Symbol 729 MovieClip Frame 130
stop();
Symbol 730 MovieClip Frame 129
gotoAndPlay (1);
Symbol 730 MovieClip Frame 130
stop();
Symbol 731 MovieClip Frame 129
gotoAndPlay (1);
Symbol 731 MovieClip Frame 130
stop();
Symbol 737 MovieClip Frame 55
stop();
Symbol 738 MovieClip Frame 1
_root.levelstart();
Symbol 738 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 743 MovieClip Frame 1
stop();
Symbol 743 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 745 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 2
stop();
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 2
stop();
Symbol 747 MovieClip Frame 83
gotoAndPlay (11);
Symbol 747 MovieClip Frame 130
stop();
Symbol 748 MovieClip Frame 129
gotoAndPlay (1);
Symbol 748 MovieClip Frame 130
stop();
Symbol 749 MovieClip Frame 129
gotoAndPlay (1);
Symbol 749 MovieClip Frame 130
stop();
Symbol 750 MovieClip Frame 129
gotoAndPlay (1);
Symbol 750 MovieClip Frame 130
stop();
Symbol 751 MovieClip Frame 129
gotoAndPlay (1);
Symbol 751 MovieClip Frame 130
stop();
Symbol 752 MovieClip Frame 129
gotoAndPlay (1);
Symbol 752 MovieClip Frame 130
stop();
Symbol 753 MovieClip Frame 83
gotoAndPlay (11);
Symbol 753 MovieClip Frame 130
stop();
Symbol 759 MovieClip Frame 55
stop();
Symbol 760 MovieClip Frame 1
_root.levelstart();
Symbol 760 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 765 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 2
stop();
Symbol 767 MovieClip Frame 1
stop();
Symbol 767 MovieClip Frame 2
stop();
Symbol 768 MovieClip Frame 1
stop();
Symbol 768 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 769 MovieClip Frame 1
stop();
Symbol 769 MovieClip Frame 2
stop();
Symbol 770 MovieClip Frame 129
gotoAndPlay (1);
Symbol 770 MovieClip Frame 130
stop();
Symbol 771 MovieClip Frame 129
gotoAndPlay (1);
Symbol 771 MovieClip Frame 130
stop();
Symbol 772 MovieClip Frame 129
gotoAndPlay (1);
Symbol 772 MovieClip Frame 130
stop();
Symbol 773 MovieClip Frame 129
gotoAndPlay (1);
Symbol 773 MovieClip Frame 130
stop();
Symbol 774 MovieClip Frame 129
gotoAndPlay (1);
Symbol 774 MovieClip Frame 130
stop();
Symbol 780 MovieClip Frame 55
stop();
Symbol 781 MovieClip Frame 1
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 782 MovieClip Frame 1
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 783 MovieClip Frame 129
gotoAndPlay (1);
Symbol 783 MovieClip Frame 130
stop();
Symbol 784 MovieClip Frame 1
_root.levelstart();
Symbol 784 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 789 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 790 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 2
stop();
Symbol 791 MovieClip Frame 1
stop();
Symbol 791 MovieClip Frame 2
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 793 MovieClip Frame 129
gotoAndPlay (1);
Symbol 793 MovieClip Frame 130
stop();
Symbol 794 MovieClip Frame 129
gotoAndPlay (1);
Symbol 794 MovieClip Frame 130
stop();
Symbol 795 MovieClip Frame 129
gotoAndPlay (1);
Symbol 795 MovieClip Frame 130
stop();
Symbol 796 MovieClip Frame 129
gotoAndPlay (1);
Symbol 796 MovieClip Frame 130
stop();
Symbol 802 MovieClip Frame 55
stop();
Symbol 803 MovieClip Frame 1
laserfenceHit1.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 10;
}
};
Symbol 804 MovieClip Frame 129
gotoAndPlay (1);
Symbol 804 MovieClip Frame 130
stop();
Symbol 805 MovieClip Frame 129
gotoAndPlay (1);
Symbol 805 MovieClip Frame 130
stop();
Symbol 806 MovieClip Frame 129
gotoAndPlay (1);
Symbol 806 MovieClip Frame 130
stop();
Symbol 807 MovieClip Frame 129
gotoAndPlay (1);
Symbol 807 MovieClip Frame 130
stop();
Symbol 808 MovieClip Frame 1
_root.levelstart();
Symbol 808 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 813 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 2
stop();
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 2
stop();
Symbol 815 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 2
stop();
Symbol 822 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 1
l20bosshit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
_global.level20bossEnergy = _global.level20bossEnergy - 1;
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 5;
_global.level20bossEnergy = _global.level20bossEnergy - 1;
boss2acthit.gotoAndPlay(2);
}
j++;
}
};
stop();
Instance of Symbol 824 MovieClip in Symbol 825 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _global.level20bossEnergy * 0.96;
if (_global.level20bossEnergy <= 0) {
this._parent.gotoAndPlay(2);
}
}
Symbol 825 MovieClip Frame 17
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
_parent.gotoAndStop(356);
stop();
Instance of Symbol 828 MovieClip in Symbol 830 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 2;
}
}
Instance of Symbol 829 MovieClip in Symbol 830 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 2;
}
}
Symbol 831 MovieClip Frame 355
gotoAndPlay (1);
Symbol 831 MovieClip Frame 356
stop();
Symbol 832 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 55
stop();
Symbol 839 MovieClip Frame 129
gotoAndPlay (1);
Symbol 839 MovieClip Frame 130
stop();
Symbol 840 MovieClip Frame 1
_root.levelstart();
Symbol 840 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 844 MovieClip Frame 1
Mouse.show();
Symbol 844 MovieClip Frame 239
Mouse.hide();
_root.score = _root.score + 1000;
_root.nextFrame();
Symbol 849 MovieClip Frame 1
stop();
Symbol 849 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 850 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 2
stop();
Symbol 851 MovieClip Frame 1
stop();
Symbol 851 MovieClip Frame 2
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 10
stop();
Symbol 855 MovieClip Frame 1
stop();
Instance of Symbol 648 MovieClip in Symbol 855 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox)) {
_root.score = _root.score + 100;
this._parent.gotoAndStop(2);
}
}
Symbol 855 MovieClip Frame 2
stop();
Symbol 861 MovieClip Frame 1
stop();
Instance of Symbol 601 MovieClip "exobot1hit" in Symbol 861 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pswitch) {
_parent._parent.stop();
} else {
_parent._parent.play();
}
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 30;
this._parent.gotoAndPlay(2);
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 25;
this._parent.gotoAndPlay(2);
}
j++;
}
}
Symbol 861 MovieClip Frame 9
stop();
this._parent.gotoAndStop(130);
Symbol 862 MovieClip Frame 1
stop();
Instance of Symbol 706 MovieClip in Symbol 862 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 35;
this._parent.gotoAndPlay(2);
}
}
Symbol 862 MovieClip Frame 10
stop();
Symbol 863 MovieClip Frame 129
gotoAndPlay (1);
Symbol 863 MovieClip Frame 130
stop();
Symbol 864 MovieClip Frame 129
gotoAndPlay (1);
Symbol 864 MovieClip Frame 130
stop();
Symbol 865 MovieClip Frame 129
gotoAndPlay (1);
Symbol 865 MovieClip Frame 130
stop();
Symbol 866 MovieClip Frame 129
gotoAndPlay (1);
Symbol 866 MovieClip Frame 130
stop();
Symbol 872 MovieClip Frame 55
stop();
Symbol 873 MovieClip Frame 1
_root.levelstart();
Symbol 873 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 878 MovieClip Frame 1
stop();
Symbol 878 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 879 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 2
stop();
Symbol 880 MovieClip Frame 1
stop();
Symbol 880 MovieClip Frame 2
stop();
Symbol 881 MovieClip Frame 1
stop();
Symbol 881 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 883 MovieClip Frame 129
gotoAndPlay (1);
Symbol 883 MovieClip Frame 130
stop();
Symbol 884 MovieClip Frame 129
gotoAndPlay (1);
Symbol 884 MovieClip Frame 130
stop();
Symbol 885 MovieClip Frame 129
gotoAndPlay (1);
Symbol 885 MovieClip Frame 130
stop();
Symbol 886 MovieClip Frame 129
gotoAndPlay (1);
Symbol 886 MovieClip Frame 130
stop();
Symbol 887 MovieClip Frame 129
gotoAndPlay (1);
Symbol 887 MovieClip Frame 130
stop();
Symbol 893 MovieClip Frame 55
stop();
Symbol 894 MovieClip Frame 1
_root.levelstart();
Symbol 894 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 899 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 900 MovieClip Frame 1
stop();
Symbol 900 MovieClip Frame 2
stop();
Symbol 901 MovieClip Frame 1
stop();
Symbol 901 MovieClip Frame 2
stop();
Symbol 902 MovieClip Frame 45
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 902 MovieClip Frame 87
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 903 MovieClip Frame 129
gotoAndPlay (1);
Symbol 903 MovieClip Frame 130
stop();
Symbol 904 MovieClip Frame 129
gotoAndPlay (1);
Symbol 904 MovieClip Frame 130
stop();
Symbol 905 MovieClip Frame 129
gotoAndPlay (1);
Symbol 905 MovieClip Frame 130
stop();
Symbol 906 MovieClip Frame 129
gotoAndPlay (1);
Symbol 906 MovieClip Frame 130
stop();
Symbol 907 MovieClip Frame 129
gotoAndPlay (1);
Symbol 907 MovieClip Frame 130
stop();
Symbol 913 MovieClip Frame 55
stop();
Symbol 914 MovieClip Frame 1
_root.levelstart();
Symbol 914 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 919 MovieClip Frame 1
stop();
Symbol 919 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 922 MovieClip Frame 1
stop();
Symbol 922 MovieClip Frame 2
stop();
Symbol 923 MovieClip Frame 1
stop();
Symbol 923 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 924 MovieClip Frame 45
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 924 MovieClip Frame 87
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 925 MovieClip Frame 45
cannonray.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 925 MovieClip Frame 87
cannonray2.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
if (_global.mortal) {
_global.energy = _global.energy - 5;
}
}
};
Symbol 926 MovieClip Frame 129
gotoAndPlay (1);
Symbol 926 MovieClip Frame 130
stop();
Symbol 927 MovieClip Frame 129
gotoAndPlay (1);
Symbol 927 MovieClip Frame 130
stop();
Symbol 928 MovieClip Frame 129
gotoAndPlay (1);
Symbol 928 MovieClip Frame 130
stop();
Symbol 929 MovieClip Frame 129
gotoAndPlay (1);
Symbol 929 MovieClip Frame 130
stop();
Symbol 935 MovieClip Frame 55
stop();
Symbol 936 MovieClip Frame 1
_root.levelstart();
Symbol 936 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 941 MovieClip Frame 1
stop();
Symbol 941 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 942 MovieClip Frame 1
stop();
Symbol 942 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 943 MovieClip Frame 1
stop();
Symbol 943 MovieClip Frame 2
stop();
Symbol 944 MovieClip Frame 129
gotoAndPlay (1);
Symbol 944 MovieClip Frame 130
stop();
Symbol 945 MovieClip Frame 129
gotoAndPlay (1);
Symbol 945 MovieClip Frame 130
stop();
Symbol 946 MovieClip Frame 129
gotoAndPlay (1);
Symbol 946 MovieClip Frame 130
stop();
Symbol 947 MovieClip Frame 129
gotoAndPlay (1);
Symbol 947 MovieClip Frame 130
stop();
Symbol 953 MovieClip Frame 55
stop();
Symbol 954 MovieClip Frame 1
_root.levelstart();
Symbol 954 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 959 MovieClip Frame 1
stop();
Symbol 959 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 960 MovieClip Frame 1
stop();
Symbol 960 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 961 MovieClip Frame 1
stop();
Symbol 961 MovieClip Frame 2
stop();
Symbol 962 MovieClip Frame 1
stop();
Symbol 962 MovieClip Frame 2
stop();
Symbol 963 MovieClip Frame 129
gotoAndPlay (1);
Symbol 963 MovieClip Frame 130
stop();
Symbol 964 MovieClip Frame 129
gotoAndPlay (1);
Symbol 964 MovieClip Frame 130
stop();
Symbol 965 MovieClip Frame 129
gotoAndPlay (1);
Symbol 965 MovieClip Frame 130
stop();
Symbol 966 MovieClip Frame 129
gotoAndPlay (1);
Symbol 966 MovieClip Frame 130
stop();
Symbol 967 MovieClip Frame 129
gotoAndPlay (1);
Symbol 967 MovieClip Frame 130
stop();
Symbol 968 MovieClip Frame 129
gotoAndPlay (1);
Symbol 968 MovieClip Frame 130
stop();
Symbol 969 MovieClip Frame 129
gotoAndPlay (1);
Symbol 969 MovieClip Frame 130
stop();
Symbol 970 MovieClip Frame 129
gotoAndPlay (1);
Symbol 970 MovieClip Frame 130
stop();
Symbol 976 MovieClip Frame 55
stop();
Symbol 977 MovieClip Frame 1
_root.levelstart();
Symbol 977 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 982 MovieClip Frame 1
stop();
Symbol 982 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 983 MovieClip Frame 1
stop();
Symbol 983 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 984 MovieClip Frame 1
stop();
Symbol 984 MovieClip Frame 2
stop();
Symbol 985 MovieClip Frame 1
stop();
Symbol 985 MovieClip Frame 2
stop();
Symbol 986 MovieClip Frame 129
gotoAndPlay (1);
Symbol 986 MovieClip Frame 130
stop();
Symbol 987 MovieClip Frame 129
gotoAndPlay (1);
Symbol 987 MovieClip Frame 130
stop();
Symbol 988 MovieClip Frame 129
gotoAndPlay (1);
Symbol 988 MovieClip Frame 130
stop();
Symbol 989 MovieClip Frame 129
gotoAndPlay (1);
Symbol 989 MovieClip Frame 130
stop();
Symbol 990 MovieClip Frame 129
gotoAndPlay (1);
Symbol 990 MovieClip Frame 130
stop();
Symbol 991 MovieClip Frame 129
gotoAndPlay (1);
Symbol 991 MovieClip Frame 130
stop();
Symbol 997 MovieClip Frame 55
stop();
Symbol 998 MovieClip Frame 1
_root.levelstart();
Symbol 998 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 1003 MovieClip Frame 1
stop();
Symbol 1003 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 1004 MovieClip Frame 1
stop();
Symbol 1004 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 1005 MovieClip Frame 1
stop();
Symbol 1005 MovieClip Frame 2
stop();
Symbol 1006 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1006 MovieClip Frame 130
stop();
Symbol 1007 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1007 MovieClip Frame 130
stop();
Symbol 1008 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1008 MovieClip Frame 130
stop();
Symbol 1009 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1009 MovieClip Frame 130
stop();
Symbol 1010 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1010 MovieClip Frame 130
stop();
Symbol 1011 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1011 MovieClip Frame 130
stop();
Symbol 1012 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1012 MovieClip Frame 130
stop();
Symbol 1018 MovieClip Frame 55
stop();
Symbol 1019 MovieClip Frame 1
_root.levelstart();
Symbol 1019 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 1024 MovieClip Frame 1
stop();
Symbol 1024 MovieClip Frame 2
stop();
teleportHit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox) && (_global.mortal)) {
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
}
};
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1025 MovieClip Frame 2
stop();
Symbol 1026 MovieClip Frame 1
stop();
Symbol 1026 MovieClip Frame 2
stop();
Symbol 1027 MovieClip Frame 1
stop();
Symbol 1027 MovieClip Frame 2
_root.teleport.gotoAndStop(2);
stop();
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 2
stop();
Symbol 1029 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1029 MovieClip Frame 130
stop();
Symbol 1030 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1030 MovieClip Frame 130
stop();
Symbol 1031 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1031 MovieClip Frame 130
stop();
Symbol 1032 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1032 MovieClip Frame 130
stop();
Symbol 1033 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1033 MovieClip Frame 130
stop();
Symbol 1034 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1034 MovieClip Frame 130
stop();
Symbol 1035 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1035 MovieClip Frame 130
stop();
Symbol 1036 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1036 MovieClip Frame 130
stop();
Symbol 1042 MovieClip Frame 55
stop();
Symbol 1043 MovieClip Frame 1
_root.levelstart();
Symbol 1043 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 1048 MovieClip Frame 1
stop();
Symbol 1048 MovieClip Frame 2
stop();
Symbol 1049 MovieClip Frame 1
stop();
Symbol 1049 MovieClip Frame 2
stop();
Symbol 1050 MovieClip Frame 1
stop();
Symbol 1050 MovieClip Frame 2
stop();
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 2
stop();
Symbol 1052 MovieClip Frame 1
stop();
Symbol 1052 MovieClip Frame 2
stop();
Symbol 1053 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1053 MovieClip Frame 130
stop();
Symbol 1054 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1054 MovieClip Frame 130
stop();
Symbol 1060 MovieClip Frame 1
stop();
Symbol 1063 MovieClip Frame 1
l30bosshit.onEnterFrame = function () {
if (this.hitTest(_root.character.hitbox)) {
_global.energy = _global.energy - 20;
_global.level30bossEnergy = _global.level30bossEnergy - 1;
}
j = 1;
while (j <= _global.maxBullets) {
if (this.hitTest(_root["bullet" + j])) {
removeMovieClip(_root["bullet" + j]);
_root.score = _root.score + 10;
_global.level30bossEnergy = _global.level30bossEnergy - 1;
boss3acthit.gotoAndPlay(2);
}
j++;
}
};
stop();
Instance of Symbol 824 MovieClip in Symbol 1063 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _global.level30bossEnergy * 0.96;
if (_global.level30bossEnergy <= 0) {
this._parent.gotoAndPlay(2);
}
}
Symbol 1063 MovieClip Frame 17
_global.mortal = false;
_root.levelComplete.gotoAndPlay(2);
_parent.gotoAndStop(281);
stop();
Symbol 1065 MovieClip Frame 1
stop();
Instance of Symbol 1064 MovieClip in Symbol 1065 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 20;
this._parent.gotoAndPlay(2);
}
}
Instance of Symbol 1066 MovieClip in Symbol 1067 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.character.hitbox2)) {
_global.energy = _global.energy - 2;
}
}
Symbol 1068 MovieClip Frame 280
gotoAndPlay (1);
Symbol 1068 MovieClip Frame 281
stop();
Symbol 1069 MovieClip Frame 1
stop();
Symbol 1070 MovieClip Frame 129
gotoAndPlay (1);
Symbol 1070 MovieClip Frame 130
stop();
Symbol 1076 MovieClip Frame 55
stop();
Symbol 1077 MovieClip Frame 1
stop();
Symbol 1077 MovieClip Frame 50
_root.nextFrame();
Symbol 1078 MovieClip Frame 1
_root.levelstart();
Symbol 1078 MovieClip Frame 125
_root.unpauseGame();
_root.pswitch = false;
stop();
Symbol 1089 Button
on (release) {
getURL ("http://www.9p.com/?utm_source=brandedgames&utm_medium=frontalstrike", "_blank");
}
Symbol 1090 MovieClip Frame 1
_root.local_data.data.clevel = 30;
_global.cLevel = 30;
_root.local_data.flush();
Symbol 1090 MovieClip Frame 150
_root.gotoAndStop(43);