home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / AitchuTheAbduction.swf / scripts / frame_37 / DoAction.as
Encoding:
Text File  |  2005-11-10  |  12.8 KB  |  448 lines

  1. if(_global.temps > 0 && !this.nivo.texteIntro)
  2. {
  3.    this.nivo.texteIntro = this.nivo.texteIntro + 1;
  4.    this.saveTime = 10000;
  5.    this.salvenum = 0;
  6.    this.afficheTexte(0,180,"Level 1");
  7. }
  8. if(_global.temps > 31 && !this.nivo.m00)
  9. {
  10.    this.nivo.m00 = this.nivo.m00 + 1;
  11.    var x = 580;
  12.    var y = 150;
  13.    var i = 0;
  14.    while(i < 4)
  15.    {
  16.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  17.       clip = this["ennemi" + this.salvenum + i];
  18.       clip._x = x;
  19.       clip._y = y;
  20.       clip.vitesse = 10;
  21.       clip.trajectoire = "droite";
  22.       clip.angle = 3.141592653589793;
  23.       x -= 80 * Math.cos(clip.angle);
  24.       y -= 80 * Math.sin(clip.angle);
  25.       i++;
  26.    }
  27.    this.salvenum += 4;
  28. }
  29. if(_global.temps > 34 && !this.nivo.m01)
  30. {
  31.    this.nivo.m01 = this.nivo.m01 + 1;
  32.    var x = 580;
  33.    var i = 0;
  34.    while(i < 4)
  35.    {
  36.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  37.       clip = this["ennemi" + this.salvenum + i];
  38.       clip._x = x;
  39.       clip._y = 100;
  40.       clip.vitesse = 10;
  41.       clip.trajectoire = "sinus";
  42.       clip.angle = 3.141592653589793;
  43.       clip.savey = 100;
  44.       x += 80;
  45.       i++;
  46.    }
  47.    this.salvenum += 3;
  48. }
  49. if(_global.temps > 34 && !this.nivo.m02)
  50. {
  51.    this.nivo.m02 = this.nivo.m02 + 1;
  52.    var x = 580;
  53.    var i = 0;
  54.    while(i < 3)
  55.    {
  56.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  57.       clip = this["ennemi" + this.salvenum + i];
  58.       clip._x = x;
  59.       clip._y = 300;
  60.       clip.vitesse = 10;
  61.       clip.trajectoire = "sinus";
  62.       clip.angle = 3.141592653589793;
  63.       clip.savey = 300;
  64.       x += 80;
  65.       i++;
  66.    }
  67.    this.salvenum += 3;
  68. }
  69. if(_global.temps > 36 && !this.nivo.m03)
  70. {
  71.    this.nivo.m03 = this.nivo.m03 + 1;
  72.    var x = 580;
  73.    var i = 0;
  74.    while(i < 8)
  75.    {
  76.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  77.       clip = this["ennemi" + this.salvenum + i];
  78.       clip._x = x;
  79.       clip._y = 200;
  80.       clip.vitesse = 10;
  81.       clip.trajectoire = "sinus";
  82.       clip.angle = 3.141592653589793;
  83.       clip.savey = 200;
  84.       x += 80;
  85.       i++;
  86.    }
  87.    this.salvenum += 10;
  88. }
  89. if(_global.temps > 40 && !this.nivo.m04)
  90. {
  91.    this.nivo.m04 = this.nivo.m04 + 1;
  92.    var x = 580;
  93.    var y = 350;
  94.    var i = 0;
  95.    while(i < 5)
  96.    {
  97.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  98.       clip = this["ennemi" + this.salvenum + i];
  99.       clip._x = x;
  100.       clip._y = y;
  101.       clip.vitesse = 10;
  102.       clip.trajectoire = "droite";
  103.       clip.angle = 3.5342917352885173;
  104.       x -= 80 * Math.cos(clip.angle);
  105.       y -= 80 * Math.sin(clip.angle);
  106.       i++;
  107.    }
  108.    this.salvenum += 5;
  109. }
  110. if(_global.temps > 43 && !this.nivo.m05)
  111. {
  112.    this.nivo.m05 = this.nivo.m05 + 1;
  113.    var x = 580;
  114.    var y = 50;
  115.    var i = 0;
  116.    while(i < 5)
  117.    {
  118.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  119.       clip = this["ennemi" + this.salvenum + i];
  120.       clip._x = x;
  121.       clip._y = y;
  122.       clip.vitesse = 10;
  123.       clip.trajectoire = "droite";
  124.       clip.angle = 2.748893571891069;
  125.       x -= 80 * Math.cos(clip.angle);
  126.       y -= 80 * Math.sin(clip.angle);
  127.       i++;
  128.    }
  129.    this.salvenum += 5;
  130. }
  131. if(_global.temps > 47 && !this.nivo.m06)
  132. {
  133.    this.nivo.m06 = this.nivo.m06 + 1;
  134.    this.attachMovie("Monstre3Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  135.    clip = this["ennemi" + this.salvenum + i];
  136.    clip._x = 580;
  137.    clip._y = 200;
  138.    clip.vitesse = 5;
  139.    clip.trajectoire = "droite";
  140.    clip.angle = 3.141592653589793;
  141.    this.salvenum += 1;
  142. }
  143. if(_global.temps > 47 && !this.nivo.m07)
  144. {
  145.    this.nivo.m07 = this.nivo.m07 + 1;
  146.    var angle = 0;
  147.    var i = 0;
  148.    while(i < 2)
  149.    {
  150.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  151.       clip = this["ennemi" + this.salvenum + i];
  152.       clip.vitesse = 5;
  153.       clip.trajectoire = "cercle";
  154.       clip._x = 580;
  155.       clip.savex = 580;
  156.       clip.savey = 80;
  157.       clip.rayonx = 25;
  158.       clip.rayony = 25;
  159.       clip.angle = angle;
  160.       angle += 3.141592653589793;
  161.       i++;
  162.    }
  163.    this.salvenum += 2;
  164. }
  165. if(_global.temps > 47 && !this.nivo.m08)
  166. {
  167.    this.nivo.m08 = this.nivo.m08 + 1;
  168.    var angle = 0;
  169.    var i = 0;
  170.    while(i < 2)
  171.    {
  172.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  173.       clip = this["ennemi" + this.salvenum + i];
  174.       clip.vitesse = 5;
  175.       clip.trajectoire = "cercle";
  176.       clip._x = 580;
  177.       clip.savex = 580;
  178.       clip.savey = 320;
  179.       clip.rayonx = 25;
  180.       clip.rayony = 25;
  181.       clip.angle = angle;
  182.       angle += 3.141592653589793;
  183.       i++;
  184.    }
  185.    this.salvenum += 2;
  186. }
  187. if(_global.temps > 51 && !this.nivo.m09)
  188. {
  189.    this.nivo.m09 = this.nivo.m09 + 1;
  190.    var x = 580;
  191.    var i = 0;
  192.    while(i < 5)
  193.    {
  194.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  195.       clip = this["ennemi" + this.salvenum + i];
  196.       clip._x = x;
  197.       clip.vitesse = 10;
  198.       clip.trajectoire = "atan";
  199.       clip.angle = 3.141592653589793;
  200.       clip.savey = 200;
  201.       clip.largeur = 200;
  202.       clip.hauteur = 100;
  203.       x += 80;
  204.       i++;
  205.    }
  206.    this.salvenum += 5;
  207. }
  208. if(_global.temps > 54 && !this.nivo.m10)
  209. {
  210.    this.nivo.m10 = this.nivo.m10 + 1;
  211.    var x = 580;
  212.    var i = 0;
  213.    while(i < 5)
  214.    {
  215.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  216.       clip = this["ennemi" + this.salvenum + i];
  217.       clip._x = x;
  218.       clip.vitesse = 10;
  219.       clip.trajectoire = "atan";
  220.       clip.angle = 3.141592653589793;
  221.       clip.savey = 200;
  222.       clip.largeur = 200;
  223.       clip.hauteur = -100;
  224.       x += 80;
  225.       i++;
  226.    }
  227.    this.salvenum += 5;
  228. }
  229. if(_global.temps > 57 && !this.nivo.m11)
  230. {
  231.    this.nivo.m11 = this.nivo.m11 + 1;
  232.    this.attachMovie("Monstre3Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  233.    clip = this["ennemi" + this.salvenum + i];
  234.    clip._x = 580;
  235.    clip._y = 100;
  236.    clip.vitesse = 3;
  237.    clip.trajectoire = "sinus";
  238.    clip.angle = 3.141592653589793;
  239.    clip.savey = 100;
  240.    this.salvenum += 1;
  241. }
  242. if(_global.temps > 27 && !this.nivo.m12)
  243. {
  244.    this.nivo.m12 = this.nivo.m12 + 1;
  245.    this.attachMovie("Monstre3Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  246.    clip = this["ennemi" + this.salvenum + i];
  247.    clip._x = 580;
  248.    clip._y = 300;
  249.    clip.vitesse = 3;
  250.    clip.trajectoire = "sinus";
  251.    clip.angle = 3.141592653589793;
  252.    clip.savey = 300;
  253.    this.salvenum += 1;
  254. }
  255. if(_global.temps > 27 && !this.nivo.m13)
  256. {
  257.    this.nivo.m13 = this.nivo.m13 + 1;
  258.    this.attachMovie("Monstre3Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  259.    clip = this["ennemi" + this.salvenum + i];
  260.    clip._x = 600;
  261.    clip._y = 200;
  262.    clip.vitesse = 3;
  263.    clip.trajectoire = "sinus";
  264.    clip.angle = 3.141592653589793;
  265.    clip.savey = 200;
  266.    this.salvenum += 1;
  267. }
  268. if(_global.temps > 32 && !this.nivo.m14)
  269. {
  270.    afficheTexte(0,320,"Mini Boss : Crazy Wheel");
  271.    this.nivo.m14 = this.nivo.m14 + 1;
  272.    this.attachMovie("Monstre4Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  273.    clip = this["ennemi" + this.salvenum + i];
  274.    clip._x = 580;
  275.    clip._y = 200;
  276.    clip.vitesse = 2;
  277.    clip.trajectoire = "droite";
  278.    clip.angle = 3.141592653589793;
  279.    this.salvenum += 1;
  280. }
  281. if(_global.temps > 42 && !this.nivo.m15)
  282. {
  283.    this.nivo.m15 = this.nivo.m15 + 1;
  284.    var angle = 0;
  285.    var i = 0;
  286.    while(i < 6)
  287.    {
  288.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  289.       clip = this["ennemi" + this.salvenum + i];
  290.       clip.vitesse = 5;
  291.       clip.trajectoire = "cercle";
  292.       clip._x = 580;
  293.       clip.savex = 580;
  294.       clip.savey = 200;
  295.       clip.rayonx = 50;
  296.       clip.rayony = 150;
  297.       clip.angle = angle;
  298.       angle += 1.0471975511965976;
  299.       i++;
  300.    }
  301.    this.salvenum += 6;
  302. }
  303. if(_global.temps > 45 && !this.nivo.m16)
  304. {
  305.    this.nivo.m16 = this.nivo.m16 + 1;
  306.    this.attachMovie("Monstre2Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  307.    clip = this["ennemi" + this.salvenum + i];
  308.    clip._x = 600;
  309.    clip.vitesse = 4;
  310.    clip.trajectoire = "atan";
  311.    clip.angle = 3.141592653589793;
  312.    clip.savey = 200;
  313.    clip.largeur = 200;
  314.    clip.hauteur = 100;
  315.    this.salvenum += 1;
  316. }
  317. if(_global.temps > 46 && !this.nivo.m17)
  318. {
  319.    this.nivo.m17 = this.nivo.m17 + 1;
  320.    this.attachMovie("Monstre2Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  321.    clip = this["ennemi" + this.salvenum + i];
  322.    clip._x = 600;
  323.    clip.vitesse = 4;
  324.    clip.trajectoire = "atan";
  325.    clip.angle = 3.141592653589793;
  326.    clip.savey = 200;
  327.    clip.largeur = 200;
  328.    clip.hauteur = -100;
  329.    this.salvenum += 1;
  330. }
  331. if(_global.temps > 47 && !this.nivo.m18)
  332. {
  333.    this.nivo.m18 = this.nivo.m18 + 1;
  334.    this.attachMovie("Monstre2Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  335.    clip = this["ennemi" + this.salvenum + i];
  336.    clip._x = 600;
  337.    clip._y = 200;
  338.    clip.vitesse = 4;
  339.    clip.trajectoire = "droite";
  340.    clip.angle = 3.141592653589793;
  341.    this.salvenum += 1;
  342. }
  343. if(_global.temps > 52 && !this.nivo.m19)
  344. {
  345.    this.nivo.m19 = this.nivo.m19 + 1;
  346.    var x = 580;
  347.    var y = 100;
  348.    var i = 0;
  349.    while(i < 4)
  350.    {
  351.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  352.       clip = this["ennemi" + this.salvenum + i];
  353.       clip._x = x;
  354.       clip._y = y;
  355.       clip.vitesse = 4;
  356.       clip.trajectoire = "droite";
  357.       clip.angle = 3.141592653589793;
  358.       x -= 80 * Math.cos(clip.angle);
  359.       y -= 80 * Math.sin(clip.angle);
  360.       i++;
  361.    }
  362.    this.salvenum += 4;
  363. }
  364. if(_global.temps > 52 && !this.nivo.m20)
  365. {
  366.    this.nivo.m20 = this.nivo.m20 + 1;
  367.    var x = 580;
  368.    var y = 300;
  369.    var i = 0;
  370.    while(i < 4)
  371.    {
  372.       this.attachMovie("Monstre1Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  373.       clip = this["ennemi" + this.salvenum + i];
  374.       clip._x = x;
  375.       clip._y = y;
  376.       clip.vitesse = 4;
  377.       clip.trajectoire = "droite";
  378.       clip.angle = 3.141592653589793;
  379.       x -= 80 * Math.cos(clip.angle);
  380.       y -= 80 * Math.sin(clip.angle);
  381.       i++;
  382.    }
  383.    this.salvenum += 4;
  384. }
  385. if(_global.temps > 53 && !this.nivo.m21)
  386. {
  387.    this.nivo.m21 = this.nivo.m21 + 1;
  388.    this.attachMovie("Monstre2Clip","ennemi" + this.salvenum + i,_global.ennemiDepth + this.salvenum + i);
  389.    clip = this["ennemi" + this.salvenum + i];
  390.    clip._x = 580;
  391.    clip._y = 200;
  392.    clip.vitesse = 4;
  393.    clip.trajectoire = "droite";
  394.    clip.angle = 3.141592653589793;
  395.    this.salvenum += 1;
  396. }
  397. if(_global.temps > 20 && !this.nivo.bonusBombe01)
  398. {
  399.    this.nivo.bonusBombe01 = this.nivo.bonusBombe01 + 1;
  400.    this.attachMovie("BonusBombeClip","superbonus",_global.bonusDepth);
  401. }
  402. if(_global.temps > 40 && !this.nivo.bonusBouclier01)
  403. {
  404.    this.nivo.bonusBouclier01 = this.nivo.bonusBouclier01 + 1;
  405.    this.attachMovie("BonusBouclierClip","superbonus1",_global.bonusDepth + 1);
  406. }
  407. if(_global.temps > 40 && !this.nivo.bonusVie01)
  408. {
  409.    this.nivo.bonusVie01 = this.nivo.bonusVie01 + 1;
  410.    this.attachMovie("BonusVieClip","superbonus2",_global.bonusDepth + 2);
  411. }
  412. if(_global.temps > 60 && !this.nivo.bonusBouclier02)
  413. {
  414.    this.nivo.bonusBouclier02 = this.nivo.bonusBouclier02 + 1;
  415.    this.attachMovie("BonusBouclierClip","superbonus",_global.bonusDepth);
  416. }
  417. if(_global.temps > 60)
  418. {
  419.    if(!this.nivo.boss01)
  420.    {
  421.       afficheTexte(0,320,"Boss : Dead Cruiser");
  422.       this.nivo.boss01 = this.nivo.boss01 + 1;
  423.       this.attachMovie("Boss1ClipHaut","boss",_global.bossDepth);
  424.    }
  425.    else if(!this.boss && !this.nivo.finNivo)
  426.    {
  427.       this.nivo.finNivo = this.nivo.finNivo + 1;
  428.       afficheTexte(0,180,"Level 1 Completed");
  429.       this.saveTime = _global.temps;
  430.    }
  431.    else if(_global.temps > this.saveTime + 3)
  432.    {
  433.       this.tirEnnemiClip.removeMovieClip();
  434.       this.tirVaisseauClip.removeMovieClip();
  435.       this.vesso.removeMovieClip();
  436.       this.vague00.removeMovieClip();
  437.       this.vague01.removeMovieClip();
  438.       this.vague10.removeMovieClip();
  439.       this.vague11.removeMovieClip();
  440.       this.lifeBar.removeMovieClip();
  441.       this.powerBar.removeMovieClip();
  442.       this.eauBas.removeMovieClip();
  443.       this.traineeEau.removeMovieClip();
  444.       delete this.nivo;
  445.       this.gotoAndPlay("FL1");
  446.    }
  447. }
  448.