Frame 1
Stage.showMenu = false;
Frame 2
stop();
Frame 156
fuel = 500;
ftotal = 500;
life = 100;
level = 1;
gameover = false;
Frame 157
stop();
fuel = 500;
life = 100;
Instance of Symbol 66 MovieClip "needle" in Frame 157
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 0.2);
timer = timer + 0.2;
if (timer > 360) {
_root.enemy.removeMovieClip();
_root.gotoAndPlay("levelchanger");
}
}
Instance of Symbol 39 MovieClip "jetpack" in Frame 157
onClipEvent (load) {
jetPower = 0.5;
gravity = 0.2;
airResistance = 0.1;
objSize = _width / 2;
objHeight = _height / 2;
invincible = false;
iplay = false;
ouch = new Sound();
ouch.attachSound("ouch");
jet = new Sound();
jet.attachSound("jet");
}
onClipEvent (enterFrame) {
if (invincible && (!iplay)) {
iplay = true;
this.gotoAndPlay("invincible");
}
vy = vy + gravity;
vx = vx - (vx * airResistance);
if (Key.isDown(38) && (_root.fuel > 0)) {
jet.start();
flames._visible = true;
vy = vy - jetPower;
_root.fuel--;
} else {
flames._visible = false;
}
if (Key.isDown(37)) {
vx = vx - 1;
}
if (Key.isDown(39)) {
vx = vx + 1;
}
if (_y > (390 - objHeight)) {
_y = (390 - objHeight);
vy = 0;
}
if (_x > (550 - objSize)) {
_x = (550 - objSize);
vx = vx * -1;
}
if (_x < (0 + objSize)) {
_x = (0 + objSize);
vx = vx * -1;
}
if (_y < (0 + objSize)) {
_y = (0 + objSize);
vy = vy * -0.5;
}
this._x = this._x + vx;
this._y = this._y + vy;
if (this.hitTest(_root.enemy._x, _root.enemy._y, true) && (!invincible)) {
ouch.start();
_root.life = _root.life - 10;
invincible = true;
}
if (_root.gameover) {
_root.gotoAndPlay("gameover");
}
if (_root.life <= 0) {
_root.dead = true;
_root.gameover = true;
}
}
Instance of Symbol 31 MovieClip "fuel" in Frame 157
onClipEvent (load) {
isonscreen = false;
collect = new Sound();
collect.attachSound("collectfuel");
}
onClipEvent (enterFrame) {
appear = random(500 * _root.level);
if ((appear == 1) && (!isonscreen)) {
this._y = random(200) + 100;
this._x = random(450) + 50;
isonscreen = true;
}
if (this.hitTest(_root.jetpack.man)) {
collect.start();
this._x = 600;
isonscreen = false;
_root.fuel = _root.fuel + 200;
}
}
Instance of Symbol 73 MovieClip "enemy" in Frame 157
onClipEvent (load) {
speedyo = 1;
c = 401;
this.swapDepths(421);
this.enemy1.right._visible = true;
this.enemy1.left._visible = false;
}
onClipEvent (enterFrame) {
attack = random(210 - (10 * _root.level));
if (!(((this._x + 1) > _root.jetpack._x) && ((this._x - 1) < _root.jetpack._x))) {
if (_root.jetpack._x > this._x) {
this.enemy1.right._visible = true;
this.enemy1.left._visible = false;
this._x = this._x + _root.level;
} else {
this.enemy1.right._visible = false;
this.enemy1.left._visible = true;
this._x = this._x - _root.level;
}
}
if (attack == 1) {
_root.enemybullet.duplicateMovieClip(c, c);
c++;
if (c >= 420) {
c = 401;
}
}
if (_root.gameover) {
this.removeMovieClip();
}
}
Instance of Symbol 74 MovieClip "enemybullet" in Frame 157
onClipEvent (load) {
if (_name != "enemybullet") {
this._x = _root.enemy._x;
this._y = _root.enemy._y;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybullet") {
this._y = this._y - _root.level;
if (this._y < 30) {
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
if (this.hitTest(_root.jetpack.man) && (!_root.jetpack.invincible)) {
_root.jetpack.ouch.start();
_root.life = _root.life - 10;
_root.jetpack.invincible = true;
removeMovieClip(this);
}
}
}
Frame 158
stop();
_root.level++;
Instance of Symbol 66 MovieClip "needlebreak" in Frame 158
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 1);
timer = timer + 1;
if (timer > 360) {
_root.gotoAndPlay("startlevel");
}
}
Frame 159
stop();
levelscore = _root.level;
Instance of Symbol 74 MovieClip "enemybullet2" in Frame 159
onClipEvent (load) {
i = 500;
this.gotoAndPlay(_root.level);
if (_name != "enemybullet2") {
this._x = random(550);
this._y = random(30) + 400;
}
}
onClipEvent (enterFrame) {
if (_name != "enemybullet2") {
this._y = this._y - 10;
if (this._y < 30) {
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
} else {
_root.enemybullet2.duplicateMovieClip(i, i);
i++;
}
}
Symbol 13 Button
on (release) {
_root.play();
}
Symbol 14 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop (3);
}
Symbol 14 MovieClip Frame 2
gotoAndPlay (1);
Symbol 19 Button
on (release) {
getURL ("http://xsdsx.tk", "_blank");
}
Symbol 33 MovieClip Frame 41
stop();
if (_name != "fireball") {
removeMovieClip(this);
}
Instance of Symbol 33 MovieClip "fireball" in Symbol 34 MovieClip Frame 1
onClipEvent (load) {
vx = ((random(2) * 2) - 1) / (random(5) + 5);
vy = 1 + (1 / random(10));
count = 0;
}
onClipEvent (enterFrame) {
if (_name == "fireball") {
this.duplicateMovieClip(count, count);
this.duplicateMovieClip(count + 1, count + 1);
count = count + 2;
if (count >= 200) {
count = 0;
}
}
if (_name != "fireball") {
_x = (_x + vx);
_y = (_y + vy);
}
}
Instance of Symbol 33 MovieClip "fireball2" in Symbol 34 MovieClip Frame 1
onClipEvent (load) {
vx = ((random(2) * 2) - 1) / (random(5) + 5);
vy = 1 + (1 / random(10));
count = 200;
}
onClipEvent (enterFrame) {
if (_name == "fireball2") {
this.duplicateMovieClip(count, count);
this.duplicateMovieClip(count + 1, count + 1);
count = count + 2;
if (count > 400) {
count = 200;
}
}
if (_name != "fireball2") {
_x = (_x + vx);
_y = (_y + vy);
}
}
Symbol 38 MovieClip Frame 21
counter++;
if (counter > 6) {
_root.jetpack.invincible = false;
_root.jetpack.iplay = false;
counter = 0;
_parent.gotoAndStop(1);
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 1
stop();
Instance of Symbol 56 MovieClip "fuelbar" in Symbol 57 MovieClip Frame 1
onClipEvent (enterFrame) {
percentage = int((_root.fuel / _root.ftotal) * 100);
this.gotoAndStop(percentage + 1);
if (_root.fuel < 0) {
fuel = 0;
}
if (_root.fuel > _root.ftotal) {
_root.fuel = _root.ftotal;
}
}
Symbol 62 MovieClip Frame 1
stop();
Instance of Symbol 62 MovieClip "lifebar" in Symbol 63 MovieClip Frame 1
onClipEvent (enterFrame) {
percentage = _root.life;
this.gotoAndStop(percentage + 1);
if (_root.life < 0) {
life = 0;
}
if (_root.life > 100) {
_root.life = 100;
}
}
Symbol 82 Button
on (release) {
gotoAndPlay (156);
}