Frame 1
play();
Instance of Symbol 10 MovieClip "progress" in Frame 1
onClipEvent (enterFrame) {
percentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
gotoAndStop(percentLoaded);
}
Frame 6
ifFrameLoaded (18) {
gotoAndPlay ("loadtitle");
}
play();
Frame 7
prevFrame();
Frame 8
play();
Frame 17
ifFrameLoaded (26) {
gotoAndPlay ("loadinstructions");
}
play();
Frame 18
prevFrame();
Frame 19
play();
Frame 25
ifFrameLoaded (38) {
if (scriptpath ne "none") {
gotoAndPlay ("readytoplay");
}
}
play();
Frame 26
prevFrame();
Frame 27
play();
Frame 32
stop();
Frame 38
function setRikonPositions() {
i = 1;
while (i <= 15) {
do {
check = 0;
rikonPos[i] = -600 - random(14000);
j = 1;
while (j <= 15) {
rikonGap = Math.abs(Number(rikonPos[j] - rikonPos[i]));
if ((j != i) and (rikonGap < 600)) {
check = 1;
}
j++;
}
} while (check == 1);
i++;
}
do {
check = 0;
i = 1;
while (i <= 14) {
if (rikonPos[i + 1] > rikonPos[i]) {
check = 1;
temp = rikonPos[i];
rikonPos[i] = rikonPos[i + 1];
rikonPos[i + 1] = temp;
}
i++;
}
} while (check == 1);
}
function setTimer() {
if (timeLeft > 0) {
timeLeft--;
menu.timer.gotoAndStop(int(100 - (timeLeft / 30)));
menu.distanceMeter.gotoAndStop(int(rikPlanetPos / -150));
} else {
rikYpos = rik._y;
gotoAndStop ("lose");
}
}
function moveShip() {
if (ship._x > 275) {
ship._x = ship._x + speed;
pod._x = ship._x + 81;
} else {
rikEnterShip = 1;
speed = 0;
ship._x = 275;
pod._x = 356;
rikYMove = (310 - rik._y) / 40;
rikXMove = 5.5;
rikYpos = rik._y;
rikStatus = "SHIP";
rik.anim.gotoAndStop("right");
gotoAndPlay ("win");
}
}
function shootBullet(shootX) {
i = 1;
while (i <= 9) {
if (bulletActive[i] == 0) {
riciclesCollected--;
bulletActive[i] = 1;
eval ("bullet" + i)._x = 125;
eval ("bullet" + i)._y = rik._y + 30;
eval ("bullet" + i).shootX = shootX;
eval ("bullet" + i).gotoAndPlay(2);
i = 10;
}
i++;
}
}
_quality = "BEST";
sfxLoop = new Sound();
sfxLoop.attachSound("sfxLoop");
sfxLoop.start(0, 10000);
sfxLoop.setVolume(100);
loopVol = 100;
signActive = 1;
sign.gotoAndPlay(1);
speed = 0;
boost = 0;
lastKeyDown = "RIGHT";
rikStatus = "FLY";
flameLevel = 10;
rikPlanetPos = 0;
ship._x = 750;
pod._x = 831;
rik._x = 100;
rikShadow._x = 120;
riciclesCollected = 10;
timeLeft = 3000;
rikEnterShip = 0;
alienKill = 0;
alienBonusKill = 0;
sign.gotoAndPlay(1);
pod.gotoAndStop(1);
rik.anim.gotoAndStop("landed");
rikonPos = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
setRikonPositions();
bulletActive = new Array();
i = 1;
while (i <= 9) {
bulletActive[i] = 0;
duplicateMovieClip ("bullet", "bullet" + i, i + 10);
i++;
}
stop();
Instance of Symbol 68 MovieClip "sign" in Frame 38
/* no clip actions */
Instance of Symbol 163 MovieClip "rik" in Frame 38
onClipEvent (enterFrame) {
with (_root) {
setTimer();
if ((rikPlanetPos < -15000) and (rikEnterShip == 0)) {
moveShip();
}
if ((Key.isDown(32) and (rikStatus eq "FLY")) and (riciclesCollected > 0)) {
rikStatus = "SHOOT";
if (lastKeyDown eq "RIGHT") {
shootBullet(20);
rik.anim.gotoAndPlay("rightShoot");
} else {
shootBullet(-20);
rik.anim.gotoAndPlay("leftShoot");
}
}
rikFrame = rik.anim._currentframe;
if (rikStatus eq "FLY") {
if (Key.isDown(37)) {
lastKeyDown = "LEFT";
if (speed < 0) {
speed = speed + 1;
} else {
speed = speed + 0.5;
}
if (rikFrame < 11) {
rik.anim.nextFrame();
}
} else if (Key.isDown(39)) {
lastKeyDown = "RIGHT";
if (speed > 0) {
speed = speed - 1;
} else {
speed = speed - 0.5;
}
if (rikFrame > 1) {
rik.anim.prevFrame();
}
} else {
if ((lastKeyDown eq "LEFT") and (rikFrame < 11)) {
rik.anim.nextFrame();
} else if ((lastKeyDown eq "RIGHT") and (rikFrame > 1)) {
rik.anim.prevFrame();
}
if (speed > 1) {
speed = speed - 1;
} else if (speed < -1) {
speed = speed + 1;
} else {
speed = 0;
}
}
if (speed > topSpeed) {
speed = topSpeed;
} else if (speed < (-topSpeed)) {
speed = -topSpeed;
}
boost = boost + 0.1;
if (Key.isDown(38)) {
boost = boost - 1;
if (flameLevel < 100) {
flameLevel = flameLevel + 10;
}
if (flameLevel < 30) {
rik.sfxBoost.start();
}
} else if (Key.isDown(40)) {
flameLevel = 10;
boost = boost + 1;
} else if (flameLevel > 10) {
flameLevel = flameLevel - 10;
} else {
flameLevel = 10;
}
if (boost > 7) {
boost = 7;
} else if (boost < -7) {
boost = -7;
}
if ((sign._x > -100) and (signActive == 1)) {
sign._x = sign._x + speed;
} else {
sign.gotoAndStop("blank");
signActive = 0;
}
if ((rik._y + boost) < 75) {
boost = 0;
rik._y = 75;
} else if ((rik._y + boost) > 330) {
boost = -4;
speed = speed * -0.6;
rik._y = 330;
} else {
rik._y = rik._y + boost;
}
topSpeed = 8 + int((330 - rik._y) / 30);
rik.anim.flame.gotoAndStop(flameLevel / 10);
if ((rikPlanetPos + speed) > 150) {
speed = 0;
}
rikPlanetPos = rikPlanetPos + speed;
if (rikPlanetPos > 0) {
stopper._x = stopper._x + speed;
}
bgPan._x = bgPan._x + speed;
if (bgPan._x < 230) {
bgPan._x = bgPan._x + 1200;
} else if (bgPan._x > 1460) {
bgPan._x = bgPan._x - 1200;
}
shadowScale = (rik._y - 70) / 2.5;
rikShadow._xscale = shadowScale;
rikShadow._yscale = shadowScale;
}
}
}
Frame 41
timeScore = timeLeft;
score = timeScore * riciclesCollected;
timeLeft = 0;
rik._y = rikYpos;
rik.anim.flame.gotoAndStop(10);
play();
Frame 42
play();
Frame 43
if (rik._x < 320) {
rik._x = rik._x + rikXMove;
rikShadow._x = rik._x + 20;
rik._y = rik._y + rikYMove;
loopVol = loopVol - 2;
sfxLoop.setVolume(loopVol);
prevFrame();
} else {
pod.nextFrame();
stop();
}
Frame 44
sfxLoop.stop();
info.gotoAndStop(2 + random(3));
stop();
Frame 47
speed = 0;
rik._y = rikYpos;
rik.anim.flame.gotoAndStop(1);
stop();
Instance of Symbol 163 MovieClip "rik" in Frame 47
onClipEvent (enterFrame) {
with (_root) {
if (rikStatus eq "FLY") {
boost = boost + 0.3;
if (boost > 7) {
boost = 7;
} else if (boost < -7) {
boost = -7;
}
if ((rik._y + boost) < 75) {
boost = 0;
rik._y = 75;
} else if ((rik._y + boost) > 315) {
takeOff = 0;
boost = 0;
rik._y = 315;
rikStatus = "LAND";
if (rikFrame <= 6) {
rik.anim.gotoAndPlay("rightLand");
} else {
rik.anim.gotoAndPlay("leftLand");
}
} else {
rik._y = rik._y + boost;
}
shadowScale = (rik._y - 70) / 2.5;
rikShadow._xscale = shadowScale;
rikShadow._yscale = shadowScale;
} else if (rikStatus eq "LAND") {
if (rik._y < 325) {
rik._y++;
} else {
rik._y = 325;
rikStatus = "DEAD";
nextFrame();
}
}
}
}
Frame 48
sfxLoop.stop();
info.gotoAndStop(1);
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 56 Button
on (release) {
gotoAndStop (38);
}
Symbol 68 MovieClip Frame 1
play();
Symbol 68 MovieClip Frame 30
stop();
Symbol 68 MovieClip Frame 31
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
play();
Symbol 90 MovieClip Frame 5
gotoAndStop (1);
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 11
stop();
Symbol 162 MovieClip Frame 15
play();
Symbol 162 MovieClip Frame 22
_parent._parent.rikStatus = "FLY";
gotoAndStop ("right");
Symbol 162 MovieClip Frame 25
play();
Symbol 162 MovieClip Frame 32
_parent._parent.rikStatus = "FLY";
gotoAndStop ("left");
Symbol 162 MovieClip Frame 40
play();
Symbol 162 MovieClip Frame 45
_parent._parent.rikStatus = "FLY";
gotoAndStop ("right");
Symbol 162 MovieClip Frame 49
play();
Symbol 162 MovieClip Frame 54
_parent._parent.rikStatus = "FLY";
gotoAndStop ("left");
Symbol 163 MovieClip Frame 1
sfxBoost = new Sound(this);
sfxBoost.attachSound("sfxBoost");
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 2
play();
Symbol 170 MovieClip Frame 9
_parent.nextFrame();
stop();
Symbol 181 MovieClip Frame 1
play();
Symbol 181 MovieClip Frame 5
if (_parent.digRicicle == 1) {
_parent.digRicicle = 0;
eval ("_parent.ricicle" + _parent.digRicicleCount).gotoAndPlay(2);
}
if (_parent._parent.rikonActive == 1) {
panPos = int((_parent._x - 275) / 2.75);
volPos = 100 - Math.abs(panPos / 3);
_parent.sfxDig.setPan(panPos);
_parent.sfxDig.setVolume(volPos);
_parent.sfxDig.start();
}
Symbol 181 MovieClip Frame 15
gotoAndPlay (1);
Symbol 182 MovieClip Frame 1
this._x = 0;
this._y = 0;
stop();
Symbol 182 MovieClip Frame 2
moveX = random(5);
moveY = 12 + random(5);
this._x = this._x + (_parent._parent.speed + moveX);
this._y = this._y - moveY;
moveY = moveY - 0.5;
play();
Symbol 182 MovieClip Frame 3
play();
Symbol 182 MovieClip Frame 4
this._x = this._x + (_parent._parent.speed + moveX);
this._y = this._y - moveY;
moveY = moveY - 0.5;
ricicleX = _parent.distance + this._x;
rikDX = _parent._parent.rik._x - ricicleX;
rikDY = _parent._parent.rik._y - (380 + this._y);
if ((((rikDX < 10) and (rikDX > -60)) and (rikDY < 15)) and (rikDY > -65)) {
_parent._parent.riciclesCollected++;
nextFrame();
} else if (hitTest(_parent._parent.alien)) {
_parent._parent.alien.anim.ricicle.gotoAndPlay(2);
gotoAndStop (1);
} else if (((this._y > 425) or (ricicleX < -25)) or (ricicleX > 575)) {
gotoAndStop (1);
} else {
prevFrame();
}
Symbol 182 MovieClip Frame 5
play();
Symbol 182 MovieClip Frame 8
gotoAndStop (1);
Symbol 183 MovieClip Frame 1
sfxDig = new Sound(this);
sfxDig.attachSound("sfxDig");
active = 1;
prevActive = 0;
_parent.rikonActive = 0;
rikonY = 0;
this._x = 570;
play();
Symbol 183 MovieClip Frame 2
play();
Symbol 183 MovieClip Frame 3
distance = 600;
i = 1;
while (i <= 15) {
temp = Number(_parent.rikPlanetPos - _parent.rikonPos[i]);
if ((temp > -25) and (temp < 575)) {
distance = temp;
active = i;
if (active != prevActive) {
digRicicleCount = 0;
ricicle1.gotoAndStop(1);
ricicle2.gotoAndStop(1);
ricicle3.gotoAndStop(1);
digRicicle = 0;
rikonY = 0;
}
prevActive = active;
} else {
_parent.rikonActive = 0;
}
i++;
}
if (distance < 600) {
_parent.rikonActive = 1;
} else {
_parent.rikonActive = 0;
}
this._x = distance;
rikonY = rikonY + 0.2;
anim._y = rikonY;
if (((digRicicle == 0) and (digRicicleCount < 3)) and (distance < 500)) {
digRicicleDelay = 0;
digRicicleCount++;
digRicicle = 1;
}
prevFrame();
Symbol 184 MovieClip Frame 1
play();
Symbol 184 MovieClip Frame 9
gotoAndPlay (1);
Symbol 193 MovieClip Frame 1
play();
Symbol 193 MovieClip Frame 6
gotoAndPlay (1);
Symbol 194 MovieClip Frame 1
sfxRun = new Sound(this);
sfxRun.attachSound("sfxRun");
carryRicicle = 1;
anim.ricicle._y = 0;
this._x = 570;
play();
Symbol 194 MovieClip Frame 2
play();
Symbol 194 MovieClip Frame 3
if ((random(100) == 0) and (_parent.timeLeft > 0)) {
sfxRun.start(0, 1000);
nextFrame();
} else {
prevFrame();
}
Symbol 194 MovieClip Frame 4
play();
Symbol 194 MovieClip Frame 5
if (this._x > -100) {
this._x = this._x + (_parent.speed - 5);
panPos = int((this._x - 275) / 2.75);
volPos = 100 - Math.abs(panPos / 3);
sfxRun.setPan(panPos);
sfxRun.setVolume(volPos);
if (((((this._x > 115) and (this._x < 145)) and (_parent.rik._y > 280)) and (_parent.timeLeft > 0)) and (carryRicicle == 1)) {
carryRicicle = 0;
anim.ricicle._y = 200;
_parent.rik.anim.ricicle.gotoAndPlay(2);
_parent.riciclesCollected++;
}
prevFrame();
} else {
sfxRun.stop();
gotoAndPlay (1);
}
Symbol 197 MovieClip Frame 1
function rikHit() {
var _local1 = _parent;
if (hitCount > 0) {
hitCount--;
}
rikX = Math.abs(this._x - 125);
rikY = Math.abs((this._y - _local1.rik._y) - 20);
if ((rikX < 25) and (rikY < 50)) {
if (_local1.riciclesCollected > 0) {
anim.ricicle.gotoAndPlay(2);
_local1.riciclesCollected--;
}
_local1.rikStatus = "HIT";
_local1.speed = 0;
_local1.boost = 0;
_local1.flameLevel = 0;
if (_local1.rikFrame <= 6) {
_local1.rik.anim.gotoAndPlay("rightHit");
} else {
_local1.rik.anim.gotoAndPlay("leftHit");
}
hitCount = 10;
}
}
alienCol = new Color(anim);
alienColTransform1 = new Object();
alienColTransform1 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
alienColTransform2 = new Object();
alienColTransform2 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"100", aa:"100", ab:"0"};
sfxAlien = new Sound(this);
sfxAlien.attachSound("sfxAlien");
play();
Symbol 197 MovieClip Frame 2
active = 0;
this._x = 600;
hitCount = 0;
sfxAlien.stop();
_parent.alienKill = 0;
play();
Symbol 197 MovieClip Frame 3
play();
Symbol 197 MovieClip Frame 4
chance = random(50);
if ((chance < 5) and (_parent.timeLeft > 0)) {
active = 1;
startY = random(200) + 100;
this._y = startY;
speedY = 80;
speedX = 3 + random(3);
speedWavelength = 80 + random(80);
if (chance == 0) {
ricicleShed = 10;
alienCol.setTransform(alienColTransform2);
} else {
ricicleShed = 5;
alienCol.setTransform(alienColTransform1);
}
sfxAlien.start(0, 1000);
sfxAlien.setPan(100);
sfxAlien.setVolume(0);
nextFrame();
} else {
prevFrame();
}
Symbol 197 MovieClip Frame 5
if (_parent.alienKill == 1) {
gotoAndPlay ("die");
} else {
play();
}
Symbol 197 MovieClip Frame 6
this._x = this._x + (_parent.speed - speedX);
this._y = startY + (Math.sin((600 - this._x) / speedWavelength) * speedY);
panPos = int((this._x - 275) / 2.75);
volPos = 80 - Math.abs(panPos / 2);
sfxAlien.setPan(panPos);
sfxAlien.setVolume(volPos);
if (hitCount == 0) {
rikHit();
}
if (this._x < -20) {
gotoAndPlay (2);
} else {
prevFrame();
}
Symbol 197 MovieClip Frame 10
i = 1;
while (i <= ricicleShed) {
if (ricicleShed == 5) {
eval ("_parent.monstaRicicle" + i).floatFactor = 0.2;
} else {
eval ("_parent.monstaRicicle" + i).floatFactor = 0.1;
}
eval ("_parent.monstaRicicle" + i).gotoAndPlay(2);
i++;
}
moveY = 0;
play();
Symbol 197 MovieClip Frame 11
play();
Symbol 197 MovieClip Frame 12
this._x = this._x + _parent.speed;
this._y = this._y + moveY;
moveY = moveY + 3;
panPos = int((this._x - 275) / 2.75);
volPos = 80 - Math.abs(panPos / 2);
sfxAlien.setPan(panPos);
sfxAlien.setVolume(volPos);
if (this._y > 450) {
gotoAndPlay (2);
} else {
prevFrame();
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
this._x = _parent.alien._x;
this._y = _parent.alien._y;
maxY = floatFactor * 30;
moveX = 2 - random(5);
moveY = random(maxY);
play();
Symbol 198 MovieClip Frame 3
play();
Symbol 198 MovieClip Frame 4
this._x = this._x + (_parent.speed + moveX);
this._y = this._y - moveY;
moveY = moveY - floatFactor;
rikDX = _parent.rik._x - this._x;
rikDY = _parent.rik._y - this._y;
if ((((rikDX < 10) and (rikDX > -60)) and (rikDY < 15)) and (rikDY > -65)) {
_parent.riciclesCollected++;
nextFrame();
} else if (((this._y > 425) or (this._x < -25)) or (this._x > 575)) {
gotoAndStop (1);
} else {
prevFrame();
}
Symbol 198 MovieClip Frame 5
play();
Symbol 198 MovieClip Frame 8
gotoAndStop (1);
Symbol 200 MovieClip Frame 1
num = Number(substring(_name, 7, 1));
stop();
Symbol 200 MovieClip Frame 2
play();
Symbol 200 MovieClip Frame 3
this._x = this._x + ((-_parent.speed) + shootX);
dX = Math.abs(this._x - _parent.alien._x);
dY = Math.abs(this._y - _parent.alien._y);
dX2 = Math.abs(this._x - _parent.alienBonus._x);
dY2 = Math.abs(this._y - _parent.alienBonus._y);
if ((dX < 25) and (dY < 25)) {
_parent.alienKill = 1;
_parent.bulletActive[num] = 0;
gotoAndStop (1);
} else if ((dX2 < 25) and (dY2 < 25)) {
_parent.alienBonusKill = 1;
_parent.bulletActive[num] = 0;
gotoAndStop (1);
} else if (this._x > 570) {
_parent.bulletActive[num] = 0;
gotoAndStop (1);
} else {
prevFrame();
}
Symbol 208 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();