Combined Code
movieClip 24 {
frame 1 {
randomattack = int(random(9));
if (randomattack == 0) {
gotoAndPlay('0');
}
if (randomattack == 1) {
gotoAndPlay('1');
}
if (randomattack == 2) {
gotoAndPlay('2');
}
if (randomattack == 3) {
gotoAndPlay('3');
}
if (randomattack == 4) {
gotoAndPlay('4');
}
if (randomattack == 5) {
gotoAndPlay('5');
}
if (randomattack == 6) {
gotoAndPlay('6');
}
if (randomattack == 7) {
gotoAndPlay('7');
}
if (randomattack == 8) {
gotoAndPlay('8');
}
}
frame 38 {
gotoAndPlay(2);
}
}
movieClip 25 {
frame 1 {
randomattack = int(random(11));
if (randomattack == 0) {
gotoAndStop('0');
}
if (randomattack == 1) {
gotoAndStop('1');
}
if (randomattack == 2) {
gotoAndStop('2');
}
if (randomattack == 3) {
gotoAndStop('3');
}
if (randomattack == 4) {
gotoAndStop('4');
}
if (randomattack == 5) {
gotoAndStop('5');
}
if (randomattack == 6) {
gotoAndStop('6');
}
if (randomattack == 7) {
gotoAndStop('7');
}
if (randomattack == 8) {
gotoAndStop('8');
}
if (randomattack == 9) {
gotoAndStop('9');
}
if (randomattack == 10) {
gotoAndStop('10');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
}
movieClip 28 explodep {
frame 1 {
randomattack = int(random(24));
if (randomattack == 0) {
gotoAndPlay('0');
}
if (randomattack == 1) {
gotoAndPlay('1');
}
if (randomattack == 2) {
gotoAndPlay('2');
}
if (randomattack == 3) {
gotoAndPlay('3');
}
if (randomattack == 4) {
gotoAndPlay('4');
}
if (randomattack == 5) {
gotoAndPlay('5');
}
if (randomattack == 6) {
gotoAndPlay('6');
}
if (randomattack == 7) {
gotoAndPlay('7');
}
if (randomattack == 8) {
gotoAndPlay('8');
}
if (randomattack == 9) {
gotoAndPlay('9');
}
if (randomattack == 10) {
gotoAndPlay('10');
}
if (randomattack == 11) {
gotoAndPlay('11');
}
if (randomattack == 12) {
gotoAndPlay('12');
}
if (randomattack == 13) {
gotoAndPlay('13');
}
if (randomattack == 14) {
gotoAndPlay('14');
}
if (randomattack == 15) {
gotoAndPlay('15');
}
if (randomattack == 16) {
gotoAndPlay('16');
}
if (randomattack == 17) {
gotoAndPlay('17');
}
if (randomattack == 18) {
gotoAndPlay('18');
}
if (randomattack == 19) {
gotoAndPlay('19');
}
if (randomattack == 20) {
gotoAndPlay('20');
}
if (randomattack == 21) {
gotoAndPlay('21');
}
if (randomattack == 22) {
gotoAndPlay('22');
}
if (randomattack == 23) {
gotoAndPlay('23');
}
}
frame 2 {
function enemyaction() {
_x = _x + Math.random() * 15;
_y = _y + Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 11 {
gotoAndPlay('end');
}
frame 12 {
function enemyaction() {
_x = _x - Math.random() * 15;
_y = _y + Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 21 {
gotoAndPlay('end');
}
frame 22 {
function enemyaction() {
_x = _x + Math.random() * 15;
_y = _y - Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 31 {
gotoAndPlay('end');
}
frame 32 {
function enemyaction() {
_x = _x - Math.random() * 15;
_y = _y - Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 41 {
gotoAndPlay('end');
}
frame 42 {
function enemyaction() {
_x = _x + Math.random() * 10;
_y = _y + Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 51 {
gotoAndPlay('end');
}
frame 52 {
function enemyaction() {
_x = _x - Math.random() * 10;
_y = _y + Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 61 {
gotoAndPlay('end');
}
frame 62 {
function enemyaction() {
_x = _x + Math.random() * 10;
_y = _y - Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 71 {
gotoAndPlay('end');
}
frame 72 {
function enemyaction() {
_x = _x - Math.random() * 10;
_y = _y - Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 81 {
gotoAndPlay('end');
}
frame 82 {
function enemyaction() {
_x = _x + Math.random() * 15;
_y = _y + Math.random() * 10;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 91 {
gotoAndPlay('end');
}
frame 92 {
function enemyaction() {
_x = _x - Math.random() * 15;
_y = _y + Math.random() * 10;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 101 {
gotoAndPlay('end');
}
frame 102 {
function enemyaction() {
_x = _x + Math.random() * 15;
_y = _y - Math.random() * 10;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 111 {
gotoAndPlay('end');
}
frame 112 {
function enemyaction() {
_x = _x - Math.random() * 15;
_y = _y - Math.random() * 10;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 121 {
gotoAndPlay('end');
}
frame 122 {
function enemyaction() {
_x = _x + Math.random() * 5;
_y = _y + Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 131 {
gotoAndPlay('end');
}
frame 132 {
function enemyaction() {
_x = _x - Math.random() * 5;
_y = _y + Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 141 {
gotoAndPlay('end');
}
frame 142 {
function enemyaction() {
_x = _x + Math.random() * 5;
_y = _y - Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 151 {
gotoAndPlay('end');
}
frame 152 {
function enemyaction() {
_x = _x - Math.random() * 5;
_y = _y - Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 161 {
gotoAndPlay('end');
}
frame 162 {
function enemyaction() {
_x = _x + Math.random() * 15;
_y = _y + Math.random() * 5;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 171 {
gotoAndPlay('end');
}
frame 172 {
function enemyaction() {
_x = _x - Math.random() * 15;
_y = _y + Math.random() * 5;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 181 {
gotoAndPlay('end');
}
frame 182 {
function enemyaction() {
_x = _x + Math.random() * 15;
_y = _y - Math.random() * 5;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 191 {
gotoAndPlay('end');
}
frame 192 {
function enemyaction() {
_x = _x - Math.random() * 15;
_y = _y - Math.random() * 5;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 201 {
gotoAndPlay('end');
}
frame 202 {
function enemyaction() {
_x = _x + Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 211 {
gotoAndPlay('end');
}
frame 212 {
function enemyaction() {
_x = _x - Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 221 {
gotoAndPlay('end');
}
frame 222 {
function enemyaction() {
_y = _y + Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 231 {
gotoAndPlay('end');
}
frame 232 {
function enemyaction() {
_y = _y - Math.random() * 15;
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 241 {
gotoAndPlay('end');
}
frame 242 {
stop();
_parent.removeenemy(_name);
}
frame 243 {
stop();
_parent.removeenemy(_name);
}
}
movieClip 30 {
}
movieClip 31 laserright {
frame 1 {
function weaponaction() {
if (_y + _height < 0) {
_parent.removeweapon(_name);
}
curenemy = 0;
while (curenemy < _parent.enemies.length) {
if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) {
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
} else {
if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) {
_parent.removeweapon(_name);
}
}
++curenemy;
}
}
weaponstrength = 1;
}
instance newBullet of movieClip 30 {
onClipEvent (load) {
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
this.removeMovieClip();
}
}
}
frame 15 {
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 15 {
stop();
}
}
movieClip 32 laserleft {
frame 1 {
function weaponaction() {
if (_y + _height < 0) {
_parent.removeweapon(_name);
}
curenemy = 0;
while (curenemy < _parent.enemies.length) {
if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) {
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
} else {
if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) {
_parent.removeweapon(_name);
}
}
++curenemy;
}
}
weaponstrength = 1;
}
instance newBullet of movieClip 30 {
onClipEvent (load) {
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
this.removeMovieClip();
}
}
}
frame 15 {
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 15 {
stop();
}
}
movieClip 34 lasercenter2 {
frame 1 {
function weaponaction() {
if (_y + _height < 0) {
_parent.removeweapon(_name);
}
curenemy = 0;
while (curenemy < _parent.enemies.length) {
if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) {
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
} else {
if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) {
_parent.removeweapon(_name);
}
}
++curenemy;
}
}
weaponstrength = 1;
}
instance newBullet of movieClip 30 {
onClipEvent (load) {
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
this.removeMovieClip();
}
}
}
frame 15 {
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 15 {
stop();
}
}
movieClip 35 {
}
movieClip 36 laserpower {
frame 1 {
function weaponaction() {
if (_y + _height < 0) {
_parent.removeweapon(_name);
}
curenemy = 0;
while (curenemy < _parent.enemies.length) {
if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) {
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
} else {
if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) {
_parent.removeweapon(_name);
}
}
++curenemy;
}
}
weaponstrength = 3;
}
frame 21 {
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 21 {
stop();
}
}
movieClip 39 {
}
movieClip 43 {
}
movieClip 44 coin {
frame 1 {
function enemyaction() {
if (q.hitTest(_parent.ship.hitarea)) {
gotoAndPlay(2);
}
}
stop();
}
frame 2 {
Nonoba.api.NonobaAPI.AwardAchievement('mc3', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 101 {
stop();
_parent.removeenemy(_name);
}
frame 102 {
stop();
_parent.removeenemy(_name);
}
}
movieClip 52 {
}
movieClip 53 apower {
frame 1 {
function enemyaction() {
_y = _y + 1;
if (q.hitTest(_parent.ship.hitarea)) {
_parent.currentweapon = 'power';
gotoAndStop(2);
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('pw3', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
_parent.removeenemy(_name);
}
frame 3 {
stop();
_parent.removeenemy(_name);
}
}
movieClip 60 {
}
movieClip 61 abroad {
frame 1 {
function enemyaction() {
_y = _y + 1;
if (q.hitTest(_parent.ship.hitarea)) {
_parent.currentweapon = 'broad';
gotoAndStop(2);
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('br3', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
_parent.removeenemy(_name);
}
frame 3 {
stop();
_parent.removeenemy(_name);
}
}
movieClip 69 {
}
movieClip 70 alife {
frame 1 {
function enemyaction() {
_y = _y + 1;
if (q.hitTest(_parent.ship.hitarea)) {
++_parent.lives;
gotoAndStop(2);
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
}
stop();
}
frame 2 {
stop();
_parent.removeenemy(_name);
}
frame 3 {
stop();
_parent.removeenemy(_name);
}
}
movieClip 78 {
}
movieClip 79 Boss Complete {
frame 1 {
stopAllSounds();
_x = 313;
_y = 225;
}
frame 2 {
mySoundy = new Sound();
mySoundy.attachSound('dimcomp');
mySoundy.start(0, 0);
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 90 {
}
movieClip 91 Dimension Complete {
frame 1 {
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore('score3', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
_x = 313;
_y = 225;
}
frame 2 {
mySoundy = new Sound();
mySoundy.attachSound('dimcomp');
mySoundy.start(0, 0);
Nonoba.api.NonobaAPI.AwardAchievement('comp3', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 15 {
stop();
}
frame 16 {
stop();
}
}
movieClip 94 {
}
movieClip 96 {
}
movieClip 99 {
}
movieClip 100 foelaser {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 30 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r10.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r11.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r12.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r13.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r14.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r15.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r16.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r17.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r18.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r19.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r20.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r21.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r22.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r23.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r24.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r25.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r26.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r27.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r28.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r29.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r30.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r31.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r32.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 50 {
stop();
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
}
movieClip 102 whitep {
}
movieClip 105 {
}
movieClip 108 {
}
movieClip 111 {
}
movieClip 112 bossfinalmoonlaser {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 2 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 3 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 4 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 5 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 6 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 7 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 8 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 9 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 10 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 11 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 12 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 13 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 14 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 15 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 16 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 17 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 18 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 19 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 20 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 21 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 22 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 23 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 24 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 25 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 26 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 27 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 28 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 29 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 45 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r10.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r11.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r12.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r13.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r14.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r15.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r16.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r17.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r18.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r19.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r20.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r21.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r22.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r23.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r24.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r25.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r26.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r27.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r28.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r29.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r30.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r31.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r32.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 65 {
stop();
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
}
movieClip 115 {
}
movieClip 116 bossfinalbullet2 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 12;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 2 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 12;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 31 {
gotoAndPlay(2);
}
}
movieClip 118 {
}
movieClip 138 {
}
movieClip 149 {
}
movieClip 152 {
}
movieClip 153 {
}
movieClip 154 {
}
movieClip 155 {
}
movieClip 157 {
}
movieClip 158 {
}
movieClip 179 {
}
movieClip 184 {
}
movieClip 187 {
}
movieClip 188 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 191 {
}
movieClip 192 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 193 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 194 {
frame 30 {
gotoAndPlay(1);
}
}
movieClip 197 {
}
movieClip 198 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 201 {
}
movieClip 202 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 205 {
}
movieClip 206 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 209 {
}
movieClip 211 {
}
movieClip 216 {
frame 1 {
gotoAndPlay(2);
}
frame 30 {
stop();
}
frame 30 {
stop();
}
}
movieClip 217 {
frame 10 {
stop();
}
}
movieClip 218 {
}
movieClip 225 {
frame 35 {
stop();
}
}
movieClip 226 {
}
movieClip 229 {
}
movieClip 231 {
}
movieClip 233 {
}
movieClip 234 {
}
movieClip 237 {
}
movieClip 238 {
}
movieClip 239 {
}
movieClip 243 {
}
movieClip 244 {
}
movieClip 245 {
}
movieClip 246 {
}
movieClip 247 {
}
movieClip 248 {
frame 295 {
stop();
}
}
movieClip 249 bossfinal2 {
frame 1 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (meteor1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (meteor2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (laserfinal1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (laserfinal2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (laserfinal3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
startx = _x;
}
frame 2 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.bossfinal.final555)) {
this.gotoAndPlay('explode2');
}
}
}
frame 2 {
this.onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
}
frame 90 {
randomattack = int(random(11));
if (randomattack == 0) {
gotoAndPlay('a1');
}
if (randomattack == 1) {
gotoAndPlay('a2');
}
if (randomattack == 2) {
gotoAndPlay('a3');
}
if (randomattack == 3) {
gotoAndPlay('a4');
}
if (randomattack == 4) {
gotoAndPlay('a5');
}
if (randomattack == 5) {
gotoAndPlay('a6');
}
if (randomattack == 6) {
gotoAndPlay('a7');
}
if (randomattack == 7) {
gotoAndPlay('a8');
}
if (randomattack == 8) {
gotoAndPlay('a9');
}
if (randomattack == 9) {
gotoAndPlay('a10');
}
if (randomattack == 10) {
gotoAndPlay('a11');
}
}
frame 91 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (meteor1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (meteor2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 226 {
gotoAndPlay('a0');
}
frame 227 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (laserfinal1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (laserfinal2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (laserfinal3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (laserfinal4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (laserfinal5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
startx = _x;
}
frame 286 {
gotoAndPlay('a0');
}
frame 287 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (blackhole.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3);
}
if (s1.hitTest(_parent.ship.zahit)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3);
}
if (s2.hitTest(_parent.ship.zahit)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3);
}
if (s3.hitTest(_parent.ship.zahit)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
if (s4.hitTest(_parent.ship.zahit)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3);
}
}
}
frame 437 {
gotoAndPlay('a0');
}
frame 438 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (ball.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 580 {
gotoAndPlay('a0');
}
frame 581 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (plus.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (minus.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (times.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (divide.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (pi.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 683 {
gotoAndPlay('a0');
}
frame 684 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (c1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c10.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c11.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c12.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c13.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c14.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c15.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c16.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c17.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (c18.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (lfn.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 803 {
gotoAndPlay('a0');
}
frame 804 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (q1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q10.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (q11.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 884 {
gotoAndPlay('a0');
}
frame 885 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 5555555;
_parent.insertenemy('bossfinalbullet2', _x + 45.8, _y + 68.5);
}
}
guncooldown = 1;
}
frame 889 {
gotoAndPlay('a0');
}
frame 969 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 5555555;
_parent.insertenemy('bossfinalmoonlaser', _x + 50, _y + 115);
}
}
guncooldown = 1;
}
frame 1061 {
gotoAndPlay('a0');
}
frame 1105 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (shooplazah.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
}
}
frame 1153 {
gotoAndPlay('a0');
}
frame 1154 {
function enemyaction() {
if (final2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (final2.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (zio555.hitTest(_parent.final555.hitarea)) {
gotoAndPlay('explode2');
}
if (za.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (za2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 1338 {
gotoAndPlay('a0');
}
frame 1339 {
stop();
}
frame 1339 {
this.onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
}
frame 1340 {
stop();
}
}
movieClip 253 {
}
movieClip 255 {
}
movieClip 258 {
frame 1 {
_parent._parent.winlevel();
}
}
movieClip 259 boss4 {
frame 1 {
_y = 30;
}
frame 56 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(10000);
gotoAndPlay('explode');
} else {
_parent.addpoints(500);
gotoAndPlay('hit');
}
}
function enemyaction() {
--guncooldown;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('boss4bullet1', _x - 0.2, _y + 26.6);
}
if (_parent.ship._x > _x) {
_x = _x + 5;
} else {
_x = _x - 5;
}
if (boss4r0.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
health = 125;
guncooldown = 20;
}
frame 56 {
stop();
}
frame 58 {
stop();
}
frame 66 {
stop();
}
}
movieClip 264 {
}
movieClip 265 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 266 bossptbullet {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 15;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 269 {
frame 61 {
gotoAndPlay(1);
}
}
movieClip 270 {
frame 61 {
gotoAndPlay(1);
}
}
movieClip 271 {
}
movieClip 272 {
frame 30 {
stop();
}
}
movieClip 273 bosspt1 {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(30000);
gotoAndPlay('explode');
} else {
_parent.addpoints(1000);
gotoAndPlay('hit');
}
}
function enemyaction() {
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('bossptbullet', _x, _y);
}
_x = _x + 7;
_y = _y - 10;
if (_x > Stage.width) {
_x = 5;
}
if (_x < 4) {
_x = Stage.width - 5;
}
if (_y > Stage.height) {
_y = 5;
}
if (_y < 4) {
_y = Stage.height - 5;
}
if (shine.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
onEnterFrame = function () {
xrotation = _x - _parent.ship._x;
yrotation = -(_y - _parent.ship._y);
totalrotation = Math.atan(yrotation / xrotation);
if (_parent.ship._x > _x) {
_rotation = 90 - (totalrotation / 3.141593) * 180;
} else {
_rotation = -(90 + (totalrotation / 3.141593) * 180);
}
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
stop();
health = 5555555;
guncooldown = 15;
}
frame 1 {
stop();
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 4 {
time5 = 1;
--time5;
this.onEnterFrame = function () {
if (time5 == 0) {
gotoAndPlay(5);
}
};
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 277 D1 Boss Win {
frame 1 {
stop();
my_sound5 = new Sound();
my_sound5.attachSound('victory1');
my_sound5.start(0, 0);
my_sound5.onSoundComplete = function () {
gotoAndPlay(2);
};
}
frame 2 {
my_sound5a = new Sound();
my_sound5a.attachSound('victory2');
my_sound5a.start(0, 99999);
_x = 313;
_y = 325;
}
frame 32 {
stop();
}
}
movieClip 280 {
}
movieClip 281 {
frame 1 {
gotoAndPlay(1);
}
}
movieClip 282 star3 {
frame 1 {
stop();
newspeedandsize = Math.random() * 5 + 1;
speed = newspeedandsize;
_width = newspeedandsize;
_height = newspeedandsize;
_y = Math.random() * Stage.height;
_x = Math.random() * Stage.width;
}
}
movieClip 284 {
}
movieClip 285 {
frame 45 {
gotoAndPlay(1);
}
}
movieClip 286 m1 {
frame 1 {
function enemyaction() {
_x = _x + xmov + 1;
_y = _y + ymov + 1;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 15;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 287 D1 Intro {
frame 1 {
onEnterFrame = function () {
_parent.newgame();
this.removeMovieClip();
};
}
}
movieClip 289 {
}
movieClip 290 bulletwall4 {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay('explode');
}
}
health = 100000000000.0;
_y = 115;
}
}
movieClip 292 {
}
movieClip 293 bulletwall2 {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay('explode');
}
}
health = 100000000000.0;
startx = _x;
}
}
movieClip 294 bulletwall3 {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay('explode');
}
}
health = 100000000000.0;
_y = -175;
}
}
movieClip 295 bulletwall1 {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(1000);
gotoAndPlay('explode');
}
}
health = 100000000000.0;
_y = 65;
}
}
movieClip 298 {
}
movieClip 301 {
}
movieClip 304 {
}
movieClip 306 {
}
movieClip 307 {
frame 45 {
gotoAndPlay(1);
}
}
movieClip 309 {
}
movieClip 310 {
frame 45 {
gotoAndPlay(1);
}
}
movieClip 312 {
}
movieClip 313 {
frame 45 {
gotoAndPlay(1);
}
}
movieClip 315 {
}
movieClip 317 {
}
movieClip 319 {
}
movieClip 320 {
}
movieClip 323 {
}
movieClip 324 {
}
movieClip 325 {
}
movieClip 326 {
}
movieClip 328 {
}
movieClip 346 {
}
movieClip 347 {
frame 195 {
stop();
}
}
movieClip 348 {
frame 1 {
time7 = 115;
--time7;
this.onEnterFrame = function () {
if (time7 == 0) {
gotoAndStop(3);
}
};
}
frame 1 {
a = 9;
b = 18;
c = 27;
duplicateMovieClip(mission, 'mission', c);
mission._x = random(a);
mission._y = random(b);
mission._alpha = random(85);
mission._rotation = random(a);
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
stop();
a = 0;
b = 0;
c = 0;
duplicateMovieClip(mission, 'mission', c);
mission._x = random(a);
mission._y = random(b);
mission._alpha = 0;
mission._rotation = 0;
}
}
movieClip 359 {
frame 113 {
gotoAndPlay(109);
}
}
movieClip 360 {
frame 82 {
stop();
}
}
movieClip 363 bossmission {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(30000);
_parent.addtiem(-5);
gotoAndPlay('explode');
} else {
_parent.addpoints(1000);
gotoAndPlay('hit');
_x = _x;
_y = _y;
}
}
function enemyaction() {
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--time0;
if (time0 == 0) {
time0 = 105;
gotoAndPlay(4);
}
if (life == 0) {
gotoAndPlay(32);
}
if (guncooldown == 0) {
guncooldown = 35;
_parent.insertenemy('m1', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 35;
_parent.insertenemy('m2', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 35;
_parent.insertenemy('m3', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 35;
_parent.insertenemy('m4', _x, _y);
}
if (_parent.ship._x > _x) {
_x = _x + 5;
} else {
_x = _x - 5;
}
if (_parent.ship._y > _y) {
_y = _y + 5;
} else {
_y = _y - 5;
}
if (_x <= 0) {
_x = 624;
}
if (_x >= 625) {
_x = 1;
}
if (_y <= 15) {
_y = 645;
}
if (_y >= 650) {
_y = 20;
}
if (bossmission.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
onEnterFrame = function () {
xrotation = _x - _parent.ship._x;
yrotation = -(_y - _parent.ship._y);
totalrotation = Math.atan(yrotation / xrotation);
if (_parent.ship._x > _x) {
_rotation = 90 - (totalrotation / 3.141593) * 180;
} else {
_rotation = -(90 + (totalrotation / 3.141593) * 180);
}
};
stop();
health = 1000;
guncooldown = 5;
guncooldown2 = 15;
guncooldown3 = 25;
guncooldown4 = 35;
time0 = 55;
life = 5;
_y = 200;
}
frame 1 {
stop();
}
frame 3 {
function enemyaction() {
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--time0;
if (time0 == 0) {
time0 = 105;
gotoAndPlay(4);
}
if (life == 0) {
gotoAndPlay(32);
}
if (guncooldown == 0) {
guncooldown = 35;
_parent.insertenemy('m1', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 35;
_parent.insertenemy('m2', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 35;
_parent.insertenemy('m3', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 35;
_parent.insertenemy('m4', _x, _y);
}
if (_parent.ship._x > _x) {
_x = _x + 5;
} else {
_x = _x - 5;
}
if (_parent.ship._y > _y) {
_y = _y + 5;
} else {
_y = _y - 5;
}
if (_x <= 0) {
_x = 624;
}
if (_x >= 625) {
_x = 1;
}
if (_y <= 15) {
_y = 645;
}
if (_y >= 650) {
_y = 20;
}
if (bossmission.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
onEnterFrame = function () {
xrotation = _x - _parent.ship._x;
yrotation = -(_y - _parent.ship._y);
totalrotation = Math.atan(yrotation / xrotation);
if (_parent.ship._x > _x) {
_rotation = 90 - (totalrotation / 3.141593) * 180;
} else {
_rotation = -(90 + (totalrotation / 3.141593) * 180);
}
};
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
}
frame 16 {
--life;
}
frame 17 {
this.onEnterFrame = function () {
if (life == 0) {
gotoAndPlay(32);
}
};
}
frame 22 {
_x = Math.random() * 575 + 50;
_y = Math.random() * 525 + 125;
guncooldown55 = 55555;
onEnterFrame = function () {
xrotation = _x - _parent.ship._x;
yrotation = -(_y - _parent.ship._y);
totalrotation = Math.atan(yrotation / xrotation);
if (_parent.ship._x > _x) {
_rotation = 90 - (totalrotation / 3.141593) * 180;
} else {
_rotation = -(90 + (totalrotation / 3.141593) * 180);
}
};
}
frame 31 {
gotoAndStop(3);
guncooldown = 5;
guncooldown2 = 15;
guncooldown3 = 25;
guncooldown4 = 35;
}
frame 32 {
function enemyaction() {
--guncooldown55;
if (guncooldown55 == 0) {
guncooldown55 = 15;
_parent.insertenemy('bossfinalninebomb', _x, _y);
}
}
guncooldown55 = 15;
_x = 313;
_y = 325;
}
frame 172 {
gotoAndPlay(22);
time0 = 55;
life = 5;
}
frame 173 {
Nonoba.api.NonobaAPI.AwardAchievement('m5ss5on555', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 173 {
function enemyaction() {
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
if (_parent.ship._y > _y) {
_y = _y + 0;
} else {
_y = _y - 0;
}
}
onEnterFrame = function () {
xrotation = _x - _parent.ship._x;
yrotation = -(_y - _parent.ship._y);
totalrotation = Math.atan(yrotation / xrotation);
if (_parent.ship._x > _x) {
_rotation = _rotation;
} else {
_rotation = _rotation;
}
};
time0 = 5555555555.0;
life = 5555555555.0;
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown55 = 55555;
}
frame 500 {
stop();
}
frame 500 {
stop();
}
frame 501 {
stop();
}
frame 502 {
stop();
}
}
movieClip 364 m2 {
frame 1 {
function enemyaction() {
_x = _x + xmov - 1;
_y = _y + ymov - 1;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 11;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 365 m4 {
frame 1 {
function enemyaction() {
_x = _x + xmov + 3;
_y = _y + ymov + 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 11;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 366 bosspt2 {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(30000);
gotoAndPlay('explode');
} else {
_parent.addpoints(1000);
gotoAndPlay('hit');
}
}
function enemyaction() {
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('bossptbullet2', _x, _y);
}
_x = _x + 7;
_y = _y + 10;
if (_x > Stage.width) {
_x = 5;
}
if (_x < 4) {
_x = Stage.width - 5;
}
if (_y > Stage.height) {
_y = 5;
}
if (_y < 4) {
_y = Stage.height - 5;
}
if (boss4spr0.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
onEnterFrame = function () {
xrotation = _x - _parent.ship._x;
yrotation = -(_y - _parent.ship._y);
totalrotation = Math.atan(yrotation / xrotation);
if (_parent.ship._x > _x) {
_rotation = 90 - (totalrotation / 3.141593) * 180;
} else {
_rotation = -(90 + (totalrotation / 3.141593) * 180);
}
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
stop();
health = 5555555;
guncooldown = 15;
}
frame 1 {
stop();
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 4 {
time5 = 1;
--time5;
this.onEnterFrame = function () {
if (time5 == 0) {
gotoAndPlay(5);
}
};
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 367 bosspt3 {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(30000);
gotoAndPlay('explode');
} else {
_parent.addpoints(1000);
gotoAndPlay('hit');
}
}
function enemyaction() {
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('bossptbullet', _x, _y);
}
_x = _x - 7;
_y = _y + 10;
if (_x > Stage.width) {
_x = 5;
}
if (_x < 4) {
_x = Stage.width - 5;
}
if (_y > Stage.height) {
_y = 5;
}
if (_y < 4) {
_y = Stage.height - 5;
}
if (boss4spr0.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
onEnterFrame = function () {
xrotation = _x - _parent.ship._x;
yrotation = -(_y - _parent.ship._y);
totalrotation = Math.atan(yrotation / xrotation);
if (_parent.ship._x > _x) {
_rotation = 90 - (totalrotation / 3.141593) * 180;
} else {
_rotation = -(90 + (totalrotation / 3.141593) * 180);
}
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
stop();
health = 5555555;
guncooldown = 15;
}
frame 1 {
stop();
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown = 55555;
}
frame 4 {
time5 = 1;
--time5;
this.onEnterFrame = function () {
if (time5 == 0) {
gotoAndPlay(5);
}
};
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 368 bosspt4 {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(30000);
gotoAndPlay('explode');
} else {
_parent.addpoints(1000);
gotoAndPlay('hit');
}
}
function enemyaction() {
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('bossptbullet2', _x, _y);
}
_x = _x - 7;
_y = _y - 10;
if (_x > Stage.width) {
_x = 5;
}
if (_x < 4) {
_x = Stage.width - 5;
}
if (_y > Stage.height) {
_y = 5;
}
if (_y < 4) {
_y = Stage.height - 5;
}
if (boss4spr0.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
onEnterFrame = function () {
xrotation = _x - _parent.ship._x;
yrotation = -(_y - _parent.ship._y);
totalrotation = Math.atan(yrotation / xrotation);
if (_parent.ship._x > _x) {
_rotation = 90 - (totalrotation / 3.141593) * 180;
} else {
_rotation = -(90 + (totalrotation / 3.141593) * 180);
}
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
stop();
health = 5555555;
guncooldown = 15;
}
frame 1 {
stop();
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 4 {
time5 = 1;
--time5;
this.onEnterFrame = function () {
if (time5 == 0) {
gotoAndPlay(5);
}
};
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 369 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 370 bossptbullet2 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 15;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 371 m3 {
frame 1 {
function enemyaction() {
_x = _x + xmov - 3;
_y = _y + ymov - 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 11;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 373 {
}
movieClip 374 bossfinalninebomb {
frame 1 {
function enemyaction() {
_x = _parent.ship._x;
_y = _parent.ship._y;
}
}
frame 2 {
function enemyaction() {
_x = _parent.ship._x;
_y = _parent.ship._y;
}
}
frame 3 {
function enemyaction() {
_x = _x;
_y = _y;
}
}
frame 46 {
function enemyaction() {
_x = _x;
_y = _y;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 54 {
function enemyaction() {
_x = _x + 10;
_y = _y + 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
}
}
movieClip 375 {
}
movieClip 377 {
}
movieClip 378 {
frame 1 {
randomattack = int(random(11));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
if (randomattack == 2) {
gotoAndStop('c');
}
if (randomattack == 3) {
gotoAndStop('d');
}
if (randomattack == 4) {
gotoAndStop('e');
}
if (randomattack == 5) {
gotoAndStop('f');
}
if (randomattack == 6) {
gotoAndStop('g');
}
if (randomattack == 7) {
gotoAndStop('h');
}
if (randomattack == 8) {
gotoAndStop('i');
}
if (randomattack == 9) {
gotoAndStop('j');
}
if (randomattack == 10) {
gotoAndStop('k');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
}
movieClip 380 {
}
movieClip 417 {
frame 1 {
randomattack = int(random(35));
if (randomattack == 0) {
gotoAndStop('1');
}
if (randomattack == 1) {
gotoAndStop('2');
}
if (randomattack == 2) {
gotoAndStop('3');
}
if (randomattack == 3) {
gotoAndStop('4');
}
if (randomattack == 4) {
gotoAndStop('5');
}
if (randomattack == 5) {
gotoAndStop('6');
}
if (randomattack == 6) {
gotoAndStop('7');
}
if (randomattack == 7) {
gotoAndStop('8');
}
if (randomattack == 8) {
gotoAndStop('9');
}
if (randomattack == 9) {
gotoAndStop('10');
}
if (randomattack == 10) {
gotoAndStop('11');
}
if (randomattack == 11) {
gotoAndStop('12');
}
if (randomattack == 12) {
gotoAndStop('13');
}
if (randomattack == 13) {
gotoAndStop('14');
}
if (randomattack == 14) {
gotoAndStop('15');
}
if (randomattack == 15) {
gotoAndStop('16');
}
if (randomattack == 16) {
gotoAndStop('17');
}
if (randomattack == 17) {
gotoAndStop('18');
}
if (randomattack == 18) {
gotoAndStop('19');
}
if (randomattack == 19) {
gotoAndStop('20');
}
if (randomattack == 20) {
gotoAndStop('21');
}
if (randomattack == 21) {
gotoAndStop('22');
}
if (randomattack == 22) {
gotoAndStop('23');
}
if (randomattack == 23) {
gotoAndStop('24');
}
if (randomattack == 24) {
gotoAndStop('25');
}
if (randomattack == 25) {
gotoAndStop('26');
}
if (randomattack == 26) {
gotoAndStop('27');
}
if (randomattack == 27) {
gotoAndStop('28');
}
if (randomattack == 28) {
gotoAndStop('29');
}
if (randomattack == 29) {
gotoAndStop('30');
}
if (randomattack == 30) {
gotoAndStop('31');
}
if (randomattack == 31) {
gotoAndStop('32');
}
if (randomattack == 32) {
gotoAndStop('33');
}
if (randomattack == 33) {
gotoAndStop('34');
}
if (randomattack == 34) {
gotoAndStop('35');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
frame 21 {
stop();
}
frame 22 {
stop();
}
frame 23 {
stop();
}
frame 24 {
stop();
}
frame 25 {
stop();
}
frame 26 {
stop();
}
frame 27 {
stop();
}
frame 28 {
stop();
}
frame 29 {
stop();
}
frame 30 {
stop();
}
frame 31 {
stop();
}
frame 32 {
stop();
}
frame 33 {
stop();
}
frame 34 {
stop();
}
frame 35 {
stop();
}
frame 36 {
stop();
}
frame 37 {
gotoAndPlay(1);
}
}
movieClip 418 {
}
movieClip 435 {
frame 21 {
stop();
}
}
movieClip 436 {
frame 1 {
_parent._parent.removeenemy(_parent._name);
}
}
movieClip 437 d1a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 1;
if (_parent.ship._x > _x) {
_x = _x + 1;
} else {
_x = _x - 1;
}
}
stop();
health = 1;
startx = _x;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 443 {
}
movieClip 444 d3a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(370);
gotoAndPlay('explode');
} else {
_parent.addpoints(37);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 2;
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy('d3bullet1', _x, _y);
_parent.insertenemy('d3bullet2', _x, _y);
_parent.insertenemy('d3bullet3', _x, _y);
_parent.insertenemy('d3bullet4', _x, _y);
}
}
stop();
health = 3;
startx = _x;
guncooldown = 35;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 450 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 451 d4a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(450);
gotoAndPlay('explode');
} else {
_parent.addpoints(45);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 3;
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy('d4bullet1', _x, _y);
_parent.insertenemy('d4bullet2', _x, _y);
_parent.insertenemy('d4bullet3', _x, _y);
}
}
stop();
health = 4;
startx = _x;
guncooldown = 30;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 457 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 458 d5a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(500);
gotoAndPlay('explode');
} else {
_parent.addpoints(50);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 2;
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy('d5bullet1', _x - 20, _y);
_parent.insertenemy('d5bullet2', _x + 20, _y);
}
}
stop();
health = 5;
startx = _x;
guncooldown = 30;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 464 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 465 d6a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(570);
gotoAndPlay('explode');
} else {
_parent.addpoints(57);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 2;
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 10;
_parent.insertenemy('d6bullet1', _x, _y);
}
}
stop();
health = 6;
startx = _x;
guncooldown = 10;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 472 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 473 {
}
movieClip 474 d7a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(77777);
gotoAndPlay('explode');
} else {
_parent.addpoints(77);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_y < 0) {
_parent.removeenemy(_name);
}
_y = _y - 3;
}
stop();
health = 10;
startx = _x;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 478 {
}
movieClip 483 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 485 {
}
movieClip 488 {
}
movieClip 489 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 490 {
}
movieClip 491 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 492 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 493 d8bullet {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (__y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 15;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 494 d8a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(700);
gotoAndPlay('explode');
} else {
_parent.addpoints(70);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 4;
if (_parent.ship._x > _x) {
_x = _x + 4;
} else {
_x = _x - 4;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 5;
_parent.insertenemy('d8bullet', _x + 17.9, _y - 13.4);
}
}
stop();
health = 8;
startx = _x;
guncooldown = 5;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 9 {
Nonoba.api.NonobaAPI.AwardAchievement('dom3', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 24 {
stop();
}
}
movieClip 496 {
}
movieClip 497 {
}
movieClip 498 {
}
movieClip 499 d9a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(770);
gotoAndPlay('explode');
} else {
_parent.addpoints(77);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 1;
--guncooldown;
if (guncooldown == 0) {
guncooldown = 5;
_parent.insertenemy('d9bullet', _x, _y);
}
}
stop();
health = 15;
startx = _x;
guncooldown = 5;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 506 {
frame 21 {
gotoAndPlay(1);
}
}
movieClip 508 {
}
movieClip 509 {
frame 35 {
gotoAndPlay(1);
}
}
movieClip 510 {
frame 35 {
gotoAndPlay(1);
}
}
movieClip 511 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 512 {
}
movieClip 513 d10a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(550);
gotoAndPlay('explode');
} else {
_parent.addpoints(55);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 10;
if (_parent.ship._x > _x) {
_x = _x + 5;
} else {
_x = _x - 5;
}
}
stop();
health = 5;
startx = _x;
guncooldown = 5;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 516 {
}
movieClip 517 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 518 {
}
movieClip 519 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 520 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 521 d1bullet {
frame 1 {
function enemyaction() {
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 523 {
}
movieClip 524 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 525 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 526 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 527 d2bullet1 {
frame 1 {
function enemyaction() {
_y = _y + 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 529 {
frame 1 {
randomattack = int(random(11));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
if (randomattack == 2) {
gotoAndStop('c');
}
if (randomattack == 3) {
gotoAndStop('d');
}
if (randomattack == 4) {
gotoAndStop('e');
}
if (randomattack == 5) {
gotoAndStop('f');
}
if (randomattack == 6) {
gotoAndStop('g');
}
if (randomattack == 7) {
gotoAndStop('h');
}
if (randomattack == 8) {
gotoAndStop('i');
}
if (randomattack == 9) {
gotoAndStop('j');
}
if (randomattack == 10) {
gotoAndStop('k');
}
}
}
movieClip 530 {
}
movieClip 531 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('1');
}
if (randomattack == 1) {
gotoAndStop('2');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 532 d3bullet2 {
frame 1 {
function enemyaction() {
_x = _x + 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 533 d3bullet3 {
frame 1 {
function enemyaction() {
_y = _y - 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 536 {
}
movieClip 537 Wave 4 {
frame 1 {
_x = 313;
_y = 325;
}
frame 91 {
stop();
}
}
movieClip 540 {
}
movieClip 541 Wave 5 {
frame 1 {
_x = 313;
_y = 325;
}
frame 91 {
stop();
}
}
movieClip 542 {
}
movieClip 543 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 544 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 545 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 546 d5bullet1 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_x = _x + 4;
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 31 {
gotoAndPlay(1);
}
}
movieClip 547 d5bullet2 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_x = _x + 4;
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 31 {
gotoAndPlay(1);
}
}
movieClip 548 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 549 d6bullet1 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (__y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 10;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 550 d7bullet1 {
frame 1 {
function enemyaction() {
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 551 d7bullet2 {
frame 1 {
function enemyaction() {
_x = _x + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 552 d7bullet3 {
frame 1 {
function enemyaction() {
_y = _y - 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 553 d7bullet4 {
frame 1 {
function enemyaction() {
_x = _x - 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 554 d7bullet5 {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 555 d7bullet6 {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 556 d7bullet7 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 557 d7bullet8 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 558 {
}
movieClip 559 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 560 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 561 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 562 d9bullet {
frame 1 {
randomattack = int(random(19));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
if (randomattack == 2) {
gotoAndStop('c');
}
if (randomattack == 3) {
gotoAndStop('d');
}
if (randomattack == 4) {
gotoAndStop('e');
}
if (randomattack == 5) {
gotoAndStop('f');
}
if (randomattack == 6) {
gotoAndStop('g');
}
if (randomattack == 7) {
gotoAndStop('h');
}
if (randomattack == 8) {
gotoAndStop('i');
}
if (randomattack == 9) {
gotoAndStop('j');
}
if (randomattack == 10) {
gotoAndStop('k');
}
if (randomattack == 11) {
gotoAndStop('l');
}
if (randomattack == 12) {
gotoAndStop('m');
}
if (randomattack == 13) {
gotoAndStop('n');
}
if (randomattack == 14) {
gotoAndStop('o');
}
if (randomattack == 15) {
gotoAndStop('p');
}
if (randomattack == 16) {
gotoAndStop('q');
}
if (randomattack == 17) {
gotoAndStop('r');
}
if (randomattack == 18) {
gotoAndStop('s');
}
if (randomattack == 19) {
gotoAndStop('t');
}
}
frame 2 {
function enemyaction() {
_x = _x + 0;
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 3 {
function enemyaction() {
_x = _x + 2;
_y = _y + 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 4 {
function enemyaction() {
_x = _x + 3;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 5 {
function enemyaction() {
_x = _x + 4;
_y = _y + 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 6 {
function enemyaction() {
_x = _x + 5;
_y = _y + 2;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 7 {
function enemyaction() {
_x = _x + 7;
_y = _y + 0;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 8 {
function enemyaction() {
_x = _x + 5;
_y = _y - 2;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 9 {
function enemyaction() {
_x = _x + 4;
_y = _y - 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 10 {
function enemyaction() {
_x = _x + 3;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 11 {
function enemyaction() {
_x = _x + 2;
_y = _y - 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 12 {
function enemyaction() {
_x = _x + 0;
_y = _y - 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 13 {
function enemyaction() {
_x = _x - 2;
_y = _y - 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 14 {
function enemyaction() {
_x = _x - 3;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_x = _x - 4;
_y = _y - 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 16 {
function enemyaction() {
_x = _x - 5;
_y = _y - 2;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 17 {
function enemyaction() {
_x = _x - 7;
_y = _y + 0;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 18 {
function enemyaction() {
_x = _x - 5;
_y = _y + 2;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 19 {
function enemyaction() {
_x = _x - 4;
_y = _y + 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 20 {
function enemyaction() {
_x = _x - 3;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 21 {
function enemyaction() {
_x = _x - 2;
_y = _y + 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 22 {
stop();
}
}
movieClip 563 d3bullet4 {
frame 1 {
function enemyaction() {
_x = _x - 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 565 {
}
movieClip 566 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 567 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 568 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 569 d4bullet1 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 570 d4bullet2 {
frame 1 {
function enemyaction() {
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 571 d4bullet3 {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 574 {
}
movieClip 575 {
frame 21 {
gotoAndPlay(1);
}
}
movieClip 576 {
}
movieClip 577 d3bossbullet {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (__y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 12;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 578 d3acoin {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(370);
gotoAndPlay('explode');
} else {
_parent.addpoints(37);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 2;
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy('d3bullet1', _x, _y);
_parent.insertenemy('d3bullet2', _x, _y);
_parent.insertenemy('d3bullet3', _x, _y);
_parent.insertenemy('d3bullet4', _x, _y);
}
}
stop();
health = 3;
startx = _x;
guncooldown = 35;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 9 {
_parent.insertenemy('coin', _x, _y);
}
frame 24 {
stop();
}
}
movieClip 582 {
frame 160 {
gotoAndPlay(1);
}
}
movieClip 583 {
}
movieClip 584 bwdwb1 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 6;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 585 bwdwb2 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 11;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 586 bwdwb3 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 16;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 587 bwdwb4 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 21;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 588 bwdwb5 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 26;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 591 bossxiwhiteout {
frame 96 {
stop();
}
frame 97 {
stop();
}
}
movieClip 593 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 594 dbullet {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.hitarea2)) {
_parent.hitship2();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 5;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 2 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 3 {
stop();
}
}
movieClip 603 {
frame 160 {
gotoAndPlay(1);
}
}
movieClip 605 {
}
movieClip 610 {
}
movieClip 611 {
frame 1 {
_parent._parent.winlevel();
}
}
movieClip 612 bossweegeedoll {
frame 1 {
_x = 313;
_y = 166;
}
frame 31 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addtiem(-5);
gotoAndPlay('explode');
} else {
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--guncooldown5;
if (guncooldown == 0) {
guncooldown = 19;
_parent.insertenemy('bwdwb1', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 32;
_parent.insertenemy('bwdwb2', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 47;
_parent.insertenemy('bwdwb3', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 55;
_parent.insertenemy('bwdwb4', _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 66;
_parent.insertenemy('bwdwb5', _x, _y);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
if (_parent.ship._y > _y) {
_y = _y + 3;
} else {
_y = _y - 3;
}
}
stop();
health = 666;
guncooldown = 19;
guncooldown2 = 32;
guncooldown3 = 47;
guncooldown4 = 55;
guncooldown5 = 66;
}
frame 33 {
stop();
}
frame 34 {
function enemyaction() {
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
if (_parent.ship._y > _y) {
_y = _y + 0;
} else {
_y = _y - 0;
}
}
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
}
frame 100 {
function enemyaction() {
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
if (_parent.ship._y > _y) {
_y = _y + 0;
} else {
_y = _y - 0;
}
}
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
}
frame 135 {
stop();
}
}
movieClip 614 hitareadm {
}
movieClip 615 hitareadm2 {
}
movieClip 616 hitareadm3 {
}
movieClip 617 hitareadm4 {
}
movieClip 622 {
frame 9 {
gotoAndPlay(1);
}
}
movieClip 623 {
}
movieClip 624 {
frame 40 {
gotoAndPlay(1);
}
}
movieClip 625 bossweegeedolldiamonds {
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 31 {
function enemyaction() {
--guncooldown1;
if (guncooldown1 == 0) {
guncooldown1 = 111;
_parent.insertenemy('dbullet', _x + 26.6, _y + 37.8);
_parent.insertenemy('dbullet', _x + 78.7, _y + 37.8);
_parent.insertenemy('dbullet', _x + 130.8, _y + 37.8);
_parent.insertenemy('dbullet', _x + 182.8, _y + 37.8);
_parent.insertenemy('dbullet', _x + 234.9, _y + 37.8);
_parent.insertenemy('dbullet', _x + 287, _y + 37.8);
_parent.insertenemy('dbullet', _x + 339.1, _y + 37.8);
_parent.insertenemy('dbullet', _x + 391.2, _y + 37.8);
_parent.insertenemy('dbullet', _x + 443.3, _y + 37.8);
_parent.insertenemy('dbullet', _x + 495.4, _y + 37.8);
_parent.insertenemy('dbullet', _x + 547.4, _y + 37.8);
_parent.insertenemy('dbullet', _x + 599.5, _y + 37.8);
_parent.insertenemy('dbullet', _x + 599.5, _y + 118.8);
_parent.insertenemy('dbullet', _x + 599.5, _y + 200);
_parent.insertenemy('dbullet', _x + 599.5, _y + 282);
_parent.insertenemy('dbullet', _x + 599.5, _y + 365);
_parent.insertenemy('dbullet', _x + 599.5, _y + 448);
_parent.insertenemy('dbullet', _x + 599.5, _y + 531);
_parent.insertenemy('dbullet', _x + 26.6, _y + 612.6);
_parent.insertenemy('dbullet', _x + 78.7, _y + 612.6);
_parent.insertenemy('dbullet', _x + 130.8, _y + 612.6);
_parent.insertenemy('dbullet', _x + 182.8, _y + 612.6);
_parent.insertenemy('dbullet', _x + 234.9, _y + 612.6);
_parent.insertenemy('dbullet', _x + 287, _y + 612.6);
_parent.insertenemy('dbullet', _x + 339.1, _y + 612.6);
_parent.insertenemy('dbullet', _x + 391.2, _y + 612.6);
_parent.insertenemy('dbullet', _x + 443.3, _y + 612.6);
_parent.insertenemy('dbullet', _x + 495.4, _y + 612.6);
_parent.insertenemy('dbullet', _x + 547.4, _y + 612.6);
_parent.insertenemy('dbullet', _x + 599.5, _y + 612.6);
_parent.insertenemy('dbullet', _x + 26.6, _y + 118.8);
_parent.insertenemy('dbullet', _x + 26.6, _y + 200);
_parent.insertenemy('dbullet', _x + 26.6, _y + 282);
_parent.insertenemy('dbullet', _x + 26.6, _y + 365);
_parent.insertenemy('dbullet', _x + 26.6, _y + 448);
_parent.insertenemy('dbullet', _x + 26.6, _y + 531);
_parent.insertenemy('dbullet', _x + 26.6, _y + 612.6);
}
if (hitareadm1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareadm2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareadm3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (hitareadm4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
stop();
stop();
health = 555555555;
guncooldown1 = 111;
}
frame 32 {
stop();
guncooldown1 = 55555;
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 33 {
stop();
}
}
movieClip 633 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 634 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 635 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a1');
}
if (randomattack == 1) {
gotoAndStop('b1');
}
}
frame 4 {
gotoAndPlay(1);
}
}
movieClip 636 {
}
movieClip 637 {
}
movieClip 638 {
frame 1 {
randomattack = int(random(8));
if (randomattack == 0) {
gotoAndPlay('a');
}
if (randomattack == 1) {
gotoAndPlay('b');
}
if (randomattack == 2) {
gotoAndPlay('c');
}
if (randomattack == 3) {
gotoAndPlay('d');
}
if (randomattack == 4) {
gotoAndPlay('e');
}
if (randomattack == 5) {
gotoAndPlay('f');
}
if (randomattack == 6) {
gotoAndPlay('g');
}
if (randomattack == 7) {
gotoAndPlay('h');
}
}
frame 10 {
gotoAndPlay(1);
}
}
movieClip 639 c100 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 25;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 640 c1 {
frame 1 {
function enemyaction() {
_y = _y + 25;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 641 c99 {
frame 1 {
function enemyaction() {
_x = _x - 23;
_y = _y - 2;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 642 c98 {
frame 1 {
function enemyaction() {
_x = _x - 22;
_y = _y - 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 643 c97 {
frame 1 {
function enemyaction() {
_x = _x - 21;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 644 c96 {
frame 1 {
function enemyaction() {
_x = _x - 20;
_y = _y - 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 645 c95 {
frame 1 {
function enemyaction() {
_x = _x - 19;
_y = _y - 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 646 c94 {
frame 1 {
function enemyaction() {
_x = _x - 18;
_y = _y - 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 647 c93 {
frame 1 {
function enemyaction() {
_x = _x - 17;
_y = _y - 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 648 c92 {
frame 1 {
function enemyaction() {
_x = _x - 16;
_y = _y - 9;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 649 c91 {
frame 1 {
function enemyaction() {
_x = _x - 15;
_y = _y - 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 650 c90 {
frame 1 {
function enemyaction() {
_x = _x - 14;
_y = _y - 11;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 651 c89 {
frame 1 {
function enemyaction() {
_x = _x - 24;
_y = _y - 1;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 652 c88 {
frame 1 {
function enemyaction() {
_x = _x - 12.5;
_y = _y - 12.5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 653 c87 {
frame 1 {
function enemyaction() {
_x = _x - 11;
_y = _y - 14;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 654 c86 {
frame 1 {
function enemyaction() {
_x = _x - 10;
_y = _y - 15;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 655 c85 {
frame 1 {
function enemyaction() {
_x = _x - 9;
_y = _y - 16;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 656 c84 {
frame 1 {
function enemyaction() {
_x = _x - 8;
_y = _y - 17;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 657 c83 {
frame 1 {
function enemyaction() {
_x = _x - 7;
_y = _y - 18;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 658 c82 {
frame 1 {
function enemyaction() {
_x = _x - 6;
_y = _y - 19;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 659 c81 {
frame 1 {
function enemyaction() {
_x = _x + 5;
_y = _y - 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 660 c80 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y - 21;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 661 c79 {
frame 1 {
function enemyaction() {
_x = _x - 3;
_y = _y - 22;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 662 c78 {
frame 1 {
function enemyaction() {
_x = _x - 2;
_y = _y - 23;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 663 c77 {
frame 1 {
function enemyaction() {
_x = _x - 1;
_y = _y - 24;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 664 c76 {
frame 1 {
function enemyaction() {
_x = _x + 24;
_y = _y - 1;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 665 c75 {
frame 1 {
function enemyaction() {
_x = _x + 23;
_y = _y - 2;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 666 c74 {
frame 1 {
function enemyaction() {
_x = _x + 22;
_y = _y - 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 667 c73 {
frame 1 {
function enemyaction() {
_x = _x + 21;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 668 c72 {
frame 1 {
function enemyaction() {
_x = _x + 20;
_y = _y - 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 669 c71 {
frame 1 {
function enemyaction() {
_x = _x + 19;
_y = _y - 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 670 c70 {
frame 1 {
function enemyaction() {
_x = _x + 18;
_y = _y - 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 671 c69 {
frame 1 {
function enemyaction() {
_x = _x + 17;
_y = _y - 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 672 c68 {
frame 1 {
function enemyaction() {
_x = _x + 16;
_y = _y - 9;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 673 c67 {
frame 1 {
function enemyaction() {
_x = _x + 15;
_y = _y - 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 674 c66 {
frame 1 {
function enemyaction() {
_x = _x + 14;
_y = _y - 11;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 675 c65 {
frame 1 {
function enemyaction() {
_x = _x + 13;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 676 c64 {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y - 13;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 677 c63 {
frame 1 {
function enemyaction() {
_x = _x + 11;
_y = _y - 14;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 678 c62 {
frame 1 {
function enemyaction() {
_x = _x + 10;
_y = _y - 15;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 679 c61 {
frame 1 {
function enemyaction() {
_x = _x + 9;
_y = _y - 16;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 680 c60 {
frame 1 {
function enemyaction() {
_x = _x + 8;
_y = _y - 17;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 681 c59 {
frame 1 {
function enemyaction() {
_x = _x + 7;
_y = _y - 18;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 682 c58 {
frame 1 {
function enemyaction() {
_x = _x + 6;
_y = _y - 19;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 683 c57 {
frame 1 {
function enemyaction() {
_x = _x + 5;
_y = _y - 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 684 c56 {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y - 21;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 685 c55 {
frame 1 {
function enemyaction() {
_x = _x + 3;
_y = _y - 22;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 686 c54 {
frame 1 {
function enemyaction() {
_x = _x + 2;
_y = _y - 23;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 687 c53 {
frame 1 {
function enemyaction() {
_x = _x + 1;
_y = _y - 24;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 688 c52 {
frame 1 {
function enemyaction() {
_y = _y - 25;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 689 c51 {
frame 1 {
function enemyaction() {
_x = _x - 25;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 690 c50 {
frame 1 {
function enemyaction() {
_x = _x - 24;
_y = _y + 1;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 691 c49 {
frame 1 {
function enemyaction() {
_x = _x - 23;
_y = _y + 2;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 692 c48 {
frame 1 {
function enemyaction() {
_x = _x - 22;
_y = _y + 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 693 c47 {
frame 1 {
function enemyaction() {
_x = _x - 21;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 694 c46 {
frame 1 {
function enemyaction() {
_x = _x - 20;
_y = _y + 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 695 c45 {
frame 1 {
function enemyaction() {
_x = _x - 19;
_y = _y + 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 696 c44 {
frame 1 {
function enemyaction() {
_x = _x - 18;
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 697 c43 {
frame 1 {
function enemyaction() {
_x = _x - 17;
_y = _y + 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 698 c42 {
frame 1 {
function enemyaction() {
_x = _x - 16;
_y = _y + 9;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 699 c41 {
frame 1 {
function enemyaction() {
_x = _x - 15;
_y = _y + 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 700 c40 {
frame 1 {
function enemyaction() {
_x = _x - 14;
_y = _y + 11;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 701 c39 {
frame 1 {
function enemyaction() {
_x = _x - 13;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 702 c38 {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y + 13;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 703 c37 {
frame 1 {
function enemyaction() {
_x = _x - 11;
_y = _y + 14;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 704 c36 {
frame 1 {
function enemyaction() {
_x = _x - 10;
_y = _y + 15;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 705 c35 {
frame 1 {
function enemyaction() {
_x = _x - 9;
_y = _y + 16;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 706 c34 {
frame 1 {
function enemyaction() {
_x = _x - 8;
_y = _y + 17;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 707 c33 {
frame 1 {
function enemyaction() {
_x = _x - 7;
_y = _y + 18;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 708 c32 {
frame 1 {
function enemyaction() {
_x = _x - 6;
_y = _y + 19;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 709 c31 {
frame 1 {
function enemyaction() {
_x = _x - 5;
_y = _y + 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 710 c30 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y + 21;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 711 c29 {
frame 1 {
function enemyaction() {
_x = _x - 3;
_y = _y + 22;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 712 c28 {
frame 1 {
function enemyaction() {
_x = _x - 2;
_y = _y + 23;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 713 c27 {
frame 1 {
function enemyaction() {
_x = _x - 1;
_y = _y + 24;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 714 c26 {
frame 1 {
function enemyaction() {
_x = _x + 25;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 715 c25 {
frame 1 {
function enemyaction() {
_x = _x + 24;
_y = _y + 1;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 716 c24 {
frame 1 {
function enemyaction() {
_x = _x + 23;
_y = _y + 2;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 717 c23 {
frame 1 {
function enemyaction() {
_x = _x + 22;
_y = _y + 3;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 718 c22 {
frame 1 {
function enemyaction() {
_x = _x + 21;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 719 c21 {
frame 1 {
function enemyaction() {
_x = _x + 20;
_y = _y + 5;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 720 c20 {
frame 1 {
function enemyaction() {
_x = _x + 19;
_y = _y + 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 721 c19 {
frame 1 {
function enemyaction() {
_x = _x + 18;
_y = _y + 7;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 722 c18 {
frame 1 {
function enemyaction() {
_x = _x + 17;
_y = _y + 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 723 c17 {
frame 1 {
function enemyaction() {
_x = _x + 16;
_y = _y + 9;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 724 c16 {
frame 1 {
function enemyaction() {
_x = _x + 15;
_y = _y + 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 725 c15 {
frame 1 {
function enemyaction() {
_x = _x + 14;
_y = _y + 11;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 726 c14 {
frame 1 {
function enemyaction() {
_x = _x + 13;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 727 c13 {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y + 13;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 728 c12 {
frame 1 {
function enemyaction() {
_x = _x + 11;
_y = _y + 14;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 729 c11 {
frame 1 {
function enemyaction() {
_x = _x + 10;
_y = _y + 15;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 730 c10 {
frame 1 {
function enemyaction() {
_x = _x + 9;
_y = _y + 16;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 731 c9 {
frame 1 {
function enemyaction() {
_x = _x + 8;
_y = _y + 17;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 732 c8 {
frame 1 {
function enemyaction() {
_x = _x + 7;
_y = _y + 18;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 733 c7 {
frame 1 {
function enemyaction() {
_x = _x + 6;
_y = _y + 19;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 734 c6 {
frame 1 {
function enemyaction() {
_x = _x + 5;
_y = _y + 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 735 c5 {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y + 21;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 736 c4 {
frame 1 {
function enemyaction() {
_x = _x + 3;
_y = _y + 22;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 737 c3 {
frame 1 {
function enemyaction() {
_x = _x + 2;
_y = _y + 23;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 738 c2 {
frame 1 {
function enemyaction() {
_x = _x + 1;
_y = _y + 24;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 739 bosshinafocusbullet {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 15;
}
frame 2 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 15;
}
}
movieClip 741 bosshinapt9 {
frame 1 {
_x = 0;
_y = 0;
randomattack = int(random(4));
if (randomattack == 0) {
gotoAndPlay('z1');
}
if (randomattack == 1) {
gotoAndPlay('z2');
}
if (randomattack == 2) {
gotoAndPlay('z3');
}
if (randomattack == 3) {
gotoAndPlay('z4');
}
}
frame 2 {
gotoAndStop('end');
_parent.insertenemy('bosshinafocusbullet', _x + 1, _y + Math.random() * 625 + 25);
}
frame 3 {
gotoAndStop('end');
_parent.insertenemy('bosshinafocusbullet', _x + 624, _y + Math.random() * 625 + 25);
}
frame 4 {
gotoAndStop('end');
_parent.insertenemy('bosshinafocusbullet', _x + Math.random() * 600 + 25, _y + 1);
}
frame 5 {
gotoAndStop('end');
_parent.insertenemy('bosshinafocusbullet', _x + Math.random() * 600 + 25, _y + 649);
}
frame 6 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.removeenemy(_name);
}
frame 7 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.removeenemy(_name);
}
}
movieClip 742 {
}
movieClip 743 bosshinabulletpattern {
frame 1 {
_parent.insertenemy('kfollow', _x, _y);
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 12) {
gotoAndStop('explode2');
}
};
}
frame 5 {
_parent.insertenemy('kfollow', _x - 37.3, _y - 43.9);
}
frame 9 {
_parent.insertenemy('kfollow', _x - 32, _y + 35);
}
frame 13 {
_parent.insertenemy('kfollow', _x + 42.5, _y + 23.9);
}
frame 17 {
_parent.insertenemy('kfollow', _x + 34.5, _y - 59.7);
}
frame 21 {
_parent.insertenemy('kfollow', _x - 34.9, _y - 95);
}
frame 25 {
_parent.insertenemy('kfollow', _x - 89.3, _y - 31.7);
}
frame 29 {
_parent.insertenemy('kfollow', _x - 77.3, _y + 50.8);
}
frame 33 {
_parent.insertenemy('kfollow', _x - 4.6, _y + 94.5);
}
frame 37 {
_parent.insertenemy('kfollow', _x + 81, _y + 80.5);
}
frame 41 {
_parent.insertenemy('kfollow', _x + 98.3, _y - 3.5);
}
frame 45 {
_parent.insertenemy('kfollow', _x + 74.3, _y - 86.2);
}
frame 49 {
_parent.insertenemy('kfollow', _x + 15.9, _y - 147.7);
}
frame 53 {
_parent.insertenemy('kfollow', _x - 68.90000000000001, _y - 156.7);
}
frame 57 {
_parent.insertenemy('kfollow', _x - 128.3, _y - 97.5);
}
frame 61 {
_parent.insertenemy('kfollow', _x - 140.9, _y - 14.2);
}
frame 65 {
_parent.insertenemy('kfollow', _x - 157.7, _y + 50);
}
frame 69 {
_parent.insertenemy('kfollow', _x - 233.2, _y + 23.8);
}
frame 73 {
_parent.insertenemy('kfollow', _x - 297.1, _y + 21.9);
}
frame 77 {
_parent.insertenemy('kfollow', _x - 277.1, _y + 103.3);
}
frame 81 {
_parent.insertenemy('kfollow', _x - 207.3, _y + 152.6);
}
frame 85 {
_parent.insertenemy('kfollow', _x - 121.3, _y + 153.1);
}
frame 89 {
_parent.insertenemy('kfollow', _x - 36.8, _y + 157.1);
}
frame 93 {
_parent.insertenemy('kfollow', _x + 40.9, _y + 195.5);
}
frame 97 {
_parent.insertenemy('kfollow', _x + 119.9, _y + 206.2);
}
frame 101 {
_parent.insertenemy('kfollow', _x + 162.6, _y + 133.2);
}
frame 105 {
_parent.insertenemy('kfollow', _x + 220.8, _y + 69.8);
}
frame 109 {
_parent.insertenemy('kfollow', _x + 277.6, _y + 16.1);
}
frame 113 {
_parent.insertenemy('kfollow', _x + 216.2, _y - 43.8);
}
frame 117 {
_parent.insertenemy('kfollow', _x + 200.8, _y - 108);
}
frame 121 {
_parent.insertenemy('kfollow', _x + 199.4, _y - 190.7);
}
frame 125 {
_parent.insertenemy('kfollow', _x + 134.8, _y - 244.8);
}
frame 129 {
_parent.insertenemy('kfollow', _x + 49, _y - 238.5);
}
frame 133 {
_parent.insertenemy('kfollow', _x - 35.3, _y - 232.1);
}
frame 137 {
_parent.insertenemy('kfollow', _x - 112.3, _y - 271.3);
}
frame 141 {
_parent.insertenemy('kfollow', _x - 189.8, _y - 273.8);
}
frame 145 {
_parent.insertenemy('kfollow', _x - 258.4, _y - 220.2);
}
frame 151 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.removeenemy(_name);
}
frame 152 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.removeenemy(_name);
onEnterFrame = function () {
if (_parent.tiem == 12) {
stop();
}
};
}
frame 153 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.removeenemy(_name);
}
}
movieClip 744 kfollow {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 2;
}
frame 2 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 4;
}
frame 3 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 6;
}
frame 4 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 8;
}
frame 5 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 10;
}
frame 6 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 12;
}
frame 7 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 14;
}
frame 8 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 16;
}
frame 9 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 18;
}
frame 10 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
movespeed = 20;
}
frame 11 {
gotoAndPlay(1);
}
}
movieClip 745 k6 {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 746 k5 {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 747 k4 {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 748 k3 {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 749 k2a {
frame 1 {
function enemyaction() {
_y = _y - 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 750 k1a {
frame 1 {
function enemyaction() {
_y = _y + 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 751 k2 {
frame 1 {
function enemyaction() {
_y = _y - 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.insertenemy('k2a', _x, _y);
_parent.insertenemy('k5', _x, _y);
_parent.insertenemy('k6', _x, _y);
_parent.removeenemy(_name);
}
}
movieClip 752 k1 {
frame 1 {
function enemyaction() {
_y = _y + 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.insertenemy('k1a', _x, _y);
_parent.insertenemy('k3', _x, _y);
_parent.insertenemy('k4', _x, _y);
_parent.removeenemy(_name);
}
}
movieClip 753 j4a {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 754 j3a {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 755 j2a {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 756 j1a {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 757 j8 {
frame 1 {
function enemyaction() {
_x = _x - 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 758 j7 {
frame 1 {
function enemyaction() {
_y = _y - 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 759 j6 {
frame 1 {
function enemyaction() {
_x = _x + 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 760 j5 {
frame 1 {
function enemyaction() {
_y = _y + 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 761 j4 {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.insertenemy('j1a', _x, _y);
_parent.insertenemy('j2a', _x, _y);
_parent.insertenemy('j3a', _x, _y);
_parent.insertenemy('j4a', _x, _y);
_parent.insertenemy('j5', _x, _y);
_parent.insertenemy('j6', _x, _y);
_parent.insertenemy('j7', _x, _y);
_parent.insertenemy('j8', _x, _y);
_parent.removeenemy(_name);
}
}
movieClip 762 j3 {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.insertenemy('j1a', _x, _y);
_parent.insertenemy('j2a', _x, _y);
_parent.insertenemy('j3a', _x, _y);
_parent.insertenemy('j4a', _x, _y);
_parent.insertenemy('j5', _x, _y);
_parent.insertenemy('j6', _x, _y);
_parent.insertenemy('j7', _x, _y);
_parent.insertenemy('j8', _x, _y);
_parent.removeenemy(_name);
}
}
movieClip 763 j2 {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.insertenemy('j1a', _x, _y);
_parent.insertenemy('j2a', _x, _y);
_parent.insertenemy('j3a', _x, _y);
_parent.insertenemy('j4a', _x, _y);
_parent.insertenemy('j5', _x, _y);
_parent.insertenemy('j6', _x, _y);
_parent.insertenemy('j7', _x, _y);
_parent.insertenemy('j8', _x, _y);
_parent.removeenemy(_name);
}
}
movieClip 764 j1 {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
frame 15 {
function enemyaction() {
_parent.removeenemy(_name);
}
stop();
_parent.insertenemy('j1a', _x, _y);
_parent.insertenemy('j2a', _x, _y);
_parent.insertenemy('j3a', _x, _y);
_parent.insertenemy('j4a', _x, _y);
_parent.insertenemy('j5', _x, _y);
_parent.insertenemy('j6', _x, _y);
_parent.insertenemy('j7', _x, _y);
_parent.insertenemy('j8', _x, _y);
_parent.removeenemy(_name);
}
}
movieClip 765 h16 {
frame 1 {
function enemyaction() {
_x = _x - 8;
_y = _y + 16;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 766 h15 {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 767 h14 {
frame 1 {
function enemyaction() {
_x = _x - 16;
_y = _y + 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 768 h13 {
frame 1 {
function enemyaction() {
_x = _x - 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 769 h12 {
frame 1 {
function enemyaction() {
_x = _x - 16;
_y = _y - 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 770 h11 {
frame 1 {
function enemyaction() {
_x = _x - 12;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 771 h10 {
frame 1 {
function enemyaction() {
_x = _x - 8;
_y = _y - 16;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 772 h9 {
frame 1 {
function enemyaction() {
_y = _y - 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 773 h8 {
frame 1 {
function enemyaction() {
_x = _x + 8;
_y = _y - 16;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 774 h7 {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y - 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 775 h6 {
frame 1 {
function enemyaction() {
_x = _x + 16;
_y = _y - 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 776 h5 {
frame 1 {
function enemyaction() {
_x = _x + 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 777 h4 {
frame 1 {
function enemyaction() {
_x = _x + 16;
_y = _y + 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 778 h3 {
frame 1 {
function enemyaction() {
_x = _x + 12;
_y = _y + 12;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 779 h2 {
frame 1 {
function enemyaction() {
_x = _x + 8;
_y = _y + 16;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 780 h1 {
frame 1 {
function enemyaction() {
_y = _y + 20;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 789 {
frame 17 {
gotoAndPlay(1);
}
}
movieClip 790 {
}
movieClip 795 {
}
movieClip 797 bosshina {
frame 1 {
_x = 313;
_y = 325;
}
frame 31 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode1');
} else {
_parent.addpoints(55);
gotoAndPlay('hit1');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
--guncooldown2;
--guncooldown3;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy('h1', _x, _y);
_parent.insertenemy('h5', _x, _y);
_parent.insertenemy('h9', _x, _y);
_parent.insertenemy('h13', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 30;
_parent.insertenemy('h3', _x, _y);
_parent.insertenemy('h7', _x, _y);
_parent.insertenemy('h11', _x, _y);
_parent.insertenemy('h15', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 11;
_parent.insertenemy('bosshinafocusbullet', _x, _y);
}
}
stop();
health = 55;
guncooldown = 15;
guncooldown2 = 30;
guncooldown3 = 11;
}
frame 33 {
stop();
}
frame 34 {
guncooldown = 55555;
guncooldown2 = 55555;
}
frame 35 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode2');
} else {
_parent.addpoints(55);
gotoAndPlay('hit2');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown1;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--guncooldown5;
--guncooldown6;
--guncooldown7;
--guncooldown8;
--guncooldown9;
--guncooldown10;
--guncooldown11;
--guncooldown12;
--guncooldown13;
--guncooldown14;
--guncooldown15;
--guncooldown16;
if (guncooldown1 == 0) {
guncooldown1 = 32;
_parent.insertenemy('h1', _x - 293, _y - 320);
_parent.insertenemy('h1', _x + 293, _y - 320);
}
if (guncooldown2 == 0) {
guncooldown2 = 32;
_parent.insertenemy('h1', _x - 273, _y - 320);
_parent.insertenemy('h1', _x + 273, _y - 320);
}
if (guncooldown3 == 0) {
guncooldown3 = 32;
_parent.insertenemy('h1', _x - 253, _y - 320);
_parent.insertenemy('h1', _x + 253, _y - 320);
}
if (guncooldown4 == 0) {
guncooldown4 = 32;
_parent.insertenemy('h1', _x - 233, _y - 320);
_parent.insertenemy('h1', _x + 233, _y - 320);
}
if (guncooldown5 == 0) {
guncooldown5 = 32;
_parent.insertenemy('h1', _x - 213, _y - 320);
_parent.insertenemy('h1', _x + 213, _y - 320);
}
if (guncooldown6 == 0) {
guncooldown6 = 32;
_parent.insertenemy('h1', _x - 193, _y - 320);
_parent.insertenemy('h1', _x + 193, _y - 320);
}
if (guncooldown7 == 0) {
guncooldown7 = 32;
_parent.insertenemy('h1', _x - 173, _y - 320);
_parent.insertenemy('h1', _x + 173, _y - 320);
}
if (guncooldown8 == 0) {
guncooldown8 = 32;
_parent.insertenemy('h1', _x - 153, _y - 320);
_parent.insertenemy('h1', _x + 153, _y - 320);
}
if (guncooldown9 == 0) {
guncooldown9 = 32;
_parent.insertenemy('h1', _x, _y - 320);
}
if (guncooldown10 == 0) {
guncooldown10 = 32;
_parent.insertenemy('h1', _x - 13, _y - 320);
_parent.insertenemy('h1', _x + 13, _y - 320);
}
if (guncooldown11 == 0) {
guncooldown11 = 32;
_parent.insertenemy('h1', _x - 33, _y - 320);
_parent.insertenemy('h1', _x + 33, _y - 320);
}
if (guncooldown12 == 0) {
guncooldown12 = 32;
_parent.insertenemy('h1', _x - 53, _y - 320);
_parent.insertenemy('h1', _x + 53, _y - 320);
}
if (guncooldown13 == 0) {
guncooldown13 = 32;
_parent.insertenemy('h1', _x - 73, _y - 320);
_parent.insertenemy('h1', _x + 73, _y - 320);
}
if (guncooldown14 == 0) {
guncooldown14 = 32;
_parent.insertenemy('h1', _x - 93, _y - 320);
_parent.insertenemy('h1', _x + 93, _y - 320);
}
if (guncooldown15 == 0) {
guncooldown15 = 32;
_parent.insertenemy('h1', _x - 113, _y - 320);
_parent.insertenemy('h1', _x + 113, _y - 320);
}
if (guncooldown16 == 0) {
guncooldown16 = 32;
_parent.insertenemy('h1', _x - 133, _y - 320);
_parent.insertenemy('h1', _x + 133, _y - 320);
}
}
stop();
health = 55;
guncooldown1 = 2;
guncooldown2 = 4;
guncooldown3 = 6;
guncooldown4 = 8;
guncooldown5 = 10;
guncooldown6 = 12;
guncooldown7 = 14;
guncooldown8 = 16;
guncooldown9 = 18;
guncooldown10 = 20;
guncooldown11 = 22;
guncooldown12 = 24;
guncooldown13 = 26;
guncooldown14 = 28;
guncooldown15 = 30;
guncooldown16 = 32;
}
frame 37 {
stop();
}
frame 38 {
guncooldown1 = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
guncooldown6 = 55555;
guncooldown7 = 55555;
guncooldown8 = 55555;
guncooldown9 = 55555;
guncooldown10 = 55555;
guncooldown11 = 55555;
guncooldown12 = 55555;
guncooldown13 = 55555;
guncooldown14 = 55555;
guncooldown15 = 55555;
guncooldown16 = 55555;
}
frame 39 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode3');
} else {
_parent.addpoints(55);
gotoAndPlay('hit3');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
--guncooldown2;
if (guncooldown == 0) {
guncooldown = 24;
_parent.insertenemy('h1', _x, _y);
_parent.insertenemy('h5', _x, _y);
_parent.insertenemy('h9', _x, _y);
_parent.insertenemy('h13', _x, _y);
_parent.insertenemy('h3', _x - 309, _y - 320);
_parent.insertenemy('h7', _x - 309, _y + 320);
_parent.insertenemy('h11', _x + 309, _y + 320);
_parent.insertenemy('h15', _x + 309, _y - 320);
}
if (guncooldown2 == 0) {
guncooldown2 = 24;
_parent.insertenemy('h3', _x, _y);
_parent.insertenemy('h7', _x, _y);
_parent.insertenemy('h11', _x, _y);
_parent.insertenemy('h15', _x, _y);
_parent.insertenemy('h2', _x - 309, _y - 320);
_parent.insertenemy('h4', _x - 390, _y - 320);
_parent.insertenemy('h6', _x - 309, _y + 320);
_parent.insertenemy('h8', _x - 309, _y + 320);
_parent.insertenemy('h10', _x + 309, _y + 320);
_parent.insertenemy('h12', _x + 309, _y + 320);
_parent.insertenemy('h14', _x + 309, _y - 320);
_parent.insertenemy('h16', _x + 309, _y - 320);
}
}
stop();
health = 55;
guncooldown = 12;
guncooldown2 = 24;
}
frame 41 {
stop();
}
frame 42 {
guncooldown = 55555;
guncooldown2 = 55555;
}
frame 43 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode4');
} else {
_parent.addpoints(55);
gotoAndPlay('hit4');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown1;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--guncooldown5;
--guncooldown6;
--guncooldown7;
--guncooldown8;
--guncooldown9;
--guncooldown10;
--guncooldown11;
--guncooldown12;
--guncooldown13;
--guncooldown14;
--guncooldown15;
--guncooldown16;
if (guncooldown1 == 0) {
guncooldown1 = 32;
_parent.insertenemy('h1', _x - 293, _y - 320);
_parent.insertenemy('h1', _x + 293, _y - 320);
_parent.insertenemy('h9', _x - 293, _y + 320);
_parent.insertenemy('h9', _x + 293, _y + 320);
}
if (guncooldown2 == 0) {
guncooldown2 = 32;
_parent.insertenemy('h1', _x - 273, _y - 320);
_parent.insertenemy('h1', _x + 273, _y - 320);
_parent.insertenemy('h9', _x - 273, _y + 320);
_parent.insertenemy('h9', _x + 273, _y + 320);
}
if (guncooldown3 == 0) {
guncooldown3 = 32;
_parent.insertenemy('h1', _x - 253, _y - 320);
_parent.insertenemy('h1', _x + 253, _y - 320);
_parent.insertenemy('h9', _x - 253, _y + 320);
_parent.insertenemy('h9', _x + 253, _y + 320);
}
if (guncooldown4 == 0) {
guncooldown4 = 32;
_parent.insertenemy('h1', _x - 233, _y - 320);
_parent.insertenemy('h1', _x + 233, _y - 320);
_parent.insertenemy('h9', _x - 233, _y + 320);
_parent.insertenemy('h9', _x + 233, _y + 320);
}
if (guncooldown5 == 0) {
guncooldown5 = 32;
_parent.insertenemy('h1', _x - 213, _y - 320);
_parent.insertenemy('h1', _x + 213, _y - 320);
_parent.insertenemy('h9', _x - 213, _y + 320);
_parent.insertenemy('h9', _x + 213, _y + 320);
}
if (guncooldown6 == 0) {
guncooldown6 = 32;
_parent.insertenemy('h1', _x - 193, _y - 320);
_parent.insertenemy('h1', _x + 193, _y - 320);
_parent.insertenemy('h9', _x - 193, _y + 320);
_parent.insertenemy('h9', _x + 193, _y + 320);
}
if (guncooldown7 == 0) {
guncooldown7 = 32;
_parent.insertenemy('h1', _x - 173, _y - 320);
_parent.insertenemy('h1', _x + 173, _y - 320);
_parent.insertenemy('h9', _x - 173, _y + 320);
_parent.insertenemy('h9', _x + 173, _y + 320);
}
if (guncooldown8 == 0) {
guncooldown8 = 32;
_parent.insertenemy('h1', _x - 153, _y - 320);
_parent.insertenemy('h1', _x + 153, _y - 320);
_parent.insertenemy('h9', _x - 153, _y + 320);
_parent.insertenemy('h9', _x + 153, _y + 320);
}
if (guncooldown9 == 0) {
guncooldown9 = 32;
_parent.insertenemy('h1', _x, _y - 320);
_parent.insertenemy('h9', _x, _y + 320);
}
if (guncooldown10 == 0) {
guncooldown10 = 32;
_parent.insertenemy('h1', _x - 13, _y - 320);
_parent.insertenemy('h1', _x + 13, _y - 320);
_parent.insertenemy('h9', _x - 13, _y + 320);
_parent.insertenemy('h9', _x + 13, _y + 320);
}
if (guncooldown11 == 0) {
guncooldown11 = 32;
_parent.insertenemy('h1', _x - 33, _y - 320);
_parent.insertenemy('h1', _x + 33, _y - 320);
_parent.insertenemy('h9', _x - 33, _y + 320);
_parent.insertenemy('h9', _x + 33, _y + 320);
}
if (guncooldown12 == 0) {
guncooldown12 = 32;
_parent.insertenemy('h1', _x - 53, _y - 320);
_parent.insertenemy('h1', _x + 53, _y - 320);
_parent.insertenemy('h9', _x - 53, _y + 320);
_parent.insertenemy('h9', _x + 53, _y + 320);
}
if (guncooldown13 == 0) {
guncooldown13 = 32;
_parent.insertenemy('h1', _x - 73, _y - 320);
_parent.insertenemy('h1', _x + 73, _y - 320);
_parent.insertenemy('h9', _x - 73, _y + 320);
_parent.insertenemy('h9', _x + 73, _y + 320);
}
if (guncooldown14 == 0) {
guncooldown14 = 32;
_parent.insertenemy('h1', _x - 93, _y - 320);
_parent.insertenemy('h1', _x + 93, _y - 320);
_parent.insertenemy('h9', _x - 93, _y + 320);
_parent.insertenemy('h9', _x + 93, _y + 320);
}
if (guncooldown15 == 0) {
guncooldown15 = 32;
_parent.insertenemy('h1', _x - 113, _y - 320);
_parent.insertenemy('h1', _x + 113, _y - 320);
_parent.insertenemy('h9', _x - 113, _y + 320);
_parent.insertenemy('h9', _x + 113, _y + 320);
}
if (guncooldown16 == 0) {
guncooldown16 = 32;
_parent.insertenemy('h1', _x - 133, _y - 320);
_parent.insertenemy('h1', _x + 133, _y - 320);
_parent.insertenemy('h9', _x - 133, _y + 320);
_parent.insertenemy('h9', _x + 133, _y + 320);
}
}
stop();
health = 55;
guncooldown1 = 2;
guncooldown2 = 4;
guncooldown3 = 6;
guncooldown4 = 8;
guncooldown5 = 10;
guncooldown6 = 12;
guncooldown7 = 14;
guncooldown8 = 16;
guncooldown9 = 18;
guncooldown10 = 20;
guncooldown11 = 22;
guncooldown12 = 24;
guncooldown13 = 26;
guncooldown14 = 28;
guncooldown15 = 30;
guncooldown16 = 32;
}
frame 45 {
stop();
}
frame 46 {
guncooldown1 = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
guncooldown6 = 55555;
guncooldown7 = 55555;
guncooldown8 = 55555;
guncooldown9 = 55555;
guncooldown10 = 55555;
guncooldown11 = 55555;
guncooldown12 = 55555;
guncooldown13 = 55555;
guncooldown14 = 55555;
guncooldown15 = 55555;
guncooldown16 = 55555;
}
frame 47 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode5');
} else {
_parent.addpoints(55);
gotoAndPlay('hit5');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('j1', _x - 309, _y - 320);
_parent.insertenemy('j2', _x - 309, _y + 320);
_parent.insertenemy('j3', _x + 309, _y + 320);
_parent.insertenemy('j4', _x + 309, _y - 320);
}
}
stop();
health = 55;
guncooldown = 1;
}
frame 49 {
stop();
}
frame 50 {
guncooldown1 = 55555;
}
frame 51 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode6');
} else {
_parent.addpoints(55);
gotoAndPlay('hit6');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('k1', _x - 300, _y - 320);
_parent.insertenemy('k1', _x - 200, _y - 320);
_parent.insertenemy('k1', _x - 100, _y - 320);
_parent.insertenemy('k1', _x, _y - 320);
_parent.insertenemy('k1', _x + 100, _y - 320);
_parent.insertenemy('k1', _x + 200, _y - 320);
_parent.insertenemy('k1', _x + 300, _y - 320);
_parent.insertenemy('k2', _x - 300, _y + 320);
_parent.insertenemy('k2', _x - 200, _y + 320);
_parent.insertenemy('k2', _x - 100, _y + 320);
_parent.insertenemy('k2', _x, _y - 320);
_parent.insertenemy('k2', _x + 100, _y + 320);
_parent.insertenemy('k2', _x + 200, _y + 320);
_parent.insertenemy('k2', _x + 300, _y + 320);
}
}
stop();
health = 55;
guncooldown = 1;
}
frame 53 {
stop();
}
frame 54 {
guncooldown = 55555;
}
frame 55 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode7');
} else {
_parent.addpoints(55);
gotoAndPlay('hit7');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('k1', _x - 300, _y - 320);
_parent.insertenemy('k1', _x - 200, _y - 320);
_parent.insertenemy('k1', _x - 100, _y - 320);
_parent.insertenemy('k1', _x, _y - 320);
_parent.insertenemy('k1', _x + 100, _y - 320);
_parent.insertenemy('k1', _x + 200, _y - 320);
_parent.insertenemy('k1', _x + 300, _y - 320);
_parent.insertenemy('k2', _x - 300, _y + 320);
_parent.insertenemy('k2', _x - 200, _y + 320);
_parent.insertenemy('k2', _x - 100, _y + 320);
_parent.insertenemy('k2', _x, _y - 320);
_parent.insertenemy('k2', _x + 100, _y + 320);
_parent.insertenemy('k2', _x + 200, _y + 320);
_parent.insertenemy('k2', _x + 300, _y + 320);
_parent.insertenemy('j1', _x - 309, _y - 320);
_parent.insertenemy('j2', _x - 309, _y + 320);
_parent.insertenemy('j3', _x + 309, _y + 320);
_parent.insertenemy('j4', _x + 309, _y - 320);
}
}
stop();
health = 55;
guncooldown = 1;
}
frame 57 {
stop();
}
frame 58 {
guncooldown = 55555;
}
frame 120 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode8');
} else {
_parent.addpoints(55);
gotoAndPlay('hit8');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 35;
_parent.insertenemy('bosshinabulletpattern', _x, _y);
}
}
stop();
health = 57;
guncooldown = 1;
}
frame 122 {
stop();
}
frame 124 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode9');
} else {
_parent.addpoints(55);
gotoAndPlay('hit9');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 1;
_parent.insertenemy('bosshinapt9', _x, _y);
}
}
stop();
health = 57;
guncooldown = 1;
}
frame 126 {
stop();
}
frame 128 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
_parent.addtiem(-1);
gotoAndPlay('explode10');
} else {
_parent.addpoints(55);
gotoAndPlay('hit10');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown1;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--guncooldown5;
--guncooldown6;
--guncooldown7;
--guncooldown8;
--guncooldown9;
--guncooldown10;
--guncooldown11;
--guncooldown12;
--guncooldown13;
--guncooldown14;
--guncooldown15;
--guncooldown16;
--guncooldown17;
--guncooldown18;
--guncooldown19;
--guncooldown20;
--guncooldown21;
--guncooldown22;
--guncooldown23;
--guncooldown24;
--guncooldown25;
if (guncooldown1 == 0) {
guncooldown1 = 50;
_parent.insertenemy('c1', _x, _y);
_parent.insertenemy('c26', _x, _y);
_parent.insertenemy('c51', _x, _y);
_parent.insertenemy('c52', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 50;
_parent.insertenemy('c27', _x, _y);
_parent.insertenemy('c50', _x, _y);
_parent.insertenemy('c89', _x, _y);
_parent.insertenemy('c77', _x, _y);
_parent.insertenemy('c53', _x, _y);
_parent.insertenemy('c76', _x, _y);
_parent.insertenemy('c25', _x, _y);
_parent.insertenemy('c2', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 50;
_parent.insertenemy('c28', _x, _y);
_parent.insertenemy('c49', _x, _y);
_parent.insertenemy('c99', _x, _y);
_parent.insertenemy('c78', _x, _y);
_parent.insertenemy('c54', _x, _y);
_parent.insertenemy('c75', _x, _y);
_parent.insertenemy('c24', _x, _y);
_parent.insertenemy('c3', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 50;
_parent.insertenemy('c29', _x, _y);
_parent.insertenemy('c48', _x, _y);
_parent.insertenemy('c98', _x, _y);
_parent.insertenemy('c79', _x, _y);
_parent.insertenemy('c55', _x, _y);
_parent.insertenemy('c74', _x, _y);
_parent.insertenemy('c23', _x, _y);
_parent.insertenemy('c4', _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 50;
_parent.insertenemy('c30', _x, _y);
_parent.insertenemy('c47', _x, _y);
_parent.insertenemy('c97', _x, _y);
_parent.insertenemy('c80', _x, _y);
_parent.insertenemy('c56', _x, _y);
_parent.insertenemy('c73', _x, _y);
_parent.insertenemy('c22', _x, _y);
_parent.insertenemy('c5', _x, _y);
}
if (guncooldown6 == 0) {
guncooldown6 = 50;
_parent.insertenemy('c31', _x, _y);
_parent.insertenemy('c46', _x, _y);
_parent.insertenemy('c96', _x, _y);
_parent.insertenemy('c81', _x, _y);
_parent.insertenemy('c57', _x, _y);
_parent.insertenemy('c72', _x, _y);
_parent.insertenemy('c21', _x, _y);
_parent.insertenemy('c6', _x, _y);
}
if (guncooldown7 == 0) {
guncooldown7 = 50;
_parent.insertenemy('c32', _x, _y);
_parent.insertenemy('c45', _x, _y);
_parent.insertenemy('c95', _x, _y);
_parent.insertenemy('c82', _x, _y);
_parent.insertenemy('c58', _x, _y);
_parent.insertenemy('c71', _x, _y);
_parent.insertenemy('c20', _x, _y);
_parent.insertenemy('c7', _x, _y);
}
if (guncooldown8 == 0) {
guncooldown8 = 50;
_parent.insertenemy('c33', _x, _y);
_parent.insertenemy('c44', _x, _y);
_parent.insertenemy('c94', _x, _y);
_parent.insertenemy('c83', _x, _y);
_parent.insertenemy('c59', _x, _y);
_parent.insertenemy('c70', _x, _y);
_parent.insertenemy('c19', _x, _y);
_parent.insertenemy('c8', _x, _y);
}
if (guncooldown9 == 0) {
guncooldown9 = 50;
_parent.insertenemy('c34', _x, _y);
_parent.insertenemy('c43', _x, _y);
_parent.insertenemy('c93', _x, _y);
_parent.insertenemy('c84', _x, _y);
_parent.insertenemy('c60', _x, _y);
_parent.insertenemy('c69', _x, _y);
_parent.insertenemy('c18', _x, _y);
_parent.insertenemy('c9', _x, _y);
}
if (guncooldown10 == 0) {
guncooldown10 = 50;
_parent.insertenemy('c35', _x, _y);
_parent.insertenemy('c42', _x, _y);
_parent.insertenemy('c92', _x, _y);
_parent.insertenemy('c85', _x, _y);
_parent.insertenemy('c61', _x, _y);
_parent.insertenemy('c68', _x, _y);
_parent.insertenemy('c17', _x, _y);
_parent.insertenemy('c10', _x, _y);
}
if (guncooldown11 == 0) {
guncooldown11 = 50;
_parent.insertenemy('c36', _x, _y);
_parent.insertenemy('c41', _x, _y);
_parent.insertenemy('c91', _x, _y);
_parent.insertenemy('c86', _x, _y);
_parent.insertenemy('c62', _x, _y);
_parent.insertenemy('c67', _x, _y);
_parent.insertenemy('c16', _x, _y);
_parent.insertenemy('c11', _x, _y);
}
if (guncooldown12 == 0) {
guncooldown12 = 50;
_parent.insertenemy('c37', _x, _y);
_parent.insertenemy('c40', _x, _y);
_parent.insertenemy('c90', _x, _y);
_parent.insertenemy('c87', _x, _y);
_parent.insertenemy('c63', _x, _y);
_parent.insertenemy('c66', _x, _y);
_parent.insertenemy('c15', _x, _y);
_parent.insertenemy('c12', _x, _y);
}
if (guncooldown13 == 0) {
guncooldown13 = 50;
_parent.insertenemy('c38', _x, _y);
_parent.insertenemy('c39', _x, _y);
_parent.insertenemy('c88', _x, _y);
_parent.insertenemy('c88', _x, _y);
_parent.insertenemy('c64', _x, _y);
_parent.insertenemy('c65', _x, _y);
_parent.insertenemy('c14', _x, _y);
_parent.insertenemy('c13', _x, _y);
}
if (guncooldown14 == 0) {
guncooldown14 = 50;
_parent.insertenemy('c39', _x, _y);
_parent.insertenemy('c38', _x, _y);
_parent.insertenemy('c87', _x, _y);
_parent.insertenemy('c90', _x, _y);
_parent.insertenemy('c65', _x, _y);
_parent.insertenemy('c64', _x, _y);
_parent.insertenemy('c13', _x, _y);
_parent.insertenemy('c14', _x, _y);
}
if (guncooldown15 == 0) {
guncooldown15 = 50;
_parent.insertenemy('c40', _x, _y);
_parent.insertenemy('c37', _x, _y);
_parent.insertenemy('c86', _x, _y);
_parent.insertenemy('c91', _x, _y);
_parent.insertenemy('c66', _x, _y);
_parent.insertenemy('c63', _x, _y);
_parent.insertenemy('c12', _x, _y);
_parent.insertenemy('c15', _x, _y);
}
if (guncooldown16 == 0) {
guncooldown16 = 50;
_parent.insertenemy('c41', _x, _y);
_parent.insertenemy('c36', _x, _y);
_parent.insertenemy('c85', _x, _y);
_parent.insertenemy('c92', _x, _y);
_parent.insertenemy('c67', _x, _y);
_parent.insertenemy('c62', _x, _y);
_parent.insertenemy('c11', _x, _y);
_parent.insertenemy('c16', _x, _y);
}
if (guncooldown17 == 0) {
guncooldown17 = 50;
_parent.insertenemy('c42', _x, _y);
_parent.insertenemy('c35', _x, _y);
_parent.insertenemy('c84', _x, _y);
_parent.insertenemy('c93', _x, _y);
_parent.insertenemy('c68', _x, _y);
_parent.insertenemy('c61', _x, _y);
_parent.insertenemy('c10', _x, _y);
_parent.insertenemy('c17', _x, _y);
}
if (guncooldown18 == 0) {
guncooldown18 = 50;
_parent.insertenemy('c43', _x, _y);
_parent.insertenemy('c34', _x, _y);
_parent.insertenemy('c83', _x, _y);
_parent.insertenemy('c94', _x, _y);
_parent.insertenemy('c69', _x, _y);
_parent.insertenemy('c60', _x, _y);
_parent.insertenemy('c9', _x, _y);
_parent.insertenemy('c18', _x, _y);
}
if (guncooldown19 == 0) {
guncooldown19 = 50;
_parent.insertenemy('c44', _x, _y);
_parent.insertenemy('c33', _x, _y);
_parent.insertenemy('c82', _x, _y);
_parent.insertenemy('c95', _x, _y);
_parent.insertenemy('c70', _x, _y);
_parent.insertenemy('c59', _x, _y);
_parent.insertenemy('c8', _x, _y);
_parent.insertenemy('c19', _x, _y);
}
if (guncooldown20 == 0) {
guncooldown20 = 50;
_parent.insertenemy('c45', _x, _y);
_parent.insertenemy('c32', _x, _y);
_parent.insertenemy('c81', _x, _y);
_parent.insertenemy('c96', _x, _y);
_parent.insertenemy('c71', _x, _y);
_parent.insertenemy('c58', _x, _y);
_parent.insertenemy('c7', _x, _y);
_parent.insertenemy('c20', _x, _y);
}
if (guncooldown21 == 0) {
guncooldown21 = 50;
_parent.insertenemy('c46', _x, _y);
_parent.insertenemy('c31', _x, _y);
_parent.insertenemy('c80', _x, _y);
_parent.insertenemy('c97', _x, _y);
_parent.insertenemy('c72', _x, _y);
_parent.insertenemy('c57', _x, _y);
_parent.insertenemy('c6', _x, _y);
_parent.insertenemy('c21', _x, _y);
}
if (guncooldown22 == 0) {
guncooldown22 = 50;
_parent.insertenemy('c47', _x, _y);
_parent.insertenemy('c30', _x, _y);
_parent.insertenemy('c79', _x, _y);
_parent.insertenemy('c98', _x, _y);
_parent.insertenemy('c73', _x, _y);
_parent.insertenemy('c56', _x, _y);
_parent.insertenemy('c5', _x, _y);
_parent.insertenemy('c22', _x, _y);
}
if (guncooldown23 == 0) {
guncooldown23 = 50;
_parent.insertenemy('c48', _x, _y);
_parent.insertenemy('c29', _x, _y);
_parent.insertenemy('c78', _x, _y);
_parent.insertenemy('c99', _x, _y);
_parent.insertenemy('c74', _x, _y);
_parent.insertenemy('c55', _x, _y);
_parent.insertenemy('c4', _x, _y);
_parent.insertenemy('c234', _x, _y);
}
if (guncooldown24 == 0) {
guncooldown24 = 50;
_parent.insertenemy('c49', _x, _y);
_parent.insertenemy('c28', _x, _y);
_parent.insertenemy('c77', _x, _y);
_parent.insertenemy('c89', _x, _y);
_parent.insertenemy('c75', _x, _y);
_parent.insertenemy('c54', _x, _y);
_parent.insertenemy('c3', _x, _y);
_parent.insertenemy('c24', _x, _y);
}
if (guncooldown25 == 0) {
guncooldown25 = 50;
_parent.insertenemy('c50', _x, _y);
_parent.insertenemy('c27', _x, _y);
_parent.insertenemy('c77', _x, _y);
_parent.insertenemy('c89', _x, _y);
_parent.insertenemy('c76', _x, _y);
_parent.insertenemy('c53', _x, _y);
_parent.insertenemy('c2', _x, _y);
_parent.insertenemy('c25', _x, _y);
}
}
stop();
health = 51;
guncooldown1 = 2;
guncooldown2 = 4;
guncooldown3 = 6;
guncooldown4 = 8;
guncooldown5 = 10;
guncooldown6 = 12;
guncooldown7 = 14;
guncooldown8 = 16;
guncooldown9 = 18;
guncooldown10 = 20;
guncooldown11 = 22;
guncooldown12 = 24;
guncooldown13 = 26;
guncooldown14 = 28;
guncooldown15 = 30;
guncooldown16 = 32;
guncooldown17 = 34;
guncooldown18 = 36;
guncooldown19 = 38;
guncooldown20 = 40;
guncooldown21 = 42;
guncooldown22 = 44;
guncooldown23 = 46;
guncooldown24 = 48;
guncooldown25 = 50;
}
frame 130 {
stop();
}
frame 131 {
guncooldowna = 55555;
guncooldown1 = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
guncooldown6 = 55555;
guncooldown7 = 55555;
guncooldown8 = 55555;
guncooldown9 = 55555;
guncooldown10 = 55555;
guncooldown11 = 55555;
guncooldown12 = 55555;
guncooldown13 = 55555;
guncooldown14 = 55555;
guncooldown15 = 55555;
guncooldown16 = 55555;
guncooldown17 = 55555;
guncooldown18 = 55555;
guncooldown19 = 55555;
guncooldown20 = 55555;
guncooldown21 = 55555;
guncooldown22 = 55555;
guncooldown23 = 55555;
guncooldown24 = 55555;
guncooldown25 = 55555;
}
frame 132 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 133 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 134 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 135 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 136 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 137 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 138 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 139 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 140 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 141 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 142 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 143 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 144 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 145 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 146 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 147 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 148 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 149 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 150 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 151 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 152 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 153 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 154 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 155 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 156 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 157 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 158 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 159 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 160 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 161 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 162 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 163 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 164 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 165 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 166 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 167 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 168 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 169 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 170 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 171 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 172 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 173 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 174 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 175 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 176 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 177 {
guncooldowna = 55555;
guncooldown1 = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
guncooldown6 = 55555;
guncooldown7 = 55555;
guncooldown8 = 55555;
guncooldown9 = 55555;
guncooldown10 = 55555;
guncooldown11 = 55555;
guncooldown12 = 55555;
guncooldown13 = 55555;
guncooldown14 = 55555;
guncooldown15 = 55555;
guncooldown16 = 55555;
guncooldown17 = 55555;
guncooldown18 = 55555;
guncooldown19 = 55555;
guncooldown20 = 55555;
guncooldown21 = 55555;
guncooldown22 = 55555;
guncooldown23 = 55555;
guncooldown24 = 55555;
guncooldown25 = 55555;
}
frame 178 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 179 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 180 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 181 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 182 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 183 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 184 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 185 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 186 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 187 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 188 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 189 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 190 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 191 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 192 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 193 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 194 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 195 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 196 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 197 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 198 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 199 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 200 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 201 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 202 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 203 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 204 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 205 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 206 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 207 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 208 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 209 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 210 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 211 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 212 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 213 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 214 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 215 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 216 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 217 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 218 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 219 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 220 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 221 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 222 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 223 {
guncooldowna = 55555;
guncooldown1 = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
guncooldown6 = 55555;
guncooldown7 = 55555;
guncooldown8 = 55555;
guncooldown9 = 55555;
guncooldown10 = 55555;
guncooldown11 = 55555;
guncooldown12 = 55555;
guncooldown13 = 55555;
guncooldown14 = 55555;
guncooldown15 = 55555;
guncooldown16 = 55555;
guncooldown17 = 55555;
guncooldown18 = 55555;
guncooldown19 = 55555;
guncooldown20 = 55555;
guncooldown21 = 55555;
guncooldown22 = 55555;
guncooldown23 = 55555;
guncooldown24 = 55555;
guncooldown25 = 55555;
}
frame 224 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 225 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 226 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 227 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 228 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 229 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 230 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 231 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 232 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 233 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 234 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 235 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 236 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 237 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 238 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 239 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 240 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 241 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 242 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 243 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 244 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 245 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 246 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 247 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 248 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 249 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 250 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 251 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 252 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 253 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 254 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 255 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 256 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 257 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 258 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 259 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 260 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 261 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 262 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 263 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 264 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 265 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 266 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 267 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 268 {
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
_parent.insertenemy('explodep', _x, _y);
}
frame 286 {
stop();
}
frame 287 {
stop();
}
frame 288 {
stop();
}
}
movieClip 806 {
}
movieClip 807 {
frame 10 {
gotoAndPlay(1);
}
}
movieClip 810 {
}
movieClip 819 bossxicompasses {
frame 1 {
_x = 313;
_y = 325;
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 20) {
gotoAndStop('explode2');
}
};
}
frame 95 {
randomattack = int(random(10));
if (randomattack == 0) {
gotoAndPlay('c1');
}
if (randomattack == 1) {
gotoAndPlay('c2');
}
if (randomattack == 2) {
gotoAndPlay('c3');
}
if (randomattack == 3) {
gotoAndPlay('c4');
}
if (randomattack == 4) {
gotoAndPlay('c5');
}
if (randomattack == 5) {
gotoAndPlay('c6');
}
if (randomattack == 6) {
gotoAndPlay('c7');
}
if (randomattack == 7) {
gotoAndPlay('c8');
}
if (randomattack == 8) {
gotoAndPlay('c9');
}
if (randomattack == 9) {
gotoAndPlay('c10');
}
}
frame 96 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3);
}
}
}
frame 196 {
gotoAndPlay('cstart');
}
frame 197 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3);
}
}
}
frame 297 {
gotoAndPlay('cstart');
}
frame 298 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3);
}
}
}
frame 398 {
gotoAndPlay('cstart');
}
frame 399 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3);
}
}
}
frame 499 {
gotoAndPlay('cstart');
}
frame 500 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3);
}
}
}
frame 600 {
gotoAndPlay('cstart');
}
frame 601 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 3);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 3);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 3);
}
}
}
frame 701 {
gotoAndPlay('cstart');
}
frame 702 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 1.5);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 1.5);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 1.5);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 1.5);
}
}
}
frame 802 {
gotoAndPlay('cstart');
}
frame 803 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 1.5);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 1.5);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 1.5);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 1.5);
}
}
}
frame 903 {
gotoAndPlay('cstart');
}
frame 904 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 1.5);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 1.5);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 1.5);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 1.5);
}
}
}
frame 1004 {
gotoAndPlay('cstart');
}
frame 1005 {
function enemyaction() {
if (s1.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.min(Stage.width - _parent.ship._width / 2, _parent.ship._x + 1.5);
}
if (s2.hitTest(_parent.ship.hitarea)) {
_parent.ship._x = Math.max(_parent.ship._width / 2, _parent.ship._x - 1.5);
}
if (s3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 1.5);
}
if (s4.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.min(Stage.height - _parent.ship._height, _parent.ship._y + 1.5);
}
}
}
frame 1105 {
gotoAndPlay('cstart');
}
frame 1106 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 20) {
stop();
}
};
}
frame 1107 {
stop();
}
}
movieClip 821 {
}
movieClip 822 bossxibullet {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 13;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
onEnterFrame = function () {
if (_parent.tiem == 20) {
gotoAndStop('explode2');
}
};
}
frame 2 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 20) {
stop();
}
};
}
frame 3 {
stop();
}
}
movieClip 825 {
frame 25 {
gotoAndPlay(1);
}
}
movieClip 830 {
}
movieClip 832 {
}
movieClip 835 {
}
movieClip 838 bossxipillar {
frame 1 {
_x = 313;
_y = 325;
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 20) {
gotoAndStop('explode2');
}
};
}
frame 66 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 90 {
randomattack = int(random(6));
if (randomattack == 0) {
gotoAndPlay('f1');
}
if (randomattack == 1) {
gotoAndPlay('f2');
}
if (randomattack == 2) {
gotoAndPlay('f3');
}
if (randomattack == 3) {
gotoAndPlay('f4');
}
if (randomattack == 4) {
gotoAndPlay('f5');
}
if (randomattack == 5) {
gotoAndPlay('f6');
}
}
frame 121 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (l1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 141 {
gotoAndPlay('fluff');
}
frame 172 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (l2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 192 {
gotoAndPlay('fluff');
}
frame 223 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (l3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 243 {
gotoAndPlay('fluff');
}
frame 274 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (l4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 294 {
gotoAndPlay('fluff');
}
frame 325 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (l5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 345 {
gotoAndPlay('fluff');
}
frame 376 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (l6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 396 {
gotoAndPlay('fluff');
}
frame 397 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 20) {
stop();
}
};
}
frame 398 {
stop();
}
}
movieClip 850 {
}
movieClip 851 {
}
movieClip 862 {
frame 9 {
stop();
}
}
movieClip 863 {
frame 9 {
stop();
}
}
movieClip 864 {
frame 9 {
stop();
}
}
movieClip 866 {
frame 1 {
volume = _root.music.getVolume();
if (volume > 0) {
volume -= 1;
_root.music.setVolume(volume);
} else {
stop();
_root.music.stop();
}
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 867 bossxi {
frame 1 {
this.swapDepths(-5);
_x = 313;
_y = 63;
}
frame 66 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(10000);
_parent.addtiem(-5);
gotoAndPlay('explode');
} else {
_parent.addpoints(25);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 10;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (p9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_x > Stage.width) {
_x = 5;
}
if (_x < 4) {
_x = Stage.width - 5;
}
if (_y > Stage.height) {
_y = 5;
}
if (_y < 4) {
_y = Stage.height - 5;
}
--time2;
--time3;
--guncooldown;
if (guncooldown == 0) {
guncooldown = 13;
_parent.insertenemy('bossxibullet', _x - 0.2, _y + 18);
}
if (moveright) {
_x = _x + 10;
if (_x > startx + maxdist) {
moveright = false;
}
} else {
_x = _x - 10;
if (_x < startx - maxdist) {
moveright = true;
}
}
if (time2 == 0) {
_y = _y + 10;
time2 = 140;
time3 = 70;
}
if (time3 < 70 && time2 > 0) {
_y = _y - 5;
}
if (time3 == 0) {
_y = _y - 5;
time2 = 70;
time3 = 140;
}
if (time2 < 70 && time3 > 0) {
_y = _y + 10;
}
}
stop();
health = 113;
moveright = true;
time2 = 70;
time3 = 0;
maxdist = 160;
startx = _x;
guncooldown = 13;
}
frame 68 {
stop();
}
frame 69 {
function enemyaction() {
if (_x > Stage.width) {
_x = _x;
}
if (_x < 4) {
_x = _x;
}
if (_y > Stage.height) {
_y = _y;
}
if (_y < 4) {
_y = _y;
}
--time2;
--time3;
if (moveright) {
_x = _x + 0;
if (_x > startx + maxdist) {
moveright = false;
}
} else {
_x = _x - 0;
if (_x < startx - maxdist) {
moveright = true;
}
}
if (time2 == 0) {
_y = _y + 0;
time2 = 140;
time3 = 70;
}
if (time3 < 70 && time2 > 0) {
_y = _y - 0;
}
if (time3 == 0) {
_y = _y - 0;
time2 = 70;
time3 = 140;
}
if (time2 < 70 && time3 > 0) {
_y = _y + 0;
}
}
moveright = true;
time2 = 70;
time3 = 0;
maxdist = 160;
startx = _x;
}
frame 95 {
_x = 313;
_y = 200;
}
frame 96 {
_parent.insertenemy('bossxiwhiteout', _x, _y);
}
frame 213 {
volume = _root.music.getVolume();
if (volume <= 99) {
volume = 100;
_root.music.setVolume(volume);
} else {
stop();
_root.music.stop();
}
}
frame 214 {
stopAllSounds();
}
frame 215 {
_parent.insertenemy('bosshtitle', _x, _y);
}
frame 315 {
_parent.insertenemy('bosshina', _x, _y);
}
frame 317 {
stop();
}
frame 318 {
stop();
}
}
movieClip 872 {
}
movieClip 877 {
}
movieClip 878 {
}
movieClip 879 bosshavoce2 {
frame 1 {
_x = 315.1;
_y = 488.5;
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 32 {
randomattack = int(random(3));
if (randomattack == 0) {
gotoAndPlay('1');
}
if (randomattack == 1) {
gotoAndPlay('2');
}
if (randomattack == 2) {
gotoAndPlay('3');
}
}
frame 33 {
function enemyaction() {
if (e7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 63 {
gotoAndPlay(32);
}
frame 64 {
function enemyaction() {
if (e8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 94 {
gotoAndPlay(32);
}
frame 95 {
function enemyaction() {
if (e9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 125 {
gotoAndPlay(32);
}
frame 126 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 127 {
stop();
}
}
movieClip 884 {
}
movieClip 889 {
}
movieClip 890 bosshavoce1 {
frame 1 {
_x = 313.9;
_y = 204.1;
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 32 {
function enemyaction() {
if (e1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (e2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (e3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 87 {
function enemyaction() {
if (e4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (e5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (e6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 142 {
gotoAndPlay(31);
}
frame 143 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 144 {
stop();
}
}
movieClip 893 {
}
movieClip 896 {
}
movieClip 898 {
}
movieClip 899 bosshavoclaser2a {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 30 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r10.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r11.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r12.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r13.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r14.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r15.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r16.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r17.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r18.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r19.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r20.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r21.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r22.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r23.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r24.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r25.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r26.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r27.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r28.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r29.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r30.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r31.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r32.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 50 {
stop();
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 51 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 52 {
stop();
}
}
movieClip 900 {
}
movieClip 902 bosshavoclaser1a {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 30 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r10.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r11.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r12.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r13.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r14.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r15.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r16.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r17.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r18.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r19.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r20.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r21.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r22.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r23.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r24.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r25.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r26.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r27.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r28.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r29.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r30.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r31.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r32.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 50 {
stop();
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 51 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 52 {
stop();
}
}
movieClip 905 {
}
movieClip 906 {
frame 40 {
gotoAndPlay(1);
}
}
movieClip 907 bosshavocbullet {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 15;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 2 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 3 {
stop();
}
}
movieClip 910 {
}
movieClip 912 bosshavoclaser2 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 30 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r10.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r11.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r12.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r13.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r14.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r15.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r16.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r17.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r18.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r19.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r20.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r21.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r22.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r23.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r24.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r25.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r26.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r27.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r28.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r29.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r30.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r31.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r32.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 50 {
stop();
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 51 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 52 {
stop();
}
}
movieClip 915 {
}
movieClip 917 bosshavoclaser1 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
}
movespeed = 0;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 30 {
function enemyaction() {
if (r1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r5.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r6.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r7.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r8.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r9.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r10.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r11.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r12.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r13.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r14.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r15.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r16.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r17.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r18.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r19.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r20.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r21.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r22.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r23.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r24.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r25.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r26.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r27.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r28.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r29.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r30.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r31.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (r32.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 50 {
stop();
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 51 {
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
frame 52 {
stop();
}
}
movieClip 919 bosshavoccontainer {
frame 1 {
_parent.insertenemy('bosshavoc', this.getNextHighestDepth());
}
frame 2 {
stop();
}
}
movieClip 924 {
}
movieClip 925 {
}
movieClip 929 {
}
movieClip 930 {
}
movieClip 933 {
}
movieClip 936 {
}
movieClip 941 {
}
movieClip 942 {
}
movieClip 947 {
}
movieClip 948 {
}
movieClip 952 {
frame 200 {
gotoAndPlay(1);
}
}
movieClip 955 {
}
movieClip 956 {
}
movieClip 957 {
}
movieClip 958 {
frame 30 {
gotoAndPlay(1);
}
}
movieClip 964 {
}
movieClip 969 {
}
movieClip 970 {
}
movieClip 971 {
}
movieClip 972 {
}
movieClip 978 {
frame 16 {
gotoAndPlay(1);
}
}
movieClip 979 bosshavoc {
frame 1 {
this.swapDepths(-5);
_x = 313;
_y = 325;
}
frame 31 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(10000);
_parent.addtiem(-5);
gotoAndPlay('explode');
} else {
_parent.addpoints(25);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (a1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (a2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (a3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (a4.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--guncooldown5;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('bosshavocbullet', _x, _y - 70);
}
if (guncooldown2 == 0) {
guncooldown2 = 124;
_parent.insertenemy('bosshavoclaser1a', _x - 260, _y - 292);
}
if (guncooldown3 == 0) {
guncooldown3 = 124;
_parent.insertenemy('bosshavoclaser1', _x + 265, _y + 295);
}
if (guncooldown4 == 0) {
guncooldown4 = 124;
_parent.insertenemy('bosshavoclaser2a', _x - 260, _y + 295);
}
if (guncooldown5 == 0) {
guncooldown5 = 124;
_parent.insertenemy('bosshavoclaser2', _x + 265, _y - 292);
}
}
stop();
health = 175;
guncooldown = 15;
guncooldown2 = 31;
guncooldown3 = 62;
guncooldown4 = 93;
guncooldown5 = 124;
}
frame 33 {
stop();
}
frame 34 {
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
}
frame 60 {
stop();
}
}
movieClip 991 {
frame 1 {
randomattack = int(random(11));
if (randomattack == 0) {
gotoAndStop('a');
}
if (randomattack == 1) {
gotoAndStop('b');
}
if (randomattack == 2) {
gotoAndStop('c');
}
if (randomattack == 3) {
gotoAndStop('d');
}
if (randomattack == 4) {
gotoAndStop('e');
}
if (randomattack == 5) {
gotoAndStop('f');
}
if (randomattack == 6) {
gotoAndStop('g');
}
if (randomattack == 7) {
gotoAndStop('h');
}
if (randomattack == 8) {
gotoAndStop('i');
}
if (randomattack == 9) {
gotoAndStop('j');
}
if (randomattack == 10) {
gotoAndStop('k');
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
}
movieClip 992 {
frame 1 {
randomattack = int(random(2));
if (randomattack == 0) {
gotoAndStop('a1');
}
if (randomattack == 1) {
gotoAndStop('b1');
}
}
instance of movieClip 991 {
onClipEvent (enterFrame) {
this._rotation += 15;
}
}
instance of movieClip 991 {
onClipEvent (enterFrame) {
this._rotation -= 15;
}
}
frame 4 {
gotoAndPlay(1);
}
}
movieClip 993 foebullet16a {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y + 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 994 foebullet15a {
frame 1 {
function enemyaction() {
_x = _x - 6;
_y = _y + 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 995 foebullet14a {
frame 1 {
function enemyaction() {
_x = _x - 8;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 996 foebullet13a {
frame 1 {
function enemyaction() {
_x = _x - 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 997 foebullet12a {
frame 1 {
function enemyaction() {
_x = _x - 8;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 998 foebullet11a {
frame 1 {
function enemyaction() {
_x = _x - 6;
_y = _y - 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 999 foebullet10a {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y - 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1000 foebullet9a {
frame 1 {
function enemyaction() {
_y = _y - 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1001 foebullet8a {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y - 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1002 foebullet7a {
frame 1 {
function enemyaction() {
_x = _x + 6;
_y = _y - 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1003 foebullet6a {
frame 1 {
function enemyaction() {
_x = _x + 8;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1004 foebullet5a {
frame 1 {
function enemyaction() {
_x = _x + 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1005 foebullet4a {
frame 1 {
function enemyaction() {
_x = _x + 8;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1006 foebullet3a {
frame 1 {
function enemyaction() {
_x = _x + 6;
_y = _y + 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1007 foebullet2a {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y + 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1008 foebullet1a {
frame 1 {
function enemyaction() {
_y = _y + 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1009 {
}
movieClip 1011 {
}
movieClip 1012 bossfoeabduction {
frame 1 {
function enemyaction() {
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.ship._y = Math.max(0, _parent.ship._y - 3);
}
}
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
_x = 313;
_y = 145.4;
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1014 {
}
movieClip 1017 {
}
movieClip 1020 {
}
movieClip 1024 {
}
movieClip 1027 {
}
movieClip 1029 {
frame 21 {
gotoAndPlay(1);
}
}
movieClip 1030 fuzzy {
frame 1 {
_y = 200;
}
frame 55 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_x = _x + 1;
_y = _y + 20;
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_x > Stage.width) {
_x = 5;
}
if (_x < 4) {
_x = Stage.width - 5;
}
if (_y > Stage.height) {
_y = 5;
}
if (_y < 4) {
_y = Stage.height - 5;
}
}
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
health = 55555;
startx = _x;
}
frame 57 {
stop();
}
frame 78 {
stop();
}
}
movieClip 1031 f1eboss {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(0);
gotoAndPlay('explode');
} else {
_parent.addpoints(0);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
if (guncooldown == 0) {
guncooldown = 80;
_parent.insertenemy('foebullet3a', _x, _y);
_parent.insertenemy('foebullet7a', _x, _y);
_parent.insertenemy('foebullet11a', _x, _y);
_parent.insertenemy('foebullet15a', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 80;
_parent.insertenemy('foebullet2a', _x, _y);
_parent.insertenemy('foebullet4a', _x, _y);
_parent.insertenemy('foebullet6a', _x, _y);
_parent.insertenemy('foebullet8a', _x, _y);
_parent.insertenemy('foebullet10a', _x, _y);
_parent.insertenemy('foebullet12a', _x, _y);
_parent.insertenemy('foebullet14a', _x, _y);
_parent.insertenemy('foebullet16a', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 80;
_parent.insertenemy('foebullet1a', _x, _y);
_parent.insertenemy('foebullet5a', _x, _y);
_parent.insertenemy('foebullet9a', _x, _y);
_parent.insertenemy('foebullet13a', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 80;
_parent.insertenemy('foebullet2a', _x, _y);
_parent.insertenemy('foebullet4a', _x, _y);
_parent.insertenemy('foebullet6a', _x, _y);
_parent.insertenemy('foebullet8a', _x, _y);
_parent.insertenemy('foebullet10a', _x, _y);
_parent.insertenemy('foebullet12a', _x, _y);
_parent.insertenemy('foebullet14a', _x, _y);
_parent.insertenemy('foebullet16a', _x, _y);
}
}
stop();
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
health = 1;
startx = _x;
guncooldown = 20;
guncooldown2 = 40;
guncooldown3 = 60;
guncooldown4 = 80;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
}
frame 24 {
stop();
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
}
frame 25 {
stop();
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
}
frame 26 {
stop();
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
}
}
movieClip 1039 {
frame 21 {
gotoAndPlay(1);
}
}
movieClip 1041 {
}
movieClip 1042 bossfoemain {
frame 1 {
_x = 313;
_y = 46.3;
}
frame 32 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(10000);
_parent.addtiem(-5);
gotoAndPlay('explode');
} else {
_parent.addpoints(25);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (moveright) {
_x = _x + 2;
if (_x > startx + maxdist) {
moveright = false;
}
} else {
_x = _x - 2;
if (_x < startx - maxdist) {
moveright = true;
}
}
}
stop();
health = 155;
moveright = true;
maxdist = 50;
startx = _x;
}
frame 34 {
stop();
}
frame 35 {
function enemyaction() {
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
if (_parent.ship._y > _y) {
_y = _y + 0;
} else {
_y = _y - 0;
}
}
}
frame 136 {
stop();
}
}
movieClip 1043 bossfoeenemy2 {
frame 1 {
_x = 547.7000000000001;
_y = -50;
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 2 {
_parent.insertenemy('f1eboss', _x, _y);
}
frame 100 {
gotoAndPlay(1);
}
frame 101 {
stop();
}
frame 102 {
stop();
}
frame 103 {
stop();
}
}
movieClip 1044 bossfoeenemy1 {
frame 1 {
_x = 77.7;
_y = -50;
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndStop('explode2');
}
};
}
frame 2 {
_parent.insertenemy('f1eboss', _x, _y);
}
frame 100 {
gotoAndPlay(1);
}
frame 101 {
stop();
}
frame 102 {
stop();
}
frame 103 {
stop();
}
}
movieClip 1045 bossfoebullet {
frame 1 {
function enemyaction() {
_y = _y + 15;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(0);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1048 {
}
movieClip 1051 {
}
movieClip 1052 {
}
movieClip 1053 {
}
movieClip 1054 {
frame 21 {
stop();
}
}
movieClip 1055 {
frame 21 {
stop();
}
}
movieClip 1056 bossfoe {
frame 1 {
_x = 313;
_y = 63;
}
frame 1 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
}
frame 31 {
randomattack = int(random(22));
if (randomattack == 0) {
gotoAndPlay('1');
}
if (randomattack == 1) {
gotoAndPlay('2');
}
if (randomattack == 2) {
gotoAndPlay('3');
}
if (randomattack == 3) {
gotoAndPlay('4');
}
if (randomattack == 4) {
gotoAndPlay('5');
}
if (randomattack == 5) {
gotoAndPlay('6');
}
if (randomattack == 6) {
gotoAndPlay('7');
}
if (randomattack == 7) {
gotoAndPlay('8');
}
if (randomattack == 8) {
gotoAndPlay('9');
}
if (randomattack == 9) {
gotoAndPlay('10');
}
if (randomattack == 10) {
gotoAndPlay('11');
}
if (randomattack == 11) {
gotoAndPlay('12');
}
if (randomattack == 12) {
gotoAndPlay('13');
}
if (randomattack == 13) {
gotoAndPlay('14');
}
if (randomattack == 14) {
gotoAndPlay('15');
}
if (randomattack == 15) {
gotoAndPlay('16');
}
if (randomattack == 16) {
gotoAndPlay('17');
}
if (randomattack == 17) {
gotoAndPlay('18');
}
if (randomattack == 18) {
gotoAndPlay('19');
}
if (randomattack == 19) {
gotoAndPlay('20');
}
if (randomattack == 20) {
gotoAndPlay('21');
}
if (randomattack == 21) {
gotoAndPlay('22');
}
}
frame 31 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
}
frame 32 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 152, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 36 {
gotoAndPlay(31);
}
frame 37 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 142, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 41 {
gotoAndPlay(31);
}
frame 42 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 132, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 46 {
gotoAndPlay(31);
}
frame 47 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 122, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 51 {
gotoAndPlay(31);
}
frame 52 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 112, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 56 {
gotoAndPlay(31);
}
frame 57 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 102, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 61 {
gotoAndPlay(31);
}
frame 62 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 92, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 66 {
gotoAndPlay(31);
}
frame 67 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 82, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 71 {
gotoAndPlay(31);
}
frame 72 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 72, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 76 {
gotoAndPlay(31);
}
frame 77 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 62, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 81 {
gotoAndPlay(31);
}
frame 82 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x - 52, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 86 {
gotoAndPlay(31);
}
frame 87 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 152, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 91 {
gotoAndPlay(31);
}
frame 92 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 142, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 96 {
gotoAndPlay(31);
}
frame 97 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 132, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 101 {
gotoAndPlay(31);
}
frame 102 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 122, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 106 {
gotoAndPlay(31);
}
frame 107 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 112, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 111 {
gotoAndPlay(31);
}
frame 112 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 102, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 116 {
gotoAndPlay(31);
}
frame 117 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 92, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 121 {
gotoAndPlay(31);
}
frame 122 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 82, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 126 {
gotoAndPlay(31);
}
frame 127 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 72, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 131 {
gotoAndPlay(31);
}
frame 132 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 62, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 136 {
gotoAndPlay(31);
}
frame 137 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (d3.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 555;
_parent.insertenemy('bossfoebullet', _x + 52, _y + 47);
}
}
health = 1;
startx = _x;
guncooldown = 1;
}
frame 141 {
gotoAndPlay(31);
}
frame 142 {
gotoAndPlay(31);
}
frame 143 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
play();
}
};
guncooldown = 55555;
}
frame 144 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
play();
}
};
}
frame 162 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
play();
}
};
}
frame 182 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
play();
}
};
}
frame 202 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
play();
}
};
}
frame 203 {
stop();
}
frame 203 {
onEnterFrame = function () {
if (_parent.tiem == 0) {
stop();
}
};
}
}
movieClip 1059 {
}
movieClip 1060 {
frame 40 {
gotoAndPlay(1);
}
}
movieClip 1061 boss3bullet2 {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
movespeed = 10;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
}
}
movieClip 1062 f3 {
frame 16 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(555);
gotoAndPlay('explode');
} else {
_parent.addpoints(55);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
if (_parent.ship._y > _y) {
_y = _y + 2;
} else {
_y = _y - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('foefocusbullet', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 1;
}
frame 17 {
guncooldown = 55555;
}
frame 37 {
stop();
}
}
movieClip 1067 {
}
button 1068 {
on (press) {
stopAllSounds();
_parent.gotoAndPlay('mainsound');
this.removeMovieClip();
}
}
movieClip 1075 {
}
movieClip 1076 dimensionzcompletelun {
frame 1 {
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore('scorecxi3', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('d55zl55m5', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
}
movieClip 1081 {
}
movieClip 1084 {
}
button 1085 {
on (press) {
_parent.gotoAndStop('dimensionzlun');
this.removeMovieClip();
}
}
button 1086 {
on (press) {
_parent.gotoAndPlay('mainsound');
this.removeMovieClip();
}
}
movieClip 1089 {
}
movieClip 1090 dimensionycompletelun {
frame 1 {
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore('scorecxi2', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('dimylc5m5', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
}
movieClip 1095 {
}
button 1096 {
on (press) {
_parent.gotoAndStop('dimensionylun');
this.removeMovieClip();
}
}
movieClip 1099 {
}
movieClip 1100 dimensionxcompletelun {
frame 1 {
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore('scorecxi1', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('dimxlcom5', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
}
movieClip 1105 {
}
button 1106 {
on (press) {
stopAllSounds();
_parent.gotoAndPlay('weeretry');
this.removeMovieClip();
}
}
movieClip 1119 lost4 {
frame 1 {
stopAllSounds();
_x = 313;
_y = 225;
}
frame 2 {
mySoundls = new Sound();
mySoundls.attachSound('lostgame');
mySoundls.start(0, 0);
_x = 313;
_y = 225;
}
frame 7 {
gotoAndPlay(5);
}
}
movieClip 1134 lost3 {
frame 1 {
stopAllSounds();
_x = 313;
_y = 225;
}
frame 2 {
mySoundls = new Sound();
mySoundls.attachSound('lostgame');
mySoundls.start(0, 0);
Nonoba.api.NonobaAPI.SubmitScore('scorecxi3', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
_x = 313;
_y = 225;
}
frame 7 {
gotoAndPlay(5);
}
}
movieClip 1149 lost2 {
frame 1 {
stopAllSounds();
_x = 313;
_y = 225;
}
frame 2 {
mySoundls = new Sound();
mySoundls.attachSound('lostgame');
mySoundls.start(0, 0);
Nonoba.api.NonobaAPI.SubmitScore('scorecxi2', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
_x = 313;
_y = 225;
}
frame 7 {
gotoAndPlay(5);
}
}
movieClip 1154 {
}
movieClip 1155 wdcomplete {
frame 1 {
stopAllSounds();
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('we555ll55', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
}
movieClip 1160 {
}
movieClip 1165 {
}
movieClip 1168 {
}
movieClip 1169 dimensionzcomplete {
frame 1 {
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore('scorecxi3', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('dimzc5m5', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
}
movieClip 1170 musiccontainer {
frame 2 {
_parent.insertenemy('f3', _x + 35.5, _y + 37);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 609.9);
}
frame 17 {
_parent.insertenemy('f3', _x + 35.5, _y + 100.7);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 546.2000000000001);
}
frame 32 {
_parent.insertenemy('f3', _x + 35.5, _y + 164.3);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 482.6);
}
frame 47 {
_parent.insertenemy('f3', _x + 35.5, _y + 227.9);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 418.9);
}
frame 62 {
_parent.insertenemy('f3', _x + 35.5, _y + 291.6);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 355.3);
}
frame 77 {
_parent.insertenemy('f3', _x + 35.5, _y + 355.3);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 291.6);
}
frame 92 {
_parent.insertenemy('f3', _x + 35.5, _y + 418.9);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 227.9);
}
frame 107 {
_parent.insertenemy('f3', _x + 35.5, _y + 482.6);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 164.3);
}
frame 122 {
_parent.insertenemy('f3', _x + 35.5, _y + 546.2000000000001);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 100.7);
}
frame 137 {
_parent.insertenemy('f3', _x + 35.5, _y + 609.9);
_parent.insertenemy('f3', _x + 592.7000000000001, _y + 37);
}
frame 152 {
_parent.insertenemy('f3', _x + 105.2, _y + 609.9);
_parent.insertenemy('f3', _x + 523, _y + 37);
}
frame 167 {
_parent.insertenemy('f3', _x + 174.8, _y + 609.9);
_parent.insertenemy('f3', _x + 453.4, _y + 37);
}
frame 182 {
_parent.insertenemy('f3', _x + 244.4, _y + 609.9);
_parent.insertenemy('f3', _x + 383.8, _y + 37);
}
frame 197 {
_parent.insertenemy('f3', _x + 314.1, _y + 609.9);
_parent.insertenemy('f3', _x + 314.1, _y + 37);
}
frame 212 {
_parent.insertenemy('f3', _x + 383.8, _y + 609.9);
_parent.insertenemy('f3', _x + 244.4, _y + 37);
}
frame 227 {
_parent.insertenemy('f3', _x + 453.4, _y + 609.9);
_parent.insertenemy('f3', _x + 174.8, _y + 37);
}
frame 242 {
_parent.insertenemy('f3', _x + 523, _y + 609.9);
_parent.insertenemy('f3', _x + 105.2, _y + 37);
}
frame 257 {
_parent.insertenemy('f3', _x + 523, _y + 546.2000000000001);
_parent.insertenemy('f3', _x + 105.2, _y + 100.7);
}
frame 272 {
_parent.insertenemy('f3', _x + 523, _y + 482.6);
_parent.insertenemy('f3', _x + 105.2, _y + 164.3);
}
frame 287 {
_parent.insertenemy('f3', _x + 523, _y + 418.9);
_parent.insertenemy('f3', _x + 105.2, _y + 227.9);
}
frame 302 {
_parent.insertenemy('f3', _x + 523, _y + 355.3);
_parent.insertenemy('f3', _x + 105.2, _y + 291.6);
}
frame 317 {
_parent.insertenemy('f3', _x + 523, _y + 291.6);
_parent.insertenemy('f3', _x + 105.2, _y + 355.3);
}
frame 332 {
_parent.insertenemy('f3', _x + 523, _y + 227.9);
_parent.insertenemy('f3', _x + 105.2, _y + 418.9);
}
frame 347 {
_parent.insertenemy('f3', _x + 523, _y + 164.3);
_parent.insertenemy('f3', _x + 105.2, _y + 482.6);
}
frame 362 {
_parent.insertenemy('f3', _x + 523, _y + 100.7);
_parent.insertenemy('f3', _x + 105.2, _y + 546.2000000000001);
}
frame 377 {
_parent.insertenemy('f3', _x + 174.8, _y + 546.2000000000001);
_parent.insertenemy('f3', _x + 453.4, _y + 100.7);
}
frame 392 {
_parent.insertenemy('f3', _x + 244.4, _y + 546.2000000000001);
_parent.insertenemy('f3', _x + 383.8, _y + 100.7);
}
frame 407 {
_parent.insertenemy('f3', _x + 314.1, _y + 546.2000000000001);
_parent.insertenemy('f3', _x + 314.1, _y + 100.7);
}
frame 422 {
_parent.insertenemy('f3', _x + 383.8, _y + 546.2000000000001);
_parent.insertenemy('f3', _x + 244.4, _y + 100.7);
}
frame 437 {
_parent.insertenemy('f3', _x + 453.4, _y + 546.2000000000001);
_parent.insertenemy('f3', _x + 174.8, _y + 100.7);
}
frame 452 {
_parent.insertenemy('f3', _x + 453.4, _y + 482.6);
_parent.insertenemy('f3', _x + 174.8, _y + 164.3);
}
frame 467 {
_parent.insertenemy('f3', _x + 453.4, _y + 418.9);
_parent.insertenemy('f3', _x + 174.8, _y + 227.9);
}
frame 482 {
_parent.insertenemy('f3', _x + 453.4, _y + 355.3);
_parent.insertenemy('f3', _x + 174.8, _y + 291.6);
}
frame 497 {
_parent.insertenemy('f3', _x + 453.4, _y + 291.6);
_parent.insertenemy('f3', _x + 174.8, _y + 355.3);
}
frame 512 {
_parent.insertenemy('f3', _x + 453.4, _y + 227.9);
_parent.insertenemy('f3', _x + 174.8, _y + 418.9);
}
frame 527 {
_parent.insertenemy('f3', _x + 453.4, _y + 164.3);
_parent.insertenemy('f3', _x + 174.8, _y + 482.6);
}
frame 542 {
_parent.insertenemy('f3', _x + 244.4, _y + 482.6);
_parent.insertenemy('f3', _x + 383.8, _y + 164.3);
}
frame 557 {
_parent.insertenemy('f3', _x + 314.1, _y + 482.6);
_parent.insertenemy('f3', _x + 314.1, _y + 164.3);
}
frame 572 {
_parent.insertenemy('f3', _x + 383.8, _y + 482.6);
_parent.insertenemy('f3', _x + 244.4, _y + 164.3);
}
frame 587 {
_parent.insertenemy('f3', _x + 383.8, _y + 418.9);
_parent.insertenemy('f3', _x + 244.4, _y + 227.8);
}
frame 602 {
_parent.insertenemy('f3', _x + 383.8, _y + 355.3);
_parent.insertenemy('f3', _x + 244.4, _y + 291.6);
}
frame 617 {
_parent.insertenemy('f3', _x + 383.8, _y + 291.6);
_parent.insertenemy('f3', _x + 244.4, _y + 355.3);
}
frame 632 {
_parent.insertenemy('f3', _x + 383.8, _y + 227.8);
_parent.insertenemy('f3', _x + 244.4, _y + 418.9);
}
frame 647 {
_parent.insertenemy('f3', _x + 314.1, _y + 227.8);
_parent.insertenemy('f3', _x + 314.1, _y + 418.9);
}
frame 662 {
_parent.insertenemy('f3', _x + 314.1, _y + 291.6);
_parent.insertenemy('f3', _x + 314.1, _y + 355.3);
}
frame 700 {
_parent.insertenemy('bossztitle', _x, _y);
}
frame 800 {
_parent.insertenemy('bossxi', _x, _y);
_parent.insertenemy('bossxipillar', _x, _y);
_parent.insertenemy('bossxicompasses', _x, _y);
}
frame 801 {
stop();
}
}
movieClip 1171 foefocusbullet {
frame 1 {
function enemyaction() {
_x = _x + xmov;
_y = _y + ymov;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
stop();
movespeed = 10;
xdist = _parent.ship._x - _x;
ydist = _parent.ship._y - _y;
totaldist = Math.abs(xdist) + Math.abs(ydist);
_rotation = (Math.atan2(ydist, xdist) / 3.141593) * 180;
xmov = movespeed * (xdist / totaldist);
ymov = movespeed * (ydist / totaldist);
onEnterFrame = function () {
if (_parent.tiem == 20) {
gotoAndStop('explode2');
}
};
}
}
button 1172 {
on (press) {
_parent.gotoAndStop('dimensionz');
this.removeMovieClip();
}
}
movieClip 1175 {
}
movieClip 1176 dimensionycomplete {
frame 1 {
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore('scorecxi2', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('dimycom5', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
}
button 1177 {
on (press) {
_parent.gotoAndStop('dimensiony');
this.removeMovieClip();
}
}
movieClip 1180 {
}
movieClip 1181 dimensionxcomplete {
frame 1 {
stopAllSounds();
Nonoba.api.NonobaAPI.SubmitScore('scorecxi1', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
frame 2 {
stop();
Nonoba.api.NonobaAPI.AwardAchievement('dimxcom5', function (response, count) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The achievement was successfully awarded.');
trace('It has been awarded ' + count + ' times.');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in.');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
}
}
movieClip 1184 {
}
movieClip 1185 bosswtitle {
frame 1 {
stopAllSounds();
}
frame 1 {
_x = 313;
_y = 325;
}
frame 2 {
mySounda = new Sound();
mySounda.attachSound('weegeedollmusic');
mySounda.start(0, 999);
}
frame 91 {
stop();
}
}
movieClip 1198 {
}
movieClip 1199 bosshtitle {
frame 1 {
stopAllSounds();
}
frame 1 {
_x = 313;
_y = 325;
}
frame 2 {
mySounda = new Sound();
mySounda.attachSound('Hina Music');
mySounda.start(0, 999);
}
frame 91 {
stop();
}
}
movieClip 1203 {
}
movieClip 1214 {
}
movieClip 1215 bossztitle {
frame 1 {
stopAllSounds();
}
frame 1 {
_x = 313;
_y = 325;
}
frame 2 {
mySounda = new Sound();
mySounda.attachSound('Boss Music');
mySounda.start(0, 999);
}
frame 91 {
stop();
}
}
movieClip 1222 {
}
movieClip 1223 bossytitle {
frame 1 {
stopAllSounds();
}
frame 1 {
_x = 313;
_y = 325;
}
frame 2 {
mySounda = new Sound();
mySounda.attachSound('Boss Music');
mySounda.start(0, 999);
}
frame 91 {
stop();
}
}
movieClip 1229 {
frame 20 {
gotoAndPlay(1);
}
}
movieClip 1230 d2a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(300);
gotoAndPlay('explode');
} else {
_parent.addpoints(30);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
_y = _y + 1;
if (_parent.ship._x > _x) {
_x = _x + 1;
} else {
_x = _x - 1;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 30;
_parent.insertenemy('d2bullet1', _x - 20, _y);
}
}
stop();
health = 2;
startx = _x;
guncooldown = 25;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1231 foebullet16 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y + 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1232 foebullet15 {
frame 1 {
function enemyaction() {
_x = _x - 6;
_y = _y + 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1233 foebullet14 {
frame 1 {
function enemyaction() {
_x = _x - 8;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1234 foebullet13 {
frame 1 {
function enemyaction() {
_x = _x - 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1235 foebullet12 {
frame 1 {
function enemyaction() {
_x = _x - 8;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1236 foebullet11 {
frame 1 {
function enemyaction() {
_x = _x - 6;
_y = _y - 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1237 foebullet10 {
frame 1 {
function enemyaction() {
_x = _x - 4;
_y = _y - 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1238 foebullet9 {
frame 1 {
function enemyaction() {
_y = _y - 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1239 foebullet8 {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y - 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1240 foebullet7 {
frame 1 {
function enemyaction() {
_x = _x + 6;
_y = _y - 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1241 foebullet6 {
frame 1 {
function enemyaction() {
_x = _x + 8;
_y = _y - 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1242 foebullet5 {
frame 1 {
function enemyaction() {
_x = _x + 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1243 foebullet4 {
frame 1 {
function enemyaction() {
_x = _x + 8;
_y = _y + 4;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1244 foebullet3 {
frame 1 {
function enemyaction() {
_x = _x + 6;
_y = _y + 6;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1245 foebullet2 {
frame 1 {
function enemyaction() {
_x = _x + 4;
_y = _y + 8;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1246 f2j {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('foebullet1', _x, _y + 15);
_parent.insertenemy('foebullet1', _x - 15, _y + 15);
_parent.insertenemy('foebullet1', _x + 15, _y + 15);
_parent.insertenemy('foebullet5', _x + 15, _y);
_parent.insertenemy('foebullet5', _x + 15, _y - 15);
_parent.insertenemy('foebullet5', _x + 15, _y + 15);
_parent.insertenemy('foebullet9', _x, _y - 15);
_parent.insertenemy('foebullet9', _x - 15, _y - 15);
_parent.insertenemy('foebullet9', _x + 15, _y - 15);
_parent.insertenemy('foebullet13', _x - 15, _y);
_parent.insertenemy('foebullet13', _x - 15, _y - 15);
_parent.insertenemy('foebullet13', _x - 15, _y + 15);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 15;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1247 f2i {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--guncooldown5;
--guncooldown6;
--guncooldown7;
--guncooldown8;
--guncooldown9;
--guncooldown10;
--guncooldown11;
--guncooldown12;
--guncooldown13;
--guncooldown14;
--guncooldown15;
--guncooldown16;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('foebullet1', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy('foebullet2', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 20;
_parent.insertenemy('foebullet3', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 20;
_parent.insertenemy('foebullet4', _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 20;
_parent.insertenemy('foebullet5', _x, _y);
}
if (guncooldown6 == 0) {
guncooldown6 = 20;
_parent.insertenemy('foebullet6', _x, _y);
}
if (guncooldown7 == 0) {
guncooldown7 = 20;
_parent.insertenemy('foebullet7', _x, _y);
}
if (guncooldown8 == 0) {
guncooldown8 = 20;
_parent.insertenemy('foebullet8', _x, _y);
}
if (guncooldown9 == 0) {
guncooldown9 = 20;
_parent.insertenemy('foebullet9', _x, _y);
}
if (guncooldown10 == 0) {
guncooldown10 = 20;
_parent.insertenemy('foebullet10', _x, _y);
}
if (guncooldown11 == 0) {
guncooldown11 = 20;
_parent.insertenemy('foebullet11', _x, _y);
}
if (guncooldown12 == 0) {
guncooldown12 = 20;
_parent.insertenemy('foebullet12', _x, _y);
}
if (guncooldown13 == 0) {
guncooldown13 = 20;
_parent.insertenemy('foebullet13', _x, _y);
}
if (guncooldown14 == 0) {
guncooldown14 = 20;
_parent.insertenemy('foebullet14', _x, _y);
}
if (guncooldown15 == 0) {
guncooldown15 = 20;
_parent.insertenemy('foebullet15', _x, _y);
}
if (guncooldown16 == 0) {
guncooldown16 = 20;
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 5;
guncooldown2 = 6;
guncooldown3 = 7;
guncooldown4 = 8;
guncooldown5 = 9;
guncooldown6 = 10;
guncooldown7 = 11;
guncooldown8 = 12;
guncooldown9 = 13;
guncooldown10 = 14;
guncooldown11 = 15;
guncooldown12 = 16;
guncooldown13 = 17;
guncooldown14 = 18;
guncooldown15 = 19;
guncooldown16 = 20;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
guncooldown6 = 55555;
guncooldown7 = 55555;
guncooldown8 = 55555;
guncooldown9 = 55555;
guncooldown10 = 55555;
guncooldown11 = 55555;
guncooldown12 = 55555;
guncooldown13 = 55555;
guncooldown14 = 55555;
guncooldown15 = 55555;
guncooldown16 = 55555;
}
frame 24 {
stop();
}
}
movieClip 1248 f2h {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 10;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet5', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet13', _x, _y);
}
if (guncooldown == 0) {
guncooldown = 25;
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet4', _x, _y);
_parent.insertenemy('foebullet6', _x, _y);
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 10;
guncooldown = 25;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
}
frame 24 {
stop();
}
}
movieClip 1249 f2g {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet11', _x, _y);
_parent.insertenemy('foebullet15', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 15;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1250 f2f {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 25;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet4', _x, _y);
_parent.insertenemy('foebullet5', _x, _y);
_parent.insertenemy('foebullet6', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet12', _x, _y);
_parent.insertenemy('foebullet13', _x, _y);
_parent.insertenemy('foebullet14', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 25;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1251 f2e {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
if (guncooldown == 0) {
guncooldown = 80;
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet11', _x, _y);
_parent.insertenemy('foebullet15', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 80;
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet4', _x, _y);
_parent.insertenemy('foebullet6', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet12', _x, _y);
_parent.insertenemy('foebullet14', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 80;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet5', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet13', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 80;
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet4', _x, _y);
_parent.insertenemy('foebullet6', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet12', _x, _y);
_parent.insertenemy('foebullet14', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
guncooldown2 = 40;
guncooldown3 = 60;
guncooldown4 = 80;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
}
frame 24 {
stop();
}
}
movieClip 1252 f2d {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
--guncooldown2;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet5', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet13', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 40;
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet11', _x, _y);
_parent.insertenemy('foebullet15', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
guncooldown2 = 40;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
}
frame 24 {
stop();
}
}
movieClip 1253 f2c {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet11', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1254 f2b {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1255 f2a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y - 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('foebullet9', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
_y = 624;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1256 f1j {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('foebullet1', _x, _y + 15);
_parent.insertenemy('foebullet1', _x - 15, _y + 15);
_parent.insertenemy('foebullet1', _x + 15, _y + 15);
_parent.insertenemy('foebullet5', _x + 15, _y);
_parent.insertenemy('foebullet5', _x + 15, _y - 15);
_parent.insertenemy('foebullet5', _x + 15, _y + 15);
_parent.insertenemy('foebullet9', _x, _y - 15);
_parent.insertenemy('foebullet9', _x - 15, _y - 15);
_parent.insertenemy('foebullet9', _x + 15, _y - 15);
_parent.insertenemy('foebullet13', _x - 15, _y);
_parent.insertenemy('foebullet13', _x - 15, _y - 15);
_parent.insertenemy('foebullet13', _x - 15, _y + 15);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 15;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1257 f1i {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
--guncooldown5;
--guncooldown6;
--guncooldown7;
--guncooldown8;
--guncooldown9;
--guncooldown10;
--guncooldown11;
--guncooldown12;
--guncooldown13;
--guncooldown14;
--guncooldown15;
--guncooldown16;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('foebullet1', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 20;
_parent.insertenemy('foebullet2', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 20;
_parent.insertenemy('foebullet3', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 20;
_parent.insertenemy('foebullet4', _x, _y);
}
if (guncooldown5 == 0) {
guncooldown5 = 20;
_parent.insertenemy('foebullet5', _x, _y);
}
if (guncooldown6 == 0) {
guncooldown6 = 20;
_parent.insertenemy('foebullet6', _x, _y);
}
if (guncooldown7 == 0) {
guncooldown7 = 20;
_parent.insertenemy('foebullet7', _x, _y);
}
if (guncooldown8 == 0) {
guncooldown8 = 20;
_parent.insertenemy('foebullet8', _x, _y);
}
if (guncooldown9 == 0) {
guncooldown9 = 20;
_parent.insertenemy('foebullet9', _x, _y);
}
if (guncooldown10 == 0) {
guncooldown10 = 20;
_parent.insertenemy('foebullet10', _x, _y);
}
if (guncooldown11 == 0) {
guncooldown11 = 20;
_parent.insertenemy('foebullet11', _x, _y);
}
if (guncooldown12 == 0) {
guncooldown12 = 20;
_parent.insertenemy('foebullet12', _x, _y);
}
if (guncooldown13 == 0) {
guncooldown13 = 20;
_parent.insertenemy('foebullet13', _x, _y);
}
if (guncooldown14 == 0) {
guncooldown14 = 20;
_parent.insertenemy('foebullet14', _x, _y);
}
if (guncooldown15 == 0) {
guncooldown15 = 20;
_parent.insertenemy('foebullet15', _x, _y);
}
if (guncooldown16 == 0) {
guncooldown16 = 20;
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 5;
guncooldown2 = 6;
guncooldown3 = 7;
guncooldown4 = 8;
guncooldown5 = 9;
guncooldown6 = 10;
guncooldown7 = 11;
guncooldown8 = 12;
guncooldown9 = 13;
guncooldown10 = 14;
guncooldown11 = 15;
guncooldown12 = 16;
guncooldown13 = 17;
guncooldown14 = 18;
guncooldown15 = 19;
guncooldown16 = 20;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
guncooldown5 = 55555;
guncooldown6 = 55555;
guncooldown7 = 55555;
guncooldown8 = 55555;
guncooldown9 = 55555;
guncooldown10 = 55555;
guncooldown11 = 55555;
guncooldown12 = 55555;
guncooldown13 = 55555;
guncooldown14 = 55555;
guncooldown15 = 55555;
guncooldown16 = 55555;
}
frame 24 {
stop();
}
}
movieClip 1258 f1h {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 10;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet5', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet13', _x, _y);
}
if (guncooldown == 0) {
guncooldown = 25;
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet4', _x, _y);
_parent.insertenemy('foebullet6', _x, _y);
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 10;
guncooldown = 25;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
}
frame 24 {
stop();
}
}
movieClip 1259 f1g {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 15;
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet11', _x, _y);
_parent.insertenemy('foebullet15', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 15;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1260 f1f {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 2;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 25;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet4', _x, _y);
_parent.insertenemy('foebullet5', _x, _y);
_parent.insertenemy('foebullet6', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet12', _x, _y);
_parent.insertenemy('foebullet13', _x, _y);
_parent.insertenemy('foebullet14', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 25;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1261 f1e {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
--guncooldown2;
--guncooldown3;
--guncooldown4;
if (guncooldown == 0) {
guncooldown = 80;
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet11', _x, _y);
_parent.insertenemy('foebullet15', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 80;
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet4', _x, _y);
_parent.insertenemy('foebullet6', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet12', _x, _y);
_parent.insertenemy('foebullet14', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
if (guncooldown3 == 0) {
guncooldown3 = 80;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet5', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet13', _x, _y);
}
if (guncooldown4 == 0) {
guncooldown4 = 80;
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet4', _x, _y);
_parent.insertenemy('foebullet6', _x, _y);
_parent.insertenemy('foebullet8', _x, _y);
_parent.insertenemy('foebullet10', _x, _y);
_parent.insertenemy('foebullet12', _x, _y);
_parent.insertenemy('foebullet14', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
guncooldown2 = 40;
guncooldown3 = 60;
guncooldown4 = 80;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
guncooldown3 = 55555;
guncooldown4 = 55555;
}
frame 24 {
stop();
}
}
movieClip 1262 f1d {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
--guncooldown2;
if (guncooldown == 0) {
guncooldown = 40;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet5', _x, _y);
_parent.insertenemy('foebullet9', _x, _y);
_parent.insertenemy('foebullet13', _x, _y);
}
if (guncooldown2 == 0) {
guncooldown2 = 40;
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet7', _x, _y);
_parent.insertenemy('foebullet11', _x, _y);
_parent.insertenemy('foebullet15', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
guncooldown2 = 40;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
guncooldown2 = 55555;
}
frame 24 {
stop();
}
}
movieClip 1263 f1c {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet3', _x, _y);
_parent.insertenemy('foebullet15', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1264 f1b {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('foebullet1', _x, _y);
_parent.insertenemy('foebullet2', _x, _y);
_parent.insertenemy('foebullet16', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1265 f1a {
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
} else {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
_y = _y + 1;
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_y > Stage.height) {
_parent.removeenemy(_name);
}
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 20;
_parent.insertenemy('foebullet1', _x, _y);
}
}
stop();
health = 1;
startx = _x;
guncooldown = 20;
}
frame 3 {
stop();
}
frame 4 {
guncooldown = 55555;
}
frame 24 {
stop();
}
}
movieClip 1266 foebullet1 {
frame 1 {
function enemyaction() {
_y = _y + 10;
if (this.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (this.hitTest(_parent.ship.graze)) {
_parent.addpoints(5);
}
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
_parent.removeenemy(_name);
}
}
}
}
movieClip 1268 lasercenter {
frame 1 {
function weaponaction() {
if (_y + _height < 0) {
_parent.removeweapon(_name);
}
curenemy = 0;
while (curenemy < _parent.enemies.length) {
if (!(eval('_parent.' + _parent.enemies[curenemy])).multiplehitareas) {
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.d1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall1'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall2'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall3'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
if (this.hitTest(eval('_parent.' + _parent.enemies[curenemy] + '.bulletwall4'))) {
(eval('_parent.' + _parent.enemies[curenemy])).takedamage(weaponstrength);
_parent.removeweapon(_name);
}
} else {
if ((eval('_parent.' + _parent.enemies[curenemy])).multiplehittests(_name, weaponstrength)) {
_parent.removeweapon(_name);
}
}
++curenemy;
}
}
weaponstrength = 1;
}
instance newBullet of movieClip 30 {
onClipEvent (load) {
if (_y > Stage.height || _y < 0 || _x > Stage.width || _x < 0) {
this.removeMovieClip();
}
}
}
frame 21 {
this.onEnterFrame = function () {
this.removeMovieClip();
};
}
frame 21 {
stop();
}
}
movieClip 1283 lost1 {
frame 1 {
stopAllSounds();
_x = 313;
_y = 225;
}
frame 2 {
mySoundls = new Sound();
mySoundls.attachSound('lostgame');
mySoundls.start(0, 0);
Nonoba.api.NonobaAPI.SubmitScore('scorecxi1', _root.score, function (response) {
switch (response) {
case Nonoba.api.NonobaAPI.SUCCESS:
trace('The score was submitted successfully');
break;
case Nonoba.api.NonobaAPI.NOT_LOGGED_IN:
trace('The user is not logged in');
break;
case Nonoba.api.NonobaAPI.ERROR:
trace('An error occurred.');
}
});
_x = 313;
_y = 225;
}
frame 7 {
gotoAndPlay(5);
}
}
movieClip 1284 d3bossenemy {
frame 1 {
randomattack = int(random(50));
if (randomattack == 0) {
gotoAndPlay('0');
}
if (randomattack == 1) {
gotoAndPlay('1');
}
if (randomattack == 2) {
gotoAndPlay('2');
}
if (randomattack == 3) {
gotoAndPlay('3');
}
if (randomattack == 4) {
gotoAndPlay('4');
}
if (randomattack == 5) {
gotoAndPlay('5');
}
if (randomattack == 6) {
gotoAndPlay('6');
}
if (randomattack == 7) {
gotoAndPlay('7');
}
if (randomattack == 8) {
gotoAndPlay('8');
}
if (randomattack == 9) {
gotoAndPlay('9');
}
if (randomattack == 10) {
gotoAndPlay('10');
}
if (randomattack == 11) {
gotoAndPlay('11');
}
if (randomattack == 12) {
gotoAndPlay('12');
}
if (randomattack == 13) {
gotoAndPlay('13');
}
if (randomattack == 14) {
gotoAndPlay('14');
}
if (randomattack == 15) {
gotoAndPlay('15');
}
if (randomattack == 16) {
gotoAndPlay('16');
}
if (randomattack == 17) {
gotoAndPlay('17');
}
if (randomattack == 18) {
gotoAndPlay('18');
}
if (randomattack == 19) {
gotoAndPlay('19');
}
if (randomattack == 20) {
gotoAndPlay('20');
}
if (randomattack == 21) {
gotoAndPlay('21');
}
if (randomattack == 22) {
gotoAndPlay('22');
}
if (randomattack == 23) {
gotoAndPlay('23');
}
if (randomattack == 24) {
gotoAndPlay('24');
}
if (randomattack == 25) {
gotoAndPlay('25');
}
if (randomattack == 26) {
gotoAndPlay('26');
}
if (randomattack == 27) {
gotoAndPlay('27');
}
if (randomattack == 28) {
gotoAndPlay('28');
}
if (randomattack == 29) {
gotoAndPlay('29');
}
if (randomattack == 30) {
gotoAndPlay('30');
}
if (randomattack == 31) {
gotoAndPlay('31');
}
if (randomattack == 32) {
gotoAndPlay('32');
}
if (randomattack == 33) {
gotoAndPlay('33');
}
if (randomattack == 34) {
gotoAndPlay('34');
}
if (randomattack == 35) {
gotoAndPlay('35');
}
if (randomattack == 36) {
gotoAndPlay('36');
}
if (randomattack == 37) {
gotoAndPlay('37');
}
if (randomattack == 38) {
gotoAndPlay('38');
}
if (randomattack == 39) {
gotoAndPlay('39');
}
if (randomattack == 40) {
gotoAndPlay('40');
}
if (randomattack == 41) {
gotoAndPlay('41');
}
if (randomattack == 42) {
gotoAndPlay('42');
}
if (randomattack == 43) {
gotoAndPlay('43');
}
if (randomattack == 44) {
gotoAndPlay('44');
}
if (randomattack == 45) {
gotoAndPlay('45');
}
if (randomattack == 46) {
gotoAndPlay('46');
}
if (randomattack == 47) {
gotoAndPlay('47');
}
if (randomattack == 48) {
gotoAndPlay('48');
}
if (randomattack == 49) {
gotoAndPlay('49');
}
}
frame 1 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(200);
gotoAndPlay('explode');
}
if (health <= 55555) {
_parent.addpoints(20);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
onEnterFrame = function () {
if (_parent.tiem == 0) {
gotoAndPlay('explode2');
}
};
health = 55555;
_y = Math.random() * 625 + 25;
}
frame 2 {
function enemyaction() {
if (d2.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
}
}
frame 181 {
gotoAndPlay(2);
}
frame 182 {
stop();
}
frame 183 {
stop();
}
}
movieClip 1285 {
}
movieClip 1286 D3 Boss {
frame 1 {
_y = 200;
}
frame 56 {
function takedamage(strength) {
health -= strength;
if (health <= 0) {
_parent.addpoints(25000);
_parent.addtiem(-5);
gotoAndPlay('explode');
}
if (health <= 200) {
_parent.addpoints(250);
gotoAndPlay('hit');
}
}
function enemyaction() {
if (d1.hitTest(_parent.ship.hitarea)) {
_parent.hitship();
}
if (_parent.ship._x > _x) {
_x = _x + 2;
} else {
_x = _x - 2;
}
if (_parent.ship._y > _y) {
_y = _y + 2;
} else {
_y = _y - 2;
}
--guncooldown;
if (guncooldown == 0) {
guncooldown = 10;
_parent.insertenemy('d3bossbullet', _x, _y);
}
}
stop();
health = 200;
startx = _x;
guncooldown = 10;
}
frame 58 {
stop();
}
frame 59 {
function enemyaction() {
if (_parent.ship._x > _x) {
_x = _x + 0;
} else {
_x = _x - 0;
}
if (_parent.ship._y > _y) {
_y = _y + 0;
} else {
_y = _y - 0;
}
}
gotoAndPlay(60);
guncooldown = 55555;
}
frame 155 {
stop();
}
}
movieClip 1293 {
}
movieClip 1294 bossxtitle {
frame 1 {
stopAllSounds();
}
frame 1 {
_x = 313;
_y = 325;
}
frame 2 {
mySounda = new Sound();
mySounda.attachSound('Boss Music');
mySounda.start(0, 999);
}
frame 91 {
stop();
}
}
movieClip 1297 {
}
movieClip 1298 Dimension Z {
frame 1 {
_x = 313;
_y = 325;
}
frame 91 {
stop();
}
}
movieClip 1301 {
}
movieClip 1302 Dimension Y {
frame 1 {
_x = 313;
_y = 325;
}
frame 91 {
stop();
}
}
movieClip 1305 {
}
movieClip 1306 Dimension X {
frame 1 {
_x = 313;
_y = 325;
}
frame 91 {
stop();
}
}
movieClip 1308 hitarea {
}
movieClip 1311 {
}
movieClip 1313 {
}
movieClip 1315 {
}
movieClip 1317 {
}
movieClip 1319 {
}
movieClip 1321 {
}
movieClip 1324 {
}
movieClip 1331 {
}
movieClip 1333 {
}
movieClip 1369 ship {
frame 1 {
stop();
life = 7;
t1._visible = true;
t2._visible = true;
t3._visible = true;
t4._visible = true;
t5._visible = true;
t6._visible = true;
if (warmedup == undefined) {
gotoAndPlay('warmup');
}
}
frame 3 {
--life;
}
frame 4 {
this.onEnterFrame = function () {
if (life == 6) {
t1._visible = false;
t2._visible = true;
t3._visible = true;
t4._visible = true;
t5._visible = true;
t6._visible = true;
}
if (life == 5) {
t1._visible = false;
t2._visible = false;
t3._visible = true;
t4._visible = true;
t5._visible = true;
t6._visible = true;
}
if (life == 4) {
t1._visible = false;
t2._visible = false;
t3._visible = false;
t4._visible = true;
t5._visible = true;
t6._visible = true;
}
if (life == 3) {
t1._visible = false;
t2._visible = false;
t3._visible = false;
t4._visible = false;
t5._visible = true;
t6._visible = true;
}
if (life == 2) {
t1._visible = false;
t2._visible = false;
t3._visible = false;
t4._visible = false;
t5._visible = false;
t6._visible = true;
}
if (life == 1) {
t1._visible = false;
t2._visible = false;
t3._visible = false;
t4._visible = false;
t5._visible = false;
t6._visible = false;
}
if (life == 0) {
gotoAndPlay(35);
}
};
}
frame 33 {
gotoAndStop(2);
if (warmedup == undefined) {
gotoAndPlay('warmup');
}
}
frame 34 {
gotoAndPlay(9);
}
frame 35 {
time = 1;
this.onEnterFrame = function () {
if (time == 0) {
gotoAndPlay(36);
}
};
}
frame 46 {
_parent.loselife();
}
frame 108 {
warmedup = 1;
}
}
movieClip 1370 starfield {
frame 1 {
function movestars() {
starcount = 1;
while (starcount <= stars) {
(eval('star3' + starcount))._y += (eval('star3' + starcount)).speed;
if ((eval('star3' + starcount))._y > Stage.height) {
newspeedandsize = Math.random() * 4 + 1;
(eval('star3' + starcount)).speed = newspeedandsize;
(eval('star3' + starcount))._width = newspeedandsize;
(eval('star3' + starcount))._height = newspeedandsize;
(eval('star3' + starcount))._y = -newspeedandsize;
(eval('star3' + starcount))._x = Math.random() * Stage.width;
}
++starcount;
}
}
stars = 25;
starcount = 1;
while (starcount <= stars) {
this.attachMovie('star3', 'star3' + starcount, this.getNextHighestDepth());
++starcount;
}
}
}
frame 1 {
stop();
}
movieClip 1372 {
}
movieClip 1373 {
}
instance progressbar of movieClip 1373 {
onClipEvent (load) {
totalFileSize = _root.getBytesTotal();
startTime = getTimer();
startBytes = _root.getBytesLoaded();
this._xscale = 0;
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
this._xscale = percentLoaded;
_root.loadingMessage = percentLoaded + '%';
timeSoFar = getTimer() - startTime;
speed = bytesLoaded / timeSoFar;
bytesLeft = totalFileSize - bytesLoaded;
timeLeft = (bytesLeft / 1000) * (speed / 1000);
speed = int(10 * speed) / 10;
_root.bytesMessage = int(bytesLoaded / 1000) + 'kb/' + int(totalFileSize / 1000) + 'kb';
_root.speedMessage = speed + 'k/sec';
_root.timeMessage = int(timeLeft) + ' seconds remaining';
if (amountLoaded >= 1) {
_root.gotoAndStop('complete');
}
}
}
movieClip 1561 __Packages.Nonoba.api.NonobaAPI {
#initclip
if (!_global.Nonoba) {
_global.Nonoba = new Object();
}
if (!_global.Nonoba.api) {
_global.Nonoba.api = new Object();
}
if (!_global.Nonoba.api.NonobaAPI) {
var v1 = function () {
throw new Error('ERROR!: You cannot create an instance of the NonobaAPI class!');
};
Nonoba.api.NonobaAPI = v1;
var v2 = v1.prototype;
v1.SubmitScore = function (key, score, callback) {
if (!Nonoba.api.NonobaAPI.isInited) {
Nonoba.api.NonobaAPI.Init();
}
if (Nonoba.api.NonobaAPI.failed) {
if (callback) {
callback(Nonoba.api.NonobaAPI.ERROR);
}
return undefined;
}
if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.SubmitScore) {
Nonoba.api.NonobaAPI.api.SubmitScore(key, score, callback);
} else {
Nonoba.api.NonobaAPI.cachedRequests.push(function () {
Nonoba.api.NonobaAPI.SubmitScore(key, score, callback);
});
}
};
v1.AwardAchievement = function (key, callback) {
if (!Nonoba.api.NonobaAPI.isInited) {
Nonoba.api.NonobaAPI.Init();
}
if (Nonoba.api.NonobaAPI.failed) {
if (callback) {
callback(Nonoba.api.NonobaAPI.ERROR, 0);
}
return undefined;
}
if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.AwardAchievement) {
Nonoba.api.NonobaAPI.api.AwardAchievement(key, callback);
} else {
Nonoba.api.NonobaAPI.cachedRequests.push(function () {
Nonoba.api.NonobaAPI.AwardAchievement(key, callback);
});
}
};
v1.SetUserData = function (key, value, callback) {
if (!Nonoba.api.NonobaAPI.isInited) {
Nonoba.api.NonobaAPI.Init();
}
if (Nonoba.api.NonobaAPI.failed) {
if (callback) {
callback(Nonoba.api.NonobaAPI.ERROR);
}
return undefined;
}
if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.SetUserData) {
Nonoba.api.NonobaAPI.api.SetUserData(key, value, callback);
} else {
Nonoba.api.NonobaAPI.cachedRequests.push(function () {
Nonoba.api.NonobaAPI.SetUserData(key, value, callback);
});
}
};
v1.GetUserData = function (key, callback) {
if (!Nonoba.api.NonobaAPI.isInited) {
Nonoba.api.NonobaAPI.Init();
}
if (Nonoba.api.NonobaAPI.failed) {
if (callback) {
callback(Nonoba.api.NonobaAPI.ERROR, '');
}
return undefined;
}
if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.GetUserData) {
Nonoba.api.NonobaAPI.api.GetUserData(key, callback);
} else {
Nonoba.api.NonobaAPI.cachedRequests.push(function () {
Nonoba.api.NonobaAPI.GetUserData(key, callback);
});
}
};
v1.GetUsername = function (callback) {
if (!Nonoba.api.NonobaAPI.isInited) {
Nonoba.api.NonobaAPI.Init();
}
if (Nonoba.api.NonobaAPI.failed) {
if (callback) {
callback(Nonoba.api.NonobaAPI.ERROR, '');
}
return undefined;
}
if (Nonoba.api.NonobaAPI.api && Nonoba.api.NonobaAPI.api.GetUsername) {
Nonoba.api.NonobaAPI.api.GetUsername(callback);
} else {
Nonoba.api.NonobaAPI.cachedRequests.push(function () {
Nonoba.api.NonobaAPI.GetUsername(callback);
});
}
};
v1.Init = function (container) {
function emptyCache() {
var v1 = 0;
while (v1 < Nonoba.api.NonobaAPI.cachedRequests.length) {
Nonoba.api.NonobaAPI.cachedRequests[v1]();
++v1;
}
Nonoba.api.NonobaAPI.cachedRequests = [];
}
if (Nonoba.api.NonobaAPI.isInited) {
throw new Error('NonobaAPI can not be re-initialized!');
}
Nonoba.api.NonobaAPI.isInited = true;
var v3 = _root.nonoba$apicodeas2;
if (!v3) {
Nonoba.api.NonobaAPI.failed = true;
emptyCache();
}
System.security.allowDomain('*');
container = container || _root;
Nonoba.api.NonobaAPI.api = container.createEmptyMovieClip('___NonobaAPI__loader', container.getNextHighestDepth());
var v5 = new MovieClipLoader();
v5.addListener({'onLoadComplete': function () {
var loadTimer = setInterval(mx.utils.Delegate.create(Nonoba.api.NonobaAPI, function () {
if (Nonoba.api.NonobaAPI.api.SubmitScore !== undefined) {
clearInterval(loadTimer);
emptyCache();
}
}), 500);
}, 'onLoadError': function () {
Nonoba.api.NonobaAPI.failed = true;
emptyCache();
}});
v5.loadClip(v3, Nonoba.api.NonobaAPI.api);
};
v1.SUCCESS = 'SUCCESS';
v1.NOT_LOGGED_IN = 'user not logged in';
v1.ERROR = 'error';
v1.isInited = false;
v1.loading = false;
v1.cachedRequests = [];
v1.failed = false;
ASSetPropFlags(Nonoba.api.NonobaAPI.prototype, null, 1);
}
#endinitclip
}
movieClip 1562 __Packages.mx.utils.Delegate {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.utils) {
_global.mx.utils = new Object();
}
if (!_global.mx.utils.Delegate) {
var v1 = function (f) {
super();
this.func = f;
};
mx.utils.Delegate = v1;
mx.utils.Delegate extends Object;
var v2 = v1.prototype;
v1.create = function (obj, func) {
var v2 = function () {
var v2 = arguments.callee.target;
var v3 = arguments.callee.func;
return v3.apply(v2, arguments);
};
v2.target = obj;
v2.func = func;
return v2;
};
v2.createDelegate = function (obj) {
return mx.utils.Delegate.create(obj, this.func);
};
ASSetPropFlags(mx.utils.Delegate.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
}
movieClip 1382 {
}
movieClip 1385 {
frame 55 {
gotoAndPlay(1);
}
}
button 1387 {
on (release) {
gotoAndStop('main');
mySoundm = new Sound();
mySoundm.attachSound('intromusic');
mySoundm.start(0, 999);
}
}
frame 3 {
stop();
}
movieClip 1393 {
}
button 1394 {
on (release, keyPress '<Enter>') {
if (password == 'LHAIG') {
stopAllSounds();
gotoAndStop('dimensiony');
} else {
if (password == '5ANIH') {
stopAllSounds();
gotoAndStop('dimensionz');
} else {
if (password == 'DIMX5LUN') {
stopAllSounds();
gotoAndStop('dimensionxlun');
} else {
if (password == 'DIM5YLUN') {
stopAllSounds();
gotoAndStop('dimensionylun');
} else {
if (password == 'DIMZ555LUN') {
stopAllSounds();
gotoAndStop('dimensionzlun');
} else {
if (password == 'WEEGEE555') {
stopAllSounds();
gotoAndStop('dimensionw');
} else {
stopAllSounds();
gotoAndStop('dimensionx');
}
}
}
}
}
}
}
}
movieClip 1400 {
}
movieClip 1405 {
}
button 1406 {
on (release) {
gotoAndStop('faq');
}
}
movieClip 1411 {
}
movieClip 1414 {
}
button 1415 {
on (release) {
stopAllSounds();
gotoAndStop('dimensionw');
}
}
movieClip 1417 {
frame 31 {
stop();
}
}
frame 4 {
stop();
}
movieClip 1426 {
}
button 1428 {
on (release) {
gotoAndStop(2);
}
}
button 1444 {
on (release) {
gotoAndStop(3);
}
}
button 1445 {
on (release) {
gotoAndStop(1);
}
}
button 1455 {
on (release) {
gotoAndStop(4);
}
}
movieClip 1457 {
}
button 1461 {
on (release) {
gotoAndStop(5);
}
}
movieClip 1463 {
}
movieClip 1464 {
}
movieClip 1473 {
}
movieClip 1475 {
}
movieClip 1477 {
}
movieClip 1480 {
}
button 1482 {
on (release) {
gotoAndStop(6);
}
}
button 1488 {
on (release) {
gotoAndStop(7);
}
}
movieClip 1495 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
}
movieClip 1498 {
}
movieClip 1503 {
}
button 1504 {
on (release) {
gotoAndStop('main');
}
}
frame 5 {
function shootweapon() {
if (currentweapon == 'singlelazer') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'broad') {
this.attachMovie('laserleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('lasercenter2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('laserright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'speed') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
cooldowntime = 4;
}
if (currentweapon == 'power') {
this.attachMovie('laserpower', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos});
enemies.push('enemy' + enemycount);
++enemycount;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
++enemysearch;
}
(eval(enemyid)).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
++weaponsearch;
}
(eval(weaponid)).removeMovieClip();
}
function addpoints(points) {
score += points;
}
function hitship() {
if (ship._currentframe == 1) {
ship.gotoAndPlay('shiphit');
}
if (ship._currentframe == 2) {
ship.gotoAndPlay('shiphit');
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50});
cooldowntime = 4;
}
function loselife() {
if (lives > 0) {
--lives;
respawnship();
currentweapon = 'singlelazer';
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
(eval(enemies[enemyloop])).removeMovieClip();
++enemyloop;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
(eval(weapons[weaponloop])).removeMovieClip();
++weaponloop;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies'));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function newgame() {
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie('D1 Intro', 'D1 Intro', this.getNextHighestDepth(), {'_x': 450, '_y': Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie('lost1', 'lost1', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
function winlevel() {
++currentlevel;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie('dimensionxcomplete', 'dimensionxcomplete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function addtiem(points) {
tiem += points;
}
stop();
mySoundc = new Sound();
mySoundc.attachSound('xmusic');
mySoundc.start(0, 999);
stop();
var level0enemies = [];
var level1enemies = [[0, 'bulletwall1', -80], [0, 'bulletwall2', 705], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'Dimension X', 0], [100, 'f1a', 113], [100, 'f1a', 513], [150, 'f1a', 213], [150, 'f1a', 413], [200, 'f1a', 313], [250, 'f1a', 213], [250, 'f1a', 413], [300, 'f1a', 113], [300, 'f1a', 313], [300, 'f1a', 513], [300, 'f1a', 113], [320, 'f1a', 513], [340, 'f1a', 213], [360, 'f1a', 413], [380, 'f1a', 313], [400, 'f1b', 113], [400, 'f1b', 213], [400, 'f1b', 313], [400, 'f1b', 413], [400, 'f1b', 513], [500, 'f1b', 113], [500, 'f1b', 213], [500, 'f1b', 313], [500, 'f1b', 413], [500, 'f1b', 513], [600, 'f1b', 113], [650, 'f1b', 513], [650, 'f1a', 213], [700, 'f1a', 213], [700, 'f1b', 113], [750, 'f1b', 113], [750, 'f1b', 163], [750, 'f1b', 213], [750, 'f1b', 263], [750, 'f1b', 313], [750, 'f1b', 363], [750, 'f1b', 413], [750, 'f1b', 463], [750, 'f1b', 513], [750, 'f1b', 563], [800, 'f1a', 213], [800, 'f1a', 413], [850, 'f1a', 113], [850, 'f1a', 313], [850, 'f1a', 513], [900, 'f1c', 213], [900, 'f1c', 413], [950, 'f1c', 113], [950, 'f1c', 513], [950, 'f1a', 313], [1000, 'f1a', 113], [1010, 'f1a', 213], [1020, 'f1a', 313], [1030, 'f1a', 413], [1040, 'f1a', 513], [1050, 'f1a', 413], [1060, 'f1a', 313], [1070, 'f1a', 213], [1080, 'f1a', 113], [1100, 'f1c', 113], [1100, 'f1c', 313], [1100, 'f1c', 513], [1150, 'f1c', 263], [1150, 'f1c', 363], [1150, 'f1c', 463], [1200, 'f1d', 213], [1200, 'f1d', 413], [1250, 'f1d', 113], [1250, 'f1d', 313], [1250, 'f1d', 513], [1300, 'f1e', 213], [1300, 'f1e', 413], [1350, 'f1e', 113], [1350, 'f1e', 313], [1350, 'f1e', 513], [1400, 'f1a', 113], [1400, 'f1b', 213], [1400, 'f1c', 313], [1400, 'f1d', 413], [1400, 'f1e', 513], [1450, 'f1a', 513], [1450, 'f1b', 413], [1450, 'f1c', 313], [1450, 'f1d', 213], [1450, 'f1e', 113], [1500, 'f1e', 313], [1555, 'f1e', 213], [1555, 'f1e', 413], [1600, 'f1e', 113], [1600, 'f1e', 513], [1650, 'f1e', 213], [1650, 'f1e', 413], [1700, 'f1e', 313], [1750, 'f1e', 163], [1750, 'f1e', 463], [1800, 'f1b', 113], [1800, 'f1d', 213], [1800, 'f1b', 313], [1800, 'f1d', 413], [1800, 'f1b', 513], [1900, 'f1c', 113], [1900, 'f1e', 213], [1900, 'f1c', 313], [1900, 'f1e', 413], [1900, 'f1c', 513], [2000, 'bossxtitle', 0], [2099, 'bossfoemain', 0], [2100, 'bossfoe', 0], [2130, 'bossfoeenemy1', 0], [2130, 'bossfoeenemy2', 0], [2130, 'bossfoeabduction', 0]];
var totallevels = 1;
var currentweapon = 'singlelazer';
var currentlevel = 1;
var cooldowntime = 4;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
var lives = 4;
var tiem = 5;
var score = 0;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(80)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
++levelposition;
for (;;) {
if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break;
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
(eval(enemies[enemysearch])).enemyaction();
++enemysearch;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
(eval(weapons[weaponsearch])).weaponaction();
++weaponsearch;
}
if (Key.isDown(32) or Key.isDown(88)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x -= 7;
}
if (Key.isDown(39)) {
ship._x += 7;
}
if (Key.isDown(38)) {
ship._y -= 7;
}
if (Key.isDown(40)) {
ship._y += 7;
}
if (Key.isDown(67)) {
ship._rotation -= 10;
}
if (Key.isDown(86)) {
ship._rotation += 10;
}
if (ship._x <= 0) {
ship._x = 624;
}
if (ship._x >= 625) {
ship._x = 1;
}
if (ship._y <= 0) {
ship._y = 649;
}
if (ship._y >= 650) {
ship._y = 1;
}
starfield.movestars();
}
};
}
frame 6 {
function shootweapon() {
if (currentweapon == 'singlelazer') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'broad') {
this.attachMovie('laserleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('lasercenter2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('laserright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'power') {
this.attachMovie('laserpower', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos});
enemies.push('enemy' + enemycount);
++enemycount;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
++enemysearch;
}
(eval(enemyid)).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
++weaponsearch;
}
(eval(weaponid)).removeMovieClip();
}
function addpoints(points) {
score += points;
}
function hitship() {
if (ship._currentframe == 1) {
ship.gotoAndPlay('shiphit');
}
if (ship._currentframe == 2) {
ship.gotoAndPlay('shiphit');
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50});
}
function loselife() {
if (lives > 0) {
--lives;
respawnship();
currentweapon = 'singlelazer';
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
(eval(enemies[enemyloop])).removeMovieClip();
++enemyloop;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
(eval(weapons[weaponloop])).removeMovieClip();
++weaponloop;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies'));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function newgame() {
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie('D1 Intro', 'D1 Intro', this.getNextHighestDepth(), {'_x': 450, '_y': Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie('lost2', 'lost2', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
function winlevel() {
++currentlevel;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie('dimensionycomplete', 'dimensionycomplete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function addtiem(points) {
tiem += points;
}
stop();
mySoundc = new Sound();
mySoundc.attachSound('ymusic');
mySoundc.start(0, 999);
stop();
var level0enemies = [];
var level1enemies = [[0, 'bulletwall1', -80], [0, 'bulletwall2', 705], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'Dimension Y', 0], [100, 'f1a', 13], [100, 'f1a', 313], [100, 'f1a', 613], [150, 'f1a', 38], [150, 'f1a', 288], [150, 'f1a', 338], [150, 'f1a', 588], [200, 'f1a', 63], [200, 'f1a', 263], [200, 'f1a', 363], [200, 'f1a', 563], [250, 'f1a', 88], [250, 'f1a', 238], [250, 'f1a', 388], [250, 'f1a', 538], [300, 'f1a', 113], [300, 'f1a', 213], [300, 'f1a', 413], [300, 'f1a', 513], [350, 'f1a', 138], [350, 'f1a', 188], [350, 'f1a', 438], [350, 'f1a', 488], [400, 'f1a', 163], [400, 'f1a', 463], [500, 'f1a', 13], [500, 'f1a', 38], [500, 'f1a', 63], [500, 'f1a', 88], [500, 'f1a', 113], [500, 'f1a', 138], [500, 'f1a', 163], [500, 'f1a', 188], [500, 'f1a', 213], [500, 'f1a', 238], [500, 'f1a', 263], [500, 'f1a', 288], [500, 'f1a', 313], [500, 'f1a', 338], [500, 'f1a', 363], [500, 'f1a', 388], [500, 'f1a', 413], [500, 'f1a', 438], [500, 'f1a', 463], [500, 'f1a', 488], [500, 'f1a', 513], [500, 'f1a', 538], [500, 'f1a', 563], [500, 'f1a', 588], [500, 'f1a', 613], [550, 'f1c', 38], [550, 'f1c', 288], [550, 'f1c', 338], [550, 'f1c', 588], [600, 'f1c', 63], [600, 'f1c', 263], [600, 'f1c', 363], [600, 'f1c', 563], [650, 'f1c', 88], [650, 'f1c', 238], [650, 'f1c', 388], [650, 'f1c', 538], [700, 'f1c', 113], [700, 'f1c', 213], [700, 'f1c', 413], [700, 'f1c', 513], [750, 'f1c', 138], [750, 'f1c', 188], [750, 'f1c', 438], [750, 'f1c', 488], [800, 'f1a', 163], [800, 'f1a', 188], [800, 'f1a', 213], [800, 'f1a', 238], [800, 'f1a', 263], [800, 'f1a', 288], [800, 'f1a', 313], [800, 'f1a', 338], [800, 'f1a', 363], [800, 'f1a', 388], [800, 'f1a', 413], [800, 'f1a', 438], [800, 'f1a', 463], [850, 'f1c', 188], [850, 'f1c', 438], [900, 'f1c', 213], [900, 'f1c', 413], [950, 'f1c', 238], [950, 'f1c', 388], [1000, 'f1d', 263], [1000, 'f1d', 363], [1050, 'f1d', 288], [1050, 'f1d', 338], [1100, 'f1d', 313], [1150, 'f1a', 113], [1150, 'f1b', 213], [1150, 'f1c', 313], [1150, 'f1d', 413], [1150, 'f1e', 513], [1200, 'f1a', 113], [1200, 'f1a', 213], [1200, 'f1a', 313], [1200, 'f1a', 413], [1200, 'f1a', 513], [1200, 'f2a', 113], [1200, 'f2a', 213], [1200, 'f2a', 313], [1200, 'f2a', 413], [1200, 'f2a', 513], [1300, 'f1b', 113], [1300, 'f1b', 213], [1300, 'f1b', 313], [1300, 'f1b', 413], [1300, 'f1b', 513], [1300, 'f2b', 113], [1300, 'f2b', 213], [1300, 'f2b', 313], [1300, 'f2b', 413], [1300, 'f2b', 513], [1400, 'f1c', 113], [1400, 'f1c', 213], [1400, 'f1c', 313], [1400, 'f1c', 413], [1400, 'f1c', 513], [1400, 'f2c', 113], [1400, 'f2c', 213], [1400, 'f2c', 313], [1400, 'f2c', 413], [1400, 'f2c', 513], [1500, 'f1d', 113], [1500, 'f1d', 213], [1500, 'f1d', 313], [1500, 'f1d', 413], [1500, 'f1d', 513], [1500, 'f2d', 113], [1500, 'f2d', 213], [1500, 'f2d', 313], [1500, 'f2d', 413], [1500, 'f2d', 513], [1600, 'f1e', 113], [1600, 'f1e', 213], [1600, 'f1e', 313], [1600, 'f1e', 413], [1600, 'f1e', 513], [1600, 'f2e', 113], [1600, 'f2e', 213], [1600, 'f2e', 313], [1600, 'f2e', 413], [1600, 'f2e', 513], [1700, 'bossytitle', 0], [1799, 'bosshavoce1', 0], [1799, 'bosshavoce2', 0], [1800, 'bosshavoc', 0]];
var totallevels = 1;
var currentweapon = 'singlelazer';
var currentlevel = 1;
var cooldowntime = 4;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
var lives = 4;
var tiem = 5;
var score = 0;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(80)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
++levelposition;
for (;;) {
if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break;
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
(eval(enemies[enemysearch])).enemyaction();
++enemysearch;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
(eval(weapons[weaponsearch])).weaponaction();
++weaponsearch;
}
if (Key.isDown(32) or Key.isDown(88)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x -= 7;
}
if (Key.isDown(39)) {
ship._x += 7;
}
if (Key.isDown(38)) {
ship._y -= 7;
}
if (Key.isDown(40)) {
ship._y += 7;
}
if (Key.isDown(67)) {
ship._rotation -= 10;
}
if (Key.isDown(86)) {
ship._rotation += 10;
}
if (ship._x <= 0) {
ship._x = 624;
}
if (ship._x >= 625) {
ship._x = 1;
}
if (ship._y <= 0) {
ship._y = 649;
}
if (ship._y >= 650) {
ship._y = 1;
}
starfield.movestars();
}
};
}
frame 7 {
function shootweapon() {
if (currentweapon == 'singlelazer') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'broad') {
this.attachMovie('laserleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('lasercenter2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('laserright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'power') {
this.attachMovie('laserpower', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos});
enemies.push('enemy' + enemycount);
++enemycount;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
++enemysearch;
}
(eval(enemyid)).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
++weaponsearch;
}
(eval(weaponid)).removeMovieClip();
}
function addpoints(points) {
score += points;
}
function hitship() {
if (ship._currentframe == 1) {
ship.gotoAndPlay('shiphit');
}
if (ship._currentframe == 2) {
ship.gotoAndPlay('shiphit');
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50});
}
function loselife() {
if (lives > 0) {
--lives;
respawnship();
currentweapon = 'singlelazer';
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
(eval(enemies[enemyloop])).removeMovieClip();
++enemyloop;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
(eval(weapons[weaponloop])).removeMovieClip();
++weaponloop;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies'));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function newgame() {
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie('D1 Intro', 'D1 Intro', this.getNextHighestDepth(), {'_x': 450, '_y': Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie('lost3', 'lost3', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
function winlevel() {
++currentlevel;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie('dimensionzcomplete', 'dimensionzcomplete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function addtiem(points) {
tiem += points;
}
stop();
mySoundc = new Sound();
mySoundc.attachSound('zmusic');
mySoundc.start(0, 999);
stop();
var level0enemies = [];
var level1enemies = [[0, 'bulletwall1', -80], [0, 'bulletwall2', 705], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'Dimension Z', 0], [100, 'f1f', 313], [100, 'f1f', 413], [100, 'f1f', 513], [150, 'f2f', 313], [150, 'f2f', 413], [150, 'f2f', 513], [200, 'f1f', 113], [200, 'f1f', 213], [200, 'f1f', 313], [200, 'f1f', 413], [200, 'f1f', 513], [250, 'f2f', 113], [250, 'f2f', 213], [250, 'f2f', 313], [250, 'f2f', 413], [250, 'f2f', 513], [300, 'f1f', 303], [300, 'f1f', 313], [300, 'f1f', 323], [302, 'f1f', 308], [302, 'f1f', 318], [304, 'f1f', 313], [350, 'f2f', 303], [350, 'f2f', 313], [350, 'f2f', 323], [352, 'f2f', 308], [352, 'f2f', 318], [354, 'f2f', 333], [400, 'f1g', 313], [425, 'f2g', 313], [450, 'f1g', 213], [450, 'f2g', 213], [450, 'f1g', 413], [450, 'f2g', 413], [500, 'f1a', 13], [500, 'f1a', 38], [500, 'f1a', 63], [500, 'f1a', 88], [500, 'f1a', 113], [500, 'f1a', 138], [500, 'f1a', 163], [500, 'f1a', 188], [500, 'f1a', 213], [500, 'f1a', 238], [500, 'f1a', 263], [500, 'f1a', 288], [500, 'f1a', 313], [500, 'f1a', 338], [500, 'f1a', 363], [500, 'f1a', 388], [500, 'f1a', 413], [500, 'f1a', 438], [500, 'f1a', 463], [500, 'f1a', 488], [500, 'f1a', 513], [500, 'f1a', 538], [500, 'f1a', 563], [500, 'f1a', 588], [500, 'f1a', 613], [500, 'f2a', 13], [500, 'f2a', 38], [500, 'f2a', 63], [500, 'f2a', 88], [500, 'f2a', 113], [500, 'f2a', 138], [500, 'f2a', 163], [500, 'f2a', 188], [500, 'f2a', 213], [500, 'f2a', 238], [500, 'f2a', 263], [500, 'f2a', 288], [500, 'f2a', 313], [500, 'f2a', 338], [500, 'f2a', 363], [500, 'f2a', 388], [500, 'f2a', 413], [500, 'f2a', 438], [500, 'f2a', 463], [500, 'f2a', 488], [500, 'f2a', 513], [500, 'f2a', 538], [500, 'f2a', 563], [500, 'f2a', 588], [500, 'f2a', 613], [555, 'f1g', 313], [555, 'f2g', 313], [700, 'f1g', 113], [700, 'f1g', 213], [700, 'f1g', 313], [700, 'f1g', 413], [700, 'f1g', 513], [800, 'f1g', 113], [800, 'f1g', 213], [800, 'f1g', 313], [800, 'f1g', 413], [800, 'f1g', 513], [900, 'f1h', 113], [900, 'f1h', 213], [900, 'f1h', 313], [900, 'f1h', 413], [900, 'f1h', 513], [1000, 'f1h', 113], [1000, 'f1h', 213], [1000, 'f1h', 313], [1000, 'f1h', 413], [1000, 'f1h', 513], [1100, 'f1i', 113], [1100, 'f1i', 213], [1100, 'f1i', 313], [1100, 'f1i', 413], [1100, 'f1i', 513], [1200, 'f1i', 113], [1200, 'f1i', 213], [1200, 'f1i', 313], [1200, 'f1i', 413], [1200, 'f1i', 513], [1300, 'f2j', 113], [1300, 'f2j', 213], [1300, 'f2j', 313], [1300, 'f2j', 413], [1300, 'f2j', 513], [1400, 'f1j', 113], [1400, 'f1j', 213], [1400, 'f1j', 313], [1400, 'f1j', 413], [1400, 'f1j', 513], [1500, 'musiccontainer', 0]];
var totallevels = 1;
var currentweapon = 'singlelazer';
var currentlevel = 1;
var cooldowntime = 4;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
var lives = 4;
var tiem = 25;
var score = 0;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(80)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
++levelposition;
for (;;) {
if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break;
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
(eval(enemies[enemysearch])).enemyaction();
++enemysearch;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
(eval(weapons[weaponsearch])).weaponaction();
++weaponsearch;
}
if (Key.isDown(32) or Key.isDown(88)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x -= 7;
}
if (Key.isDown(39)) {
ship._x += 7;
}
if (Key.isDown(38)) {
ship._y -= 7;
}
if (Key.isDown(40)) {
ship._y += 7;
}
if (Key.isDown(67)) {
ship._rotation -= 10;
}
if (Key.isDown(86)) {
ship._rotation += 10;
}
if (ship._x <= 0) {
ship._x = 624;
}
if (ship._x >= 625) {
ship._x = 1;
}
if (ship._y <= 0) {
ship._y = 649;
}
if (ship._y >= 650) {
ship._y = 1;
}
starfield.movestars();
}
};
}
frame 8 {
stop();
}
button 1517 {
on (release) {
stopAllSounds();
gotoAndStop('dimensionw');
}
}
button 1518 {
on (release, keyPress '<Enter>') {
if (password == 'LHAIG') {
stopAllSounds();
gotoAndStop('dimensiony');
} else {
if (password == '5ANIH') {
stopAllSounds();
gotoAndStop('dimensionz');
} else {
stopAllSounds();
gotoAndStop('dimensionx');
}
}
}
}
frame 9 {
function shootweapon() {
if (currentweapon == 'singlelazer') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'broad') {
this.attachMovie('laserleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('lasercenter2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('laserright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'power') {
this.attachMovie('laserpower', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos});
enemies.push('enemy' + enemycount);
++enemycount;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
++enemysearch;
}
(eval(enemyid)).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
++weaponsearch;
}
(eval(weaponid)).removeMovieClip();
}
function addpoints(points) {
score += points;
}
function hitship() {
if (ship._currentframe == 1) {
ship.gotoAndPlay('shiphit');
}
if (ship._currentframe == 2) {
ship.gotoAndPlay('shiphit');
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50});
}
function loselife() {
if (lives > 0) {
--lives;
respawnship();
currentweapon = 'singlelazer';
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
(eval(enemies[enemyloop])).removeMovieClip();
++enemyloop;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
(eval(weapons[weaponloop])).removeMovieClip();
++weaponloop;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies'));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function newgame() {
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie('D1 Intro', 'D1 Intro', this.getNextHighestDepth(), {'_x': 450, '_y': Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie('lost4', 'lost4', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
function winlevel() {
++currentlevel;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie('wdcomplete', 'wdcomplete', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function addtiem(points) {
tiem += points;
}
stop();
stop();
var level0enemies = [];
var level1enemies = [[0, 'bulletwall1', -80], [0, 'bulletwall2', 705], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'bosswtitle', 313], [100, 'bossweegeedoll', 0], [100, 'bossweegeedolldiamonds', 0]];
var totallevels = 1;
var currentweapon = 'singlelazer';
var currentlevel = 1;
var cooldowntime = 4;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
var lives = 2;
var tiem = 5;
var score = 0;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(80)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
++levelposition;
for (;;) {
if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break;
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
(eval(enemies[enemysearch])).enemyaction();
++enemysearch;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
(eval(weapons[weaponsearch])).weaponaction();
++weaponsearch;
}
if (Key.isDown(32) or Key.isDown(88)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x -= 7;
}
if (Key.isDown(39)) {
ship._x += 7;
}
if (Key.isDown(38)) {
ship._y -= 7;
}
if (Key.isDown(40)) {
ship._y += 7;
}
if (Key.isDown(67)) {
ship._rotation -= 10;
}
if (Key.isDown(86)) {
ship._rotation += 10;
}
if (ship._x <= 0) {
ship._x = 624;
}
if (ship._x >= 625) {
ship._x = 1;
}
if (ship._y <= 0) {
ship._y = 649;
}
if (ship._y >= 650) {
ship._y = 1;
}
starfield.movestars();
}
};
}
frame 10 {
gotoAndStop('main');
mySoundm = new Sound();
mySoundm.attachSound('intromusic');
mySoundm.start(0, 999);
}
frame 11 {
gotoAndStop('dimensionw');
}
frame 12 {
function shootweapon() {
if (currentweapon == 'singlelazer') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'broad') {
this.attachMovie('laserleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('lasercenter2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('laserright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'speed') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
cooldowntime = 4;
}
if (currentweapon == 'power') {
this.attachMovie('laserpower', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos});
enemies.push('enemy' + enemycount);
++enemycount;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
++enemysearch;
}
(eval(enemyid)).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
++weaponsearch;
}
(eval(weaponid)).removeMovieClip();
}
function addpoints(points) {
score += points;
}
function hitship() {
if (ship._currentframe == 1) {
ship.gotoAndPlay('shiphit');
}
if (ship._currentframe == 2) {
ship.gotoAndPlay('shiphit');
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50});
cooldowntime = 4;
}
function loselife() {
if (lives > 0) {
--lives;
respawnship();
currentweapon = 'singlelazer';
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
(eval(enemies[enemyloop])).removeMovieClip();
++enemyloop;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
(eval(weapons[weaponloop])).removeMovieClip();
++weaponloop;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies'));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function newgame() {
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie('D1 Intro', 'D1 Intro', this.getNextHighestDepth(), {'_x': 450, '_y': Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie('lost1', 'lost1', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
function winlevel() {
++currentlevel;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie('dimensionxcompletelun', 'dimensionxcompletelun', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function addtiem(points) {
tiem += points;
}
stop();
mySoundc = new Sound();
mySoundc.attachSound('xmusic');
mySoundc.start(0, 999);
stop();
var level0enemies = [];
var level1enemies = [[0, 'bulletwall1', -80], [0, 'bulletwall2', 705], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'Dimension X', 0], [100, 'f1a', 113], [100, 'f1a', 513], [150, 'f1a', 213], [150, 'f1a', 413], [200, 'f1a', 313], [250, 'f1a', 213], [250, 'f1a', 413], [300, 'f1a', 113], [300, 'f1a', 313], [300, 'f1a', 513], [300, 'f1a', 113], [320, 'f1a', 513], [340, 'f1a', 213], [360, 'f1a', 413], [380, 'f1a', 313], [400, 'f1b', 113], [400, 'f1b', 213], [400, 'f1b', 313], [400, 'f1b', 413], [400, 'f1b', 513], [500, 'f1b', 113], [500, 'f1b', 213], [500, 'f1b', 313], [500, 'f1b', 413], [500, 'f1b', 513], [600, 'f1b', 113], [650, 'f1b', 513], [650, 'f1a', 213], [700, 'f1a', 213], [700, 'f1b', 113], [750, 'f1b', 113], [750, 'f1b', 163], [750, 'f1b', 213], [750, 'f1b', 263], [750, 'f1b', 313], [750, 'f1b', 363], [750, 'f1b', 413], [750, 'f1b', 463], [750, 'f1b', 513], [750, 'f1b', 563], [800, 'f1a', 213], [800, 'f1a', 413], [850, 'f1a', 113], [850, 'f1a', 313], [850, 'f1a', 513], [900, 'f1c', 213], [900, 'f1c', 413], [950, 'f1c', 113], [950, 'f1c', 513], [950, 'f1a', 313], [1000, 'f1a', 113], [1010, 'f1a', 213], [1020, 'f1a', 313], [1030, 'f1a', 413], [1040, 'f1a', 513], [1050, 'f1a', 413], [1060, 'f1a', 313], [1070, 'f1a', 213], [1080, 'f1a', 113], [1100, 'f1c', 113], [1100, 'f1c', 313], [1100, 'f1c', 513], [1150, 'f1c', 263], [1150, 'f1c', 363], [1150, 'f1c', 463], [1200, 'f1d', 213], [1200, 'f1d', 413], [1250, 'f1d', 113], [1250, 'f1d', 313], [1250, 'f1d', 513], [1300, 'f1e', 213], [1300, 'f1e', 413], [1350, 'f1e', 113], [1350, 'f1e', 313], [1350, 'f1e', 513], [1400, 'f1a', 113], [1400, 'f1b', 213], [1400, 'f1c', 313], [1400, 'f1d', 413], [1400, 'f1e', 513], [1450, 'f1a', 513], [1450, 'f1b', 413], [1450, 'f1c', 313], [1450, 'f1d', 213], [1450, 'f1e', 113], [1500, 'f1e', 313], [1555, 'f1e', 213], [1555, 'f1e', 413], [1600, 'f1e', 113], [1600, 'f1e', 513], [1650, 'f1e', 213], [1650, 'f1e', 413], [1700, 'f1e', 313], [1750, 'f1e', 163], [1750, 'f1e', 463], [1800, 'f1b', 113], [1800, 'f1d', 213], [1800, 'f1b', 313], [1800, 'f1d', 413], [1800, 'f1b', 513], [1900, 'f1c', 113], [1900, 'f1e', 213], [1900, 'f1c', 313], [1900, 'f1e', 413], [1900, 'f1c', 513], [2000, 'bossxtitle', 0], [2099, 'bossfoemain', 0], [2100, 'bossfoe', 0], [2130, 'bossfoeenemy1', 0], [2130, 'bossfoeenemy2', 0], [2130, 'bossfoeabduction', 0]];
var totallevels = 1;
var currentweapon = 'singlelazer';
var currentlevel = 1;
var cooldowntime = 4;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
var lives = 0;
var tiem = 5;
var score = 0;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(80)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
++levelposition;
for (;;) {
if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break;
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
(eval(enemies[enemysearch])).enemyaction();
++enemysearch;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
(eval(weapons[weaponsearch])).weaponaction();
++weaponsearch;
}
if (Key.isDown(32) or Key.isDown(88)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x -= 7;
}
if (Key.isDown(39)) {
ship._x += 7;
}
if (Key.isDown(38)) {
ship._y -= 7;
}
if (Key.isDown(40)) {
ship._y += 7;
}
if (Key.isDown(67)) {
ship._rotation -= 10;
}
if (Key.isDown(86)) {
ship._rotation += 10;
}
if (ship._x <= 0) {
ship._x = 624;
}
if (ship._x >= 625) {
ship._x = 1;
}
if (ship._y <= 0) {
ship._y = 649;
}
if (ship._y >= 650) {
ship._y = 1;
}
starfield.movestars();
}
};
}
frame 13 {
function shootweapon() {
if (currentweapon == 'singlelazer') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'broad') {
this.attachMovie('laserleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('lasercenter2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('laserright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'power') {
this.attachMovie('laserpower', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos});
enemies.push('enemy' + enemycount);
++enemycount;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
++enemysearch;
}
(eval(enemyid)).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
++weaponsearch;
}
(eval(weaponid)).removeMovieClip();
}
function addpoints(points) {
score += points;
}
function hitship() {
if (ship._currentframe == 1) {
ship.gotoAndPlay('shiphit');
}
if (ship._currentframe == 2) {
ship.gotoAndPlay('shiphit');
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50});
}
function loselife() {
if (lives > 0) {
--lives;
respawnship();
currentweapon = 'singlelazer';
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
(eval(enemies[enemyloop])).removeMovieClip();
++enemyloop;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
(eval(weapons[weaponloop])).removeMovieClip();
++weaponloop;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies'));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function newgame() {
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie('D1 Intro', 'D1 Intro', this.getNextHighestDepth(), {'_x': 450, '_y': Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie('lost2', 'lost2', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
function winlevel() {
++currentlevel;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie('dimensionycompletelun', 'dimensionycompletelun', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function addtiem(points) {
tiem += points;
}
stop();
mySoundc = new Sound();
mySoundc.attachSound('ymusic');
mySoundc.start(0, 999);
stop();
var level0enemies = [];
var level1enemies = [[0, 'bulletwall1', -80], [0, 'bulletwall2', 705], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'Dimension Y', 0], [100, 'f1a', 13], [100, 'f1a', 313], [100, 'f1a', 613], [150, 'f1a', 38], [150, 'f1a', 288], [150, 'f1a', 338], [150, 'f1a', 588], [200, 'f1a', 63], [200, 'f1a', 263], [200, 'f1a', 363], [200, 'f1a', 563], [250, 'f1a', 88], [250, 'f1a', 238], [250, 'f1a', 388], [250, 'f1a', 538], [300, 'f1a', 113], [300, 'f1a', 213], [300, 'f1a', 413], [300, 'f1a', 513], [350, 'f1a', 138], [350, 'f1a', 188], [350, 'f1a', 438], [350, 'f1a', 488], [400, 'f1a', 163], [400, 'f1a', 463], [500, 'f1a', 13], [500, 'f1a', 38], [500, 'f1a', 63], [500, 'f1a', 88], [500, 'f1a', 113], [500, 'f1a', 138], [500, 'f1a', 163], [500, 'f1a', 188], [500, 'f1a', 213], [500, 'f1a', 238], [500, 'f1a', 263], [500, 'f1a', 288], [500, 'f1a', 313], [500, 'f1a', 338], [500, 'f1a', 363], [500, 'f1a', 388], [500, 'f1a', 413], [500, 'f1a', 438], [500, 'f1a', 463], [500, 'f1a', 488], [500, 'f1a', 513], [500, 'f1a', 538], [500, 'f1a', 563], [500, 'f1a', 588], [500, 'f1a', 613], [550, 'f1c', 38], [550, 'f1c', 288], [550, 'f1c', 338], [550, 'f1c', 588], [600, 'f1c', 63], [600, 'f1c', 263], [600, 'f1c', 363], [600, 'f1c', 563], [650, 'f1c', 88], [650, 'f1c', 238], [650, 'f1c', 388], [650, 'f1c', 538], [700, 'f1c', 113], [700, 'f1c', 213], [700, 'f1c', 413], [700, 'f1c', 513], [750, 'f1c', 138], [750, 'f1c', 188], [750, 'f1c', 438], [750, 'f1c', 488], [800, 'f1a', 163], [800, 'f1a', 188], [800, 'f1a', 213], [800, 'f1a', 238], [800, 'f1a', 263], [800, 'f1a', 288], [800, 'f1a', 313], [800, 'f1a', 338], [800, 'f1a', 363], [800, 'f1a', 388], [800, 'f1a', 413], [800, 'f1a', 438], [800, 'f1a', 463], [850, 'f1c', 188], [850, 'f1c', 438], [900, 'f1c', 213], [900, 'f1c', 413], [950, 'f1c', 238], [950, 'f1c', 388], [1000, 'f1d', 263], [1000, 'f1d', 363], [1050, 'f1d', 288], [1050, 'f1d', 338], [1100, 'f1d', 313], [1150, 'f1a', 113], [1150, 'f1b', 213], [1150, 'f1c', 313], [1150, 'f1d', 413], [1150, 'f1e', 513], [1200, 'f1a', 113], [1200, 'f1a', 213], [1200, 'f1a', 313], [1200, 'f1a', 413], [1200, 'f1a', 513], [1200, 'f2a', 113], [1200, 'f2a', 213], [1200, 'f2a', 313], [1200, 'f2a', 413], [1200, 'f2a', 513], [1300, 'f1b', 113], [1300, 'f1b', 213], [1300, 'f1b', 313], [1300, 'f1b', 413], [1300, 'f1b', 513], [1300, 'f2b', 113], [1300, 'f2b', 213], [1300, 'f2b', 313], [1300, 'f2b', 413], [1300, 'f2b', 513], [1400, 'f1c', 113], [1400, 'f1c', 213], [1400, 'f1c', 313], [1400, 'f1c', 413], [1400, 'f1c', 513], [1400, 'f2c', 113], [1400, 'f2c', 213], [1400, 'f2c', 313], [1400, 'f2c', 413], [1400, 'f2c', 513], [1500, 'f1d', 113], [1500, 'f1d', 213], [1500, 'f1d', 313], [1500, 'f1d', 413], [1500, 'f1d', 513], [1500, 'f2d', 113], [1500, 'f2d', 213], [1500, 'f2d', 313], [1500, 'f2d', 413], [1500, 'f2d', 513], [1600, 'f1e', 113], [1600, 'f1e', 213], [1600, 'f1e', 313], [1600, 'f1e', 413], [1600, 'f1e', 513], [1600, 'f2e', 113], [1600, 'f2e', 213], [1600, 'f2e', 313], [1600, 'f2e', 413], [1600, 'f2e', 513], [1700, 'bossytitle', 0], [1799, 'bosshavoce1', 0], [1799, 'bosshavoce2', 0], [1800, 'bosshavoc', 0]];
var totallevels = 1;
var currentweapon = 'singlelazer';
var currentlevel = 1;
var cooldowntime = 4;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
var lives = 0;
var tiem = 5;
var score = 0;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(80)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
++levelposition;
for (;;) {
if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break;
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
(eval(enemies[enemysearch])).enemyaction();
++enemysearch;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
(eval(weapons[weaponsearch])).weaponaction();
++weaponsearch;
}
if (Key.isDown(32) or Key.isDown(88)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x -= 7;
}
if (Key.isDown(39)) {
ship._x += 7;
}
if (Key.isDown(38)) {
ship._y -= 7;
}
if (Key.isDown(40)) {
ship._y += 7;
}
if (Key.isDown(67)) {
ship._rotation -= 10;
}
if (Key.isDown(86)) {
ship._rotation += 10;
}
if (ship._x <= 0) {
ship._x = 624;
}
if (ship._x >= 625) {
ship._x = 1;
}
if (ship._y <= 0) {
ship._y = 649;
}
if (ship._y >= 650) {
ship._y = 1;
}
starfield.movestars();
}
};
}
frame 14 {
function shootweapon() {
if (currentweapon == 'singlelazer') {
this.attachMovie('lasercenter', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'broad') {
this.attachMovie('laserleft', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('lasercenter2', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
this.attachMovie('laserright', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
if (currentweapon == 'power') {
this.attachMovie('laserpower', 'weapons' + weaponcount, this.getNextHighestDepth(), {'_x': ship._x, '_y': ship._y, '_rotation': ship._rotation});
weapons.push('weapons' + weaponcount);
++weaponcount;
}
}
function insertenemy(enemytype, xpos, ypos) {
this.attachMovie(enemytype, 'enemy' + enemycount, this.getNextHighestDepth(), {'_x': xpos, '_y': ypos});
enemies.push('enemy' + enemycount);
++enemycount;
}
function removeenemy(enemyid) {
enemysearch = 0;
while (enemysearch < enemies.length) {
if (enemies[enemysearch] == enemyid) {
enemies.splice(enemysearch, 1);
break;
}
++enemysearch;
}
(eval(enemyid)).removeMovieClip();
}
function removeweapon(weaponid) {
weaponsearch = 0;
while (weaponsearch < weapons.length) {
if (weapons[weaponsearch] == weaponid) {
weapons.splice(weaponsearch, 1);
break;
}
++weaponsearch;
}
(eval(weaponid)).removeMovieClip();
}
function addpoints(points) {
score += points;
}
function hitship() {
if (ship._currentframe == 1) {
ship.gotoAndPlay('shiphit');
}
if (ship._currentframe == 2) {
ship.gotoAndPlay('shiphit');
}
}
function respawnship() {
if (ship != undefined) {
removeMovieClip(ship);
}
this.attachMovie('ship', 'ship', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height - 50});
}
function loselife() {
if (lives > 0) {
--lives;
respawnship();
currentweapon = 'singlelazer';
} else {
if (ship != undefined) {
removeMovieClip(ship);
}
losegame();
}
}
function resetlevel() {
enemyloop = 0;
while (enemyloop < enemies.length) {
(eval(enemies[enemyloop])).removeMovieClip();
++enemyloop;
}
weaponloop = 0;
while (weaponloop < weapons.length) {
(eval(weapons[weaponloop])).removeMovieClip();
++weaponloop;
}
enemies = [];
weapons = [];
enemycount = 0;
weaponcount = 0;
currentenemies = (new Array()).concat(eval('level' + currentlevel + 'enemies'));
levelposition = 0;
if (ship != undefined) {
ship.removeMovieClip();
}
if (currentlevel > 0) {
this.attachMovie('showlevel', 'showlevel', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function newgame() {
currentlevel = 1;
resetlevel();
respawnship();
}
function showmainscreen() {
currentlevel = 0;
resetlevel();
this.attachMovie('D1 Intro', 'D1 Intro', this.getNextHighestDepth(), {'_x': 450, '_y': Stage.height / 3});
}
function losegame() {
currentlevel = 0;
resetlevel();
this.attachMovie('lost3', 'lost3', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
function winlevel() {
++currentlevel;
resetlevel();
if (totallevels >= currentlevel) {
respawnship();
} else {
this.attachMovie('dimensionzcompletelun', 'dimensionzcompletelun', this.getNextHighestDepth(), {'_x': Stage.width / 2, '_y': Stage.height / 3});
}
}
function addtiem(points) {
tiem += points;
}
stop();
mySoundc = new Sound();
mySoundc.attachSound('zmusic');
mySoundc.start(0, 999);
stop();
var level0enemies = [];
var level1enemies = [[0, 'bulletwall1', -80], [0, 'bulletwall2', 705], [0, 'bulletwall3', 0], [0, 'bulletwall4', 0], [0, 'Dimension Z', 0], [100, 'f1f', 313], [100, 'f1f', 413], [100, 'f1f', 513], [150, 'f2f', 313], [150, 'f2f', 413], [150, 'f2f', 513], [200, 'f1f', 113], [200, 'f1f', 213], [200, 'f1f', 313], [200, 'f1f', 413], [200, 'f1f', 513], [250, 'f2f', 113], [250, 'f2f', 213], [250, 'f2f', 313], [250, 'f2f', 413], [250, 'f2f', 513], [300, 'f1f', 303], [300, 'f1f', 313], [300, 'f1f', 323], [302, 'f1f', 308], [302, 'f1f', 318], [304, 'f1f', 313], [350, 'f2f', 303], [350, 'f2f', 313], [350, 'f2f', 323], [352, 'f2f', 308], [352, 'f2f', 318], [354, 'f2f', 333], [400, 'f1g', 313], [425, 'f2g', 313], [450, 'f1g', 213], [450, 'f2g', 213], [450, 'f1g', 413], [450, 'f2g', 413], [500, 'f1a', 13], [500, 'f1a', 38], [500, 'f1a', 63], [500, 'f1a', 88], [500, 'f1a', 113], [500, 'f1a', 138], [500, 'f1a', 163], [500, 'f1a', 188], [500, 'f1a', 213], [500, 'f1a', 238], [500, 'f1a', 263], [500, 'f1a', 288], [500, 'f1a', 313], [500, 'f1a', 338], [500, 'f1a', 363], [500, 'f1a', 388], [500, 'f1a', 413], [500, 'f1a', 438], [500, 'f1a', 463], [500, 'f1a', 488], [500, 'f1a', 513], [500, 'f1a', 538], [500, 'f1a', 563], [500, 'f1a', 588], [500, 'f1a', 613], [500, 'f2a', 13], [500, 'f2a', 38], [500, 'f2a', 63], [500, 'f2a', 88], [500, 'f2a', 113], [500, 'f2a', 138], [500, 'f2a', 163], [500, 'f2a', 188], [500, 'f2a', 213], [500, 'f2a', 238], [500, 'f2a', 263], [500, 'f2a', 288], [500, 'f2a', 313], [500, 'f2a', 338], [500, 'f2a', 363], [500, 'f2a', 388], [500, 'f2a', 413], [500, 'f2a', 438], [500, 'f2a', 463], [500, 'f2a', 488], [500, 'f2a', 513], [500, 'f2a', 538], [500, 'f2a', 563], [500, 'f2a', 588], [500, 'f2a', 613], [555, 'f1g', 313], [555, 'f2g', 313], [700, 'f1g', 113], [700, 'f1g', 213], [700, 'f1g', 313], [700, 'f1g', 413], [700, 'f1g', 513], [800, 'f1g', 113], [800, 'f1g', 213], [800, 'f1g', 313], [800, 'f1g', 413], [800, 'f1g', 513], [900, 'f1h', 113], [900, 'f1h', 213], [900, 'f1h', 313], [900, 'f1h', 413], [900, 'f1h', 513], [1000, 'f1h', 113], [1000, 'f1h', 213], [1000, 'f1h', 313], [1000, 'f1h', 413], [1000, 'f1h', 513], [1100, 'f1i', 113], [1100, 'f1i', 213], [1100, 'f1i', 313], [1100, 'f1i', 413], [1100, 'f1i', 513], [1200, 'f1i', 113], [1200, 'f1i', 213], [1200, 'f1i', 313], [1200, 'f1i', 413], [1200, 'f1i', 513], [1300, 'f2j', 113], [1300, 'f2j', 213], [1300, 'f2j', 313], [1300, 'f2j', 413], [1300, 'f2j', 513], [1400, 'f1j', 113], [1400, 'f1j', 213], [1400, 'f1j', 313], [1400, 'f1j', 413], [1400, 'f1j', 513], [1500, 'musiccontainer', 0]];
var totallevels = 1;
var currentweapon = 'singlelazer';
var currentlevel = 1;
var cooldowntime = 4;
var guncooldown = 0;
var enemies = [];
var weapons = [];
var enemycount = 0;
var weaponcount = 0;
var currentenemies = [];
var levelposition = 0;
var gamepaused = false;
var lives = 0;
var tiem = 25;
var score = 0;
showmainscreen();
onEnterFrame = function () {
if (Key.isDown(80)) {
gamepaused = !gamepaused;
}
if (!gamepaused) {
++levelposition;
for (;;) {
if (!(currentenemies[0][0] <= levelposition && currentenemies.length > 0)) break;
insertenemy(currentenemies[0][1], currentenemies[0][2], 0);
currentenemies.shift();
}
guncooldown = Math.max(0, guncooldown - 1);
enemysearch = 0;
while (enemysearch < enemies.length) {
(eval(enemies[enemysearch])).enemyaction();
++enemysearch;
}
weaponsearch = 0;
while (weaponsearch < weapons.length) {
(eval(weapons[weaponsearch])).weaponaction();
++weaponsearch;
}
if (Key.isDown(32) or Key.isDown(88)) {
if (guncooldown == 0) {
guncooldown = cooldowntime;
shootweapon();
}
}
if (Key.isDown(37)) {
ship._x -= 7;
}
if (Key.isDown(39)) {
ship._x += 7;
}
if (Key.isDown(38)) {
ship._y -= 7;
}
if (Key.isDown(40)) {
ship._y += 7;
}
if (Key.isDown(67)) {
ship._rotation -= 10;
}
if (Key.isDown(86)) {
ship._rotation += 10;
}
if (ship._x <= 0) {
ship._x = 624;
}
if (ship._x >= 625) {
ship._x = 1;
}
if (ship._y <= 0) {
ship._y = 649;
}
if (ship._y >= 650) {
ship._y = 1;
}
starfield.movestars();
}
};
}
frame 15 {
stop();
}
button 1532 {
on (release, keyPress '<Enter>') {
if (password == 'LHAIG') {
gotoAndStop('dimensiony');
} else {
if (password == '5ANIH') {
gotoAndStop('dimensionz');
} else {
gotoAndStop('dimensionx');
}
}
}
}
movieClip 1537 {
}
movieClip 1538 {
frame 35 {
gotoAndPlay(1);
}
}
movieClip 1540 {
frame 70 {
gotoAndPlay(1);
}
}