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

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