Frame 1 (519 B)
stop();
_root.days = 100;
_root.compmoney = 0;
_root.money = 0;
_root.gas = 100;
_root.gasmax = 100;
_root.maxspeed = 5;
_root.life = 100;
_root.lifemax = 100;
_root.shieldtime = 100;
_root.shieldtimemax = 100;
_root.shieldnr = 3;
_root.speedbonus = 0;
_root._quality = "MEDIUM";
_root.money2 = 0;
_root.gas2 = 100;
_root.gasmax2 = 100;
_root.maxspeed2 = 5;
_root.life2 = 100;
_root.lifemax2 = 100;
_root.shieldtime2 = 100;
_root.shieldtimemax2 = 100;
_root.shieldnr2 = 3;
_root.speedbonus2 = 0;
Instance of Symbol 2 MovieClip in Frame 1 (184 B)
onClipEvent (enterFrame) {
stop();
_root.PercentLoaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this._rotation = this._rotation + _root.PercentLoaded;
}
Instance of Symbol 5 MovieClip in Frame 1 (320 B)
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.PercentLoaded == 100) {
play();
this._visible = true;
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
if (this._xscale > 1000) {
tellTarget ("_root") {
play();
};
}
}
}
Instance of Symbol 9 MovieClip in Frame 1 (222 B)
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 30;
_root.count = 1;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Frame 2 (8 B)
stop();
Frame 3 (8 B)
stop();
Instance of Symbol 81 MovieClip in Frame 243 (76 B)
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
_x = (_x - 5);
}
Instance of Symbol 84 MovieClip in Frame 243 (76 B)
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
_x = (_x - 5);
}
Instance of Symbol 87 MovieClip in Frame 243 (76 B)
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
_x = (_x - 5);
}
Instance of Symbol 89 MovieClip in Frame 243 (76 B)
onClipEvent (enterFrame) {
_rotation = (_rotation - 5);
_x = (_x - 5);
}
Instance of Symbol 5 MovieClip in Frame 314 (128 B)
onClipEvent (enterFrame) {
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
play();
}
Frame 338 (17 B)
gotoAndPlay (7);
Frame 339 (152 B)
pl1.useHandCursor = false;
pl2.useHandCursor = false;
options.useHandCursor = false;
pr.useHandCursor = false;
load.useHandCursor = false;
stop();
Instance of Symbol 9 MovieClip in Frame 339 (222 B)
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 30;
_root.count = 1;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Frame 340 (140 B)
pl1.useHandCursor = false;
pl2.useHandCursor = false;
load.useHandCursor = false;
mySharedObject = SharedObject.getLocal("savedObject");
Frame 341 (514 B)
stop();
mySharedObject = SharedObject.getLocal("savedObject");
_root.gas = _root.gasmax;
_root.lifeupg = Math.round(_root.lifemax + 10);
_root.lifeprice = Math.round(_root.lifemax * 10);
_root.shieldupg = Math.round(_root.shieldtimemax + 10);
_root.shieldprice = Math.round(_root.shieldtimemax * 9);
_root.gasupg = Math.round(_root.gasmax + 10);
_root.gasprice = Math.round(_root.gasmax * 20);
_root.maxspeedupg = _root.maxspeed + 0.5;
_root.maxspeedprice = _root.maxspeed * 1000;
_root.pl1move = true;
Instance of Symbol 146 MovieClip in Frame 341 (112 B)
onClipEvent (enterFrame) {
if (_root.days < 1) {
tellTarget ("_root") {
gotoAndPlay ("end1");
};
}
}
Instance of Symbol 146 MovieClip in Frame 341 (218 B)
onClipEvent (enterFrame) {
if (Key.isDown(70)) {
if (Key.isDown(85)) {
if (Key.isDown(83)) {
if (Key.isDown(75)) {
_root.money = _root.money * 2;
_root.money2 = _root.money2 * 2;
}
}
}
}
}
Frame 343 (8 B)
stop();
Instance of Symbol 68 MovieClip "alien" in Frame 343 (253 B)
onClipEvent (load) {
speed = 40;
}
onClipEvent (enterFrame) {
this._x = this._x + ((endx - this._x) / speed);
this._y = this._y + ((endy - this._y) / speed);
if (_root.dollar.place == false) {
endx = _root.dollar._x;
endy = _root.dollar._y;
}
}
Instance of Symbol 178 MovieClip "shield" in Frame 343 (791 B)
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship._y + random(5)) - 5;
this._x = (_root.ship._x + random(5)) - 5;
if (Key.isDown(96)) {
if (_root.shieldexist == false) {
if (_root.shieldnr > 0) {
_root.shieldnr = _root.shieldnr - 1;
_root.shieldtime = _root.shieldtimemax;
_root.shield._visible = true;
_root.shieldexist = true;
}
}
}
if (_root.shieldexist == false) {
_root.shield._visible = false;
} else if (_root.shieldtime < 0) {
_root.shield._visible = false;
_root.shieldexist = false;
}
if (_root.shieldexist == true) {
_root.shieldtime = _root.shieldtime - 1;
}
}
onClipEvent (load) {
_root.shieldexist = false;
_root.shield._visible = false;
_root.shieldtime = 100;
}
Instance of Symbol 183 MovieClip "ship" in Frame 343 (1.21 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (_root.pl1move == true) {
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
_root.gas = _root.gas - (_root.maxspeed / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl1move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl1move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl1move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl1move == true) {
_x = 0;
}
}
if (_root.pl1move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 34 MovieClip "dollar" in Frame 343 (583 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 400;
_root.totalmoney = _root.totalmoney + 400;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 46 MovieClip in Frame 343 (379 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 43 MovieClip in Frame 343 (370 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 40 MovieClip in Frame 343 (368 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 5 MovieClip in Frame 343 (566 B)
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.life < 1) {
this._x = _root.ship._x;
this._y = _root.ship._y;
this._visible = true;
_root.ship._visible = false;
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
play();
}
if (this._xscale > 1000) {
tellTarget ("_root") {
gotoAndPlay ("shoppl1");
_root.txtbox = "You died. All your money went to repairing your ship.";
_root.life = _root.lifemax;
_root.money = 0;
_root.days = _root.days - 1;
};
}
}
Instance of Symbol 178 MovieClip in Frame 343 (54 B)
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 209 MovieClip "visual" in Frame 343 (1.07 KiB) ●
onClipEvent (enterFrame) {
if (_currentframe > 1) {
this._alpha = random(30);
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar1") {
_currentframe = Math.round((_root.gas / _root.gasmax) * 100);
gotoAndStop(Math.round((_root.gas / _root.gasmax) * 100));
};
if (_root.gas < 0) {
tellTarget ("_root") {
gotoAndStop ("shoppl1");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar1") {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100));
};
tellTarget ("_root.astroface") {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar1") {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100));
};
if (_root.shieldexist == false) {
tellTarget ("_root.shieldbar1") {
gotoAndStop (100);
};
}
}
Instance of Symbol 212 MovieClip in Frame 344 (255 B)
onClipEvent (load) {
this._x = random(450) + 100;
this._y = 50;
}
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 178 MovieClip "shield" in Frame 344 (791 B)
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship._y + random(5)) - 5;
this._x = (_root.ship._x + random(5)) - 5;
if (Key.isDown(96)) {
if (_root.shieldexist == false) {
if (_root.shieldnr > 0) {
_root.shieldnr = _root.shieldnr - 1;
_root.shieldtime = _root.shieldtimemax;
_root.shield._visible = true;
_root.shieldexist = true;
}
}
}
if (_root.shieldexist == false) {
_root.shield._visible = false;
} else if (_root.shieldtime < 0) {
_root.shield._visible = false;
_root.shieldexist = false;
}
if (_root.shieldexist == true) {
_root.shieldtime = _root.shieldtime - 1;
}
}
onClipEvent (load) {
_root.shieldexist = false;
_root.shield._visible = false;
_root.shieldtime = 100;
}
Instance of Symbol 183 MovieClip "ship" in Frame 344 (1.21 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (_root.pl1move == true) {
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
_root.gas = _root.gas - (_root.maxspeed / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl1move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl1move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl1move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl1move == true) {
_x = 0;
}
}
if (_root.pl1move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 34 MovieClip "dollar" in Frame 344 (583 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 500;
_root.totalmoney = _root.totalmoney + 500;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 46 MovieClip in Frame 344 (379 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 43 MovieClip in Frame 344 (370 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 40 MovieClip in Frame 344 (368 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 81 MovieClip in Frame 345 (496 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 84 MovieClip in Frame 345 (496 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 87 MovieClip in Frame 345 (496 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 215 MovieClip in Frame 345 (496 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 34 MovieClip "dollar" in Frame 345 (583 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 700;
_root.totalmoney = _root.totalmoney + 350;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 9 MovieClip in Frame 346 (441 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 68 MovieClip in Frame 346 (441 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 9 MovieClip in Frame 346 (443 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 68 MovieClip in Frame 346 (443 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 217 MovieClip in Frame 347 (829 B)
onClipEvent (enterFrame) {
if (_root.ship._y > 200) {
_root.ship.yspeed = _root.ship.yspeed + 0.05;
} else {
_root.ship.yspeed = _root.ship.yspeed - 0.05;
}
if (_root.ship._x > 275) {
_root.ship.xspeed = _root.ship.xspeed - 0.05;
} else {
_root.ship.xspeed = _root.ship.xspeed + 0.05;
}
this._xscale = this._xscale + 0.25;
this._yscale = this._xscale;
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
if (_root.ship2._x > 275) {
_root.ship2.xspeed = _root.ship2.xspeed - 0.05;
} else {
_root.ship2.xspeed = _root.ship2.xspeed + 0.05;
}
}
if (_root.ship2._y > 200) {
_root.ship2.yspeed = _root.ship2.yspeed + 0.05;
} else {
_root.ship2.yspeed = _root.ship2.yspeed - 0.05;
}
}
Instance of Symbol 34 MovieClip "dollar" in Frame 347 (583 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 900;
_root.totalmoney = _root.totalmoney + 450;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 217 MovieClip in Frame 348 (861 B)
onClipEvent (enterFrame) {
if (_root.ship2._x > 275) {
_root.ship2.xspeed = _root.ship2.xspeed - 0.2;
} else {
_root.ship2.xspeed = _root.ship2.xspeed + 0.2;
}
if (_root.ship2._y > 200) {
_root.ship2.yspeed = _root.ship2.yspeed + 0.2;
} else {
_root.ship2.yspeed = _root.ship2.yspeed - 0.2;
}
if (_root.ship._y > 200) {
_root.ship.yspeed = _root.ship.yspeed + 0.2;
} else {
_root.ship.yspeed = _root.ship.yspeed - 0.2;
}
if (_root.ship._x > 275) {
_root.ship.xspeed = _root.ship.xspeed - 0.2;
} else {
_root.ship.xspeed = _root.ship.xspeed + 0.2;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
}
}
}
Instance of Symbol 34 MovieClip "dollar" in Frame 348 (584 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 1000;
_root.totalmoney = _root.totalmoney + 500;
_root.alien.endx = 260;
_root.alien.endy = 200;
}
if (this.hittest(_root.alien)) {
play();
_root.alien.endx = 260;
_root.alien.endy = 200;
_root.compmoney = _root.compmoney + 200;
}
if (place == true) {
this._y = random(400);
this._x = random(550);
}
if (this._currentframe > 2) {
_root.alien.endx = 260;
_root.alien.endy = 200;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 212 MovieClip in Frame 349 (255 B)
onClipEvent (load) {
this._x = random(450) + 100;
this._y = 50;
}
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 81 MovieClip in Frame 349 (496 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 84 MovieClip in Frame 349 (496 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 87 MovieClip in Frame 349 (496 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 215 MovieClip in Frame 349 (496 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 9 MovieClip in Frame 349 (441 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 68 MovieClip in Frame 349 (441 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 9 MovieClip in Frame 349 (443 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 68 MovieClip in Frame 349 (443 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Frame 350 (8 B)
stop();
Instance of Symbol 68 MovieClip "alien" in Frame 350 (184 B)
onClipEvent (load) {
speed = 30;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 68 MovieClip "alien" in Frame 350 (184 B)
onClipEvent (load) {
speed = 40;
}
onClipEvent (enterFrame) {
undX = _root._xmouse;
undY = _root._ymouse;
_x = (_x + ((undX - _x) / speed));
_y = (_y + ((undY - _y) / speed));
}
Instance of Symbol 68 MovieClip "alien" in Frame 350 (184 B)
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 68 MovieClip "alien" in Frame 350 (184 B)
onClipEvent (load) {
speed = 50;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 225 MovieClip in Frame 350 (201 B)
onClipEvent (enterFrame) {
if (_root.totalmoney > _root.compmoney) {
plstatus = "You won!";
pl2status = "Computer lost!";
} else {
plstatus = "You lost!";
pl2status = "Computer won!";
}
}
Frame 351 (537 B)
stop();
mySharedObject = SharedObject.getLocal("savedObject");
_root.gas = _root.gasmax;
_root.lifeupg = Math.round(_root.lifemax + 10);
_root.lifeprice = Math.round(_root.lifemax * 10);
_root.shieldupg = Math.round(_root.shieldtimemax + 10);
_root.shieldprice = Math.round(_root.shieldtimemax * 9);
_root.gasupg = Math.round(_root.gasmax + 10);
_root.gasprice = Math.round(_root.gasmax * 20);
_root.maxspeedupg = _root.maxspeed + 0.5;
_root.maxspeedprice = _root.maxspeed * 1000;
_root.pl1move = true;
_root.pl2move = true;
Instance of Symbol 253 MovieClip "pl1end" in Frame 351 (42 B)
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 146 MovieClip in Frame 351 (218 B)
onClipEvent (enterFrame) {
if (Key.isDown(70)) {
if (Key.isDown(85)) {
if (Key.isDown(83)) {
if (Key.isDown(75)) {
_root.money = _root.money * 2;
_root.money2 = _root.money2 * 2;
}
}
}
}
}
Frame 352 (8 B)
stop();
Instance of Symbol 178 MovieClip "shield" in Frame 352 (791 B)
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship._y + random(5)) - 5;
this._x = (_root.ship._x + random(5)) - 5;
if (Key.isDown(96)) {
if (_root.shieldexist == false) {
if (_root.shieldnr > 0) {
_root.shieldnr = _root.shieldnr - 1;
_root.shieldtime = _root.shieldtimemax;
_root.shield._visible = true;
_root.shieldexist = true;
}
}
}
if (_root.shieldexist == false) {
_root.shield._visible = false;
} else if (_root.shieldtime < 0) {
_root.shield._visible = false;
_root.shieldexist = false;
}
if (_root.shieldexist == true) {
_root.shieldtime = _root.shieldtime - 1;
}
}
onClipEvent (load) {
_root.shieldexist = false;
_root.shield._visible = false;
_root.shieldtime = 100;
}
Instance of Symbol 178 MovieClip "shield2" in Frame 352 (812 B)
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship2._y + random(5)) - 5;
this._x = (_root.ship2._x + random(5)) - 5;
if (Key.isDown(32)) {
if (_root.shieldexist2 == false) {
if (_root.shieldnr2 > 0) {
_root.shieldnr2 = _root.shieldnr2 - 1;
_root.shieldtime2 = _root.shieldtimemax2;
_root.shield2._visible = true;
_root.shieldexist2 = true;
}
}
}
if (_root.shieldexist2 == false) {
_root.shield2._visible = false;
} else if (_root.shieldtime2 < 0) {
_root.shield2._visible = false;
_root.shieldexist2 = false;
}
if (_root.shieldexist2 == true) {
_root.shieldtime2 = _root.shieldtime2 - 1;
}
}
onClipEvent (load) {
_root.shieldexist2 = false;
_root.shield2._visible = false;
_root.shieldtime2 = 100;
}
Instance of Symbol 183 MovieClip "ship" in Frame 352 (1.21 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (_root.pl1move == true) {
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
_root.gas = _root.gas - (_root.maxspeed / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl1move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl1move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl1move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl1move == true) {
_x = 0;
}
}
if (_root.pl1move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 34 MovieClip in Frame 352 (460 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 400;
_root.totalmoney2 = _root.totalmoney2 + 400;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 400;
_root.totalmoney = _root.totalmoney + 400;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 256 MovieClip "ship2" in Frame 352 (1.48 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (_root.pl2move == true) {
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
_root.gas2 = _root.gas2 - (_root.maxspeed2 / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl2move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl2move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl2move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl2move == true) {
_x = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed * 5;
xSpeed = _root.ship.xSpeed * 5;
_root.ship.ySpeed = yknock * 5;
_root.ship.xSpeed = xknock * 5;
}
if (_root.pl2move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 46 MovieClip in Frame 352 (467 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.shieldnr2 = _root.shieldnr2 + 1;
}
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 43 MovieClip in Frame 352 (449 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.life2 = _root.lifemax2;
}
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 40 MovieClip in Frame 352 (445 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.gas2 = _root.gasmax2;
}
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 178 MovieClip in Frame 352 (54 B)
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 178 MovieClip in Frame 352 (54 B)
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 266 MovieClip in Frame 352 (317 B)
onClipEvent (load) {
stop();
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gas < 0) {
if (Key.isDown(87)) {
stop();
} else {
play();
this._visible = true;
}
} else if (_root.gas2 < 0) {
if (Key.isDown(38)) {
stop();
} else {
play();
this._visible = true;
}
}
}
Instance of Symbol 209 MovieClip "visual" in Frame 352 (1.73 KiB) ●
onClipEvent (enterFrame) {
if (_currentframe > 1) {
this._alpha = random(30);
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar1") {
_currentframe = Math.round((_root.gas / _root.gasmax) * 100);
gotoAndStop(Math.round((_root.gas / _root.gasmax) * 100));
};
if (_root.gas < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar1") {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar1") {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100));
};
if (_root.shieldexist == false) {
tellTarget ("_root.shieldbar1") {
gotoAndStop (100);
};
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar2") {
_currentframe = Math.round((_root.gas2 / _root.gasmax2) * 100);
gotoAndStop(Math.round((_root.gas2 / _root.gasmax2) * 100));
};
if (_root.gas2 < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar2") {
_currentframe = Math.round((_root.life2 / _root.lifemax2) * 100);
gotoAndStop(Math.round((_root.life2 / _root.lifemax2) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar2") {
_currentframe = Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100);
gotoAndStop(Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100));
};
if (_root.shieldexist2 == false) {
tellTarget ("_root.shieldbar2") {
gotoAndStop (100);
};
}
}
Frame 353 (8 B)
stop();
Instance of Symbol 212 MovieClip in Frame 353 (418 B)
onClipEvent (load) {
this._x = random(450) + 100;
this._y = 50;
}
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 5 MovieClip in Frame 353 (531 B)
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.life < 1) {
this._x = _root.ship._x;
this._y = _root.ship._y;
this._visible = true;
_root.ship._visible = false;
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
play();
}
if (this._xscale > 1000) {
tellTarget ("_root") {
gotoAndPlay ("shop");
_root.txtbox = "You died. All your money went to repairing your ship.";
_root.life = _root.lifemax;
_root.money = 0;
};
}
}
Instance of Symbol 46 MovieClip in Frame 353 (467 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.shieldnr2 = _root.shieldnr2 + 1;
}
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 43 MovieClip in Frame 353 (449 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.life2 = _root.lifemax2;
}
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 40 MovieClip in Frame 353 (445 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.gas2 = _root.gasmax2;
}
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 5 MovieClip in Frame 353 (543 B)
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.life2 < 1) {
this._x = _root.ship2._x;
this._y = _root.ship2._y;
this._visible = true;
_root.ship2._visible = false;
this._xscale = this._xscale + Math.round(this._xscale / 5);
this._yscale = this._xscale;
play();
}
if (this._xscale > 1000) {
tellTarget ("_root") {
gotoAndPlay ("shop");
_root.txtbox = "Player 2 died. All your money went to repairing your ship.";
_root.life2 = _root.lifemax2;
_root.money2 = 0;
};
}
}
Instance of Symbol 256 MovieClip "ship2" in Frame 353 (1.48 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (_root.pl2move == true) {
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
_root.gas2 = _root.gas2 - (_root.maxspeed2 / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl2move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl2move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl2move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl2move == true) {
_x = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed * 5;
xSpeed = _root.ship.xSpeed * 5;
_root.ship.ySpeed = yknock * 5;
_root.ship.xSpeed = xknock * 5;
}
if (_root.pl2move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 34 MovieClip in Frame 353 (460 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 500;
_root.totalmoney2 = _root.totalmoney2 + 500;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 500;
_root.totalmoney = _root.totalmoney + 500;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 354 (8 B)
stop();
Instance of Symbol 81 MovieClip in Frame 354 (661 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 84 MovieClip in Frame 354 (661 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 87 MovieClip in Frame 354 (661 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 215 MovieClip in Frame 354 (661 B)
onClipEvent (enterFrame) {
this._x = this._x - 5;
this._y = this._y - 5;
if (this._y > 420) {
this._y = -20;
} else if (this._y < -20) {
this._y = 420;
}
if (this._x > 570) {
this._x = -20;
} else if (this._x < -20) {
this._x = 570;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 0.5;
tellTarget ("_root.visual") {
play();
};
}
}
}
onClipEvent (load) {
this._x = random(550);
this._y = random(400);
}
Instance of Symbol 34 MovieClip in Frame 354 (460 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 800;
_root.totalmoney2 = _root.totalmoney2 + 800;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 800;
_root.totalmoney = _root.totalmoney + 800;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 355 (8 B)
stop();
Instance of Symbol 9 MovieClip in Frame 355 (604 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 68 MovieClip in Frame 355 (604 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 9 MovieClip in Frame 355 (606 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 68 MovieClip in Frame 355 (606 B)
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (this._y < _root.ship2._y) {
yspeed = yspeed + 0.1;
} else {
yspeed = yspeed - 0.1;
}
if (this._x < _root.ship2._x) {
xspeed = xspeed + 0.1;
} else {
xspeed = xspeed - 0.1;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 34 MovieClip in Frame 355 (460 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 600;
_root.totalmoney2 = _root.totalmoney2 + 600;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 600;
_root.totalmoney = _root.totalmoney + 600;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 356 (8 B)
stop();
Instance of Symbol 217 MovieClip in Frame 356 (0.98 KiB)
onClipEvent (enterFrame) {
if (_root.ship._y > 200) {
_root.ship.yspeed = _root.ship.yspeed + 0.05;
} else {
_root.ship.yspeed = _root.ship.yspeed - 0.05;
}
if (_root.ship._x > 275) {
_root.ship.xspeed = _root.ship.xspeed - 0.05;
} else {
_root.ship.xspeed = _root.ship.xspeed + 0.05;
}
this._xscale = this._xscale + 0.25;
this._yscale = this._xscale;
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
if (_root.ship2._x > 275) {
_root.ship2.xspeed = _root.ship2.xspeed - 0.05;
} else {
_root.ship2.xspeed = _root.ship2.xspeed + 0.05;
}
}
if (_root.ship2._y > 200) {
_root.ship2.yspeed = _root.ship2.yspeed + 0.05;
} else {
_root.ship2.yspeed = _root.ship2.yspeed - 0.05;
}
}
Instance of Symbol 34 MovieClip in Frame 356 (460 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 900;
_root.totalmoney2 = _root.totalmoney2 + 900;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 900;
_root.totalmoney = _root.totalmoney + 900;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 357 (8 B)
stop();
Instance of Symbol 217 MovieClip in Frame 357 (912 B)
onClipEvent (enterFrame) {
if (_root.ship2._x > 275) {
_root.ship2.xspeed = _root.ship2.xspeed - 0.2;
} else {
_root.ship2.xspeed = _root.ship2.xspeed + 0.2;
}
if (_root.ship2._y > 200) {
_root.ship2.yspeed = _root.ship2.yspeed + 0.2;
} else {
_root.ship2.yspeed = _root.ship2.yspeed - 0.2;
}
if (_root.ship._y > 200) {
_root.ship.yspeed = _root.ship.yspeed + 0.2;
} else {
_root.ship.yspeed = _root.ship.yspeed - 0.2;
}
if (_root.ship._x > 275) {
_root.ship.xspeed = _root.ship.xspeed - 0.2;
} else {
_root.ship.xspeed = _root.ship.xspeed + 0.2;
}
if (this.hittest(_root.ship)) {
if (_root.shieldexist == false) {
_root.life = _root.life - 1;
tellTarget ("_root.visual") {
play();
};
}
}
if (this.hittest(_root.ship2)) {
if (_root.shieldexist2 == false) {
_root.life2 = _root.life2 - 1;
tellTarget ("_root.visual") {
play();
};
}
}
}
Instance of Symbol 34 MovieClip in Frame 357 (464 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 1000;
_root.totalmoney2 = _root.totalmoney2 + 1000;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 1000;
_root.totalmoney = _root.totalmoney + 1000;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Frame 360 (453 B)
stop();
_root.gas2 = _root.gasmax2;
_root.lifeupg2 = Math.round(_root.lifemax2 + 10);
_root.lifeprice2 = Math.round(_root.lifemax2 * 10);
_root.shieldupg2 = Math.round(_root.shieldtimemax2 + 10);
_root.shieldprice2 = Math.round(_root.shieldtimemax2 * 9);
_root.gasupg2 = Math.round(_root.gasmax2 + 10);
_root.gasprice2 = Math.round(_root.gasmax2 * 20);
_root.maxspeedupg2 = _root.maxspeed2 + 0.5;
_root.maxspeedprice2 = _root.maxspeed2 * 1000;
Instance of Symbol 313 MovieClip "pl2end" in Frame 360 (42 B)
onClipEvent (load) {
_visible = false;
}
Frame 361 (8 B)
stop();
Instance of Symbol 178 MovieClip "shield" in Frame 361 (791 B)
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship._y + random(5)) - 5;
this._x = (_root.ship._x + random(5)) - 5;
if (Key.isDown(96)) {
if (_root.shieldexist == false) {
if (_root.shieldnr > 0) {
_root.shieldnr = _root.shieldnr - 1;
_root.shieldtime = _root.shieldtimemax;
_root.shield._visible = true;
_root.shieldexist = true;
}
}
}
if (_root.shieldexist == false) {
_root.shield._visible = false;
} else if (_root.shieldtime < 0) {
_root.shield._visible = false;
_root.shieldexist = false;
}
if (_root.shieldexist == true) {
_root.shieldtime = _root.shieldtime - 1;
}
}
onClipEvent (load) {
_root.shieldexist = false;
_root.shield._visible = false;
_root.shieldtime = 100;
}
Instance of Symbol 178 MovieClip "shield2" in Frame 361 (812 B)
onClipEvent (enterFrame) {
this._xscale = random(10) + 90;
this._yscale = this._xscale;
this._y = (_root.ship2._y + random(5)) - 5;
this._x = (_root.ship2._x + random(5)) - 5;
if (Key.isDown(32)) {
if (_root.shieldexist2 == false) {
if (_root.shieldnr2 > 0) {
_root.shieldnr2 = _root.shieldnr2 - 1;
_root.shieldtime2 = _root.shieldtimemax2;
_root.shield2._visible = true;
_root.shieldexist2 = true;
}
}
}
if (_root.shieldexist2 == false) {
_root.shield2._visible = false;
} else if (_root.shieldtime2 < 0) {
_root.shield2._visible = false;
_root.shieldexist2 = false;
}
if (_root.shieldexist2 == true) {
_root.shieldtime2 = _root.shieldtime2 - 1;
}
}
onClipEvent (load) {
_root.shieldexist2 = false;
_root.shield2._visible = false;
_root.shieldtime2 = 100;
}
Instance of Symbol 183 MovieClip "ship" in Frame 361 (861 B)
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
}
Instance of Symbol 256 MovieClip "ship2" in Frame 361 (1.1 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed * 5;
xSpeed = _root.ship.xSpeed * 5;
_root.ship.ySpeed = yknock * 5;
_root.ship.xSpeed = xknock * 5;
}
}
Instance of Symbol 315 MovieClip "pengameter" in Frame 361 (42 B)
onClipEvent (load) {
gotoAndStop (470);
}
Instance of Symbol 318 MovieClip in Frame 361 (418 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship)) {
tellTarget ("_root.pengameter") {
_currentframe = (_currentframe + 1);
gotoAndStop(_currentframe + 1);
};
}
if (this.hittest(_root.ship2)) {
tellTarget ("_root.pengameter") {
_currentframe = (_currentframe - 1);
gotoAndStop(_currentframe - 1);
};
}
}
onClipEvent (load) {
tellTarget ("_root.pengameter") {
gotoAndStop (120);
};
}
Frame 362 (8 B)
stop();
Instance of Symbol 256 MovieClip "ship2" in Frame 362 (1.08 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed;
xSpeed = _root.ship.xSpeed;
_root.ship.ySpeed = yknock;
_root.ship.xSpeed = xknock;
}
}
Instance of Symbol 322 MovieClip in Frame 362 (691 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2.ship)) {
} else {
_root.money2 = _root.money2 - Math.round(_root.money2 / 2);
_root.money = _root.money + _root.money2;
_root.totalmoney = _root.totalmoney + _root.money2;
_root.txtbox = ("Player 1 won! You got " + _root.money2) + "!";
tellTarget ("_root") {
gotoAndStop ("shop");
};
}
if (this.hittest(_root.ship.ship)) {
} else {
_root.money = _root.money - Math.round(_root.money / 2);
_root.money2 = _root.money2 + _root.money;
_root.totalmoney2 = _root.totalmoney2 + _root.money;
_root.txtbox = ("Player 2 won! You got " + _root.money) + "!";
tellTarget ("_root") {
gotoAndStop ("shop");
};
}
}
Frame 363 (8 B)
stop();
Instance of Symbol 183 MovieClip "ship" in Frame 363 (0.99 KiB)
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
if (flag._visible == true) {
tellTarget ("_root.pengameter") {
_currentframe = (_currentframe + 1);
gotoAndPlay(_currentframe + 1);
};
}
}
Instance of Symbol 256 MovieClip "ship2" in Frame 363 (1.41 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 550;
}
if (_x > 550) {
_x = 0;
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed;
xSpeed = _root.ship.xSpeed;
_root.ship.ySpeed = yknock;
_root.ship.xSpeed = xknock;
if (_root.ship.flag._visible == true) {
_root.ship.flag._visible = false;
flag._visible = true;
} else {
flag._visible = false;
_root.ship.flag._visible = true;
}
}
if (flag._visible == true) {
tellTarget ("_root.pengameter") {
_currentframe = (_currentframe - 2);
gotoAndPlay(_currentframe - 2);
};
}
}
Instance of Symbol 182 MovieClip "flag" in Frame 363 (357 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship.ship)) {
this._visible = false;
_root.ship.flag._visible = true;
this._x = 15000;
} else if (this.hittest(_root.ship2.ship)) {
this._visible = false;
this._x = 15000;
_root.ship2.flag._visible = true;
}
}
onClipEvent (load) {
tellTarget ("_root.pengameter") {
gotoAndStop (500);
};
}
Instance of Symbol 323 MovieClip "pengameter" in Frame 363 (80 B)
onClipEvent (load) {
gotoAndStop (850);
}
onClipEvent (enterFrame) {
stop();
}
Frame 364 (8 B)
stop();
Instance of Symbol 46 MovieClip in Frame 364 (467 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.shieldnr2 = _root.shieldnr2 + 1;
}
if (this.hittest(_root.ship)) {
play();
_root.shieldnr = _root.shieldnr + 1;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 43 MovieClip in Frame 364 (449 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.life2 = _root.lifemax2;
}
if (this.hittest(_root.ship)) {
play();
_root.life = _root.lifemax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(1700);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 40 MovieClip in Frame 364 (445 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.gas2 = _root.gasmax2;
}
if (this.hittest(_root.ship)) {
play();
_root.gas = _root.gasmax;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
show = random(2000);
if (show == 1) {
this._visible = true;
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
this._visible = false;
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 34 MovieClip in Frame 364 (456 B)
onClipEvent (enterFrame) {
if (this.hittest(_root.ship2)) {
play();
_root.money2 = _root.money2 + 10;
_root.totalmoney2 = _root.totalmoney2 + 10;
}
if (this.hittest(_root.ship)) {
play();
_root.money = _root.money + 10;
_root.totalmoney = _root.totalmoney + 10;
}
}
onClipEvent (enterFrame) {
if (place == true) {
this._y = random(400);
this._x = random(550);
}
}
onClipEvent (load) {
this._y = random(400);
this._x = random(550);
}
Instance of Symbol 183 MovieClip "ship" in Frame 364 (1.21 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (_root.pl1move == true) {
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
_root.gas = _root.gas - (_root.maxspeed / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl1move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl1move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl1move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl1move == true) {
_x = 0;
}
}
if (_root.pl1move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 256 MovieClip "ship2" in Frame 364 (1.48 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (_root.pl2move == true) {
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
_root.gas2 = _root.gas2 - (_root.maxspeed2 / 10);
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
if (_root.pl2move == true) {
_y = 400;
}
}
if (_y > 400) {
if (_root.pl2move == true) {
_y = 0;
}
}
if (_x < 0) {
if (_root.pl2move == true) {
_x = 550;
}
}
if (_x > 550) {
if (_root.pl2move == true) {
_x = 0;
}
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed * 5;
xSpeed = _root.ship.xSpeed * 5;
_root.ship.ySpeed = yknock * 5;
_root.ship.xSpeed = xknock * 5;
}
if (_root.pl2move == false) {
this._x = this._x + 3;
}
}
Instance of Symbol 178 MovieClip in Frame 364 (54 B)
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 178 MovieClip in Frame 364 (54 B)
onClipEvent (enterFrame) {
Math.round(_root.money);
}
Instance of Symbol 266 MovieClip in Frame 364 (317 B)
onClipEvent (load) {
stop();
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gas < 0) {
if (Key.isDown(87)) {
stop();
} else {
play();
this._visible = true;
}
} else if (_root.gas2 < 0) {
if (Key.isDown(38)) {
stop();
} else {
play();
this._visible = true;
}
}
}
Instance of Symbol 209 MovieClip "visual" in Frame 364 (1.73 KiB) ●
onClipEvent (enterFrame) {
if (_currentframe > 1) {
this._alpha = random(30);
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar1") {
_currentframe = Math.round((_root.gas / _root.gasmax) * 100);
gotoAndStop(Math.round((_root.gas / _root.gasmax) * 100));
};
if (_root.gas < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar1") {
_currentframe = Math.round((_root.life / _root.lifemax) * 100);
gotoAndStop(Math.round((_root.life / _root.lifemax) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar1") {
_currentframe = Math.round((_root.shieldtime / _root.shieldtimemax) * 100);
gotoAndStop(Math.round((_root.shieldtime / _root.shieldtimemax) * 100));
};
if (_root.shieldexist == false) {
tellTarget ("_root.shieldbar1") {
gotoAndStop (100);
};
}
}
onClipEvent (enterFrame) {
tellTarget ("_root.gasbar2") {
_currentframe = Math.round((_root.gas2 / _root.gasmax2) * 100);
gotoAndStop(Math.round((_root.gas2 / _root.gasmax2) * 100));
};
if (_root.gas2 < 0) {
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = "You ran out of gas.";
_root.days = _root.days - 1;
};
}
tellTarget ("_root.lifebar2") {
_currentframe = Math.round((_root.life2 / _root.lifemax2) * 100);
gotoAndStop(Math.round((_root.life2 / _root.lifemax2) * 100));
};
}
onClipEvent (enterFrame) {
tellTarget ("_root.shieldbar2") {
_currentframe = Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100);
gotoAndStop(Math.round((_root.shieldtime2 / _root.shieldtimemax2) * 100));
};
if (_root.shieldexist2 == false) {
tellTarget ("_root.shieldbar2") {
gotoAndStop (100);
};
}
}
Frame 365 (8 B)
stop();
Instance of Symbol 68 MovieClip "alien" in Frame 365 (184 B)
onClipEvent (load) {
speed = 30;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 68 MovieClip "alien" in Frame 365 (184 B)
onClipEvent (load) {
speed = 40;
}
onClipEvent (enterFrame) {
undX = _root._xmouse;
undY = _root._ymouse;
_x = (_x + ((undX - _x) / speed));
_y = (_y + ((undY - _y) / speed));
}
Instance of Symbol 68 MovieClip "alien" in Frame 365 (184 B)
onClipEvent (load) {
speed = 20;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 68 MovieClip "alien" in Frame 365 (184 B)
onClipEvent (load) {
speed = 50;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x = (_x + ((endX - _x) / speed));
_y = (_y + ((endY - _y) / speed));
}
Instance of Symbol 225 MovieClip in Frame 365 (323 B)
onClipEvent (enterFrame) {
if (_root.totalmoney > _root.totalmoney2) {
plstatus = "Player 1 won!";
pl2status = "Player 2 lost!";
} else if (_root.totalmoney == _root.totalmoney2) {
plstatus = "IT'S A TIE!";
pl2status = "IT'S A TIE!";
} else {
plstatus = "Player 1 lost!";
pl2status = "Player 2 won!";
}
}
Frame 366 (8 B)
stop();
Instance of Symbol 183 MovieClip "ship" in Frame 366 (861 B)
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(37)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(38)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = 1;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = 0;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed) {
xSpeed = xSpeed * (_root.maxspeed / speed);
ySpeed = ySpeed * (_root.maxspeed / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 635;
}
if (_x > 635) {
_x = 0;
}
}
Instance of Symbol 256 MovieClip "ship2" in Frame 366 (1.08 KiB) ●
onClipEvent (load) {
thrust = 1;
decay = 0.97;
flag._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
_rotation = (_rotation + 10);
}
if (Key.isDown(65)) {
_rotation = (_rotation - 10);
}
if (Key.isDown(87)) {
xSpeed = xSpeed + (thrust * Math.sin(_rotation * (Math.PI/180)));
ySpeed = ySpeed + (thrust * Math.cos(_rotation * (Math.PI/180)));
flames._visible = true;
} else {
xSpeed = xSpeed * decay;
ySpeed = ySpeed * decay;
flames._visible = false;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > _root.maxspeed2) {
xSpeed = xSpeed * (_root.maxspeed2 / speed);
ySpeed = ySpeed * (_root.maxspeed2 / speed);
}
_y = (_y - ySpeed);
_x = (_x + xSpeed);
if (_y < 0) {
_y = 400;
}
if (_y > 400) {
_y = 0;
}
if (_x < 0) {
_x = 635;
}
if (_x > 635) {
_x = 0;
}
}
onClipEvent (enterFrame) {
if (_root.ship2.ship.hitTest(_root.ship.ship)) {
yknock = ySpeed;
xknock = xSpeed;
ySpeed = _root.ship.ySpeed;
xSpeed = _root.ship.xSpeed;
_root.ship.ySpeed = yknock;
_root.ship.xSpeed = xknock;
}
}
Symbol 5 MovieClip Frame 1 (8 B)
stop();
Symbol 12 Button (62 B)
on (release) {
getURL ("http://www.urgames.com", "_blank");
}
Symbol 14 Button (62 B)
on (release) {
getURL ("http://www.urgames.com", "_blank");
}
Symbol 21 MovieClip Frame 65 (23 B)
stop();
_root.play();
Symbol 26 MovieClip Frame 1 (112 B)
numEnemy = 50;
i = 2;
while (i <= numEnemy) {
enemy1.duplicateMovieClip("enemy" + i, i + 100);
i++;
}
Instance of Symbol 25 MovieClip "enemy1" in Symbol 26 MovieClip Frame 1 (351 B)
onClipEvent (load) {
function reset() {
this._x = 600;
this._y = random(400) + 0;
enemySpeed = random(100) + 1;
}
reset();
}
onClipEvent (enterFrame) {
if (_root.spaceship.scrollStart) {
this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed);
} else {
this._x = this._x - enemySpeed;
}
if (this._x < -10) {
reset();
}
}
Symbol 34 MovieClip Frame 1 (24 B)
stop();
place = false;
Symbol 34 MovieClip Frame 71 (14 B)
place = true;
Symbol 34 MovieClip Frame 72 (14 B)
place = true;
Symbol 40 MovieClip Frame 1 (8 B)
stop();
Symbol 40 MovieClip Frame 2 (8 B)
stop();
Symbol 43 MovieClip Frame 1 (8 B)
stop();
Symbol 43 MovieClip Frame 2 (8 B)
stop();
Symbol 46 MovieClip Frame 1 (24 B)
stop();
place = false;
Symbol 46 MovieClip Frame 2 (8 B)
stop();
Symbol 50 Button (30 B)
on (release) {
nextFrame();
}
Symbol 52 Button (36 B)
on (release) {
gotoAndStop (339);
}
Symbol 58 Button (30 B)
on (release) {
prevFrame();
}
Symbol 65 Button (25 B)
on (release) {
play();
}
Instance of Symbol 70 MovieClip in Symbol 72 MovieClip Frame 1 (165 B)
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship.ship)) {
_root.ship.ySpeed = (-_root.ship.ySpeed) * 5;
_root.ship.xSpeed = (-_root.ship.xSpeed) * 5;
}
}
Symbol 95 Button (36 B)
on (release) {
gotoAndStop (351);
}
Symbol 96 Button (36 B)
on (release) {
gotoAndStop (341);
}
Symbol 97 Button (36 B)
on (release) {
gotoAndStop (366);
}
Symbol 101 Button (886 B)
on (release) {
_root.maxspeed = mySharedObject.data.maxspeed;
_root.money = mySharedObject.data.money;
_root.life = mySharedObject.data.life;
_root.lifemax = mySharedObject.data.lifemax;
_root.shieldtime = mySharedObject.data.shieldtime;
_root.shieldtimemax = mySharedObject.data.shieldtimemax;
_root.gas = mySharedObject.data.gas;
_root.gasmax = mySharedObject.data.gasmax;
_root.shieldnr = mySharedObject.data.shieldnr;
gotoAndStop (351);
_root.maxspeed2 = mySharedObject.data.maxspeed2;
_root.money2 = mySharedObject.data.money2;
_root.life2 = mySharedObject.data.life2;
_root.lifemax2 = mySharedObject.data.lifemax2;
_root.shieldtime2 = mySharedObject.data.shieldtime2;
_root.shieldtimemax2 = mySharedObject.data.shieldtimemax2;
_root.gas2 = mySharedObject.data.gas2;
_root.gasmax2 = mySharedObject.data.gasmax2;
_root.shieldnr2 = mySharedObject.data.shieldnr2;
}
Symbol 102 Button (594 B)
on (release) {
_root.days = mySharedObject.data.days;
_root.totalmoney = mySharedObject.data.totalmoney;
_root.compmoney = mySharedObject.data.compmoney;
_root.maxspeed = mySharedObject.data.maxspeed;
_root.money = mySharedObject.data.money;
_root.life = mySharedObject.data.life;
_root.lifemax = mySharedObject.data.lifemax;
_root.shieldtime = mySharedObject.data.shieldtime;
_root.shieldtimemax = mySharedObject.data.shieldtimemax;
_root.gas = mySharedObject.data.gas;
_root.gasmax = mySharedObject.data.gasmax;
_root.shieldnr = mySharedObject.data.shieldnr;
gotoAndStop (341);
}
Symbol 110 Button (381 B)
on (release) {
if (_root.money >= _root.lifeprice) {
_root.money = _root.money - _root.lifeprice;
_root.lifemax = _root.lifemax + 10;
_root.life = _root.lifemax;
_root.lifeupg = _root.lifemax + 10;
_root.lifeprice = _root.lifemax * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 117 Button (469 B)
on (release) {
if (_root.money >= _root.shieldprice) {
_root.money = _root.money - _root.shieldprice;
_root.shieldtimemax = _root.shieldtimemax + 10;
_root.shieldtime = _root.shieldtime + 10;
_root.shieldtime = _root.shieldtimemax;
_root.shieldupg = _root.shieldtimemax + 10;
_root.shieldprice = _root.shieldtimemax * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 120 Button (243 B)
on (release) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.life = _root.lifemax;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 127 Button (401 B)
on (release) {
if (_root.money >= _root.gasprice) {
_root.money = _root.money - _root.gasprice;
_root.gasmax = _root.gasmax + 10;
_root.gas = _root.gas + 10;
_root.gas = _root.gasmax;
_root.gasupg = _root.gasmax + 10;
_root.gasprice = _root.gasmax * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 130 Button (252 B)
on (release) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.shieldnr = _root.shieldnr + 1;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 137 Button (375 B)
on (release) {
if (_root.money >= _root.maxspeedprice) {
_root.money = _root.money - _root.maxspeedprice;
_root.maxspeed = _root.maxspeed + 0.5;
_root.maxspeedupg = _root.maxspeed + 0.5;
_root.maxspeedprice = _root.maxspeed * 1000;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 145 Button (198 B)
on (release) {
if (_root.days > 25) {
_root.days = _root.days - 10;
_root.txtbox = "You have moved 10 days forward.";
} else {
_root.txtbox = "The computer won't accept your offer.";
}
}
Symbol 147 Button (599 B)
on (release) {
mySharedObject.data.days = _root.days;
mySharedObject.data.compmoney = _root.compmoney;
mySharedObject.data.maxspeed = _root.maxspeed;
mySharedObject.data.money = _root.money;
mySharedObject.data.totalmoney = _root.totalmoney;
mySharedObject.data.life = _root.life;
mySharedObject.data.lifemax = _root.lifemax;
mySharedObject.data.shieldtime = _root.shieldtime;
mySharedObject.data.shieldtimemax = _root.shieldtimemax;
mySharedObject.data.gas = _root.gas;
mySharedObject.data.gasmax = _root.gasmax;
mySharedObject.data.shieldnr = _root.shieldnr;
mySharedObject.flush();
}
Symbol 150 Button (36 B)
on (release) {
gotoAndStop (339);
}
Symbol 152 MovieClip Frame 1 (8 B)
stop();
Symbol 154 Button (36 B)
on (release) {
gotoAndPlay (341);
}
Symbol 158 Button (164 B)
on (release) {
gotoAndStop (343);
}
on (rollOver) {
_root.description = "The first level, recommended for beginners.";
}
on (rollOut) {
_root.description = "";
}
Symbol 159 Button (170 B)
on (release) {
gotoAndStop (344);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Still an easy level, just watch out for the moon.";
}
Symbol 160 Button (211 B)
on (release) {
gotoAndStop (345);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Be ready to dodge a lot, because if you're slow you'll not live long in the asteroid belt!";
}
Symbol 161 Button (173 B)
on (release) {
gotoAndStop (346);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Watch out for the aliens, they know where you are...";
}
Symbol 162 Button (163 B)
on (release) {
gotoAndStop (347);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Hurry up before the Super Nova is too big!";
}
Symbol 163 Button (208 B)
on (release) {
gotoAndStop (348);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "You'd better have a strong engine or you will be sucked into the Black hole in no time!";
}
Symbol 164 Button (185 B)
on (release) {
gotoAndStop (349);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Warning! Warning! Extremely dangerous level. Enter with caution!";
}
Symbol 209 MovieClip Frame 1 (8 B)
stop();
Symbol 222 Button (63 B)
on (release) {
tellTarget ("_root") {
gotoAndPlay (1);
};
}
Symbol 225 MovieClip Frame 1081 (8 B)
stop();
Symbol 242 Button (34 B)
on (press) {
gotoAndStop (360);
}
Symbol 243 Button (891 B)
on (release) {
mySharedObject.data.maxspeed = _root.maxspeed;
mySharedObject.data.money = _root.money;
mySharedObject.data.life = _root.life;
mySharedObject.data.lifemax = _root.lifemax;
mySharedObject.data.shieldtime = _root.shieldtime;
mySharedObject.data.shieldtimemax = _root.shieldtimemax;
mySharedObject.data.gas = _root.gas;
mySharedObject.data.gasmax = _root.gasmax;
mySharedObject.data.shieldnr = _root.shieldnr;
mySharedObject.data.maxspeed2 = _root.maxspeed2;
mySharedObject.data.money2 = _root.money2;
mySharedObject.data.life2 = _root.life2;
mySharedObject.data.lifemax2 = _root.lifemax2;
mySharedObject.data.shieldtime2 = _root.shieldtime2;
mySharedObject.data.shieldtimemax2 = _root.shieldtimemax2;
mySharedObject.data.gas2 = _root.gas2;
mySharedObject.data.gasmax2 = _root.gasmax2;
mySharedObject.data.shieldnr2 = _root.shieldnr2;
mySharedObject.flush();
}
Symbol 245 Button (47 B)
on (release) {
_root.pl1end._visible = true;
}
Symbol 251 Button (48 B)
on (release) {
_root.pl1end._visible = false;
}
Symbol 252 Button (68 B)
on (release) {
tellTarget ("_root") {
gotoAndPlay ("end2");
};
}
Symbol 266 MovieClip Frame 500 (90 B)
tellTarget ("_root") {
_root.txtbox = "Delaying time out.";
gotoAndPlay ("shop");
};
Symbol 268 Button (36 B)
on (release) {
gotoAndPlay (351);
}
Symbol 272 Button (170 B)
on (release) {
gotoAndStop (353);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Still an easy level, just watch out for the moon.";
}
Symbol 273 Button (211 B)
on (release) {
gotoAndStop (354);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Be ready to dodge a lot, because if you're slow you'll not live long in the asteroid belt!";
}
Symbol 274 Button (173 B)
on (release) {
gotoAndStop (355);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Watch out for the aliens, they know where you are...";
}
Symbol 275 Button (163 B)
on (release) {
gotoAndStop (356);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Hurry up before the Super Nova is too big!";
}
Symbol 276 Button (208 B)
on (release) {
gotoAndStop (357);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "You'd better have a strong engine or you will be sucked into the Black hole in no time!";
}
Symbol 277 Button (164 B)
on (release) {
gotoAndStop (352);
}
on (rollOver) {
_root.description = "The first level, recommended for beginners.";
}
on (rollOut) {
_root.description = "";
}
Symbol 281 Button (200 B)
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Try to stay on the pad in the middle, if you do you get the other player's money!";
}
on (press) {
gotoAndStop (361);
}
Symbol 282 Button (211 B)
on (press) {
gotoAndStop (363);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Hold the flag and get the other players money! Don't get caught, simply avoid being knocked.";
}
Symbol 283 Button (202 B)
on (release) {
gotoAndStop (362);
}
on (rollOut) {
_root.description = "";
}
on (rollOver) {
_root.description = "Shove the other player off the pad, but watch out so you don't fall off yourself!";
}
Symbol 287 Button (394 B)
on (release) {
if (_root.money2 >= _root.lifeprice2) {
_root.money2 = _root.money2 - _root.lifeprice2;
_root.lifemax2 = _root.lifemax2 + 10;
_root.life2 = _root.lifemax2;
_root.lifeupg2 = _root.lifemax2 + 10;
_root.lifeprice2 = _root.lifemax2 * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 291 Button (484 B)
on (release) {
if (_root.money2 >= _root.shieldprice2) {
_root.money2 = _root.money2 - _root.shieldprice2;
_root.shieldtimemax2 = _root.shieldtimemax2 + 10;
_root.shieldtime2 = _root.shieldtime2 + 10;
_root.shieldtime2 = _root.shieldtimemax2;
_root.shieldupg2 = _root.shieldtimemax2 + 10;
_root.shieldprice2 = _root.shieldtimemax2 * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 293 Button (248 B)
on (release) {
if (_root.money2 >= 1000) {
_root.money2 = _root.money2 - 1000;
_root.life2 = _root.lifemax2;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 297 Button (416 B)
on (release) {
if (_root.money2 >= _root.gasprice2) {
_root.money2 = _root.money2 - _root.gasprice2;
_root.gasmax2 = _root.gasmax2 + 10;
_root.gas2 = _root.gas2 + 10;
_root.gas2 = _root.gasmax2;
_root.gasupg2 = _root.gasmax2 + 10;
_root.gasprice2 = _root.gasmax2 * 10;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 299 Button (257 B)
on (release) {
if (_root.money2 >= 1000) {
_root.money2 = _root.money2 - 1000;
_root.shieldnr2 = _root.shieldnr2 + 1;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 303 Button (386 B)
on (release) {
if (_root.money2 >= _root.maxspeedprice2) {
_root.money2 = _root.money2 - _root.maxspeedprice2;
_root.maxspeed2 = _root.maxspeed2 + 0.5;
_root.maxspeedupg2 = _root.maxspeed2 + 0.5;
_root.maxspeedprice2 = _root.maxspeed2 * 1000;
_root.txtbox = "Thank you for shopping here. Please come again!";
} else {
_root.txtbox = "You don't have enough money.";
}
}
Symbol 307 Button (47 B)
on (release) {
_root.pl2end._visible = true;
}
Symbol 311 Button (48 B)
on (release) {
_root.pl2end._visible = false;
}
Symbol 312 Button (68 B)
on (release) {
tellTarget ("_root") {
gotoAndPlay ("end2");
};
}
Symbol 315 MovieClip Frame 2 (272 B)
_root.money = _root.money - Math.round(_root.money / 2);
_root.money2 = _root.money2 + _root.money;
_root.totalmoney2 = _root.totalmoney2 + _root.money;
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = ("Player 2 won! You got " + _root.money) + "!";
};
Symbol 315 MovieClip Frame 240 (274 B)
_root.money2 = _root.money2 - Math.round(_root.money2 / 2);
_root.money = _root.money + _root.money2;
_root.totalmoney = _root.totalmoney + _root.money2;
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = ("Player 1 won! You got " + _root.money2) + "!";
};
Symbol 323 MovieClip Frame 2 (272 B)
_root.money = _root.money - Math.round(_root.money / 2);
_root.money2 = _root.money2 + _root.money;
_root.totalmoney2 = _root.totalmoney2 + _root.money;
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = ("Player 2 won! You got " + _root.money) + "!";
};
Symbol 323 MovieClip Frame 1000 (274 B)
_root.money2 = _root.money2 - Math.round(_root.money2 / 2);
_root.money = _root.money + _root.money2;
_root.totalmoney = _root.totalmoney + _root.money2;
tellTarget ("_root") {
gotoAndStop ("shop");
_root.txtbox = ("Player 1 won! You got " + _root.money2) + "!";
};
Symbol 329 Button (36 B)
on (release) {
gotoAndPlay (339);
}