home *** CD-ROM | disk | FTP | other *** search
- function zhongquan_boss1()
- {
- boss1_gongji_name = "上攻";
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(17);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- }
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(17);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- }
- }
- function qingquan_boss1()
- {
- boss1_gongji_name = "上攻";
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(17);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- }
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(17);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- }
- }
- function qingjiao_boss1()
- {
- boss1_gongji_name = "中攻";
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- }
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- }
- }
- function qingquan2_boss1()
- {
- boss1_gongji_name = "中攻";
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- }
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(18);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 2);
- }
- }
- function zhongjiao_boss1()
- {
- boss1_gongji_name = "上攻";
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- chen.men.gotoAndPlay(1);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- }
- function saotui_boss1()
- {
- boss1_gongji_name = "下攻";
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- }
- function saotui2_boss1()
- {
- boss1_gongji_name = "下攻";
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- 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)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(19);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- }
- function zhua_boss1()
- {
- boss1_gongji_name = "上攻";
- if(chen._x - boss1._x <= 120 and chen._x - boss1._x > 0 and chen_dun == false and chen_dao == false)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(21);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- else if(boss1._x - chen._x <= 120 and boss1._x - chen._x > 0 and chen_dun == false and chen_dao == false)
- {
- chen.swapDepths(1);
- boss1.swapDepths(5);
- chen_ai = true;
- chen.gotoAndStop(21);
- xie_chen.aa1.gotoAndStop(xie_chen.aa1._currentframe += 5);
- if(xie_chen.aa1._currentframe >= 100)
- {
- chen_died = true;
- }
- }
- }
- chen_died = boss1_died = true;
- chen.gotoAndStop(1);
- delete enemy_fangxiang;
- delete enemy_gongji_name;
- delete chen_ai;
- delete enemy_ai;
-