home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / fierce_fighter.swf / scripts / frame_10 / DoAction.as < prev   
Encoding:
Text File  |  2006-06-13  |  7.9 KB  |  219 lines

  1. function zhongquan_boss2()
  2. {
  3.    boss2_gongji_name = "Σ╕¡µö╗";
  4.    if(chen._x - boss2._x <= 180 and chen._x - boss2._x > 50 and chen_dang_up == false and chen_dang_down == false and chen_dun == false and chen_dao == false)
  5.    {
  6.       chen.swapDepths(1);
  7.       boss2.swapDepths(5);
  8.       chen_ai = true;
  9.       chen.gotoAndStop(18);
  10.       chen.men.gotoAndPlay(1);
  11.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  12.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  13.    }
  14.    else if(boss2._x - chen._x <= 180 and boss2._x - chen._x > 50 and chen_dang_up == false and chen_dang_down == false and chen_dun == false and chen_dao == false)
  15.    {
  16.       chen.swapDepths(1);
  17.       boss2.swapDepths(5);
  18.       chen_ai = true;
  19.       chen.gotoAndStop(18);
  20.       chen.men.gotoAndPlay(1);
  21.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  22.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  23.    }
  24. }
  25. function zhongquan2_boss2()
  26. {
  27.    boss2_gongji_name = "Σ╕èµö╗";
  28.    if(chen._x - boss2._x <= 180 and chen._x - boss2._x > 50 and chen_dang_up == false and chen_dang_down == false and chen_dun == false and chen_dao == false)
  29.    {
  30.       chen.swapDepths(1);
  31.       boss2.swapDepths(5);
  32.       chen_ai = true;
  33.       chen.gotoAndStop(19);
  34.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  35.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  36.       if(xie_chen.aa1._currentframe >= 100)
  37.       {
  38.          chen_died = true;
  39.       }
  40.    }
  41.    else if(boss2._x - chen._x <= 180 and boss2._x - chen._x > 50 and chen_dang_up == false and chen_dang_down == false and chen_dun == false and chen_dao == false)
  42.    {
  43.       chen.swapDepths(1);
  44.       boss2.swapDepths(5);
  45.       chen_ai = true;
  46.       chen.gotoAndStop(19);
  47.       chen.men.gotoAndPlay(1);
  48.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  49.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  50.       if(xie_chen.aa1._currentframe >= 100)
  51.       {
  52.          chen_died = true;
  53.       }
  54.    }
  55. }
  56. function qingquan_boss2()
  57. {
  58.    boss2_gongji_name = "Σ╕èµö╗";
  59.    if(chen._x - boss2._x <= 120 and chen._x - boss2._x > 0 and chen_dang_up == false and chen_dang_down == false and chen_dun == false and chen_dao == false)
  60.    {
  61.       chen.swapDepths(1);
  62.       boss2.swapDepths(5);
  63.       chen_ai = true;
  64.       chen.gotoAndStop(17);
  65.       chen.men.gotoAndPlay(1);
  66.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
  67.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
  68.    }
  69.    else if(boss2._x - chen._x <= 120 and boss2._x - chen._x > 0 and chen_dang_up == false and chen_dang_down == false and chen_dun == false and chen_dao == false)
  70.    {
  71.       chen.swapDepths(1);
  72.       boss2.swapDepths(5);
  73.       chen_ai = true;
  74.       chen.gotoAndStop(17);
  75.       chen.men.gotoAndPlay(1);
  76.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
  77.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
  78.    }
  79. }
  80. function qingjiao_boss2()
  81. {
  82.    boss2_gongji_name = "Σ╕¡µö╗";
  83.    if(chen._x - boss2._x <= 100 and chen._x - boss2._x > 50 and chen_dang_up == false and chen_dang_down == false and chen_dao == false)
  84.    {
  85.       chen.swapDepths(1);
  86.       boss2.swapDepths(5);
  87.       chen_ai = true;
  88.       chen.gotoAndStop(18);
  89.       chen.men.gotoAndPlay(1);
  90.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
  91.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
  92.    }
  93.    else if(boss2._x - chen._x <= 100 and boss2._x - chen._x > 50 and chen_dang_up == false and chen_dang_down == false and chen_dao == false)
  94.    {
  95.       chen.swapDepths(1);
  96.       boss2.swapDepths(5);
  97.       chen_ai = true;
  98.       chen.gotoAndStop(18);
  99.       chen.men.gotoAndPlay(1);
  100.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
  101.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
  102.    }
  103. }
  104. function qingquan2_boss2()
  105. {
  106.    boss2_gongji_name = "Σ╕¡µö╗";
  107.    if(chen._x - boss2._x <= 150 and chen._x - boss2._x > 0 and chen_dang_up == false and chen_dang_down == false and chen_dao == false)
  108.    {
  109.       chen.swapDepths(1);
  110.       boss2.swapDepths(5);
  111.       chen_ai = true;
  112.       chen.gotoAndStop(18);
  113.       chen.men.gotoAndPlay(1);
  114.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
  115.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
  116.    }
  117.    else if(boss2._x - chen._x <= 150 and boss2._x - chen._x > 0 and chen_dang_up == false and chen_dang_down == false and chen_dao == false)
  118.    {
  119.       chen.swapDepths(1);
  120.       boss2.swapDepths(5);
  121.       chen_ai = true;
  122.       chen.gotoAndStop(18);
  123.       chen.men.gotoAndPlay(1);
  124.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
  125.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
  126.    }
  127. }
  128. function zhongjiao_boss2()
  129. {
  130.    boss2_gongji_name = "Σ╕èµö╗";
  131.    if(chen._x - boss2._x <= 150 and chen._x - boss2._x > 50 and chen_dun == false and chen_dang_up == false and chen_dang_down == false and chen_dao == false)
  132.    {
  133.       chen.swapDepths(1);
  134.       boss2.swapDepths(5);
  135.       chen_ai = true;
  136.       chen.gotoAndStop(18);
  137.       chen.men.gotoAndPlay(1);
  138.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  139.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  140.    }
  141.    else if(boss2._x - chen._x <= 180 and boss2._x - chen._x > 50 and chen_dun == false and chen_dang_up == false and chen_dang_down == false and chen_dao == false)
  142.    {
  143.       chen.swapDepths(1);
  144.       boss2.swapDepths(5);
  145.       chen_ai = true;
  146.       chen.gotoAndStop(18);
  147.       chen.men.gotoAndPlay(1);
  148.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  149.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  150.    }
  151. }
  152. function zhongjiao2_boss2()
  153. {
  154.    boss2_gongji_name = "Σ╕èµö╗";
  155.    if(chen._x - boss2._x <= 180 and chen._x - boss2._x > 50 and chen_dang_up == false and chen_dang_down == false and chen_dun == false and chen_dao == false)
  156.    {
  157.       chen.swapDepths(1);
  158.       boss2.swapDepths(5);
  159.       chen_ai = true;
  160.       chen.gotoAndStop(19);
  161.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  162.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  163.       if(xie_chen.aa1._currentframe >= 100)
  164.       {
  165.          chen_died = true;
  166.       }
  167.    }
  168.    else if(boss2._x - chen._x <= 180 and boss2._x - chen._x > 50 and chen_dang_up == false and chen_dang_down == false and chen_dun == false and chen_dao == false)
  169.    {
  170.       chen.swapDepths(1);
  171.       boss2.swapDepths(5);
  172.       chen_ai = true;
  173.       chen.gotoAndStop(19);
  174.       chen.men.gotoAndPlay(1);
  175.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  176.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  177.       if(xie_chen.aa1._currentframe >= 100)
  178.       {
  179.          chen_died = true;
  180.       }
  181.    }
  182. }
  183. function zhua_boss2()
  184. {
  185.    boss2_gongji_name = "Σ╕èµö╗";
  186.    if(chen._x - boss2._x <= 120 and chen._x - boss2._x > 0 and chen_dun == false and chen_dao == false)
  187.    {
  188.       chen.swapDepths(1);
  189.       boss2.swapDepths(5);
  190.       chen_ai = true;
  191.       chen.gotoAndStop(21);
  192.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  193.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  194.       if(xie_chen.aa1._currentframe >= 100)
  195.       {
  196.          chen_died = true;
  197.       }
  198.    }
  199.    else if(boss2._x - chen._x <= 120 and boss2._x - chen._x > 0 and chen_dun == false and chen_dao == false)
  200.    {
  201.       chen.swapDepths(1);
  202.       boss2.swapDepths(5);
  203.       chen_ai = true;
  204.       chen.gotoAndStop(21);
  205.       xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
  206.       xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
  207.       if(xie_chen.aa1._currentframe >= 100)
  208.       {
  209.          chen_died = true;
  210.       }
  211.    }
  212. }
  213. chen_died = boss2_died = true;
  214. chen.gotoAndStop(1);
  215. delete enemy_fangxiang;
  216. delete enemy_gongji_name;
  217. delete chen_ai;
  218. delete enemy_ai;
  219.