Frame 1
loadpercent = "0%";
fullload = loader._width;
loader._width = 0;
loadplay = false;
Frame 2
loadPercent = Math.floor(((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 1) + "%";
loader._width = (Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) / 100) * fullload;
if ((_root._framesloaded > 3) or (Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) > 49)) {
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 4
loadPercent = Math.floor(((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) - 1) + "%";
loader._width = (Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) / 100) * fullload;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
gotoAndStop ("begin");
}
Frame 5
gotoAndPlay (4);
Frame 6
leveltxt = 1;
koef = 0.04;
tim = 0;
score = 0;
lives = 3;
firekill = false;
shieldkill = false;
var B_Act_Sound = new Sound();
B_Act_Sound.attachSound("B_Act");
var Bonus_Sound = new Sound();
Bonus_Sound.attachSound("Bonus");
var BonusLost_Sound = new Sound();
BonusLost_Sound.attachSound("BonusLost");
var Duck_Sound = new Sound();
Duck_Sound.attachSound("Duck");
var Engine_Sound = new Sound();
Engine_Sound.attachSound("Engine");
var Finish_Sound = new Sound();
Finish_Sound.attachSound("Finish");
var Flag_Sound = new Sound();
Flag_Sound.attachSound("Flag");
var GameOver_Sound = new Sound();
GameOver_Sound.attachSound("GameOver");
var Jump_Sound = new Sound();
Jump_Sound.attachSound("Jump");
var Money_Sound = new Sound();
Money_Sound.attachSound("Money");
var Shot_Sound = new Sound();
Shot_Sound.attachSound("Shot");
var Tick_Sound = new Sound();
Tick_Sound.attachSound("Tick");
var TimeOver_Sound = new Sound();
TimeOver_Sound.attachSound("TimeOver");
var Tree_Sound = new Sound();
Tree_Sound.attachSound("Tree");
var WallExplosion_Sound = new Sound();
WallExplosion_Sound.attachSound("WallExplosion");
var Weed_Sound = new Sound();
Weed_Sound.attachSound("Weed");
sound_bttn.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root.B_Act_Sound.setVolume(0);
_root.Bonus_Sound.setVolume(0);
_root.BonusLost_Sound.setVolume(0);
_root.Duck_Sound.setVolume(0);
_root.Engine_Sound.setVolume(0);
_root.Finish_Sound.setVolume(0);
_root.Flag_Sound.setVolume(0);
_root.GameOver_Sound.setVolume(0);
_root.Jump_Sound.setVolume(0);
_root.Money_Sound.setVolume(100);
_root.Shot_Sound.setVolume(0);
_root.Tick_Sound.setVolume(0);
_root.TimeOver_Sound.setVolume(0);
_root.Tree_Sound.setVolume(0);
_root.WallExplosion_Sound.setVolume(0);
_root.Weed_Sound.setVolume(0);
} else {
this.gotoAndStop(1);
_root.B_Act_Sound.setVolume(100);
_root.Bonus_Sound.setVolume(100);
_root.BonusLost_Sound.setVolume(100);
_root.Duck_Sound.setVolume(100);
_root.Engine_Sound.setVolume(100);
_root.Finish_Sound.setVolume(100);
_root.Flag_Sound.setVolume(100);
_root.GameOver_Sound.setVolume(100);
_root.Jump_Sound.setVolume(100);
_root.Money_Sound.setVolume(100);
_root.Shot_Sound.setVolume(100);
_root.Tick_Sound.setVolume(100);
_root.TimeOver_Sound.setVolume(100);
_root.Tree_Sound.setVolume(100);
_root.WallExplosion_Sound.setVolume(100);
_root.Weed_Sound.setVolume(100);
}
};
Frame 7
overview = "The game ''Need For Waves'' presents a breathtaking variety of cutter races. Take control of a super-high-speed cutter and finish first. Thirst for speed and danger makes the game more captivating.\rTake a new route full of obstacles in a limited period of time at each level. The obstacles reduce the speed, skid a cutter or cause a crash. The opponents\u2019 cutters will stand in your way. You can pick up boxes with such bonuses as scores, superengine, a gun, an armour, life on your way.";
Frame 8
overview = "MENU NAVIGATIONS\rUse the cursor keys or mouse to move the menu cursor up and down\rPress the ''Enter'' key or any mouse button to enter menu options.\rPress the ''Left Arrow'', ''Right Arrow'', ''Enter'' keys or any mouse button to change a menu option.\rPress ''Esc'' to back from the submenu to Main Menu.\r\rGAME NAVIGATIONS\rUse the keys ''Arrow Left'' and ''Arrow Right'' to move the catter left and right.\rUse the keys ''Arrow Up'' and ''Arrow Down'' to increase and decrease the speed of the catter.\rPress keys ''Space'', ''Enter'', ''Ctrl'' or left mouse button to fire the gun.\rUse the keys ''P'' to pause or resume the game.\rUse ''Escape'' key to quit the game to Main Menu.\rUse ''Alt''+''Enter'' keys to change window/full screen modes.";
Frame 10
speed = 0;
min = Math.floor(tim / 60);
dsek = Math.floor((tim - (60 * min)) / 10);
sek = Math.floor((tim - (60 * min)) - (10 * dsek));
time_txt = ((min + ":") + dsek) + sek;
level_var = "Level " + String(leveltxt);
level_small = String(leveltxt);
_root.pointer._rotation = 0;
timeout = 0;
time_wait = 0;
_root.boat.wave._visible = false;
_root.boat.shield._visible = false;
_root.boat.fireboat._visible = false;
_root.boat.energiya._visible = false;
Instance of Symbol 100 MovieClip "road" in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if ((_root.road._y + _root.speed) > 0) {
this._y = -241.92;
} else {
this._y = this._y + _root.speed;
}
var i = 1;
while (i <= 20) {
eval (_root.getInstanceAtDepth(i))._y = eval (_root.getInstanceAtDepth(i))._y + _root.speed;
i++;
}
}
onClipEvent (mouseDown) {
}
Instance of Symbol 152 MovieClip "boat" in Frame 10
onClipEvent (load) {
if ((_root._xmouse > 166.4) and (_root._xmouse < 460.8)) {
this._x = _root._xmouse;
}
}
Frame 11
if (tim > 0) {
_root.score = _root.score + 2;
score_txt = String(score);
_root.Tick_Sound.start();
tim = tim - 1;
min = Math.floor(tim / 60);
dsek = Math.floor((tim - (60 * min)) / 10);
sek = Math.floor((tim - (60 * min)) - (10 * dsek));
time_txt = ((min + ":") + dsek) + sek;
}
if (time_wait > (36 + tim)) {
gotoAndPlay ("gogogo");
tim = 50 + ((leveltxt - 1) * 10);
min = Math.floor(tim / 60);
dsek = Math.floor((tim - (60 * min)) / 10);
sek = Math.floor((tim - (60 * min)) - (10 * dsek));
time_txt = ((min + ":") + dsek) + sek;
}
time_wait = time_wait + 1;
Frame 12
gotoAndPlay (11);
Frame 13
frameN = 1;
trydead = false;
_root.boat.shield._visible = false;
_root.boat.fireboat._visible = false;
_root.boat.energiya._visible = false;
firedepth = 1;
Instance of Symbol 124 MovieClip "finish_line" in Frame 13
onClipEvent (enterFrame) {
if (_root.small_car._y <= 46.08) {
this._y = this._y + _root.speed;
}
}
Instance of Symbol 182 MovieClip in Frame 13
onClipEvent (load) {
function onloadfrm() {
frm = Math.round(Math.random() * 8);
if ((frm == 7) and ((Math.random() * 10) > 2)) {
frm = Math.round(Math.random() * 8);
}
if (frm == 0) {
frm = 8;
}
this.gotoAndStop(frm);
this._x = 166.4 + Math.floor((Math.random() * 230) * 1.28);
this._y = -25 - (((Math.random() * 375) * 6) * 1.28);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat.hit) and (!_root.boat.fly)) {
this._y = 499.2;
switch (frm) {
case 1 :
_root.score = _root.score + 10;
_root.Money_Sound.start();
break;
case 2 :
_root.score = _root.score + 20;
_root.Money_Sound.start();
break;
case 3 :
_root.score = _root.score + 50;
_root.Money_Sound.start();
break;
case 4 :
_root.score = _root.score + 100;
_root.Money_Sound.start();
break;
case 5 :
_root.boat.int3 = 10;
_root.boat.acc = 1.2;
_root.boat.energiya._visible = true;
_root.Bonus_Sound.start();
break;
case 6 :
_root.boat.int1 = 10;
_root.firekill = true;
_root.boat.fireboat._visible = true;
_root.Bonus_Sound.start();
break;
case 7 :
_root.lives = _root.lives + 1;
_root.Bonus_Sound.start();
break;
case 8 :
_root.boat.int2 = 10;
_root.shieldkill = true;
_root.boat.shield._visible = true;
_root.Bonus_Sound.start();
}
}
if (this._y < 512) {
this._y = this._y + _root.speed;
} else if (_root.small_car._y > 46.08) {
onloadfrm();
}
}
onClipEvent (mouseDown) {
if ((_root.boat.fireboat._visible and (this._y > 0)) and (this._y < 409.6)) {
tan = Math.atan((this._x - _root.boat._x) / (this._y - _root.boat._y)) * 57.2957795130823;
if (Math.abs(tan + _root.boat._rotation) < 10) {
_root.score = _root.score + 5;
_root.attachMovie("BulletExplosion", "BulletExplosion_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.WallExplosion_Sound.start();
onloadfrm();
}
}
}
Instance of Symbol 200 MovieClip in Frame 13
onClipEvent (load) {
function onloadfrm() {
do {
frm = Math.round(Math.random() * 9);
} while (((_root.leveltxt % 2) == 0) and (((((frm == 0) or (frm == 3)) or (frm == 4)) or (frm == 5)) or (frm == 9)));
if (frm == 0) {
frm = 9;
}
this.gotoAndStop(frm);
switch (frm) {
case 1 :
case 6 :
case 7 :
this._x = 130 + Math.floor(Math.random() * 230);
break;
case 2 :
case 5 :
case 8 :
this._x = 140 + Math.floor(Math.random() * 210);
break;
case 3 :
this._x = 130;
break;
case 4 :
this._x = 360;
break;
case 9 :
this._x = 140 + Math.floor(Math.random() * 210);
if ((Math.random() - 0.5) < 0) {
this._xscale = -100;
} else {
this._xscale = 100;
}
}
this._x = this._x * 1.28;
this._y = (((-Math.random()) * 375) * 3) * 1.28;
}
}
onClipEvent (enterFrame) {
if (frm == 9) {
if (this._xscale > 0) {
this._x = this._x - 2;
if (this._x < 179.2) {
this._xscale = -100;
this._x = 166.4;
}
} else {
this._x = this._x + 2;
if (this._x > 448) {
this._xscale = 100;
this._x = 448;
}
}
}
if (this.hitTest(_root.boat.bighit)) {
switch (frm) {
case 5 :
case 9 :
_root.score = _root.score + 10;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
this._y = 512;
if (!_root.boat.shield._visible) {
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:_root.boat._x, _y:_root.boat._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.lives = _root.lives - 1;
_root.trydead = true;
} else {
_root.WallExplosion_Sound.start();
}
}
switch (frm) {
case 1 :
_root.Duck_Sound.start();
this._y = 512;
_root.score = _root.score - 100;
if (_root.score < 0) {
_root.score = 0;
}
break;
case 2 :
if (_root.boat.timeint < 1) {
_root.Tree_Sound.start();
_root.boat.acc = 0.5;
_root.boat.timeint = 2;
}
break;
case 3 :
case 4 :
_root.score = _root.score + 10;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
this._y = 512;
if (!_root.boat.shield._visible) {
if (_root.speed < 6) {
_root.boat.acc = 0.5;
_root.boat.timeint = 2;
} else {
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:_root.boat._x, _y:_root.boat._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.lives = _root.lives - 1;
_root.trydead = true;
}
} else {
_root.WallExplosion_Sound.start();
}
break;
case 6 :
if (_root.boat.timeint < 1) {
_root.Weed_Sound.start();
_root.boat.acc = 0.5;
_root.boat.timeint = 2;
}
break;
case 7 :
if (_root.boat.timeint < 1) {
_root.Flag_Sound.start();
_root.boat.acc = 0.5;
_root.boat.timeint = 2;
}
break;
case 8 :
if (_root.boat.timeint >= 1) {
break;
}
_root.Jump_Sound.start();
_root.boat.acc = 1.2;
_root.boat.fly = true;
_root.boat._xscale = 130;
_root.boat._yscale = 130;
_root.boat.timeint = 5;
}
}
if (this._y < 512) {
this._y = this._y + _root.speed;
} else if (_root.small_car._y > 46.08) {
onloadfrm();
}
}
onClipEvent (mouseDown) {
if ((((frm == 3) or (frm == 4)) or (frm == 5)) or (frm == 9)) {
if ((_root.boat.fireboat._visible and (this._y > 0)) and (this._y < 409.6)) {
tan = Math.atan((this._x - _root.boat._x) / (this._y - _root.boat._y)) * 57.2957795130823;
if (Math.abs(tan + _root.boat._rotation) < 10) {
_root.score = _root.score + 10;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.WallExplosion_Sound.start();
onloadfrm();
}
}
}
}
Instance of Symbol 182 MovieClip in Frame 13
onClipEvent (load) {
function onloadfrm() {
frm = Math.round(Math.random() * 8);
if ((frm == 7) and ((Math.random() * 10) > 2)) {
frm = Math.round(Math.random() * 8);
}
if (frm == 0) {
frm = 8;
}
this.gotoAndStop(frm);
this._x = 166.4 + Math.floor((Math.random() * 230) * 1.28);
this._y = -25 - (((Math.random() * 375) * 6) * 1.28);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.boat.hit) and (!_root.boat.fly)) {
this._y = 499.2;
switch (frm) {
case 1 :
_root.score = _root.score + 10;
_root.Money_Sound.start();
break;
case 2 :
_root.score = _root.score + 20;
_root.Money_Sound.start();
break;
case 3 :
_root.score = _root.score + 50;
_root.Money_Sound.start();
break;
case 4 :
_root.score = _root.score + 100;
_root.Money_Sound.start();
break;
case 5 :
_root.boat.int3 = 10;
_root.boat.acc = 1.2;
_root.boat.energiya._visible = true;
_root.Bonus_Sound.start();
break;
case 6 :
_root.boat.int1 = 10;
_root.firekill = true;
_root.boat.fireboat._visible = true;
_root.Bonus_Sound.start();
break;
case 7 :
_root.lives = _root.lives + 1;
_root.Bonus_Sound.start();
break;
case 8 :
_root.boat.int2 = 10;
_root.shieldkill = true;
_root.boat.shield._visible = true;
_root.Bonus_Sound.start();
}
}
if (this._y < 512) {
this._y = this._y + _root.speed;
} else if (_root.small_car._y > 46.08) {
onloadfrm();
}
}
onClipEvent (mouseDown) {
if ((_root.boat.fireboat._visible and (this._y > 0)) and (this._y < 409.6)) {
tan = Math.atan((this._x - _root.boat._x) / (this._y - _root.boat._y)) * 57.2957795130823;
if (Math.abs(tan + _root.boat._rotation) < 10) {
_root.score = _root.score + 5;
_root.attachMovie("BulletExplosion", "BulletExplosion_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.WallExplosion_Sound.start();
onloadfrm();
}
}
}
Instance of Symbol 200 MovieClip in Frame 13
onClipEvent (load) {
function onloadfrm() {
do {
frm = Math.round(Math.random() * 9);
} while (((_root.leveltxt % 2) == 0) and (((((frm == 0) or (frm == 3)) or (frm == 4)) or (frm == 5)) or (frm == 9)));
if (frm == 0) {
frm = 9;
}
this.gotoAndStop(frm);
switch (frm) {
case 1 :
case 6 :
case 7 :
this._x = 130 + Math.floor(Math.random() * 230);
break;
case 2 :
case 5 :
case 8 :
this._x = 140 + Math.floor(Math.random() * 210);
break;
case 3 :
this._x = 130;
break;
case 4 :
this._x = 360;
break;
case 9 :
this._x = 140 + Math.floor(Math.random() * 210);
if ((Math.random() - 0.5) < 0) {
this._xscale = -100;
} else {
this._xscale = 100;
}
}
this._x = this._x * 1.28;
this._y = (((-Math.random()) * 375) * 3) * 1.28;
}
}
onClipEvent (enterFrame) {
if (frm == 9) {
if (this._xscale > 0) {
this._x = this._x - 2;
if (this._x < 179.2) {
this._xscale = -100;
this._x = 166.4;
}
} else {
this._x = this._x + 2;
if (this._x > 448) {
this._xscale = 100;
this._x = 448;
}
}
}
if (this.hitTest(_root.boat.bighit)) {
switch (frm) {
case 5 :
case 9 :
_root.score = _root.score + 10;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
this._y = 512;
if (!_root.boat.shield._visible) {
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:_root.boat._x, _y:_root.boat._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.lives = _root.lives - 1;
_root.trydead = true;
} else {
_root.WallExplosion_Sound.start();
}
}
switch (frm) {
case 1 :
_root.Duck_Sound.start();
this._y = 512;
_root.score = _root.score - 100;
if (_root.score < 0) {
_root.score = 0;
}
break;
case 2 :
if (_root.boat.timeint < 1) {
_root.Tree_Sound.start();
_root.boat.acc = 0.5;
_root.boat.timeint = 2;
}
break;
case 3 :
case 4 :
_root.score = _root.score + 10;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
this._y = 512;
if (!_root.boat.shield._visible) {
if (_root.speed < 6) {
_root.boat.acc = 0.5;
_root.boat.timeint = 2;
} else {
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:_root.boat._x, _y:_root.boat._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.lives = _root.lives - 1;
_root.trydead = true;
}
} else {
_root.WallExplosion_Sound.start();
}
break;
case 6 :
if (_root.boat.timeint < 1) {
_root.Weed_Sound.start();
_root.boat.acc = 0.5;
_root.boat.timeint = 2;
}
break;
case 7 :
if (_root.boat.timeint < 1) {
_root.Flag_Sound.start();
_root.boat.acc = 0.5;
_root.boat.timeint = 2;
}
break;
case 8 :
if (_root.boat.timeint >= 1) {
break;
}
_root.Jump_Sound.start();
_root.boat.acc = 1.2;
_root.boat.fly = true;
_root.boat._xscale = 130;
_root.boat._yscale = 130;
_root.boat.timeint = 5;
}
}
if (this._y < 512) {
this._y = this._y + _root.speed;
} else if (_root.small_car._y > 46.08) {
onloadfrm();
}
}
onClipEvent (mouseDown) {
if ((((frm == 3) or (frm == 4)) or (frm == 5)) or (frm == 9)) {
if ((_root.boat.fireboat._visible and (this._y > 0)) and (this._y < 409.6)) {
tan = Math.atan((this._x - _root.boat._x) / (this._y - _root.boat._y)) * 57.2957795130823;
if (Math.abs(tan + _root.boat._rotation) < 10) {
_root.score = _root.score + 10;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.WallExplosion_Sound.start();
onloadfrm();
}
}
}
}
Instance of Symbol 204 MovieClip "small_car" in Frame 13
onClipEvent (enterFrame) {
if (this._y > 46.08) {
this._y = this._y - (_root.speed * _root.koef);
}
}
Instance of Symbol 217 MovieClip in Frame 13
onClipEvent (load) {
function onloadmonster() {
line = false;
frm = Math.round(Math.random() * 6);
thisspeed = Math.round((Math.random() * 4) * 1.28);
if (frm == 0) {
frm = 6;
}
this.gotoAndStop(frm);
this._x = 166.4 + Math.floor((Math.random() * 230) * 1.28);
newx = this._x;
if (_root.leveltxt < 18) {
if ((_root.leveltxt % 2) != 0) {
this._y = -25 - (((Math.random() * 375) * (10 - (_root.leveltxt * 0.5))) * 1.28);
} else {
this._y = -25 - (((Math.random() * 375) * (5 - (_root.leveltxt * 0.5))) * 1.28);
}
} else {
this._y = -25 - ((Math.random() * 375) * 1.28);
}
}
onloadmonster();
}
onClipEvent (enterFrame) {
if (((Math.random() * 10) < 1) and line) {
newx = (this._x + Math.floor((Math.random() * 100) * 1.28)) - 64;
}
if (((newx > 166.4) and (newx < 460.8)) and (Math.abs(Math.floor(newx - this._x)) != 0)) {
delx = Math.floor((newx - this._x) / 5);
this._x = this._x + delx;
}
if (this.hit.hitTest(_root.boat.bighit) and (!_root.boat.fly)) {
_root.score = _root.score + 20;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
if (!_root.boat.shield._visible) {
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:_root.boat._x, _y:_root.boat._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.lives = _root.lives - 1;
_root.trydead = true;
} else {
_root.WallExplosion_Sound.start();
}
onloadmonster();
}
if (this._y > 0) {
if ((this._y < 768) and (this._y > -128)) {
this._y = this._y + (_root.speed - (2 + thisspeed));
} else if (_root.small_car._y > 46.08) {
onloadmonster();
}
} else {
this._y = this._y + (_root.speed - (2 + thisspeed));
if (this._y < -640) {
onloadmonster();
}
}
}
onClipEvent (mouseDown) {
if ((_root.boat.fireboat._visible and (this._y > 0)) and (this._y < 409.6)) {
tan = Math.atan((this._x - _root.boat._x) / (this._y - _root.boat._y)) * 57.2957795130823;
if (Math.abs(tan + _root.boat._rotation) < 10) {
_root.score = _root.score + 20;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.WallExplosion_Sound.start();
onloadmonster();
}
}
}
Instance of Symbol 217 MovieClip in Frame 13
onClipEvent (load) {
function onloadmonster() {
line = false;
frm = Math.round(Math.random() * 6);
thisspeed = Math.round((Math.random() * 4) * 1.28);
if (frm == 0) {
frm = 6;
}
this.gotoAndStop(frm);
this._x = 166.4 + (Math.floor(Math.random() * 230) * 1.28);
newx = this._x;
if (_root.leveltxt < 28) {
if ((_root.leveltxt % 2) != 0) {
this._y = -25 - (((Math.random() * 375) * (15 - (_root.leveltxt * 0.5))) * 1.28);
} else {
this._y = -25 - (((Math.random() * 375) * (7 - (_root.leveltxt * 0.5))) * 1.28);
}
} else {
this._y = -25 - ((Math.random() * 375) * 1.28);
}
}
onloadmonster();
}
onClipEvent (enterFrame) {
if (((Math.random() * 10) < 1) and line) {
newx = (this._x + Math.floor((Math.random() * 100) * 1.28)) - 64;
}
if (((newx > 166.4) and (newx < 460.8)) and (Math.abs(Math.floor(newx - this._x)) != 0)) {
delx = Math.floor((newx - this._x) / 5);
this._x = this._x + delx;
}
if (this.hit.hitTest(_root.boat.bighit) and (!_root.boat.fly)) {
_root.score = _root.score + 20;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
if (!_root.boat.shield._visible) {
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:_root.boat._x, _y:_root.boat._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.lives = _root.lives - 1;
_root.trydead = true;
} else {
_root.WallExplosion_Sound.start();
}
onloadmonster();
}
if (this._y < 640) {
this._y = this._y + ((_root.speed + thisspeed) + 2);
} else if (_root.small_car._y > 46.08) {
onloadmonster();
}
}
onClipEvent (mouseDown) {
if ((_root.boat.fireboat._visible and (this._y > 0)) and (this._y < 409.6)) {
tan = Math.atan((this._x - _root.boat._x) / (this._y - _root.boat._y)) * 57.2957795130823;
if (Math.abs(tan + _root.boat._rotation) < 10) {
_root.score = _root.score + 20;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.WallExplosion_Sound.start();
onloadmonster();
}
}
}
Instance of Symbol 217 MovieClip in Frame 13
onClipEvent (load) {
function onloadmonster() {
line = false;
frm = Math.round(Math.random() * 6);
thisspeed = Math.round((Math.random() * 4) * 1.28);
if (frm == 0) {
frm = 6;
}
this.gotoAndStop(frm);
this._x = 166.4 + Math.floor((Math.random() * 230) * 1.28);
newx = this._x;
if (_root.leveltxt < 18) {
if ((_root.leveltxt % 2) != 0) {
this._y = -25 - (((Math.random() * 375) * (10 - (_root.leveltxt * 0.5))) * 1.28);
} else {
this._y = -25 - (((Math.random() * 375) * (5 - (_root.leveltxt * 0.5))) * 1.28);
}
} else {
this._y = -25 - ((Math.random() * 375) * 1.28);
}
}
onloadmonster();
}
onClipEvent (enterFrame) {
if (((Math.random() * 10) < 1) and line) {
newx = (this._x + Math.floor((Math.random() * 100) * 1.28)) - 64;
}
if (((newx > 166.4) and (newx < 460.8)) and (Math.abs(Math.floor(newx - this._x)) != 0)) {
delx = Math.floor((newx - this._x) / 5);
this._x = this._x + delx;
}
if (this.hit.hitTest(_root.boat.bighit) and (!_root.boat.fly)) {
_root.score = _root.score + 20;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
if (!_root.boat.shield._visible) {
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:_root.boat._x, _y:_root.boat._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.lives = _root.lives - 1;
_root.trydead = true;
} else {
_root.WallExplosion_Sound.start();
}
onloadmonster();
}
if (this._y > 0) {
if ((this._y < 768) and (this._y > -128)) {
this._y = this._y + (_root.speed - (2 + thisspeed));
} else if (_root.small_car._y > 46.08) {
onloadmonster();
}
} else {
this._y = this._y + (_root.speed - (2 + thisspeed));
if (this._y < -640) {
onloadmonster();
}
}
}
onClipEvent (mouseDown) {
if ((_root.boat.fireboat._visible and (this._y > 0)) and (this._y < 409.6)) {
tan = Math.atan((this._x - _root.boat._x) / (this._y - _root.boat._y)) * 57.2957795130823;
if (Math.abs(tan + _root.boat._rotation) < 10) {
_root.score = _root.score + 20;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.WallExplosion_Sound.start();
onloadmonster();
}
}
}
Instance of Symbol 217 MovieClip in Frame 13
onClipEvent (load) {
function onloadmonster() {
line = false;
frm = Math.round(Math.random() * 6);
thisspeed = Math.round((Math.random() * 4) * 1.28);
if (frm == 0) {
frm = 6;
}
this.gotoAndStop(frm);
this._x = 166.4 + (Math.floor(Math.random() * 230) * 1.28);
newx = this._x;
if (_root.leveltxt < 28) {
if ((_root.leveltxt % 2) != 0) {
this._y = -25 - (((Math.random() * 375) * (15 - (_root.leveltxt * 0.5))) * 1.28);
} else {
this._y = -25 - (((Math.random() * 375) * (7 - (_root.leveltxt * 0.5))) * 1.28);
}
} else {
this._y = -25 - ((Math.random() * 375) * 1.28);
}
}
onloadmonster();
}
onClipEvent (enterFrame) {
if (((Math.random() * 10) < 1) and line) {
newx = (this._x + Math.floor((Math.random() * 100) * 1.28)) - 64;
}
if (((newx > 166.4) and (newx < 460.8)) and (Math.abs(Math.floor(newx - this._x)) != 0)) {
delx = Math.floor((newx - this._x) / 5);
this._x = this._x + delx;
}
if (this.hit.hitTest(_root.boat.bighit) and (!_root.boat.fly)) {
_root.score = _root.score + 20;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
if (!_root.boat.shield._visible) {
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:_root.boat._x, _y:_root.boat._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.lives = _root.lives - 1;
_root.trydead = true;
} else {
_root.WallExplosion_Sound.start();
}
onloadmonster();
}
if (this._y < 640) {
this._y = this._y + ((_root.speed + thisspeed) + 2);
} else if (_root.small_car._y > 46.08) {
onloadmonster();
}
}
onClipEvent (mouseDown) {
if ((_root.boat.fireboat._visible and (this._y > 0)) and (this._y < 409.6)) {
tan = Math.atan((this._x - _root.boat._x) / (this._y - _root.boat._y)) * 57.2957795130823;
if (Math.abs(tan + _root.boat._rotation) < 10) {
_root.score = _root.score + 20;
_root.attachMovie("ExplosionBig", "ExplosionBig_" + _root.firedepth, _root.firedepth, {_x:this._x, _y:this._y});
_root.firedepth = _root.firedepth + 1;
if (_root.firedepth > 20) {
_root.firedepth = 1;
}
_root.WallExplosion_Sound.start();
onloadmonster();
}
}
}
Instance of Symbol 152 MovieClip "boat" in Frame 13
onClipEvent (load) {
acc = 1;
int1 = -1;
int2 = -1;
int3 = -1;
intvar = 1;
fly = false;
timeint = 0;
bonustxt = -1;
}
onClipEvent (enterFrame) {
if ((_root.Engine_Sound.position == 0) or (_root.Engine_Sound.position == _root.Engine_Sound.duration)) {
_root.Engine_Sound.start();
}
sp = Math.round(((this._y - _root._ymouse) / 33) * 2);
if (!fly) {
_root.boat.wave._visible = true;
} else {
_root.boat.wave._visible = false;
this._rotation = 0;
}
switch (sp) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
case 8 :
case 9 :
case 10 :
case 11 :
case 12 :
case 13 :
case 14 :
_root.speed = (sp * acc) * 1.2;
_root.pointer._rotation = ((sp * 150) / 14) * acc;
break;
case 15 :
case 16 :
case 17 :
case 18 :
case 19 :
case 20 :
case 21 :
case 22 :
case 23 :
case 24 :
case 25 :
case 26 :
_root.speed = (14 * acc) * 1.2;
_root.pointer._rotation = 150 * acc;
sp = 14;
break;
default :
_root.boat.wave._visible = false;
_root.speed = 0;
sp = 0;
_root.pointer._rotation = 0;
}
delx = ((_root._xmouse - this._x) * sp) / 30;
delr = (-Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse)) / (Math.PI/180);
if (delr < -45) {
delr = -45;
}
if (delr > 45) {
delr = 45;
}
if (!fly) {
_root.boat._rotation = Math.round(delr / 10) * 10;
}
if (((_root._xmouse > 166.4) and (_root._xmouse < 460.8)) and (!fly)) {
this._x = this._x + delx;
} else if (((this._x > 166.4) and (this._x < 460.8)) and (!fly)) {
if (((this._x + delx) > 166.4) and ((this._x + delx) < 460.8)) {
this._x = this._x + delx;
} else {
if (delx < 0) {
this._x = this._x - 5;
}
if (delx > 0) {
this._x = this._x + 5;
}
}
}
if ((timeint > 0) and ((_root.frameN % 12) == 0)) {
timeint = timeint - 1;
if (timeint == 0) {
acc = 1;
fly = false;
_root.boat._xscale = 100;
_root.boat._yscale = 100;
}
}
if (int1 == 0) {
this.fireboat._visible = false;
int1 = -1;
_root.BonusLost_Sound.start();
_root.firekill = false;
}
if (int1 > 0) {
if ((_root.frameN % 12) == 0) {
int1 = int1 - 1;
}
bonustxt = int1;
intvar = 2;
}
if (int2 == 0) {
this.shield._visible = false;
int2 = -1;
_root.BonusLost_Sound.start();
_root.shieldkill = false;
}
if (int2 > 0) {
if ((_root.frameN % 12) == 0) {
int2 = int2 - 1;
}
bonustxt = int2;
intvar = 3;
}
if (int3 == 0) {
this.energiya._visible = false;
int3 = -1;
_root.BonusLost_Sound.start();
acc = 1;
}
if (int3 > 0) {
if ((_root.frameN % 12) == 0) {
int3 = int3 - 1;
}
bonustxt = int3;
intvar = 4;
}
if (bonustxt >= 0) {
_root.bonusicon.gotoAndStop(intvar);
_root.bonus_var = String(bonustxt);
intvar = 1;
bonustxt = -1;
} else {
_root.bonusicon.gotoAndStop(intvar);
_root.bonus_var = "";
}
}
onClipEvent (mouseDown) {
if (this.fireboat._visible) {
this.fireboat.gotoAndPlay(2);
_root.Shot_Sound.start();
}
}
Frame 14
frameN = frameN + 1;
if ((frameN % 12) == 0) {
tim = tim - 1;
if (tim < 10) {
_root.Tick_Sound.start();
}
min = Math.floor(tim / 60);
dsek = Math.floor((tim - (60 * min)) / 10);
sek = Math.floor((tim - (60 * min)) - (10 * dsek));
time_txt = ((min + ":") + dsek) + sek;
}
score_txt = String(score);
lives_txt = String(lives);
if (Key.isDown(27)) {
lives = 0;
trydead = true;
}
Frame 15
if (_root.finish_line._y < 454.4) {
gotoAndPlay (14);
} else {
_root.Finish_Sound.start();
leveltxt = leveltxt + 1;
gotoAndPlay ("wait_level");
koef = koef * 0.8;
_root.armo = "999";
}
if (((min == 0) and (dsek == 0)) and (sek == 0)) {
lives = lives - 1;
speed = 0;
_root.pointer._rotation = 0;
if (lives == 0) {
leveltxt = 1;
koef = 0.04;
gotoAndPlay ("game_over");
_root.GameOver_Sound.start();
} else {
gotoAndPlay ("time_out");
_root.TimeOver_Sound.start();
}
}
if (trydead) {
speed = 0;
_root.pointer._rotation = 0;
if (lives <= 0) {
leveltxt = 1;
gotoAndPlay ("game_over");
_root.GameOver_Sound.start();
tim = 60;
koef = 0.04;
} else {
_root.WallExplosion_Sound.start();
gotoAndPlay ("dead");
}
}
Frame 16
time_wait = 0;
Frame 17
if (time_wait > 36) {
gotoAndPlay ("gogogo");
}
time_wait = time_wait + 1;
Frame 18
gotoAndPlay (17);
Frame 19
time_wait = 0;
_root.boat.wave._visible = false;
_root.boat.shield._visible = false;
_root.boat.fireboat._visible = false;
_root.boat.energiya._visible = false;
Instance of Symbol 152 MovieClip "boat" in Frame 19
onClipEvent (load) {
if ((_root._xmouse > 153.6) and (_root._xmouse < 473.6)) {
this._x = _root._xmouse;
}
}
Frame 20
if (time_wait > 36) {
gotoAndPlay ("wait_level");
}
time_wait = time_wait + 1;
Frame 21
gotoAndPlay (20);
Frame 22
time_wait = 0;
Frame 23
if (time_wait > 36) {
gotoAndStop ("begin");
score = 0;
}
time_wait = time_wait + 1;
Frame 24
gotoAndPlay (23);
Symbol 33 MovieClip [BulletExplosion] Frame 9
removeMovieClip(this);
Symbol 50 MovieClip [ExplosionBig] Frame 9
removeMovieClip(this);
Symbol 68 Button
on (release) {
gotoAndPlay ("wait_level");
}
on (rollOver) {
_root.centr_txt.gotoAndStop(2);
gotoAndStop ("begin");
_root.B_Act_Sound.start();
}
on (rollOut) {
_root.centr_txt.gotoAndStop(1);
}
Symbol 69 Button
on (release) {
if (_root._currentframe == 6) {
gotoAndStop (7);
} else {
gotoAndStop (6);
}
}
on (rollOver) {
_root.centr_txt.gotoAndStop(3);
_root.B_Act_Sound.start();
}
on (rollOut) {
_root.centr_txt.gotoAndStop(1);
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 85 Button
on (release) {
if (_root._currentframe > 7) {
_root.prevFrame();
}
}
on (rollOver) {
_root.B_Act_Sound.start();
}
Symbol 88 Button
on (release) {
if (_root._currentframe < 9) {
_root.nextFrame();
}
}
on (rollOver) {
_root.B_Act_Sound.start();
}
Symbol 93 Button
on (release) {
overview.scroll--;
}
Symbol 95 Button
on (release) {
overview.scroll++;
}
Symbol 135 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 168 Button
on (release) {
_root.Engine_Sound.stop();
gotoAndStop ("begin");
}
on (rollOver) {
_root.B_Act_Sound.start();
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();