home *** CD-ROM | disk | FTP | other *** search
- stop();
- level = 3;
- chmurki3_1._visible = true;
- wood1._visible = true;
- sun3._visible = true;
- mountain._visible = true;
- tlo3._visible = true;
- menu.level_txt.text = level;
- muzyka2 = new Sound(lev3);
- muzyka2.attachSound("lee");
- muzyka2.setVolume(70);
- muzyka2.start(0,9999);
- wood1.wood.duplicateMovieClip("wood_dub",101);
- wood1.wood_dub._x = wood1.wood._x + wood1.wood._width;
- bgstartx = wood1._x;
- bgSpeed = 5;
- wood1.onEnterFrame = function()
- {
- wood1._x -= bgSpeed;
- if(wood1._x <= bgstartx - wood1.wood._width)
- {
- wood1._x = bgstartx - bgSpeed;
- }
- };
- mountain.mountain1.duplicateMovieClip("mountain1_dub",100);
- mountain.mountain1_dub._x = mountain.mountain1._x + mountain.mountain1._width;
- bgstartx = mountain._x;
- bgSpeed1 = 1;
- mountain.onEnterFrame = function()
- {
- mountain._x -= bgSpeed1;
- if(mountain._x <= bgstartx - mountain.mountain1._width)
- {
- mountain._x = bgstartx - bgSpeed1;
- }
- };
- chmurki3_1.chmurki3.duplicateMovieClip("chmurki3_dub",100);
- chmurki3_1.chmurki3_dub._x = chmurki3_1.chmurki3._x + chmurki3_1.chmurki3._width;
- bgstartx = chmurki3_1._x;
- bgSpeed2 = 0.2;
- chmurki3_1.onEnterFrame = function()
- {
- chmurki3_1._x -= bgSpeed2;
- if(chmurki3_1._x <= bgstartx - chmurki3_1.chmurki3._width)
- {
- chmurki3_1._x = bgstartx - bgSpeed2;
- }
- };
- sun3.onEnterFrame = function()
- {
- this._x -= 0.05;
- };
- attackTime = 0;
- next_lev = false;
- this.onEnterFrame = function()
- {
- if(attackTime == 50)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship8",sx,6,7);
- }
- if(attackTime == 130)
- {
- ship_attack0("ship1",1);
- }
- if(attackTime == 250)
- {
- var sx = Math.random() * 100 + 180;
- ship_attack2("ship1MaW",sx,8,7);
- }
- if(attackTime == 350)
- {
- var sx = Math.random() * 120 + 120;
- ship_attack3("ship7",sx,5,-7);
- }
- if(attackTime == 420)
- {
- ship_attack1("ship6",3);
- }
- if(attackTime == 480)
- {
- boss_attack1("boss1MaW",600,150,laser2a);
- }
- if(attackTime == 560)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship8",sx,5,-7);
- }
- if(attackTime == 600)
- {
- boss_attack_energy("boss4",600,150,bullet_boss);
- }
- if(attackTime == 620)
- {
- var sx = Math.random() * 100 + 180;
- ship_attack2("ship1MaW",sx,3,-7);
- }
- if(attackTime == 700)
- {
- var sx = Math.random() * 120 + 120;
- ship_attack3("ship7",sx,3,-7);
- }
- if(attackTime == 730)
- {
- ship_attack1("ship6",6);
- }
- if(attackTime == 880)
- {
- boss_attack2("boss3MaW",600,150,laser2a);
- }
- if(attackTime == 905)
- {
- boss_attack1("boss1MaW",600,150,bullet_boss);
- }
- if(attackTime == 950)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship5",sx,2,-7);
- }
- if(attackTime == 1050)
- {
- var sx = Math.random() * 100 + 180;
- ship_attack2("ship2",sx,5,7);
- }
- if(attackTime == 1120)
- {
- var sx = Math.random() * 120 + 120;
- ship_attack3("ship7",sx,6,7);
- }
- if(attackTime == 1290)
- {
- ship_attack1("ship1Maw",4);
- }
- if(attackTime == 1380)
- {
- boss_attack1("boss1MaW",600,150,laser2a);
- }
- if(attackTime == 1480)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship5",sx,5,-8);
- }
- if(attackTime == 1500)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship6",sx,5,8);
- }
- if(attackTime == 1550)
- {
- boss_level("boss_koniec_3",600,150,bullet1);
- }
- if(attackTime > 1600 && przenies <= 0 && next_lev == true)
- {
- delete this.onEnterFrame;
- delete wood1.onEnterFrame;
- delete sun3.onEnterFrame;
- delete mountain.onEnterFrame;
- delete chmurki3_1.onEnterFrame;
- chmurki3_1._visible = false;
- wood1._visible = false;
- sun3._visible = false;
- mountain._visible = false;
- tlo3._visible = false;
- muzyka2.stop();
- gotoAndPlay(152);
- }
- attackTime++;
- trace(attackTime);
- };
-