home *** CD-ROM | disk | FTP | other *** search
- function zhongquan_boss2()
- {
- boss2_gongji_name = "中攻";
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- }
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- }
- }
- function zhongquan2_boss2()
- {
- boss2_gongji_name = "上攻";
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- }
- function qingquan_boss2()
- {
- boss2_gongji_name = "上攻";
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(17);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
- }
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(17);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
- }
- }
- function qingjiao_boss2()
- {
- boss2_gongji_name = "中攻";
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
- }
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
- }
- }
- function qingquan2_boss2()
- {
- boss2_gongji_name = "中攻";
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
- }
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 1);
- }
- }
- function zhongjiao_boss2()
- {
- boss2_gongji_name = "上攻";
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- }
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- }
- }
- function zhongjiao2_boss2()
- {
- boss2_gongji_name = "上攻";
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- 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)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- }
- function zhua_boss2()
- {
- boss2_gongji_name = "上攻";
- if(chen._x - boss2._x <= 120 and chen._x - boss2._x > 0 and chen_dun == false and chen_dao == false)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(21);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- else if(boss2._x - chen._x <= 120 and boss2._x - chen._x > 0 and chen_dun == false and chen_dao == false)
- {
- chen.swapDepths(1);
- boss2.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(21);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- xie_boss2.aa2.gotoAndStop(xie_boss2.aa2._currentframe += 2);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- }
- chen_died = boss2_died = true;
- chen.gotoAndStop(1);
- delete enemy_fangxiang;
- delete enemy_gongji_name;
- delete chen_ai;
- delete enemy_ai;
-