home *** CD-ROM | disk | FTP | other *** search
- stop();
- muzyka6 = new Sound(pustynia);
- muzyka6.attachSound("last_lev");
- muzyka6.setVolume(100);
- muzyka6.start(0,9999);
- attackTime = 0;
- level = 6;
- menu.level_txt.text = level;
- pustynia._visible = true;
- tlo_pustynia._visible = true;
- pustynia.pustynia1.duplicateMovieClip("pustynia1_dub",100);
- pustynia.pustynia1_dub._x = pustynia.pustynia1._x + pustynia.pustynia1._width;
- bgstartx = pustynia._x;
- bgSpeed1 = 1;
- pustynia.onEnterFrame = function()
- {
- pustynia._x -= bgSpeed1;
- if(pustynia._x <= bgstartx - pustynia.pustynia1._width)
- {
- pustynia._x = bgstartx - bgSpeed1;
- }
- };
- next_lev = false;
- this.onEnterFrame = function()
- {
- if(attackTime == 50)
- {
- var sx = Math.random() * 180 + 100;
- ship_attack3("ship4",sx,6,7);
- }
- if(attackTime == 111)
- {
- ship_attack0("ship1",3);
- }
- if(attackTime == 250)
- {
- var sx = Math.random() * 100 + 180;
- ship_attack2("ship6",sx,8,7);
- }
- if(attackTime == 350)
- {
- var sx = Math.random() * 120 + 120;
- ship_attack3("ship4",sx,5,-7);
- }
- if(attackTime == 420)
- {
- ship_attack1("ship7",3);
- }
- if(attackTime == 480)
- {
- boss_attack2("boss2",600,150,laser2a);
- }
- if(attackTime == 530)
- {
- boss_attack1("boss1MaW",600,150,laser_boss);
- }
- if(attackTime == 600)
- {
- var sx = Math.random() * 100 + 180;
- ship_attack2("ship6",sx,8,-7);
- }
- if(attackTime == 730)
- {
- var sx = Math.random() * 120 + 120;
- ship_attack3("ship4",sx,5,7);
- }
- if(attackTime == 750)
- {
- ship_attack1("ship7",3);
- }
- if(attackTime == 800)
- {
- boss_attack1("boss2",600,150,bullet1);
- }
- if(attackTime == 850)
- {
- ship_attack0("ship1MaW",3);
- }
- if(attackTime == 900)
- {
- boss_level("last_boss",600,150,laser_boss);
- }
- if(attackTime > 1000 && przenies <= 0 && next_lev == true)
- {
- muzyka6.stop();
- delete this.onEnterFrame;
- delete pustynia.onEnterFrame;
- pustynia._visible = false;
- tlo_pustynia._visible = false;
- menu._visible = false;
- hero._visible = false;
- level_change_MC._visible = false;
- gotoAndStop(152);
- }
- attackTime++;
- trace(attackTime);
- trace(next_lev);
- trace(przenies);
- };
-