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

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