Frame 1
function initialization() {
leven = 1;
sect = 0;
mam_ping = 1;
life = 10;
pause_all = false;
pass_game = true;
score = 0;
game_sounds = false;
}
function create_stage() {
this.createEmptyMovieClip("gameMC", 1);
bg_mc = gameMC.createEmptyMovieClip("bgMC", gameMC.getNextHighestDepth());
map_mc = gameMC.createEmptyMovieClip("mapMC", gameMC.getNextHighestDepth());
object_mc = gameMC.createEmptyMovieClip("object_mc", gameMC.getNextHighestDepth());
enemy_mc = gameMC.createEmptyMovieClip("enemyMC", gameMC.getNextHighestDepth());
player_mc = gameMC.attachMovie("L_player", "M_player", gameMC.getNextHighestDepth());
boss_mc = gameMC.createEmptyMovieClip("bossMC", gameMC.getNextHighestDepth());
player_mc.body_type = "PLA";
create_sect_screen();
var _local3 = new Object();
_local3.s_body = player_mc;
_local3.s_map = map_mc;
_local3.s_aim = enemy_mc;
_local3.s_speed = 4.5;
_local3.s_screen_obj = gameMC;
new as.PlayerObject(_local3);
player_mc._x = start_placex[leven - 1];
player_mc._y = start_placey[leven - 1];
getUI();
gotoAndStop ("gaming");
if (mask2) {
mask2.swapDepths(_root.getNextHighestDepth());
}
if (this.mask_black_bj == undefined) {
_root.attachMovie("black_bj", "mask_black_bj", _root.getNextHighestDepth());
mask_black_bj._x = 0;
mask_black_bj._y = 0;
mask_black_bj._width = 670;
mask_black_bj._height = 400;
}
gameMC.setMask(mask_black_bj);
}
function start_game() {
player_mc.Method.max_move = this["max_move" + leven][sect];
player_mc.Method.min_move = this["min_move" + leven][sect];
enemy_work = true;
start_ctrl();
GetScore(0);
GetLife(0);
colour_egg = [1, 1, 1, 1, 1];
stopAllSounds();
now_music = undefined;
play_music("sound" + leven, true);
}
function create_sect_screen() {
if (leven <= 4) {
var _local4 = Math.floor(this["min_move" + leven][sect] / 400);
var _local5 = Math.ceil(this["max_move" + leven][sect] / 400);
var _local3 = _local4;
while (_local3 <= _local5) {
if (!map_mc["L_map" + leven]) {
var _local2 = map_mc.attachMovie("L_map" + leven, "M_map" + _local3, map_mc.getNextHighestDepth());
_local2._y = -400 * _local3;
_local2.gotoAndStop(_local3 + 1);
}
_local3++;
}
_local3 = 0;
while (_local3 < (_local4 - 1)) {
map_mc["M_map" + _local3].removeMovieClip();
_local3++;
}
_local4 = Math.floor((this["min_move" + leven][sect] * (1 - fall_space)) / 400);
_local5 = Math.ceil((this["max_move" + leven][sect] * (1 - fall_space)) / 400);
_local3 = _local4;
while (_local3 <= _local5) {
if (!map_mc["L_bg" + leven]) {
var _local2 = bg_mc.attachMovie("L_bg" + leven, "M_bg" + _local3, bg_mc.getNextHighestDepth());
_local2._y = -400 * _local3;
_local2.gotoAndStop(_local3 + 1);
}
_local3++;
}
_local3 = 0;
while (_local3 < _local4) {
bg_mc["M_bg" + _local3].removeMovieClip();
_local3++;
}
} else {
map_mc.attachMovie("L_map5", "M_map", map_mc.getNextHighestDepth());
var _local2 = bg_mc.attachMovie("L_bg" + (random(4) + 1), "M_bg", bg_mc.getNextHighestDepth());
_local2.gotoAndStop(random(5) + 1);
}
build_enmey(leven, sect);
}
function trumble_screen(Mox, Moy, MC) {
if (trumbleMC == undefined) {
this.createEmptyMovieClip("trumbleMC", this.getNextHighestDepth());
}
if (trumbleMC.temp > 0) {
return(undefined);
}
trumbleMC.Mox = Mox;
if (Moy) {
trumbleMC.Moy = Moy;
} else {
trumbleMC.Moy = 0;
}
if (MC) {
trumbleMC.MC = MC;
} else {
trumbleMC.MC = gameMC;
}
trumbleMC.temp = 3;
trumbleMC.onEnterFrame = function () {
if (((this.temp % 3) == 2) || ((this.temp % 3) == 0)) {
this.Mox = this.Mox * -1;
this.Moy = this.Moy * -1;
}
this.MC._x = this.MC._x + this.Mox;
this.MC._y = this.MC._y + this.Moy;
if (this.temp == 0) {
this.MC._x = 0;
delete this.onEnterFrame;
}
this.temp--;
};
}
function check_addenemy() {
if (pass_game) {
if (player_mc.Method.screen_obj._y >= player_mc.Method.min_move) {
enemy_work = true;
hand.removeMovieClip();
pass_game = false;
}
var _local1 = player_mc.Method.GetGlobalPlace();
if (((player_mc.Method.sport_zt != "jump") && (_local1.y < min_screen_y)) && (gameMC._y < player_mc.Method.max_move)) {
if ((min_screen_y - (gameMC._y % 400)) > 10) {
gameMC._y = gameMC._y + 10;
} else {
gameMC._y = gameMC._y + (min_screen_y - (gameMC._y % 400));
}
}
gameMC.bgMC._y = gameMC._y * (-fall_space);
}
}
function check_pass() {
if (((!pass_game) && (enemy_amount == 0)) && (!boss_body)) {
pass_game = true;
_root.play_soundAction("passsect", false, 0);
pass_sect();
}
}
function pass_sect() {
if (sect < 10) {
enemy_work = false;
sect++;
show_hand();
player_mc.Method.max_move = this["max_move" + leven][sect];
player_mc.Method.min_move = this["min_move" + leven][sect];
create_sect_screen();
}
}
function effect1(who) {
var _local1 = 0;
while (_local1 < 15) {
var _local2 = who.attachMovie("mud_mass", "mud_mass" + who.getNextHighestDepth(), who.getNextHighestDepth());
_local2.gotoAndStop(random(10) + 1);
drop_something(_local2, (random(160) / 10) - 8, -random(10));
_local1++;
}
}
function drop_something(who, movex, movey) {
who.movex = movex;
who.movey = movey;
who.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
this._x = this._x + this.movex;
this._y = this._y + this.movey;
var _local3 = GetGlobalPlace(this);
if (((_local3.x < 0) || (_local3.x > 550)) || (_local3.y > 400)) {
this.removeMovieClip();
}
if ((this._y > 0) && (map_mc.hitTest(_local3.x, _local3.y, true))) {
this.gotoAndPlay("slack");
delete this.onEnterFrame;
}
this.movey = this.movey + 0.8;
};
}
function attach_bigark() {
var _local4 = object_mc.attachMovie("bigark", "bigark" + object_mc.getNextHighestDepth(), object_mc.getNextHighestDepth());
_local4._x = 275;
_local4._y = -(this["max_move" + leven][sect] + 60);
_local4.stop();
_local4.movespeed = 15;
_local4.movetotal = 0;
_local4.timetotal = 150;
_local4.onEnterFrame = function () {
this._y = this._y + this.movespeed;
this.movetotal = this.movetotal + this.movespeed;
if ((this.movetotal >= 300) && (this.movespeed != 0)) {
this.movetotal = 351;
this.movespeed = 0;
var _local3 = 0;
while (_local3 < 15) {
this.play();
_root.attach_giving(this);
_local3++;
}
}
if (this.movetotal == 351) {
this.timetotal--;
if (this.timetotal == 0) {
_root.enemy_amount = 0;
}
}
};
}
function attach_giving(who, Type) {
var _local4 = object_mc.attachMovie("giving", "giving" + object_mc.getNextHighestDepth(), object_mc.getNextHighestDepth());
_local4._x = who._x;
_local4._y = who._y;
if (who == boss_mc.BOSS4) {
_local4._x = who._x - 200;
}
if (Type == undefined) {
_local4.movex = (random(160) / 10) - 8;
_local4.movey = -(random(18) + 6);
if (leven > 4) {
var _local9 = random(150 - Math.floor(score / 10000));
} else {
var _local9 = random(100);
}
if (_local9 < 70) {
var _local6 = (random(20) + 1) + random((leven - 1) * 2);
if (_local6 > 21) {
_local6 = random(10) + 11;
}
_local4.gotoAndStop(_local6);
} else {
_local4.gotoAndStop(random(8) + 21);
}
if ((_local4._currentframe == 22) && (random(3) != 1)) {
_local4.gotoAndStop(21);
}
} else {
_local4.gotoAndStop(Type);
if (Type == 28) {
_local4.movex = random(60) / 10;
if (_local4._x > 225) {
_local4.movex = _local4.movex * -1;
}
_local4.movey = -(random(10) + 12);
} else if (Type > 29) {
_local4.movex = 0;
_local4.movey = 0;
_local4._y = _local4._y - 60;
} else {
_local4.movex = (random(160) / 10) - 8;
_local4.movey = -(random(18) + 6);
}
}
_local4.moveable = true;
_local4.showtime = 180;
if (_local4._currentframe == 28) {
_local4.showtime = 280;
_local4.life = 5;
}
_local4.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this._currentframe == 28) && (!this.moveable)) {
if (((Math.abs(_root.player_mc._y - this._y) < 20) && (Math.abs(_root.player_mc._x - this._x) < 60)) && (this._yscale == 100)) {
this._yscale = 70;
}
if (this._yscale < 100) {
this._yscale = this._yscale + 10;
if (this._yscale >= 100) {
this.movex = random(60) / 10;
if (this._x > 225) {
this.movex = this.movex * -1;
}
this.movey = -12;
this.moveable = true;
}
}
}
var _local4 = GetGlobalPlace(this);
if (((_local4.x < -20) || (_local4.x > 570)) || (_local4.y > 450)) {
this.removeMovieClip();
}
if (this.hit.hitTest(player_mc.hit) || (this.hit.hitTest(player_mc.mud.hit))) {
if (this.scorenum != undefined) {
if ((this._currentframe > 15) && (this._currentframe < 21)) {
_root.colour_egg[this._currentframe - 16] = 0;
var _local5;
var _local3 = 0;
while (_local3 < _root.colour_egg.length) {
if (_root.colour_egg[_local3] == 1) {
_local5 = false;
break;
}
_local5 = true;
_local3++;
}
if (_local5) {
_root.play_soundAction("prop_s2", false, 0);
trace("\u00BC\u04F7\u05B2\u02B5\u00B0");
_root.colour_egg = [1, 1, 1, 1, 1];
_root.GetAwardScore(1000, this._x, this._y - 30);
} else {
trace("fffff");
attachMovie("kkkkkkk", "kkkkkkk", 5000);
kkkkkkk.gotoAndStop("play");
_root.play_soundAction("prop_s1", false, 0);
_root.GetAwardScore(this.scorenum, this._x, this._y - 30);
}
} else {
trace("fffdddf");
attachMovie("kkkkkkk", "kkkkkkk", 5000);
kkkkkkk.gotoAndStop("play");
_root.play_soundAction("prop_s1", false, 0);
_root.GetAwardScore(this.scorenum, this._x, this._y - 30);
}
} else if (this.lifenum != undefined) {
attachMovie("kkkkkkk", "kkkkkkk", 5000);
kkkkkkk.gotoAndStop("play");
_root.play_soundAction("prop_s2", false, 0);
if (_root.life >= 10) {
_root.GetAwardScore(500, this._x, this._y - 30);
} else {
_root.GetLife(this.lifenum);
_root.GetAwardAttribute(1, this._x, this._y - 30);
}
} else if (this.timenum != undefined) {
attachMovie("kkkkkkk", "kkkkkkk", 5000);
kkkkkkk.gotoAndStop("play");
_root.play_soundAction("prop_s2", false, 0);
_root.GetAwardAttribute(2, this._x, this._y - 30);
_root.UI.add_time(this.timenum);
} else if (this.speednum != undefined) {
attachMovie("kkkkkkk", "kkkkkkk", 5000);
kkkkkkk.gotoAndStop("play");
_root.play_soundAction("prop_s2", false, 0);
_root.player_mc.Method.speed = _root.player_mc.Method.speed + this.speednum;
if (_root.player_mc.Method.speed > 6) {
_root.player_mc.Method.speed = 6;
}
_root.GetAwardAttribute(3, this._x, this._y - 30);
} else if (this.powernum != undefined) {
attachMovie("kkkkkkk", "kkkkkkk", 5000);
kkkkkkk.gotoAndStop("play");
_root.play_soundAction("prop_s2", false, 0);
_root.player_mc.Method.shoot_might = _root.player_mc.Method.shoot_might + this.powernum;
if (_root.player_mc.Method.shoot_might > 3) {
_root.player_mc.Method.shoot_might = 3;
}
_root.GetAwardAttribute(4, this._x, this._y - 30);
}
this.removeMovieClip();
}
if ((this.movey > 0) && (this.moveable)) {
if (!map_mc.hitTest(_local4.x, _local4.y, true)) {
var _local3 = 0;
while (_local3 < this.movey) {
if (map_mc.hitTest(_local4.x, _local4.y + _local3, true)) {
this._y = this._y + _local3;
this.moveable = false;
return(undefined);
}
_local3 = _local3 + 0.8;
}
}
}
this.showtime--;
if (this.showtime < 30) {
this._alpha = ((this.showtime % 4) * 10) + 7;
}
if (this.showtime <= 0) {
this.removeMovieClip();
}
if (this.moveable) {
this._x = this._x + this.movex;
this._y = this._y + this.movey;
this.movey = this.movey + 0.8;
if (this.movey > 23) {
this.movey = 23;
}
if ((GetGlobalPlace(this).x < 10) || (GetGlobalPlace(this).x > 540)) {
this.movex = this.movex * -1;
}
if ((GetGlobalPlace(this).y < 0) && (this.movey < 0)) {
this.movey = 1;
}
if (GetGlobalPlace(this).y < 400) {
this.y = this.y + 400;
}
}
};
}
function GetGlobalPlace(who) {
var _local1 = new Object();
_local1.x = who._x;
_local1.y = who._y;
who._parent.localToGlobal(_local1);
return(_local1);
}
function show_hand() {
if (hand == undefined) {
this.attachMovie("hand", "hand", this.getNextHighestDepth());
hand._x = 450;
hand._y = 20;
}
}
function getUI() {
var _local3 = this.attachMovie("UI", "UI", this.getNextHighestDepth());
_local3.t1.gotoAndStop(1);
var gametime;
gametime = 90;
var _local4 = 1;
var _local5 = 1;
var timed = 0;
_local3.t1.gotoAndStop(Math.floor(gametime / 10) + 1);
_local3.t2.gotoAndStop((gametime % 10) + 1);
_local3.red = false;
_local3.redface = 0;
_local3.redadd = 30;
if (_root.leven > 4) {
_local3.t1.swapDepths(_local3.getNextHighestDepth());
_local3.t1.removeMovieClip();
_local3.t2.swapDepths(_local3.getNextHighestDepth());
_local3.t2.removeMovieClip();
} else {
_local3.infinite.swapDepths(_local3.getNextHighestDepth());
_local3.infinite.removeMovieClip();
}
_local3.onEnterFrame = function () {
if (_root.pause_all || (_root.leven > 4)) {
return(undefined);
}
timed++;
if (gametime <= 5) {
this.redface = this.redface + this.redadd;
if ((this.redface <= 0) || (this.redface >= 250)) {
this.redadd = this.redadd * -1;
}
_root.body_suffer(this.t1, this.redface);
_root.body_suffer(this.t2, this.redface);
this.red = true;
}
if ((gametime > 5) && (this.red)) {
_root.body_suffer(this.t1, 0);
_root.body_suffer(this.t2, 0);
this.red = false;
}
if (timed < 160) {
return(undefined);
}
timed = 0;
gametime--;
if (gametime == 0) {
_root.attachMovie("timeovermc", "timeovermc", _root.getNextHighestDepth());
_root.play_soundAction("lost");
_root.stop_soundAction("sound" + leven);
mask_black_bj.removeMovieClip();
}
this.displayresult();
};
_local3.displayresult = function () {
if (gametime > 90) {
gametime = 90;
}
this.t1.gotoAndStop(Math.floor(gametime / 10) + 1);
this.t2.gotoAndStop((gametime % 10) + 1);
};
_local3.add_time = function (time) {
gametime = gametime + time;
this.displayresult();
};
_local3.time_to_score = function () {
delete this.onEnterFrame;
var tei = 0;
_root.stop_soundAction("sound5");
_root.play_soundAction("victory");
this.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
tei++;
if (tei > 1) {
tei = 0;
} else {
return(undefined);
}
gametime--;
_root.GetScore(10);
this.displayresult();
if (gametime <= 0) {
dropMC = undefined;
_root.stop_soundAction("prop_s1");
_root.play_prelude(1);
delete this.onEnterFrame;
}
};
};
_local3.bu1.onRelease = function () {
if (_root.pause_all) {
_root.pause_all = false;
this.gotoAndStop(1);
_root.pausegeme();
} else {
this.gotoAndStop(2);
_root.pause_all = true;
_root.pausegeme();
}
};
if (_root.sound_all == false) {
_local3.bu2.gotoAndStop(1);
_root.bj.setVolume(100);
} else {
_local3.bu2.gotoAndStop(2);
_root.bj.setVolume(0);
}
_local3.bu2.onRelease = function () {
if (_root.sound_all) {
_root.bj.setVolume(100);
_root.sound_all = false;
this.gotoAndStop(1);
} else {
_root.bj.setVolume(0);
this.gotoAndStop(2);
_root.sound_all = true;
}
};
}
function GetScore(Num) {
score = score + Num;
var _local1 = 1;
while (_local1 < 10) {
if (_local1 > String(score).length) {
UI["NO" + _local1].gotoAndStop(1);
} else {
UI["NO" + _local1].gotoAndStop(Number(String(score).charAt(String(score).length - _local1)) + 1);
}
_local1++;
}
}
function GetLife(Num) {
life = life + Num;
if (life > 10) {
life = 10;
}
UI.LifeDisplay.gotoAndStop(life);
}
function GetAwardScore(num, place_x, place_y) {
num = num * (game_mode + 1);
if (leven > 4) {
num = num * 10;
}
var _local5 = _root.gameMC.createEmptyMovieClip("AwardScore" + _root.gameMC.getNextHighestDepth(), _root.gameMC.getNextHighestDepth());
_local5._x = place_x;
_local5._y = place_y;
var num_length = String(num).length;
var display_time = 20;
var num_box = new Array();
GetScore(num);
_local5.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (((display_time % 3) == 0) && (num_length > num_box.length)) {
var _local4 = this.attachMovie("NumberMC_S", "NumberMC_S" + this.getNextHighestDepth(), this.getNextHighestDepth());
if (num_box.length == 0) {
var _local5 = _local4.attachMovie("NumberMC_S", "NumberMC_S" + this.getNextHighestDepth(), this.getNextHighestDepth(), {_x:-20});
_local5.gotoAndStop(11);
}
_local4._x = num_box.length * 15;
_local4.gotoAndStop(Number(String(num).charAt(num_box.length)) + 1);
num_box.push(_local4._name);
}
var _local3 = 0;
while (_local3 < num_box.length) {
if (this[num_box[_local3]]._y > -30) {
this[num_box[_local3]]._y = this[num_box[_local3]]._y - 3;
}
_local3++;
}
display_time--;
if (display_time == 0) {
this.removeMovieClip();
}
};
}
function GetAwardAttribute(num, place_x, place_y) {
var _local3 = _root.gameMC.createEmptyMovieClip("AwardAttribute" + _root.gameMC.getNextHighestDepth(), _root.gameMC.getNextHighestDepth());
_local3._x = place_x;
_local3._y = place_y;
var display_time = 20;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (display_time == 20) {
var _local3 = this.attachMovie("attribute_t", "attribute_t" + this.getNextHighestDepth(), this.getNextHighestDepth(), {_x:-20});
_local3.gotoAndStop(num);
}
this._y = this._y - 3;
display_time--;
if (display_time == 0) {
this.removeMovieClip();
}
};
}
function kill_all() {
for (var _local1 in enemy_mc) {
enemy_mc[_local1].Method.body_mud_hit();
}
}
function play_prelude(Type) {
var _local2 = this.attachMovie("prelude", "prelude", this.getNextHighestDepth());
_local2.Type = Type;
if (Type == 2) {
_local2.gotoAndPlay("show");
}
}
function start_mask2() {
_root.attachMovie("mask2", "mask2", _root.getNextHighestDepth());
}
function gameover() {
var _local3 = _root.attachMovie("black_bj", "black_bj", _root.getNextHighestDepth());
_local3._height = 400;
_local3._width = 670;
_local3._alpha = 0;
_local3.timetotal = 0;
boss_body = false;
_local3.onEnterFrame = function () {
this.timetotal++;
player_mc._alpha = player_mc._alpha - 2;
if (this.timetotal == 40) {
player_mc.removeMovieClip();
}
if ((this._alpha < 100) && (this.timetotal < 100)) {
this._alpha = this._alpha + 1.5;
}
if (this.timetotal == 100) {
_root.gameMC.removeMovieClip();
_root.mask_black_bj.removeMovieClip();
_root.UI.removeMovieClip();
_root.gotoAndStop("lose");
}
if (this.timetotal > 100) {
this._alpha = this._alpha - 10;
}
if (this.timetotal == 130) {
this.removeMovieClip();
}
};
}
function passgame() {
leven++;
sect = 0;
mam_ping = 1;
boss_body = false;
mask_black_bj.removeMovieClip();
if (leven > 4) {
gotoAndStop ("passgame");
} else {
gotoAndStop ("initial");
}
}
function dropleaves(who) {
if (!dropMC) {
dropMC = who.createEmptyMovieClip("drop_MC", who.getNextHighestDepth());
}
dropMC.movex = 1.5;
dropMC.onEnterFrame = function () {
if (random(3) == 1) {
_root.leavesMC();
}
};
}
function leavesMC() {
var _local2 = dropMC.attachMovie("leaves", "leaves" + dropMC.getNextHighestDepth(), dropMC.getNextHighestDepth());
_local2._x = random(650) - 100;
_local2.movey = (random(50) / 10) + 2;
if (random(10) > 7) {
_local2.gotoAndStop(1);
} else {
_local2.gotoAndStop(2);
}
_local2.daxia = 3;
_local2.jiaodu = random(5) + 2;
_local2.onEnterFrame = function () {
this._y = this._y + this.movey;
this._x = this._x + this._parent.movex;
this._rotation = this._rotation + 5;
if ((this._xscale > 100) || (this._xscale < 20)) {
this.daxia = this.daxia * -1;
}
if (this._currentframe == 2) {
this._xscale = this._xscale + this.daxia;
}
if (this._y > 430) {
this.removeMovieClip();
}
};
}
function pausegeme() {
pausewho(enemy_mc);
pausewho(player_mc);
pausewho(boss_mc);
}
function pausewho(who) {
var _local3 = false;
for (var _local4 in who) {
if (typeof(who[_local4]) == "movieclip") {
pausewho(who[_local4]);
_local3 = true;
}
}
if ((!_local3) && (!who.playrestrict)) {
if (_root.pause_all) {
who.stop();
} else {
who.play();
}
}
}
function body_suffer(MC, red) {
var _local2 = new Color(MC);
var _local1 = new Object();
_local1 = {ra:"100", rb:red};
_local2.setTransform(_local1);
}
function choose_mode() {
var temp = _root.attachMovie("black_bj", "choose_modeBG", _root.getNextHighestDepth());
var temp2 = _root.attachMovie("mode_chooseMC", "mode_chooseMC", _root.getNextHighestDepth());
temp._width = 670;
temp._height = 400;
temp._alpha = 0;
temp.display_zt = false;
temp2._x = 250;
temp2._y = 210;
temp2._alpha = 30;
temp2.mc_kuang._visible = false;
temp2.bu1.onRelease = function () {
_root.game_mode = 0;
_root.miniclip_score = 0;
play_soundAction("shoot");
temp.display_zt = true;
_root.gotoAndStop("initial");
};
temp2.bu2.onRelease = function () {
_root.game_mode = 1;
_root.miniclip_score = 1;
play_soundAction("shoot");
temp.display_zt = true;
_root.gotoAndStop("initial");
};
temp2.bu3.onRelease = function () {
play_soundAction("shoot");
_root.miniclip_score = 2;
var _local2 = 5;
while (_local2 <= 16) {
temp2["lv" + _local2]._visible = true;
_local2++;
}
temp2.mc_kuang._visible = true;
};
var _local3 = 5;
while (_local3 <= 16) {
temp2["lv" + _local3]._alpha = 80;
temp2["lv" + _local3].temp_type = _local3;
temp2["lv" + _local3].gotoAndStop(_local3 - 4);
temp2["lv" + _local3].onRollOver = function () {
this._x = this._x - 1;
this._y = this._y - 1;
body_suffer(this, 100);
this._alpha = 100;
};
temp2["lv" + _local3].onRollOut = (temp2["lv" + _local3].dragOut = function () {
this._x = this._x + 1;
this._y = this._y + 1;
body_suffer(this, 0);
this._alpha = 80;
});
temp2["lv" + _local3].onPress = function () {
leven = this.temp_type;
temp.display_zt = true;
game_mode = Math.floor((this.temp_type - 5) / 6);
attachMovie("mask3", "mask3", _root.getNextHighestDepth());
};
temp2["lv" + _local3]._visible = false;
_local3++;
}
temp.onEnterFrame = function () {
if (!this.display_zt) {
if (this._alpha < 70) {
this._alpha = this._alpha + 10;
temp2._alpha = temp2._alpha + 10;
}
} else {
this._alpha = this._alpha - 10;
temp2._alpha = temp2._alpha - 10;
if (this._alpha < 0) {
this.removeMovieClip();
temp2.removeMovieClip();
}
}
};
}
function start_ctrl() {
if (gameMC.main_power == undefined) {
gameMC.createEmptyMovieClip("main_power", gameMC.getNextHighestDepth());
}
gameMC.main_power.onEnterFrame = function () {
if (pause_all) {
return(undefined);
}
check_pass();
check_addenemy();
player_ctrl();
};
}
function player_ctrl() {
if (play_act_on_time > 0) {
play_act_on_time--;
player_mc._alpha = ((play_act_on_time % 7) + 3) * 10;
}
if ((play_act_on_time == 0) && (player_mc.Method.act_on)) {
player_mc._alpha = 100;
player_mc.Method.act_on = false;
play_act_on_time = -10;
}
if (Key.isDown(Ucode)) {
if (!Ucode_press) {
player_mc.land_grass.removeMovieClip();
player_mc.Method.JumpBody(-13);
Ucode_press = true;
}
} else {
Ucode_press = false;
}
if (Key.isDown(Dcode)) {
if (!Dcode_press) {
if (player_mc.Method.GetGlobalPlace().y < 350) {
player_mc.Method.JumpBody(4);
player_mc.land_grass.removeMovieClip();
}
Dcode_press = true;
}
} else {
Dcode_press = false;
}
if (Key.isDown(Scode)) {
player_mc.mud.gotoAndStop(2);
} else {
player_mc.mud.gotoAndStop(1);
}
if (Key.isDown(Lcode)) {
run = true;
player_mc.Method.MoveBody("L");
} else if (Key.isDown(Rcode)) {
run = true;
player_mc.Method.MoveBody("R");
} else if ((player_mc.Method.sport_zt == "walk") || (player_mc.Method.sport_zt == "turn")) {
player_mc.attachMovie("land_grass", "land_grass", player_mc.getNextHighestDepth());
player_mc.Method.StandBody();
}
if (player_mc._currentframe == 1) {
if (random(100) == 0) {
player_mc.gotoAndStop("rest");
}
}
if (player_mc.Method.shoot_zt && (player_mc.mc._currentframe == player_mc.mc._totalframes)) {
player_mc.Method.shoot_zt = false;
player_mc.gotoAndStop(player_mc.Method.sport_zt);
}
}
function player_death() {
if (life > 1) {
trace("TTTTTTTT");
GetLife(-1);
if (player_mc.Method.sport_zt != "jump") {
player_mc.Method.sport_zt = "stand";
player_mc.gotoAndStop("stand");
}
player_mc.Method.body_deadface = false;
player_mc.Method.shoot_able = true;
player_mc.Method.ctrl_able = true;
player_mc.Method.shoot_might = 1;
player_mc.Method.speed = 4.5;
play_act_on_time = 150;
} else if (lifelife > 1) {
trace("BBBB");
lifelife--;
GetLife(10);
trace(boss_body);
boss_body = false;
sect = 0;
trace(leven);
_root.gameMC.removeMovieClip();
_root.mask_black_bj.removeMovieClip();
_root.UI.removeMovieClip();
_root.gotoAndStop("initial");
} else {
play_soundAction("lost");
stop_soundAction(now_music);
gameover();
trace("game over");
}
}
function pass_leven() {
delete gameMC.main_power.onEnterFrame;
map_mc["M_map" + _root.sect].mc2._visible = false;
map_mc["M_map" + _root.sect].mc3._visible = false;
player_mc.gotoAndStop("rest");
UI.time_to_score();
}
function pass_leven4() {
delete gameMC.main_power.onEnterFrame;
map_mc["M_map" + _root.sect].mc2._visible = false;
map_mc["M_map" + _root.sect].mc3._visible = false;
player_mc.gotoAndStop("end");
UI.time_to_score();
}
function attach_enemy1(startx, starty) {
var _local4 = enemy_mc.attachMovie("enemy1", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local4._x = startx;
_local4._y = starty;
if (boss_body) {
_local4.starttime = 35 + random(10);
} else {
_local4.starttime = random(3) + 3;
}
_local4.gotoAndStop("birth");
_local4.body_type = "NPC";
if (random(2) == 1) {
_local4.move_way = "L";
} else {
_local4.move_way = "R";
}
_local4.feedback_time = 100 + random(100);
var _local3 = new Object();
_local3.s_body = _local4;
_local3.s_map = map_mc;
_local3.s_shoot_aim = player_mc;
_local3.s_speed = 1.5 + (game_mode * 1);
new as.EnemyObject(_local3);
_local4.Method.min_move = this["min_move" + leven][sect];
_local4.Method.max_move = this["max_move" + leven][sect];
_local4.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) && (boss_body)) {
this.Method.JumpBody(-2);
this.feedback_time = 50;
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(3);
if (!enemy_work) {
_local3 = 10;
}
if (_local3 == 0) {
if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
} else {
this.Method.sport_zt = "walk";
this.gotoAndStop("walk");
}
this.feedback_time = 150 + random(100);
} else if (_local3 == 1) {
if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
} else {
this.Method.sport_zt = "walk";
this.gotoAndStop("walk");
}
this.feedback_time = 150 + random(100);
} else if (_local3 == 2) {
this.Method.body_recovery();
this.feedback_time = random(50) + 20;
}
}
this.Method.check_languishment();
this.Method.attack_aim();
if (((this.Method.sport_zt != "jump") && (this.Method.move_able)) && (this.Method.sport_zt != "recovery")) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.MoveBody(this.move_way);
}
};
}
function attach_enemy2(startx, starty) {
var _local4 = enemy_mc.attachMovie("enemy2", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local4._x = startx;
_local4._y = starty;
if (boss_body) {
_local4.starttime = 35 + random(10);
} else {
_local4.starttime = random(3) + 3;
}
_local4.gotoAndStop("birth");
_local4.body_type = "NPC";
if (random(2) == 1) {
_local4.move_way = "L";
} else {
_local4.move_way = "R";
}
_local4.feedback_time = 100 + random(100);
var _local3 = new Object();
_local3.s_body = _local4;
_local3.s_map = map_mc;
_local3.s_shoot_aim = player_mc;
_local3.s_speed = 2 + (game_mode * 1);
new as.EnemyObject(_local3);
_local4.Method.min_move = this["min_move" + leven][sect];
_local4.Method.max_move = this["max_move" + leven][sect];
_local4.attack_time = 0;
_local4.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) && (boss_body)) {
this.Method.JumpBody(-2);
this.feedback_time = 50;
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(2);
if (!_root.enemy_work) {
_local3 = 10;
}
if (_local3 == 1) {
if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
} else if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
}
this.feedback_time = 100;
} else if (_local3 == 2) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 15;
this.feedback_time = 100;
}
} else if (this.feedback_time < 0) {
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 2;
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (this.Method.check_playX(100 + (_root.game_mode * 50))) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 10;
this.feedback_time = 100;
}
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.MoveBody(this.move_way);
}
};
}
function attach_enemy3(startx, starty) {
var _local4 = enemy_mc.attachMovie("enemy3", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local4._x = startx;
_local4._y = starty;
if (boss_body) {
_local4.starttime = 15 + random(5);
} else {
_local4.starttime = random(3) + 3;
}
_local4.gotoAndStop("birth");
_local4.body_type = "FLY";
_local4.feedback_time = 100 + random(100);
var _local3 = new Object();
_local3.s_body = _local4;
_local3.s_map = map_mc;
_local3.s_shoot_aim = player_mc;
_local3.s_speed = 2 + (game_mode * 1.5);
new as.EnemyObject(_local3);
_local4.Method.min_move = this["min_move" + leven][sect];
_local4.Method.max_move = this["max_move" + leven][sect];
_local4.Method.fly_x = (random(40) / 10) - 2;
_local4.Method.fly_x = _local4.Method.fly_x + (1.5 * (_local4.Method.fly_x / Math.abs(_local4.Method.fly_x)));
_local4.Method.fly_y = 0;
if (_local4.Method.fly_x > 0) {
_local4.move_way = "R";
_local4._xscale = 100;
}
if (_local4.Method.fly_x < 0) {
_local4.move_way = "L";
_local4._xscale = -100;
}
_local4.attack_time = 0;
_local4.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (!this.Method.ctrl_able) {
this.Method.check_languishment();
return(undefined);
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(3);
if (!_root.enemy_work) {
_local3 = 10;
}
if (_local3 == 1) {
this.Method.fly_x = (random(40) / 10) - 2;
this.Method.fly_x = this.Method.fly_x + (1.5 * (this.Method.fly_x / Math.abs(this.Method.fly_x)));
this.Method.fly_y = (-random(20)) / 10;
if (this.Method.fly_x > 0) {
this.move_way = "R";
this._xscale = 100;
}
if (this.Method.fly_x < 0) {
this.move_way = "L";
this._xscale = -100;
}
} else if ((_local3 == 2) && (this.Method.GetGlobalPlace().y < 250)) {
this.Method.attack_zt = true;
this.gotoAndStop("stand");
this.attack_time = 40;
this.Method.fly_y = 6;
this.Method.fly_x = (this._xscale / 100) * ((random(30) / 10) + 2);
this.feedback_time = 100;
}
this.feedback_time = 100;
} else if (this.feedback_time < 0) {
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 2;
this.Method.fly_y = (-random(20)) / 10;
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.body_fly();
}
};
}
function attach_enemy4(startx, starty) {
var _local3 = enemy_mc.attachMovie("enemy4", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
if (boss_body) {
_local3.starttime = 35 + random(10);
} else {
_local3.starttime = random(3) + 3;
}
_local3.gotoAndStop("birth");
_local3.body_type = "NPC";
if (random(2) == 1) {
_local3.move_way = "L";
} else {
_local3.move_way = "R";
}
_local3.feedback_time = 100 + random(100);
var _local4 = new Object();
_local4.s_body = _local3;
_local4.s_map = map_mc;
_local4.s_shoot_aim = player_mc;
_local4.s_speed = 1.5 + (game_mode * 1);
new as.EnemyObject(_local4);
_local3.Method.min_move = this["min_move" + leven][sect];
_local3.Method.max_move = this["max_move" + leven][sect];
_local3.attack_time = 0;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) && (boss_body)) {
this.Method.JumpBody(-2);
this.feedback_time = 50;
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(100);
if (!_root.enemy_work) {
_local3 = 1000;
}
if (_local3 < 90) {
if (random(100) < 80) {
if (this._y < _root.player_mc._y) {
if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
} else if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
}
}
if (this._y > _root.player_mc._y) {
if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
} else if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
}
}
this.feedback_time = (random(2) * random(100)) + 10;
} else {
var _local4 = random(2);
if (this.Method.check_pate_land() && (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) && (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 90) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 120;
this.feedback_time = 120;
}
} else if (this.feedback_time < 0) {
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 1.5 + (_root.game_mode * 1);
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (this.Method.check_playX(100 + (_root.game_mode * 80)) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 10;
this.feedback_time = 100;
}
if (this.Method.attack_zt) {
this.mc.mc._rotation = this.mc.mc._rotation - 30;
}
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.MoveBody(this.move_way);
}
};
}
function attach_enemy5(startx, starty) {
var _local4 = enemy_mc.attachMovie("enemy5", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local4._x = startx;
_local4._y = starty;
if (boss_body) {
_local4.starttime = 35 + random(10);
} else {
_local4.starttime = random(3) + 3;
}
_local4.gotoAndStop("birth");
_local4.body_type = "NPC";
if (random(2) == 1) {
_local4.move_way = "L";
} else {
_local4.move_way = "R";
}
_local4.feedback_time = 100 + random(100);
var _local3 = new Object();
_local3.s_body = _local4;
_local3.s_map = map_mc;
_local3.s_shoot_aim = player_mc;
_local3.s_speed = 1.5 + (_root.game_mode * 1);
new as.EnemyObject(_local3);
_local4.Method.min_move = this["min_move" + leven][sect];
_local4.Method.max_move = this["max_move" + leven][sect];
_local4.attack_time = 0;
_local4.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) && (boss_body)) {
this.Method.JumpBody(-2);
this.feedback_time = 50;
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(100);
if (!_root.enemy_work) {
_local3 = 1000;
}
if (_local3 < 60) {
if (random(100) < 80) {
if (this._y < _root.player_mc._y) {
if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
} else if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
}
}
if (this._y > _root.player_mc._y) {
if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
} else if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
}
}
this.feedback_time = (random(2) * random(100)) + 10;
} else {
var _local4 = random(2);
if (this.Method.check_pate_land() && (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) && (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 60) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 0;
this.attack_time = 45;
this.feedback_time = 45;
}
} else if (this.feedback_time < 0) {
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 1.8 + (_root.game_mode * 1);
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (this.Method.attack_zt) {
if (this.mc._currentframe == 17) {
this.shoot_bullet(this._x + ((this._xscale / 100) * 40), this._y - 60, this._xscale / 100);
} else if (this.mc._currentframe == this.mc._totalframes) {
}
}
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.MoveBody(this.move_way);
}
};
_local4.shoot_bullet = function (startx, starty, aspect) {
var _local3 = enemy_mc.attachMovie("mouse_bullet", "mouse_bullet" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
_local3.movex = (8 * aspect) + (_root.game_mode * 1);
_local3.movey = -3 - (_root.game_mode * 1);
_local3.onEnterFrame = function () {
this._x = this._x + this.movex;
this._y = this._y + this.movey;
this._rotation = this._rotation + 35;
var _local3 = GetGlobalPlace(this);
if (this.hit.hitTest(_root.player_mc.hit) && (!player_mc.Method.act_on)) {
this.gotoAndPlay("boom");
_root.player_mc.Method.body_death();
delete this.onEnterFrame;
}
if (((_local3.x < 0) || (_local3.x > 550)) || (_local3.y > 400)) {
this.removeMovieClip();
}
if ((this.movey > 7) && (map_mc.hitTest(_local3.x, _local3.y, true))) {
this.gotoAndPlay("boom");
delete this.onEnterFrame;
}
this.movey = this.movey + 0.8;
};
};
}
function attach_enemy6(startx, starty) {
var _local4 = enemy_mc.attachMovie("enemy6", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local4._x = startx;
_local4._y = starty;
if (boss_body) {
_local4.starttime = 15 + random(10);
} else {
_local4.starttime = random(3) + 3;
}
_local4.gotoAndStop("birth");
_local4.body_type = "FLY";
_local4.feedback_time = 100 + random(100);
var _local3 = new Object();
_local3.s_body = _local4;
_local3.s_map = map_mc;
_local3.s_shoot_aim = player_mc;
_local3.s_speed = 2 + (_root.game_mode * 1);
new as.EnemyObject(_local3);
_local4.Method.min_move = this["min_move" + leven][sect];
_local4.Method.max_move = this["max_move" + leven][sect];
_local4.Method.fly_x = (random(40) / 10) - 2;
_local4.Method.fly_x = _local4.Method.fly_x + (1.5 * (_local4.Method.fly_x / Math.abs(_local4.Method.fly_x)));
_local4.Method.fly_y = 0;
if (_local4.Method.fly_x > 0) {
_local4.move_way = "R";
_local4._xscale = 100;
}
if (_local4.Method.fly_x < 0) {
_local4.move_way = "L";
_local4._xscale = -100;
}
_local4.attack_time = 0;
_local4.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (!this.Method.ctrl_able) {
this.Method.check_languishment();
return(undefined);
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(3);
if (!_root.enemy_work) {
_local3 = 10;
}
if (_local3 == 1) {
this.Method.fly_x = (random(40) / 10) - 2;
this.Method.fly_x = this.Method.fly_x + (1.5 * (this.Method.fly_x / Math.abs(this.Method.fly_x)));
this.Method.fly_y = (-random(20)) / 10;
if (this.Method.fly_x > 0) {
this.move_way = "R";
this._xscale = 100;
}
if (this.Method.fly_x < 0) {
this.move_way = "L";
this._xscale = -100;
}
} else if ((_local3 == 2) && (this.Method.GetGlobalPlace().y < 250)) {
this.Method.attack_zt = true;
if (random(2) == 0) {
this.gotoAndStop("stand");
this.attack_time = 40;
this.Method.fly_y = 6;
this.Method.fly_x = (this._xscale / 100) * ((random(30) / 10) + 2);
this.feedback_time = 100;
} else {
this.gotoAndStop("attack");
this.feedback_time = (this.attack_time = this.mc._totalframes);
}
}
this.feedback_time = 100;
} else if (this.feedback_time < 0) {
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 2 + (_root.game_mode * 1);
this.Method.fly_y = (-random(20)) / 10;
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
if (this.Method.attack_zt) {
if (this.hit2.hitTest(_root.player_mc.hit) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
}
this.Method.check_languishment();
this.Method.attack_aim();
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.body_fly();
}
};
}
function attach_enemy7(startx, starty) {
var _local3 = enemy_mc.attachMovie("enemy7", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
if (boss_body) {
_local3.starttime = 35 + random(10);
} else {
_local3.starttime = random(3) + 3;
}
_local3.gotoAndStop("birth");
_local3.body_type = "NPC";
if (random(2) == 1) {
_local3.move_way = "L";
} else {
_local3.move_way = "R";
}
_local3.feedback_time = 100 + random(100);
var _local4 = new Object();
_local4.s_body = _local3;
_local4.s_map = map_mc;
_local4.s_shoot_aim = player_mc;
_local4.s_speed = 2 + (_root.game_mode * 1);
new as.EnemyObject(_local4);
_local3.Method.min_move = this["min_move" + leven][sect];
_local3.Method.max_move = this["max_move" + leven][sect];
_local3.attack_time = 0;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) && (boss_body)) {
this.Method.JumpBody(-2);
this.feedback_time = 50;
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(100);
if (!_root.enemy_work) {
_local3 = 1000;
}
if (_local3 < 90) {
if (random(100) < 80) {
if (this._y < _root.player_mc._y) {
if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
} else if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
}
}
if (this._y > _root.player_mc._y) {
if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
} else if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
}
}
this.feedback_time = (random(2) * random(100)) + 10;
} else {
var _local4 = random(2);
if (this.Method.check_pate_land() && (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) && (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 90) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 40;
this.feedback_time = 120;
}
} else if (this.feedback_time < 0) {
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.Method.attack_zt) {
if (this.hit2.hitTest(_root.player_mc.hit) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
}
if (this.attack_time == 1) {
this.Method.speed = 2 + (_root.game_mode * 1);
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (this.Method.check_playX(130 + (_root.game_mode * 30)) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 40;
this.feedback_time = 100;
}
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
if (!this.Method.attack_zt) {
this.Method.MoveBody(this.move_way);
}
}
};
}
function attach_enemy8(startx, starty) {
var _local3 = enemy_mc.attachMovie("enemy8", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
if (boss_body) {
_local3.starttime = 35 + random(10);
} else {
_local3.starttime = random(3) + 3;
}
_local3.gotoAndStop("birth");
_local3.body_type = "NPC";
if (random(2) == 1) {
_local3.move_way = "L";
} else {
_local3.move_way = "R";
}
_local3.feedback_time = 100 + random(100);
var _local4 = new Object();
_local4.s_body = _local3;
_local4.s_map = map_mc;
_local4.s_shoot_aim = player_mc;
_local4.s_speed = 2 + (_root.game_mode * 1.5);
new as.EnemyObject(_local4);
_local3.Method.min_move = this["min_move" + leven][sect];
_local3.Method.max_move = this["max_move" + leven][sect];
_local3.attack_time = 0;
_local3.Method.landuishment_cast_time = 50;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) && (boss_body)) {
this.Method.JumpBody(-2);
this.feedback_time = 50;
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(100);
if (!_root.enemy_work) {
_local3 = 1000;
}
if (_local3 < 90) {
if (random(100) < 80) {
if (this._y < _root.player_mc._y) {
if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
} else if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
}
}
if (this._y > _root.player_mc._y) {
if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
} else if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
}
}
this.feedback_time = (random(2) * random(100)) + 10;
} else {
var _local4 = random(2);
if (this.Method.check_pate_land() && (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) && (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 90) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 34;
this.feedback_time = 120;
}
} else if (this.feedback_time < 0) {
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 2 + (_root.game_mode * 1.5);
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (this.Method.check_playX(90) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 34;
this.feedback_time = 100;
}
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
if ((!this.Method.attack_zt) && (!this.mc.setout)) {
this.Method.MoveBody(this.move_way);
}
}
};
}
function attach_enemy9(startx, starty) {
var _local3 = enemy_mc.attachMovie("enemy9", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
if (boss_body) {
_local3.starttime = 35 + random(10);
} else {
_local3.starttime = random(3) + 3;
}
_local3.gotoAndStop("birth");
_local3.body_type = "FLY";
_local3.feedback_time = 30;
var _local5 = new Object();
_local5.s_body = _local3;
_local5.s_map = map_mc;
_local5.s_shoot_aim = player_mc;
_local5.s_speed = 2;
new as.EnemyObject(_local5);
_local3.Method.min_move = this["min_move" + leven][sect];
_local3.Method.max_move = this["max_move" + leven][sect];
_local3.Method.fly_x = (random(40) / 10) - 2;
_local3.Method.fly_x = _local3.Method.fly_x + (1.5 * (_local3.Method.fly_x / Math.abs(_local3.Method.fly_x)));
_local3.Method.fly_y = 0;
if (_local3.Method.fly_x > 0) {
_local3.move_way = "R";
_local3._xscale = 100;
}
if (_local3.Method.fly_x < 0) {
_local3.move_way = "L";
_local3._xscale = -100;
}
_local3.attack_time = 0;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (!this.Method.ctrl_able) {
this.Method.check_languishment();
return(undefined);
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(3);
if (!_root.enemy_work) {
_local3 = 10;
}
if (_local3 == 0) {
if (this.Method.sport_zt != "walk") {
this.Method.sport_zt = "walk";
this.gotoAndStop("walk");
}
var _local4 = 5;
var _local5 = Math.sqrt(((player_mc._x - this._x) * (player_mc._x - this._x)) + ((player_mc._y - this._y) * (player_mc._y - this._y)));
this.Method.fly_x = ((player_mc._x - this._x) * _local4) / _local5;
this.Method.fly_y = ((player_mc._y - this._y) * _local4) / _local5;
this.feedback_time = 100;
if (this.Method.fly_x > 0) {
this.move_way = "R";
this._xscale = 100;
}
if (this.Method.fly_x < 0) {
this.move_way = "L";
this._xscale = -100;
}
} else if (_local3 == 1) {
this.Method.fly_x = (random(40) / 10) - 2;
this.Method.fly_x = this.Method.fly_x + (1.5 * (this.Method.fly_x / Math.abs(this.Method.fly_x)));
this.Method.fly_y = (-random(20)) / 10;
if (this.Method.fly_x > 0) {
this.move_way = "R";
this._xscale = 100;
}
if (this.Method.fly_x < 0) {
this.move_way = "L";
this._xscale = -100;
}
if (this.Method.sport_zt != "walk") {
this.Method.sport_zt = "walk";
this.gotoAndStop("walk");
}
} else if ((_local3 == 2) && (this.Method.GetGlobalPlace().y < 250)) {
if (random(10) > 10) {
this.gotoAndStop("stand");
this.attack_time = 40;
this.Method.fly_y = 6;
this.Method.fly_x = (this._xscale / 100) * ((random(30) / 10) + 2);
this.feedback_time = 100;
} else {
this.Method.body_recovery();
this.feedback_time = random(50) + 20;
return(undefined);
}
}
this.feedback_time = 100;
} else if (this.feedback_time < 0) {
if (this.Method.sport_zt != "walk") {
this.Method.sport_zt = "walk";
this.gotoAndStop("walk");
}
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 2;
this.Method.fly_y = (-random(20)) / 10;
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (((this.Method.sport_zt != "jump") && (this.Method.move_able)) && (this.Method.sport_zt != "recovery")) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.body_fly();
}
};
}
function attach_enemy10(startx, starty) {
var _local3 = enemy_mc.attachMovie("enemy10", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
if (boss_body) {
_local3.starttime = 35 + random(10);
} else {
_local3.starttime = random(3) + 3;
}
_local3.gotoAndStop("birth");
_local3.body_type = "NPC";
if (random(2) == 1) {
_local3.move_way = "L";
} else {
_local3.move_way = "R";
}
_local3.feedback_time = 100 + random(100);
var _local4 = new Object();
_local4.s_body = _local3;
_local4.s_map = map_mc;
_local4.s_shoot_aim = player_mc;
_local4.s_speed = 1.5 + (_root.game_mode * 1);
new as.EnemyObject(_local4);
_local3.Method.min_move = this["min_move" + leven][sect];
_local3.Method.max_move = this["max_move" + leven][sect];
_local3.attack_time = 0;
_local3.Method.landuishment_cast_time = 50;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) && (boss_body)) {
this.Method.JumpBody(-2);
this.feedback_time = 50;
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(100);
if (!_root.enemy_work) {
_local3 = 1000;
}
if (_local3 < 90) {
if (random(100) < 60) {
if (this._y < _root.player_mc._y) {
if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
} else if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
}
}
if (this._y > _root.player_mc._y) {
if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
} else if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
}
}
this.feedback_time = (random(2) * random(100)) + 10;
} else {
var _local4 = random(2);
if (this.Method.check_pate_land() && (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) && (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 90) && (this.Method.sport_zt != "turn")) {
this.gotoAndStop("walk");
this.Method.speed = 4 + (_root.game_mode * 2);
this.attack_time = 100 + random(50);
this.feedback_time = 120;
}
} else if (this.feedback_time < 0) {
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.mc.gotoAndPlay(this.mc._currentframe + 1);
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 1.5 + (_root.game_mode * 1);
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (this.Method.check_playX(150) && (this.Method.sport_zt != "turn")) {
this.gotoAndStop("walk");
this.Method.speed = 4;
this.attack_time = 50;
this.feedback_time = 100;
}
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.MoveBody(this.move_way);
}
};
}
function attach_enemy11(startx, starty) {
var _local3 = enemy_mc.attachMovie("enemy11", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
if (boss_body) {
_local3.starttime = 35 + random(10);
} else {
_local3.starttime = random(3) + 3;
}
_local3.gotoAndStop("birth");
_local3.body_type = "NPC";
_local3.attach_turn_able = true;
if (random(2) == 1) {
_local3.move_way = "L";
} else {
_local3.move_way = "R";
}
_local3.feedback_time = 100 + random(100);
var _local4 = new Object();
_local4.s_body = _local3;
_local4.s_map = map_mc;
_local4.s_shoot_aim = player_mc;
_local4.s_speed = 2 + (_root.game_mode * 1);
new as.EnemyObject(_local4);
_local3.Method.min_move = this["min_move" + leven][sect];
_local3.Method.max_move = this["max_move" + leven][sect];
_local3.attack_time = 0;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) && (boss_body)) {
this.Method.JumpBody(-2);
this.feedback_time = 50;
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local3 = random(100);
if (!_root.enemy_work) {
_local3 = 1000;
}
if (_local3 < 90) {
if (random(100) < 30) {
if (this._y < _root.player_mc._y) {
if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
} else if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
}
}
if (this._y > _root.player_mc._y) {
if (this.Method.check_pate_land()) {
this.Method.JumpBody(-12.3);
} else if (this.Method.GetGlobalPlace().y < 350) {
this.Method.JumpBody(4);
}
}
this.feedback_time = (random(2) * random(100)) + 10;
} else {
var _local4 = random(2);
if (this.Method.check_pate_land() && (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) && (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 150) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 6;
this.attack_time = 120;
this.feedback_time = 120;
}
} else if (this.feedback_time < 0) {
this.feedback_time = 50;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 14) {
this.Method.speed = 2 + (_root.game_mode * 1);
this.mc.play();
}
if (this.attack_time == 1) {
this.Method.speed = 2 + (_root.game_mode * 1);
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 60;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (this.Method.check_playX(100 + (_root.game_mode * 50)) && (this.Method.sport_zt != "turn")) {
this.Method.attack_zt = true;
this.gotoAndStop("attack");
this.Method.speed = 8;
this.attack_time = 40;
this.feedback_time = 50;
}
if ((this.Method.sport_zt != "jump") && (this.Method.move_able)) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
if (!this.mc.setout) {
this.Method.MoveBody(this.move_way);
}
}
};
}
function attach_enemy12(startx, starty) {
var _local4 = enemy_mc.attachMovie("enemy12", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local4._x = startx;
_local4._y = starty;
if (boss_body) {
_local4.starttime = 35 + random(10);
} else {
_local4.starttime = random(3) + 3;
}
_local4.gotoAndStop("birth");
_local4.body_type = "FLY";
_local4.feedback_time = 30;
var _local5 = new Object();
_local5.s_body = _local4;
_local5.s_map = map_mc;
_local5.s_shoot_aim = player_mc;
_local5.s_speed = 2;
new as.EnemyObject(_local5);
_local4.Method.min_move = this["min_move" + leven][sect];
_local4.Method.max_move = this["max_move" + leven][sect];
_local4.Method.fly_x = (random(40) / 10) - 2;
_local4.Method.fly_x = _local4.Method.fly_x + (1.5 * (_local4.Method.fly_x / Math.abs(_local4.Method.fly_x)));
_local4.Method.fly_y = 0;
if (_local4.Method.fly_x > 0) {
_local4.move_way = "R";
_local4._xscale = 100;
}
if (_local4.Method.fly_x < 0) {
_local4.move_way = "L";
_local4._xscale = -100;
}
_local4.attack_time = 0;
_local4.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (!this.Method.ctrl_able) {
this.Method.check_languishment();
return(undefined);
}
if (this.starttime > 0) {
this.starttime--;
return(undefined);
}
if (this.Method.mud_roll) {
this.Method.move_mud(this.move_way);
return(undefined);
}
if (this.Method.move_able) {
this.feedback_time--;
}
if (this.feedback_time == 0) {
var _local4 = random(5);
if (!_root.enemy_work) {
_local4 = 10;
}
if (_local4 == 0) {
var _local5 = 5;
var _local3 = Math.sqrt(((player_mc._x - this._x) * (player_mc._x - this._x)) + ((player_mc._y - this._y) * (player_mc._y - this._y)));
this.Method.fly_x = ((player_mc._x - this._x) * _local5) / _local3;
this.Method.fly_y = ((player_mc._y - this._y) * _local5) / _local3;
this.feedback_time = 100;
if (this.Method.fly_x > 0) {
this.move_way = "R";
this._xscale = 100;
}
if (this.Method.fly_x < 0) {
this.move_way = "L";
this._xscale = -100;
}
} else if (_local4 == 1) {
this.Method.fly_x = (random(40) / 10) - 2;
this.Method.fly_x = this.Method.fly_x + (1.5 * (this.Method.fly_x / Math.abs(this.Method.fly_x)));
this.Method.fly_y = (-random(20)) / 10;
if (this.Method.fly_x > 0) {
this.move_way = "R";
this._xscale = 100;
}
if (this.Method.fly_x < 0) {
this.move_way = "L";
this._xscale = -100;
}
if (this.Method.sport_zt != "walk") {
this.Method.sport_zt = "walk";
this.gotoAndStop("walk");
}
} else if (((_local4 >= 2) && (_local4 <= 5)) && (this.Method.GetGlobalPlace().y < 250)) {
this.gotoAndStop("attack");
this.attack_time = 40;
this.Method.fly_y = 6;
this.Method.fly_x = (this._xscale / 100) * ((random(30) / 10) + 2);
this.feedback_time = 100;
}
this.feedback_time = 100;
} else if (this.feedback_time < 0) {
var _local3 = Math.sqrt(((player_mc._x - this._x) * (player_mc._x - this._x)) + ((player_mc._y - this._y) * (player_mc._y - this._y)));
this.Method.fly_x = ((player_mc._x - this._x) * _local5) / _local3;
this.Method.fly_y = ((player_mc._y - this._y) * _local5) / _local3;
if (this.Method.sport_zt != "walk") {
this.Method.sport_zt = "walk";
this.gotoAndStop("walk");
}
this.feedback_time = 100;
}
if (this.attack_time > 0) {
this.attack_time--;
}
if (this.attack_time == 1) {
this.Method.speed = 2;
this.Method.fly_y = (-random(20)) / 10;
this.Method.attack_zt = false;
this.gotoAndStop("walk");
this.feedback_time = 100;
}
this.Method.check_languishment();
this.Method.attack_aim();
if (((this.Method.sport_zt != "jump") && (this.Method.move_able)) && (this.Method.sport_zt != "recovery")) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.body_fly();
}
};
}
function build_enmey(s_leven, s_sect) {
if (game_mode == 0) {
if (s_leven == 1) {
fall_space = 0.475;
if (s_sect == 0) {
attach_enemy1(475, 379);
attach_enemy1(57, 215);
attach_enemy1(480, 213);
attach_enemy2(213, 53);
enemy_amount = 4;
} else if (s_sect == 1) {
attach_enemy1(49, -100);
attach_enemy2(398, -264);
attach_enemy1(483, -103);
attach_enemy1(60, -100);
attach_enemy2(70, -100);
enemy_amount = 5;
} else if (s_sect == 2) {
attach_enemy2(400, -782);
attach_enemy1(136, -745);
attach_enemy1(418, -748);
attach_enemy2(400, -504);
attach_enemy2(136, -504);
enemy_amount = 5;
} else if (s_sect == 3) {
attach_enemy2(273, -907);
attach_enemy1(500, -905);
attach_enemy1(260, -905);
attach_enemy2(315, -1148);
attach_enemy1(62, -1139);
enemy_amount = 5;
} else if (s_sect == 4) {
attach_enemy2(78, -1303);
attach_enemy1(76, -1226);
attach_enemy2(485, -1304);
attach_enemy2(76, -1469);
attach_enemy1(406, -1547);
attach_enemy1(416, -1547);
enemy_amount = 6;
} else if (s_sect == 5) {
attach_enemy1(46, -1869);
attach_enemy1(47, -1869);
attach_enemy1(490, -1870);
attach_enemy2(508, -1869);
attach_enemy2(286, -1628);
attach_enemy4(438, -1628);
enemy_amount = 6;
} else if (s_sect == 6) {
attach_enemy1(417, -2027);
attach_enemy2(57, -2269);
attach_enemy4(168, -2338);
attach_enemy2(77, -2183);
attach_enemy4(181, -2112);
enemy_amount = 5;
} else if (s_sect == 7) {
attach_boss1();
enemy_amount = 0;
}
all_enemy_amount = enemy_amount;
} else if (s_leven == 2) {
fall_space = 0.5;
if (s_sect == 0) {
attach_enemy4(97, 294);
attach_enemy4(266, 215);
attach_enemy5(158, 60);
attach_enemy5(446, 294);
attach_enemy1(400, 294);
enemy_amount = 5;
} else if (s_sect == 1) {
attach_enemy4(40, -186);
attach_enemy4(497, -185);
attach_enemy5(130, -345);
attach_enemy5(150, -345);
attach_enemy5(490, -345);
attach_enemy1(50, -185);
enemy_amount = 6;
} else if (s_sect == 2) {
attach_enemy1(434, -757);
attach_enemy2(97, -752);
attach_enemy5(71, -584);
attach_enemy5(439, -586);
attach_enemy4(524, -506);
attach_enemy4(71, -506);
enemy_amount = 6;
} else if (s_sect == 3) {
attach_enemy1(95, -903);
attach_enemy2(429, -904);
attach_enemy4(70, -1143);
attach_enemy4(474, -1143);
attach_enemy5(400, -1143);
enemy_amount = 5;
} else if (s_sect == 4) {
attach_enemy1(215, -1524);
attach_enemy5(280, -1381);
attach_enemy4(142, -1303);
attach_enemy4(348, -1524);
attach_enemy5(348, -1381);
enemy_amount = 5;
} else if (s_sect == 5) {
attach_enemy4(273, -1850);
attach_enemy5(119, -1859);
attach_enemy4(264, -1702);
attach_enemy5(263, -1938);
attach_enemy4(119, -1702);
attach_enemy5(273, -1938);
enemy_amount = 6;
} else if (s_sect == 6) {
attach_enemy5(172, -2029);
attach_enemy5(366, -2029);
attach_enemy5(158, -2187);
attach_enemy4(404, -2187);
attach_enemy4(273, -2255);
enemy_amount = 5;
} else if (s_sect == 7) {
attach_enemy4(104, -2745);
attach_enemy4(447, -2745);
attach_enemy4(276, -2706);
attach_enemy5(223, -2585);
attach_enemy5(337, -2585);
enemy_amount = 5;
} else if (s_sect == 8) {
attach_boss2();
enemy_amount = 0;
}
all_enemy_amount = enemy_amount;
} else if (s_leven == 3) {
fall_space = 0.56;
if (s_sect == 0) {
attach_enemy7(52, 136);
attach_enemy8(474, 134);
attach_enemy7(282, 217);
attach_enemy8(435, 294);
attach_enemy7(282, 294);
enemy_amount = 5;
} else if (s_sect == 1) {
attach_enemy8(65, -186);
attach_enemy8(496, -186);
attach_enemy7(373, -109);
attach_enemy7(289, -265);
attach_enemy7(496, -265);
enemy_amount = 5;
} else if (s_sect == 2) {
attach_enemy7(382, -586);
attach_enemy7(179, -586);
attach_enemy8(112, -508);
attach_enemy8(430, -508);
enemy_amount = 4;
} else if (s_sect == 3) {
attach_enemy7(38, -1063);
attach_enemy8(450, -1065);
attach_enemy7(235, -1065);
attach_enemy8(287, -980);
attach_enemy4(460, -1065);
attach_enemy4(287, -980);
enemy_amount = 6;
} else if (s_sect == 4) {
attach_enemy8(274, -1389);
attach_enemy8(500, -1389);
attach_enemy7(70, -1308);
attach_enemy7(500, -1308);
attach_enemy4(75, -1438);
attach_enemy5(477, -1453);
enemy_amount = 6;
} else if (s_sect == 5) {
attach_enemy5(59, -1925);
attach_enemy8(498, -1925);
attach_enemy7(265, -1787);
attach_enemy7(142, -1710);
attach_enemy7(404, -1710);
enemy_amount = 5;
} else if (s_sect == 6) {
attach_enemy8(130, -2101);
attach_enemy8(432, -2101);
attach_enemy7(284, -2263);
attach_enemy7(278, -2030);
attach_enemy5(280, -2162);
attach_enemy5(432, -2162);
enemy_amount = 6;
} else if (s_sect == 7) {
attach_enemy7(146, -2651);
attach_enemy7(425, -2651);
attach_enemy7(280, -2555);
attach_enemy8(472, -2512);
attach_enemy8(133, -2512);
enemy_amount = 5;
} else if (s_sect == 8) {
attach_enemy8(157, -3065);
attach_enemy8(370, -3065);
attach_enemy7(253, -2989);
attach_enemy7(122, -2989);
attach_enemy7(380, -2989);
enemy_amount = 5;
} else if (s_sect == 9) {
attach_boss3();
enemy_amount = 0;
}
all_enemy_amount = enemy_amount;
} else if (s_leven == 4) {
fall_space = 0.56;
if (s_sect == 0) {
attach_enemy12(532, 368);
attach_enemy12(67, 368);
attach_enemy11(486, 208);
attach_enemy12(67, 127);
attach_enemy11(406, 288);
enemy_amount = 5;
} else if (s_sect == 1) {
attach_enemy12(500, -269);
attach_enemy11(354, -109);
attach_enemy12(67, -273);
attach_enemy11(207, -112);
attach_enemy12(267, -273);
attach_enemy8(354, -273);
enemy_amount = 6;
} else if (s_sect == 2) {
attach_enemy12(500, -669);
attach_enemy12(67, -673);
attach_enemy11(319, -512);
attach_enemy12(304, -593);
attach_enemy11(290, -679);
enemy_amount = 5;
} else if (s_sect == 3) {
attach_enemy12(532, -985);
attach_enemy12(27, -985);
attach_enemy12(304, -993);
attach_enemy11(521, -1072);
attach_enemy11(145, -1079);
attach_enemy11(27, -1079);
enemy_amount = 6;
} else if (s_sect == 4) {
attach_enemy12(285, -1346);
attach_enemy12(356, -1479);
attach_enemy12(216, -1479);
attach_enemy11(132, -1386);
attach_enemy11(429, -1386);
attach_enemy8(429, -1386);
enemy_amount = 6;
} else if (s_sect == 5) {
attach_enemy12(285, -1712);
attach_enemy12(356, -1879);
attach_enemy12(279, -1879);
attach_enemy11(216, -1879);
attach_enemy11(486, -1863);
attach_enemy11(279, -1787);
enemy_amount = 6;
} else if (s_sect == 6) {
attach_enemy11(81, -2269);
attach_enemy11(486, -2270);
attach_enemy11(279, -2111);
attach_enemy11(332, -2267);
attach_enemy12(271, -2200);
enemy_amount = 5;
} else if (s_sect == 7) {
attach_enemy12(77, -2691);
attach_enemy12(447, -2679);
attach_enemy11(93, -2583);
attach_enemy11(281, -2640);
attach_enemy11(336, -2509);
attach_enemy11(101, -2503);
enemy_amount = 6;
} else if (s_sect == 8) {
attach_enemy12(444, -3087);
attach_enemy11(293, -3005);
attach_enemy7(49, -2899);
attach_enemy5(497, -2904);
attach_enemy1(275, -2821);
attach_enemy8(348, -2905);
enemy_amount = 6;
} else if (s_sect == 9) {
attach_boss4();
enemy_amount = 0;
}
all_enemy_amount = enemy_amount;
} else if (s_leven == 5) {
enemy_amount = 0;
attach_boss1(-50);
attach_boss2(600);
} else if (s_leven == 6) {
enemy_amount = 0;
attach_boss1(-50);
attach_boss3(600);
} else if (s_leven == 7) {
enemy_amount = 0;
attach_boss1(-50);
attach_boss4(600);
} else if (s_leven == 8) {
enemy_amount = 0;
attach_boss2(-50);
attach_boss3(600);
} else if (s_leven == 9) {
enemy_amount = 0;
attach_boss2(-50);
attach_boss4(600);
} else if (s_leven == 10) {
enemy_amount = 0;
attach_boss3(-50);
attach_boss4(600);
}
} else if (s_leven == 1) {
fall_space = 0.475;
if (s_sect == 0) {
attach_enemy1(349, 137);
attach_enemy2(92, 217);
attach_enemy2(485, 217);
attach_enemy1(288, 217);
attach_enemy1(274, 378);
enemy_amount = 4;
} else if (s_sect == 1) {
attach_enemy1(263, -263);
attach_enemy1(92, -183);
attach_enemy1(485, -183);
attach_enemy2(65, -343);
attach_enemy2(491, -348);
attach_enemy2(340, -105);
enemy_amount = 6;
} else if (s_sect == 2) {
attach_enemy1(466, -504);
attach_enemy1(73, -504);
attach_enemy2(281, -743);
attach_enemy2(369, -576);
attach_enemy2(187, -576);
attach_enemy3(278, -645);
enemy_amount = 6;
} else if (s_sect == 3) {
attach_enemy1(472, -823);
attach_enemy1(73, -901);
attach_enemy2(167, -825);
attach_enemy2(99, -985);
attach_enemy3(351, -1054);
attach_enemy3(89, -1117);
enemy_amount = 6;
} else if (s_sect == 4) {
attach_enemy2(419, -1385);
attach_enemy2(99, -1385);
attach_enemy3(491, -1510);
attach_enemy3(89, -1517);
attach_enemy3(242, -1419);
attach_enemy2(264, -1304);
enemy_amount = 6;
} else if (s_sect == 5) {
attach_enemy1(293, -1945);
attach_enemy2(419, -1624);
attach_enemy2(118, -1622);
attach_enemy3(370, -1864);
attach_enemy3(174, -1869);
attach_enemy3(273, -1789);
attach_enemy2(243, -1706);
enemy_amount = 7;
} else if (s_sect == 6) {
attach_enemy2(455, -2106);
attach_enemy2(258, -2022);
attach_enemy3(289, -2179);
attach_enemy3(174, -2181);
attach_enemy3(491, -2275);
attach_enemy2(148, -2106);
attach_enemy3(44, -2269);
enemy_amount = 7;
} else if (s_sect == 7) {
attach_boss1();
enemy_amount = 0;
}
all_enemy_amount = enemy_amount;
} else if (s_leven == 2) {
fall_space = 0.5;
if (s_sect == 0) {
attach_enemy4(271, 210);
attach_enemy5(466, 212);
attach_enemy4(65, 210);
attach_enemy4(142, 289);
attach_enemy4(375, 290);
enemy_amount = 5;
} else if (s_sect == 1) {
attach_enemy4(348, -269);
attach_enemy4(219, -264);
attach_enemy5(113, -111);
attach_enemy5(425, -111);
attach_enemy4(50, -343);
enemy_amount = 5;
} else if (s_sect == 2) {
attach_enemy4(457, -585);
attach_enemy4(260, -670);
attach_enemy5(237, -581);
attach_enemy5(240, -502);
attach_enemy4(50, -743);
attach_enemy6(407, -674);
enemy_amount = 6;
} else if (s_sect == 3) {
attach_enemy4(457, -985);
attach_enemy5(237, -981);
attach_enemy5(122, -902);
attach_enemy4(50, -1143);
attach_enemy6(203, -1074);
attach_enemy5(428, -908);
enemy_amount = 6;
} else if (s_sect == 4) {
attach_enemy5(270, -1389);
attach_enemy5(122, -1302);
attach_enemy4(272, -1235);
attach_enemy6(378, -1429);
attach_enemy5(428, -1308);
attach_enemy6(141, -1488);
enemy_amount = 6;
} else if (s_sect == 5) {
attach_enemy5(270, -1822);
attach_enemy5(122, -1702);
attach_enemy6(134, -1786);
attach_enemy5(428, -1708);
attach_enemy6(392, -1816);
attach_enemy6(278, -1713);
attach_enemy5(270, -1941);
enemy_amount = 7;
} else if (s_sect == 6) {
attach_enemy5(125, -2332);
attach_enemy5(93, -2104);
attach_enemy6(180, -2208);
attach_enemy5(460, -2108);
attach_enemy6(392, -2202);
attach_enemy6(278, -2113);
attach_enemy5(442, -2341);
enemy_amount = 7;
} else if (s_sect == 7) {
attach_enemy5(125, -2732);
attach_enemy5(285, -2431);
attach_enemy6(180, -2608);
attach_enemy6(392, -2602);
attach_enemy6(278, -2679);
attach_enemy5(442, -2741);
attach_enemy6(276, -2513);
enemy_amount = 7;
} else if (s_sect == 8) {
attach_boss2();
enemy_amount = 0;
}
all_enemy_amount = enemy_amount;
} else if (s_leven == 3) {
fall_space = 0.56;
if (s_sect == 0) {
attach_enemy8(433, 375);
attach_enemy7(137, 293);
attach_enemy9(269, 140);
attach_enemy7(52, 131);
attach_enemy7(477, 134);
attach_enemy8(285, 216);
enemy_amount = 6;
} else if (s_sect == 1) {
attach_enemy8(267, -25);
attach_enemy7(137, -107);
attach_enemy7(62, -189);
attach_enemy7(510, -190);
attach_enemy8(285, -184);
attach_enemy8(274, -269);
enemy_amount = 6;
} else if (s_sect == 2) {
attach_enemy8(267, -425);
attach_enemy7(137, -507);
attach_enemy7(200, -589);
attach_enemy7(377, -590);
attach_enemy8(272, -749);
attach_enemy7(401, -507);
enemy_amount = 6;
} else if (s_sect == 3) {
attach_enemy7(137, -907);
attach_enemy7(467, -1068);
attach_enemy8(29, -1060);
attach_enemy7(401, -907);
attach_enemy9(267, -1073);
attach_enemy9(255, -940);
enemy_amount = 6;
} else if (s_sect == 4) {
attach_enemy7(137, -1307);
attach_enemy8(81, -1430);
attach_enemy7(401, -1307);
attach_enemy9(267, -1473);
attach_enemy9(259, -1318);
attach_enemy8(480, -1430);
attach_enemy8(260, -1388);
enemy_amount = 7;
} else if (s_sect == 5) {
attach_enemy7(137, -1707);
attach_enemy7(401, -1707);
attach_enemy9(267, -1873);
attach_enemy9(259, -1718);
attach_enemy8(260, -1786);
attach_enemy7(43, -1784);
attach_enemy7(522, -1795);
enemy_amount = 7;
} else if (s_sect == 6) {
attach_enemy7(137, -2107);
attach_enemy7(401, -2107);
attach_enemy9(259, -2118);
attach_enemy8(215, -2186);
attach_enemy7(43, -2187);
attach_enemy8(70, -2271);
attach_enemy8(494, -2271);
enemy_amount = 7;
} else if (s_sect == 7) {
attach_enemy7(277, -2429);
attach_enemy9(256, -2688);
attach_enemy8(70, -2671);
attach_enemy8(494, -2671);
attach_enemy9(124, -2592);
attach_enemy9(393, -2606);
attach_enemy9(255, -2518);
enemy_amount = 7;
} else if (s_sect == 8) {
attach_enemy7(277, -2829);
attach_enemy9(256, -3088);
attach_enemy8(421, -3145);
attach_enemy9(258, -3008);
attach_enemy9(389, -3035);
attach_enemy9(255, -2918);
attach_enemy9(64, -2918);
enemy_amount = 7;
} else if (s_sect == 9) {
attach_boss3();
enemy_amount = 0;
}
all_enemy_amount = enemy_amount;
} else if (s_leven == 4) {
fall_space = 0.56;
if (s_sect == 0) {
attach_enemy10(138, 374);
attach_enemy11(279, 134);
attach_enemy10(450, 374);
attach_enemy10(118, 208);
attach_enemy10(423, 208);
attach_enemy11(279, 294);
enemy_amount = 6;
} else if (s_sect == 1) {
attach_enemy10(138, -26);
attach_enemy11(544, -261);
attach_enemy10(450, -26);
attach_enemy10(292, -266);
attach_enemy11(25, -266);
attach_enemy11(283, -187);
enemy_amount = 6;
} else if (s_sect == 2) {
attach_enemy10(138, -591);
attach_enemy11(544, -661);
attach_enemy10(292, -666);
attach_enemy11(25, -666);
attach_enemy11(45, -510);
attach_enemy12(389, -604);
enemy_amount = 6;
} else if (s_sect == 3) {
attach_enemy11(507, -907);
attach_enemy10(292, -1066);
attach_enemy11(25, -1066);
attach_enemy11(33, -909);
attach_enemy12(277, -996);
attach_enemy12(434, -1072);
enemy_amount = 6;
} else if (s_sect == 4) {
attach_enemy11(507, -1307);
attach_enemy10(200, -1466);
attach_enemy11(113, -1386);
attach_enemy12(277, -1396);
attach_enemy12(434, -1472);
attach_enemy10(94, -1307);
enemy_amount = 6;
} else if (s_sect == 5) {
attach_enemy11(507, -1707);
attach_enemy10(284, -1707);
attach_enemy11(113, -1786);
attach_enemy12(277, -1796);
attach_enemy12(434, -1872);
attach_enemy10(94, -1707);
attach_enemy12(149, -1893);
enemy_amount = 7;
} else if (s_sect == 6) {
attach_enemy11(507, -2107);
attach_enemy11(153, -2186);
attach_enemy12(277, -2196);
attach_enemy12(434, -2272);
attach_enemy10(94, -2107);
attach_enemy12(149, -2293);
attach_enemy12(277, -2113);
enemy_amount = 7;
} else if (s_sect == 7) {
attach_enemy11(113, -2586);
attach_enemy12(277, -2596);
attach_enemy12(434, -2672);
attach_enemy12(149, -2693);
attach_enemy12(277, -2513);
attach_enemy11(525, -2590);
attach_enemy11(74, -2511);
enemy_amount = 7;
} else if (s_sect == 8) {
attach_enemy11(263, -3148);
attach_enemy12(277, -2996);
attach_enemy12(434, -3072);
attach_enemy12(149, -3093);
attach_enemy12(277, -2913);
attach_enemy12(500, -2981);
attach_enemy11(124, -2900);
attach_enemy11(453, -2911);
enemy_amount = 8;
} else if (s_sect == 9) {
attach_boss4();
enemy_amount = 0;
}
all_enemy_amount = enemy_amount;
} else if (s_leven == 11) {
enemy_amount = 0;
attach_boss1(-50);
attach_boss2(600);
} else if (s_leven == 12) {
enemy_amount = 0;
attach_boss1(-50);
attach_boss3(600);
} else if (s_leven == 13) {
enemy_amount = 0;
attach_boss1(-50);
attach_boss4(600);
} else if (s_leven == 14) {
enemy_amount = 0;
attach_boss2(-50);
attach_boss3(600);
} else if (s_leven == 15) {
enemy_amount = 0;
attach_boss2(-50);
attach_boss4(600);
} else if (s_leven == 16) {
enemy_amount = 0;
attach_boss3(-50);
attach_boss4(600);
}
}
function attach_boss1(startx) {
var temp = boss_mc.attachMovie("BOSS1", "BOSS1", boss_mc.getNextHighestDepth());
boss_body = true;
if (leven > 4) {
temp._y = 380;
temp._x = startx;
} else {
temp._y = -2420;
temp._x = 600;
}
temp.gotoAndStop("walk");
temp.start_time = 90;
temp.attack_time = 60;
temp.excite_num = 1;
if (temp._x > 200) {
temp.speed_move = -1.6 - (_root.game_mode * 0.4);
} else {
temp.speed_move = 1.6 + (_root.game_mode * 0.4);
temp._xscale = -100;
}
temp.sport_zt = "start";
temp.sport_now = "start";
temp.angry = false;
temp.turn_body = false;
temp.fist = false;
temp.life = 6 + _root.game_mode;
UI.BossLife.gotoAndStop(temp.life + 1);
temp.gotoAndStop(temp.sport_zt);
temp.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (this.start_time > 0) {
if (!_root.pass_game) {
this.start_time--;
this._x = this._x + this.speed_move;
}
if (this.start_time == 1) {
this.start_time--;
this.sport_zt = "stand";
this.gotoAndStop(this.sport_zt);
_root.play_music("sound5", true);
}
return(undefined);
}
if (this.turn_body) {
if (this.sport_now != "turn") {
this.gotoAndStop("turn");
this.sport_now = "turn";
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
this.turn_body = false;
this._xscale = this._xscale * -1;
this.speed_move = this.speed_move * -1;
}
return(undefined);
}
if (this.hit.hitTest(_root.player_mc.hit) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
this.attack_time--;
if (this.attack_time <= 0) {
this.attack_time = 200;
if (leven > 4) {
var _local3 = 2;
} else {
var _local3 = 0;
}
if (_root.enemy_amount <= _local3) {
this.sport_zt = "attack3";
} else if (this.angry) {
this.sport_zt = "attack2";
} else {
this.sport_zt = "attack1";
}
_root.play_soundAction("boss1_a");
if (((this._x < 150) && (this._xscale > 0)) || ((this._x > 300) && (this._xscale < 0))) {
this.turn_body = true;
return(undefined);
}
}
if (this.sport_zt == "attack1") {
if (this.sport_now != "attack1") {
this.sport_now = "attack1";
this.gotoAndStop("attack1");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.shoot_bullet1();
this.sport_zt = "walk";
}
} else if (this.sport_zt == "attack2") {
if (this.sport_now != "attack2") {
this.sport_now = "attack2";
this.gotoAndStop("attack2");
}
if (this.fist) {
this._x = this._x - ((10 * this._xscale) / 100);
if (((this._xscale > 0) && (this._x < 150)) || ((this._xscale < 0) && (this._x > 400))) {
this.mc.play();
if (this.mc._currentframe == this.mc._totalframes) {
this.sport_zt = "walk";
this.angry = false;
this.fist = false;
}
} else {
this._x = this._x - ((10 * this._xscale) / 100);
}
}
} else if (this.sport_zt == "attack3") {
if (this.sport_now != "attack3") {
this.sport_now = "attack3";
this.gotoAndStop("attack3");
_root.play_soundAction("callup");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.beckon_enemy1();
this.sport_zt = "walk";
}
} else if (this.sport_zt == "death") {
if (this.sport_now != "death") {
this.sport_now = "death";
this.gotoAndStop("death");
}
if (((random(6) == 1) && (this.mc._currentframe > 20)) && (this.mc._currentframe < 90)) {
_root.attach_giving(this);
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.map_mc["M_map" + _root.sect].mc.play();
_root.map_mc["M_map" + _root.sect].mc2.gotoAndStop(2);
this.removeMovieClip();
if (leven > 4) {
attach_boss1(-50);
}
}
} else if (this.sport_zt == "walk") {
if (this.sport_now != "walk") {
this.sport_now = "walk";
this.gotoAndStop("walk");
temp_time = 0;
}
temp_time++;
if ((temp_time >= 40) && (!this.angry)) {
temp_time = 0;
if (random(3) == 0) {
this.sport_zt = "wait";
}
}
this._x = this._x + this.speed_move;
if ((this._x < 50) && (this.speed_move < 0)) {
this.turn_body = true;
} else if ((this._x > 500) && (this.speed_move > 0)) {
this.turn_body = true;
}
} else if (this.sport_zt == "wait") {
if (this.sport_now != "wait") {
this.sport_now = "wait";
this.gotoAndStop("wait");
wait_time = random(40) + 50;
}
wait_time--;
if (wait_time <= 0) {
this.sport_zt = "walk";
}
} else if (this.sport_zt == "suffer") {
if (this.sport_now != "suffer") {
this.sport_now = "suffer";
this.gotoAndStop("suffer");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
this.sport_zt = "stand";
this.gotoAndStop("stand");
}
}
};
temp.suffer_attack = function () {
if (this.life > 1) {
this.life--;
if (leven <= 4) {
_root.UI.BossLife.gotoAndStop(temp.life + 1);
}
this.fist = false;
this.sport_zt = "suffer";
this.angry = true;
this.attack_time = 50;
_root.play_soundAction("boss1_s");
} else {
_root.play_soundAction("boss1_d");
this.sport_zt = "death";
_root.kill_all();
this.attack_time = 500;
_root.UI.BossLife.gotoAndStop(temp.life + 1);
}
};
}
function beckon_enemy1() {
var _local4 = [59, 302, 510, 121, 296, 94, 195];
var _local5 = [218, 218, 218, 142, 142, 293, 59];
var _local2 = 0;
while (_local2 < (4 + _root.game_mode)) {
var _local3 = random(2) + 1;
if (leven > 4) {
_root["attach_enemy" + _local3](random(450) + 50, random(300) + 50);
} else {
_root["attach_enemy" + _local3](random(450) + 50, (random(300) + 50) - 2800);
}
_local2++;
}
_root.enemy_amount = _root.enemy_amount + (4 + _root.game_mode);
}
function shoot_bullet1() {
var _local2 = 7 + (_root.game_mode * 2);
if (_root.game_mode == 0) {
var _local5 = _local2 * 0.7071068;
_root.attach_bullet1(-_local5, -_local5);
_root.attach_bullet1(_local5, -_local5);
} else {
var _local3 = _local2 * 0.8660254;
var _local4 = _local2 * 0.5;
_root.attach_bullet1(_local3, -_local4);
_root.attach_bullet1(_local4, -_local3);
_root.attach_bullet1(-_local3, -_local4);
_root.attach_bullet1(-_local4, -_local3);
}
_root.attach_bullet1(0, -_local2);
_root.attach_bullet1(_local2, 0);
_root.attach_bullet1(-_local2, 0);
}
function attach_bullet1(speedx, speedy) {
var _local3 = boss_mc.attachMovie("bullet_fire", "bullet_fire" + boss_mc.getNextHighestDepth(), boss_mc.getNextHighestDepth());
_local3._x = boss_mc.BOSS1._x - (104 * (boss_mc.BOSS1._xscale / 100));
_local3._y = boss_mc.BOSS1._y - 70;
_local3.speedx = speedx;
_local3.speedy = speedy;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
var _local3 = _root.GetGlobalPlace(this);
if (this.hit.hitTest(player_mc.hit) && (!_root.player_mc.Method.act_on)) {
this.gotoAndPlay("boom");
_root.player_mc.Method.body_death();
delete this.onEnterFrame;
}
if ((((_local3.x < 0) || (_local3.x > 550)) || (_local3.y > 400)) || (_local3.y < 0)) {
this.removeMovieClip();
}
};
}
function attach_boss2(startx) {
var temp = boss_mc.attachMovie("BOSS2", "BOSS2", boss_mc.getNextHighestDepth());
boss_body = true;
if (leven > 4) {
temp._y = 370;
temp._x = startx;
} else {
temp._x = 730;
temp._y = -2830;
}
temp.gotoAndStop("walk");
temp.start_time = 150;
temp.attack_time = 60;
temp.attack_ZT = false;
temp.excite_num = 1;
if (temp._x > 200) {
temp.speed_move = -2.5 - (_root.game_mode * 0.5);
} else {
temp.speed_move = 2.5 + (_root.game_mode * 0.5);
temp._xscale = -100;
}
temp.sport_zt = "start";
temp.sport_now = "start";
temp.angry = false;
temp.turn_body = false;
temp.fist = false;
temp.life = 8 + (_root.game_mode * 2);
UI.BossLife.gotoAndStop(temp.life + 1);
temp.gotoAndStop(temp.sport_zt);
temp.redface = 0;
temp.redadd = 15;
temp.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (this.start_time > 0) {
if (!_root.pass_game) {
this.start_time--;
this._x = this._x + this.speed_move;
}
if (this.start_time == 1) {
this.start_time--;
this.sport_zt = "stand";
_root.play_music("sound5", true);
this.gotoAndStop(this.sport_zt);
}
return(undefined);
}
if (this.turn_body) {
this.turn_body = false;
this.attack_ZT = false;
this._xscale = this._xscale * -1;
this.speed_move = this.speed_move * -1;
return(undefined);
}
if (this.hit.hitTest(_root.player_mc.hit) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
if ((!this.attack_ZT) && ((this._x > 50) && (this._x < 500))) {
if (leven > 4) {
var _local3 = 2;
} else {
var _local3 = 0;
}
if (_root.enemy_amount <= _local3) {
this.sport_zt = "attack1";
} else {
this.sport_zt = "attack2";
}
_root.play_soundAction("boss2_a");
this.attack_ZT = true;
}
if (((this._x > 50) && (this._x < 500)) && (this.angry)) {
this.sport_zt = "attack3";
this.angry = false;
}
if (this.sport_zt == "attack1") {
if (this.sport_now != "attack1") {
this.sport_now = "attack1";
this.gotoAndStop("attack1");
_root.play_soundAction("callup");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.beckon_enemy2();
this.sport_zt = "walk";
}
} else if (this.sport_zt == "attack2") {
if (this.sport_now != "attack2") {
this.sport_now = "attack2";
this.gotoAndStop("attack2");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.shoot_bullet2();
if (_root.game_mode == 1) {
_root.shoot_bullet2();
}
this.sport_zt = "walk";
}
} else if (this.sport_zt == "attack3") {
if (this.sport_now != "attack3") {
this.sport_now = "attack3";
this.gotoAndStop("attack3");
}
if (this.mc._currentframe == 44) {
_root.trumble_screen(0, -4);
_root.Dorp_Rock();
this.sport_zt = "walk";
}
} else if (this.sport_zt == "death") {
if (this.sport_now != "death") {
this.sport_now = "death";
this.gotoAndStop("death");
}
if (((random(6) == 1) && (this.mc._currentframe > 20)) && (this.mc._currentframe < 90)) {
_root.attach_giving(this);
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.map_mc["M_map" + _root.sect].mc.play();
_root.map_mc["M_map" + _root.sect].mc2.gotoAndStop(2);
this.removeMovieClip();
if (leven > 4) {
attach_boss2(-50);
}
}
} else if (this.sport_zt == "walk") {
if (this.sport_now != "walk") {
this.sport_now = "walk";
this.gotoAndStop("walk");
temp_time = 0;
}
if (Math.abs(this.speed_move) > 4) {
this.redface = this.redface + this.redadd;
if ((this.redface <= 0) || (this.redface >= 150)) {
this.redadd = this.redadd * -1;
}
_root.body_suffer(this, this.redface);
this.mc.gotoAndPlay(this.mc._currentframe + 1);
}
temp_time++;
if (((temp_time >= 100) && (!this.angry)) && (this.life > 3)) {
temp_time = 0;
if (random(5) == 0) {
this.sport_zt = "wait";
}
}
this._x = this._x + this.speed_move;
if ((this._x < -150) && (this.speed_move < 0)) {
this.turn_body = true;
} else if ((this._x > 700) && (this.speed_move > 0)) {
this.turn_body = true;
}
} else if (this.sport_zt == "wait") {
if (this.sport_now != "wait") {
this.sport_now = "wait";
this.gotoAndStop("wait");
wait_time = random(40) + 50;
}
wait_time--;
if (wait_time <= 0) {
this.sport_zt = "walk";
}
} else if (this.sport_zt == "suffer") {
if (this.sport_now != "suffer") {
this.sport_now = "suffer";
this.gotoAndStop("suffer");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
this.sport_zt = "walk";
this.gotoAndStop("walk");
this.angry = true;
}
}
};
temp.suffer_attack = function () {
if (this.life > 1) {
this.life--;
if (leven <= 4) {
UI.BossLife.gotoAndStop(temp.life + 1);
}
this.fist = false;
this.sport_zt = "suffer";
this.attack_time = 50;
if (this.life == 3) {
this.speed_move = this.speed_move * 2;
}
_root.play_soundAction("boss2_s");
} else {
_root.play_soundAction("boss2_d");
this.sport_zt = "death";
UI.BossLife.gotoAndStop(1);
_root.kill_all();
this.attack_time = 500;
}
};
}
function beckon_enemy2() {
var _local4 = [66, 284, 500, 73, 197, 415, 110];
var _local5 = [216, 216, 216, 141, 68, 293, 293];
var _local2 = 0;
while (_local2 < (4 + _root.game_mode)) {
var _local3 = random(2) + 4;
if (leven > 4) {
_root["attach_enemy" + _local3](random(450) + 50, random(300) + 50);
} else {
_root["attach_enemy" + _local3](random(450) + 50, (random(300) + 50) - 3200);
}
_local2++;
}
_root.enemy_amount = _root.enemy_amount + (4 + _root.game_mode);
}
function shoot_bullet2() {
var _local4 = boss_mc.attachMovie("bullet_fire2", "bullet_fire" + boss_mc.getNextHighestDepth(), boss_mc.getNextHighestDepth());
_local4._x = boss_mc.BOSS2._x - (224 * (boss_mc.BOSS2._xscale / 100));
_local4._y = boss_mc.BOSS2._y - 15;
_local4.speedx = ((-((random(40) / 10) + 1)) * boss_mc.BOSS2._xscale) / 100;
_local4.speedy = -19;
_local4.landtotal = 0;
_local4.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
this.speedy = this.speedy + 0.6;
var _local3 = _root.GetGlobalPlace(this);
if (this.hit.hitTest(player_mc.hit)) {
_root.player_mc.Method.body_death();
}
if (_local3.y > 350) {
this.speedy = this.speedy * -0.95;
this.landtotal++;
}
if (((_local3.x < 0) || (_local3.x > 550)) && (this.landtotal < 10)) {
this.speedx = this.speedx * -1;
}
if (((((_local3.x < -50) || (_local3.x > 600)) || (_local3.y > 400)) || (_local3.y < 0)) || (boss_mc.BOSS2 == undefined)) {
this.removeMovieClip();
}
};
}
function Dorp_Rock() {
if (leven > 4) {
Rock_move(random(500) + 25, 0);
Rock_move(random(500) + 25, 0);
Rock_move(random(500) + 25, 0);
Rock_move(random(500) + 25, 0);
} else {
Rock_move(random(500) + 25, -3200);
Rock_move(random(500) + 25, -3200);
Rock_move(random(500) + 25, -3200);
Rock_move(random(500) + 25, -3200);
}
}
function Rock_move(placex, placey) {
var _local3 = boss_mc.attachMovie("down_rock", "down_rock" + boss_mc.getNextHighestDepth(), boss_mc.getNextHighestDepth());
_local3._x = placex;
_local3._y = placey;
_local3.speedx = 0;
_local3.speedy = 0;
_local3._xscale = (_local3._yscale = random(60) + 40);
_local3.strattime = 10;
_local3.Mox = 2;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (this.strattime > 0) {
this.strattime--;
if (((this.strattime % 3) == 2) || ((this.strattime % 3) == 0)) {
this.Mox = this.Mox * -1;
}
this._x = this._x + this.Mox;
return(undefined);
}
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
this.speedy = this.speedy + (0.2 + ((0.3 * this._xscale) / 100));
var _local3 = _root.GetGlobalPlace(this);
if (this.hit.hitTest(player_mc.hit) && (!_root.player_mc.Method.act_on)) {
this.play();
_root.player_mc.Method.body_death();
delete this.onEnterFrame;
}
if (((_local3.x < 0) || (_local3.x > 550)) || (_local3.y > 390)) {
this.play();
delete this.onEnterFrame;
}
};
}
function attach_boss3(startx) {
var temp = boss_mc.attachMovie("BOSS3", "BOSS3", boss_mc.getNextHighestDepth());
boss_body = true;
if (leven > 4) {
temp._y = 375;
temp._x = startx;
} else {
temp._x = 650;
temp._y = -3225;
}
temp.gotoAndStop("walk");
temp.start_time = 90;
temp.attack_time = 60;
temp.excite_num = 1;
if (temp._x > 200) {
temp.speed_move = -1.6 - (_root.game_mode * 0.5);
} else {
temp.speed_move = 1.6 + (_root.game_mode * 0.5);
temp._xscale = -100;
}
temp.sport_zt = "start";
temp.sport_now = "start";
temp.angry = false;
temp.turn_body = false;
temp.fist = false;
temp.life = 10 + (_root.game_mode * 4);
temp.gotoAndStop(temp.sport_zt);
temp.redface = 0;
temp.redadd = 15;
UI.BossLife.gotoAndStop(temp.life + 1);
temp.jumpx = 0;
temp.jumpy = 0;
temp.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (this.start_time > 0) {
if (!_root.pass_game) {
this.start_time--;
this._x = this._x + this.speed_move;
}
if (this.start_time == 1) {
this.start_time--;
this.sport_zt = "stand";
_root.play_music("sound5", true);
this.gotoAndStop(this.sport_zt);
}
return(undefined);
}
if (this.turn_body) {
if (this.sport_now != "turn") {
this.gotoAndStop("turn");
this.sport_now = "turn";
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
this.turn_body = false;
this._xscale = this._xscale * -1;
this.speed_move = this.speed_move * -1;
}
return(undefined);
}
if (this.hit.hitTest(_root.player_mc.hit) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
this.attack_time--;
if (this.attack_time <= 0) {
if (Math.abs(this.speed_move) > 2) {
this.attack_time = 200;
} else {
this.attack_time = 300;
}
if (leven > 4) {
var _local3 = 0;
var _local4 = 2;
} else {
var _local3 = 3600;
var _local4 = 0;
}
if ((_root.enemy_amount <= _local4) && (this._y == (375 - _local3))) {
this.sport_zt = "attack1";
} else {
this.sport_zt = "attack2";
}
_root.play_soundAction("boss3_a");
if (((this._x < 70) && (this._xscale > 0)) || ((this._x > 380) && (this._xscale < 0))) {
this.turn_body = true;
return(undefined);
}
}
if (_root.check_bossX(150 + (_root.game_mode * 50)) && (this.sport_zt == "walk")) {
this.sport_zt = "attack3";
if (attack_time > 50) {
attack_time = 50;
}
}
if (this.sport_zt == "attack1") {
if (this.sport_now != "attack1") {
this.sport_now = "attack1";
this.gotoAndStop("attack1");
_root.play_soundAction("callup");
}
if ((((this.mc._currentframe == 26) || (this.mc._currentframe == 30)) || (this.mc._currentframe == 32)) || (this.mc._currentframe == 34)) {
_root.attach_NPC(this);
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
this.sport_zt = "walk";
}
} else if (this.sport_zt == "attack2") {
if ((this.sport_now != "jump") && (this.sport_now != "attack2")) {
if (this.jumpy == 0) {
this.sport_now = "jump";
this.gotoAndStop("jump");
return(undefined);
}
this.sport_now = "attack2";
this.gotoAndStop("attack2");
this.jumpy = 0;
} else if ((this.sport_now == "jump") && (this.mc._currentframe == this.mc._totalframes)) {
this.sport_now = "attack2";
this.gotoAndStop("attack2");
this.jumpx = 0;
this.jumpy = -21;
}
if (this.sport_now == "attack2") {
this._x = this._x + this.jumpx;
this._y = this._y + this.jumpy;
this.jumpy = this.jumpy + 0.8;
if (leven > 4) {
var _local3 = 0;
} else {
var _local3 = 3600;
}
if (this._y > (375 - _local3)) {
this._y = 375 - _local3;
this.jumpx = 0;
this.jumpy = 0;
this.sport_zt = "walk";
return(undefined);
}
}
} else if (this.sport_zt == "attack3") {
if (this.sport_now != "attack3") {
this.sport_now = "attack3";
this.gotoAndStop("stand");
}
if (this._currentframe == 1) {
if (this.mc._currentframe == 10) {
this.gotoAndStop("attack2");
}
} else if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
this.sport_zt = "walk";
}
} else if (this.sport_zt == "death") {
if (this.sport_now != "death") {
this.sport_now = "death";
this.gotoAndStop("death");
}
if (((random(6) == 1) && (this.mc._currentframe > 20)) && (this.mc._currentframe < 90)) {
_root.attach_giving(this);
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.map_mc["M_map" + _root.sect].mc.play();
_root.map_mc["M_map" + _root.sect].mc2.gotoAndStop(2);
this.removeMovieClip();
if (leven > 4) {
attach_boss3(-50);
}
}
} else if (this.sport_zt == "walk") {
if (this.sport_now != "walk") {
this.sport_now = "walk";
this.gotoAndStop("walk");
temp_time = 0;
}
if (Math.abs(this.speed_move) > 2) {
this.redface = this.redface + this.redadd;
if ((this.redface <= 0) || (this.redface >= 150)) {
this.redadd = this.redadd * -1;
}
_root.body_suffer(this, this.redface);
this.mc.gotoAndPlay(this.mc._currentframe + 1);
}
temp_time++;
if (((temp_time >= 40) && (!this.angry)) && (Math.abs(this.speed_move) < 2)) {
temp_time = 0;
if (random(6) == 0) {
this.sport_zt = "wait";
}
}
this._x = this._x + this.speed_move;
if ((this._x < 50) && (this.speed_move < 0)) {
this.turn_body = true;
} else if ((this._x > 500) && (this.speed_move > 0)) {
this.turn_body = true;
}
} else if (this.sport_zt == "wait") {
if (this.sport_now != "wait") {
this.sport_now = "wait";
this.gotoAndStop("wait");
wait_time = random(40) + 50;
}
wait_time--;
if (wait_time <= 0) {
this.sport_zt = "walk";
}
} else if (this.sport_zt == "suffer") {
if (this.sport_now != "suffer") {
this.attack_time = 50;
this.sport_now = "suffer";
this.gotoAndStop("suffer");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
if (this.jumpy == 0) {
this.sport_zt = "stand";
this.gotoAndStop("stand");
} else {
this.sport_zt = "attack2";
this.attack_time = 100;
}
}
}
};
temp.suffer_attack = function () {
if (this.life > 1) {
this.life--;
if (leven <= 4) {
UI.BossLife.gotoAndStop(temp.life + 1);
}
this.fist = false;
this.sport_zt = "suffer";
this.angry = true;
if (this.life == 3) {
this.speed_move = this.speed_move * 2;
}
_root.play_soundAction("boss3_s");
} else {
_root.play_soundAction("boss3_d");
this.sport_zt = "death";
_root.kill_all();
this.attack_time = 500;
}
};
}
function beckon_enemy3(placex, placey) {
var _local2 = random(2) + 7;
_root["attach_enemy" + _local2](placex, placey);
_root.enemy_amount++;
}
function check_bossX(distance, faceto) {
if (((boss_mc.BOSS3._y - player_mc._y) < 80) && (!player_mc.Method.act_on)) {
var _local1 = ((-(boss_mc.BOSS3._x - player_mc._x)) * boss_mc.BOSS3._xscale) / 100;
if (faceto) {
if (Math.abs(_local1) < distance) {
return(true);
}
return(false);
}
if ((_local1 < 0) && (_local1 > (-distance))) {
return(true);
}
return(false);
}
return(false);
}
function attach_NPC(who) {
var _local5 = enemy_mc.attachMovie("wrap", "wrap" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local5._x = who._x - ((who._xscale / 100) * 80);
_local5._y = who._y - 35;
_local5.moveable = true;
_local5.movex = (random(120) / 10) + 6;
_local5.movex = _local5.movex * ((-who._xscale) / 100);
_local5.movey = -(random(15) + 12);
_local5.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
var _local4 = _root.GetGlobalPlace(this);
if ((_local4.x < -20) || (_local4.x > 570)) {
this.movex = this.movex * -1;
}
if ((this.movey > 0) && (this.moveable)) {
if (!map_mc.hitTest(_local4.x, _local4.y, true)) {
var _local3 = 0;
while (_local3 < this.movey) {
if (map_mc.hitTest(_local4.x, _local4.y + _local3, true)) {
this._y = this._y + _local3;
this.moveable = false;
_root.beckon_enemy3(this._x, this._y);
this.removeMovieClip();
}
_local3 = _local3 + 0.8;
}
}
}
if (this.moveable) {
this._x = this._x + this.movex;
this._y = this._y + this.movey;
this.movey = this.movey + 0.8;
}
if (this.hit.hitTest(player_mc.hit) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
};
}
function attach_boss4() {
var temp = boss_mc.attachMovie("BOSS4", "BOSS4", boss_mc.getNextHighestDepth());
boss_body = true;
if (leven > 4) {
temp._y = 404;
temp._x = 850;
} else {
temp._x = 550;
temp._y = -3196;
}
temp.gotoAndStop("stand");
temp.start_time = 90;
temp.attack_time = 60;
temp.excite_num = 1;
temp.speed_move = -1.6;
temp.sport_zt = "start";
temp.sport_now = "start";
temp.angry = false;
temp.turn_body = false;
temp.fist = false;
temp.life = 10 + (_root.game_mode * 4);
temp.redface = 0;
temp.redadd = 15;
UI.BossLife.gotoAndStop(temp.life + 1);
temp.attack_time2 = 0;
temp.gotoAndStop(temp.sport_zt);
temp.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (this._x > 555) {
this._x = this._x - 5;
return(undefined);
}
if (this.start_time > 0) {
if (!_root.pass_game) {
this.start_time--;
if ((this.start_time % 4) == 0) {
_root.trumble_screen(1);
}
var _local4 = 0;
while (_local4 < 100) {
var _local3 = this.mc2["a" + random(50)];
_root.dropbody(_local3);
if (!_local3.drop) {
break;
}
_local4++;
}
}
if (this.start_time == 1) {
this.start_time--;
this.sport_zt = "wait";
_root.play_music("sound5", true);
_root.map_mc.M_map9.rock.gotoAndStop(2);
this.gotoAndStop(this.sport_zt);
}
return(undefined);
}
if ((this.hit2.hitTest(_root.player_mc.hit) || (this.hit.hitTest(_root.player_mc.hit2))) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
this.attack_time--;
if (this.attack_time == 14) {
this.mc.play();
}
if (this.attack_time <= 0) {
this.attack_time = 300;
if (leven > 4) {
var _local5 = 2;
} else {
var _local5 = 0;
}
if (_root.enemy_amount <= _local5) {
trace((enemy_amount + ":") + _local5);
this.sport_zt = "attack1";
} else {
this.sport_zt = "attack2";
}
_root.play_soundAction("boss2_a");
}
if (this.life < 3) {
this.redface = this.redface + this.redadd;
if ((this.redface <= 0) || (this.redface >= 150)) {
this.redadd = this.redadd * -1;
}
_root.body_suffer(this, this.redface);
}
if (this.sport_zt == "attack1") {
if (this.sport_now != "attack1") {
this.sport_now = "attack1";
this.gotoAndStop("attack1");
_root.play_soundAction("callup");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.beckon_enemy4();
this.sport_zt = "wait";
}
} else if (this.sport_zt == "attack2") {
if (this.sport_now != "attack2") {
this.sport_now = "attack2";
this.gotoAndStop("attack2");
this.attack2_mode = random(4);
this.terandom = random(2) + 1;
if (this.attack2_mode == 0) {
this.attack_time2 = 200;
} else if (this.attack2_mode == 1) {
this.attack_time2 = 150;
} else if (this.attack2_mode == 2) {
this.attack_time2 = 150;
} else if (this.attack2_mode == 3) {
this.attack_time2 = 150;
}
}
this.attack_time2--;
if (this.attack2_mode == 0) {
if (this.attack_time2 == 150) {
attach_bullet4(90, this.terandom);
} else if (this.attack_time2 == 130) {
attach_bullet4(180, this.terandom);
} else if (this.attack_time2 == 110) {
attach_bullet4(270, this.terandom);
} else if (this.attack_time2 == 90) {
attach_bullet4(360, this.terandom);
} else if (this.attack_time2 == 70) {
attach_bullet4(450, this.terandom);
}
} else if (this.attack2_mode == 1) {
if (this.attack_time2 == 100) {
if (player_mc._x < 250) {
attach_bullet4(20, this.terandom);
} else {
attach_bullet4(380, this.terandom);
}
attach_bullet4(200, this.terandom);
} else if (this.attack_time2 == 70) {
if (player_mc._x < 250) {
attach_bullet4(110, this.terandom);
} else {
attach_bullet4(470, this.terandom);
}
attach_bullet4(290, this.terandom);
}
} else if (this.attack2_mode == 2) {
if (this.attack_time2 == 100) {
if (player_mc._x < 250) {
attach_bullet4(20, 1);
} else {
attach_bullet4(380, 1);
}
attach_bullet4(200, 1);
} else if (this.attack_time2 == 70) {
if (player_mc._x < 250) {
attach_bullet4(110, 2);
} else {
attach_bullet4(470, 2);
}
attach_bullet4(290, 2);
}
} else if (this.attack2_mode == 3) {
if (this.attack_time2 == 100) {
var _local3 = boss_mc.attachMovie("big_ball", "big_ball" + boss_mc.getNextHighestDepth(), boss_mc.getNextHighestDepth());
_local3._x = 275;
_local3._y = boss_mc.BOSS4._y - 200;
}
}
if (this.attack_time2 <= 0) {
this.mc.play();
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
this.sport_zt = "wait";
}
} else if (this.sport_zt == "death") {
if (this.sport_now != "death") {
this.sport_now = "death";
this.gotoAndStop("death");
}
if (((random(6) == 1) && (this.mc._currentframe > 20)) && (this.mc._currentframe < 90)) {
_root.attach_giving(this);
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
_root.map_mc["M_map" + _root.sect].mc.play();
_root.map_mc["M_map" + _root.sect].mc2.gotoAndStop(2);
this.removeMovieClip();
if (leven > 4) {
attach_boss4(-50);
}
}
} else if (this.sport_zt == "walk") {
if (this.sport_now != "walk") {
this.sport_now = "walk";
this.gotoAndStop("walk");
}
} else if (this.sport_zt == "wait") {
if (this.sport_now != "wait") {
this.sport_now = "wait";
this.gotoAndStop("wait");
wait_time = random(40) + 50;
}
wait_time--;
if (wait_time <= 0) {
this.sport_zt = "walk";
}
} else if (this.sport_zt == "suffer") {
if (this.sport_now != "suffer") {
this.sport_now = "suffer";
this.gotoAndStop("suffer");
}
if ((this.mc._currentframe == this.mc._totalframes) && (this.mc._currentframe > 1)) {
this.sport_zt = "stand";
this.gotoAndStop("stand");
}
}
};
temp.suffer_attack = function () {
this.attack_time2 = 0;
if (this.life > 1) {
this.life--;
if (leven <= 4) {
UI.BossLife.gotoAndStop(temp.life + 1);
}
this.fist = false;
this.sport_zt = "suffer";
this.angry = true;
this.attack_time = 50;
_root.play_soundAction("boss4_s");
} else {
_root.play_soundAction("boss2_d");
this.sport_zt = "death";
_root.kill_all();
this.attack_time = 500;
}
};
}
function beckon_enemy4() {
var _local4 = [49, 288, 81, 397, 182, 334, 68];
var _local5 = [137, 137, 222, 222, 297, 297, 54];
var _local2 = 0;
while (_local2 < 4) {
var _local3 = random(2) + 11;
if (leven > 4) {
_root["attach_enemy" + _local3](random(450) + 50, random(300) + 50);
} else {
_root["attach_enemy" + _local3](random(450) + 50, (random(300) + 50) - 3600);
}
_local2++;
}
_root.enemy_amount = _root.enemy_amount + 4;
}
function shoot_bullet4() {
attach_bullet4();
attach_bullet4();
attach_bullet4();
}
function attach_bullet4(placex, s_type) {
var _local3 = boss_mc.attachMovie("waterpillar", "waterpillar" + boss_mc.getNextHighestDepth(), boss_mc.getNextHighestDepth());
_local3._x = placex;
if (s_type == 2) {
_local3._y = boss_mc.BOSS4._y - 800;
_local3._yscale = -100;
} else {
_local3._y = boss_mc.BOSS4._y + 400;
}
_local3.aspect = "up";
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (this.hitTest(_root.player_mc.hit) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
var _local3 = _root.GetGlobalPlace(this);
if (s_type == 2) {
if (this.aspect == "up") {
if (_local3.y < -10) {
this._y = this._y + 7;
} else {
this.aspect = "down";
}
} else if (this.aspect == "down") {
this._y = this._y - 10;
}
if (_root.boss_mc.BOSS4.attack_time2 <= 0) {
this._y = this._y - 20;
}
if (_local3.y < -400) {
this.removeMovieClip();
}
} else {
if (this.aspect == "up") {
if (_local3.y > 410) {
this._y = this._y - 7;
} else {
this.aspect = "down";
}
} else if (this.aspect == "down") {
this._y = this._y + 10;
}
if (_root.boss_mc.BOSS4.attack_time2 <= 0) {
this._y = this._y + 20;
}
if (_local3.y > 810) {
this.removeMovieClip();
}
}
};
}
function dropbody(who) {
who.drop = true;
who.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
who._y = who._y + 8;
};
}
function shoot_bullet4_2() {
var _local4 = 6;
var _local2 = _local4 * 0.8660254;
var _local3 = _local4 * 0.5;
_root.attach_bullet4_2(_local2, -_local3);
_root.attach_bullet4_2(_local3, -_local2);
_root.attach_bullet4_2(-_local2, -_local3);
_root.attach_bullet4_2(-_local3, -_local2);
_root.attach_bullet4_2(_local2, _local3);
_root.attach_bullet4_2(_local3, _local2);
_root.attach_bullet4_2(-_local2, _local3);
_root.attach_bullet4_2(-_local3, _local2);
_root.attach_bullet4_2(0, -_local4);
_root.attach_bullet4_2(0, _local4);
_root.attach_bullet4_2(_local4, 0);
_root.attach_bullet4_2(-_local4, 0);
}
function attach_bullet4_2(speedx, speedy) {
var _local3 = boss_mc.attachMovie("small_ball", "small_ball" + boss_mc.getNextHighestDepth(), boss_mc.getNextHighestDepth());
_local3._x = 275;
_local3._y = boss_mc.BOSS4._y - 200;
_local3.speedx = speedx;
_local3.speedy = speedy;
_local3.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
var _local3 = _root.GetGlobalPlace(this);
if (this.hit.hitTest(player_mc.hit) && (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
if ((((_local3.x < 0) || (_local3.x > 550)) || (_local3.y > 400)) || (_local3.y < 0)) {
this.removeMovieClip();
}
};
}
function play_soundAction(what, cyc, time) {
if (this[what] == undefined) {
this[what] = new Sound();
this[what].attachSound(what);
}
if (game_sounds) {
if (!cyc) {
this[what].stop(what);
if (time != undefined) {
this[what].start(time, 1);
} else {
this[what].start();
}
} else {
this[what].start(0, 999);
}
}
}
function stop_soundAction(what) {
this[what].stop(what);
}
function play_music(what, cyc) {
if (this[what] == undefined) {
this[what] = new Sound();
this[what].attachSound(what);
}
if (game_music) {
if (now_music != what) {
now_music = what;
stopAllSounds();
if (!cyc) {
this[what].start();
} else {
this[what].start(0, 999);
}
}
}
}
var run = false;
var bg_mc;
var map_mc;
var player_mc;
var enemy_mc;
var object_mc;
var boss_mc;
var boss_body = false;
var life;
var lifelife = 2;
var score;
var leven;
var sect;
var mam_ping;
var pause_all;
var pass_game;
var kill_boss;
var enemy_amount;
var enemy_work = false;
var fall_space = 0;
var game_music = true;
var game_sounds = true;
var sound_all = false;
var now_music = new Sound();
var bj = new Sound();
_root.bj.setVolume(100);
var game_mode = 1;
var start_placex = [48, 48, 48, 48, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247];
var start_placey = [375, 375, 375, 375, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214];
var max_move1 = [0, 400, 800, 1200, 1600, 2000, 2400, 2800];
var min_move1 = [0, 400, 800, 1200, 1600, 2000, 2400, 2800];
var max_move2 = [0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200];
var min_move2 = [0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200];
var max_move3 = [0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 3600];
var min_move3 = [0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 3600];
var max_move4 = [0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 3600];
var min_move4 = [0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 3600];
max_move5 = (max_move6 = (max_move7 = (max_move8 = (max_move9 = (max_move10 = max_move1)))));
min_move5 = (min_move6 = (min_move7 = (min_move8 = (min_move9 = (min_move10 = min_move1)))));
var colour_egg = new Array();
var dropMC;
var Lcode = 37;
var Rcode = 39;
var Ucode = 38;
var Dcode = 40;
var Scode = 70;
var Scode_press = false;
var Ucode_press = false;
var Dcode_press = false;
var min_screen_y = 300;
var max_screen_y = 230;
var screen_movespeed_y = 20;
var play_act_on_time;
var all_enemy_amount;
_quality = "HIGH";
var debug = true;
var gameID = 311;
var gameName = "ghostfighter";
stop();
fscommand ("showmenu", "false");
prel.onEnterFrame = function () {
prel.procent.text = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) > 99) {
play();
delete this.onEnterFrame;
}
};
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local3 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local2 = _local6;
var _local7 = String(_local4).length;
while (_local2 < String(_local4).length) {
_local3 = _local4.charAt(_local2);
if (_local3 == ".") {
break;
}
_local5 = _local5 + _local3;
_local2++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 2
stop();
Frame 3
if (!okToPlay) {
gotoAndStop (2);
}
Frame 4
var score = 0;
var max_score = 0;
initialization();
this.gotoAndStop("startgame");
_quality = "HIGH";
Frame 15
bu1.onRelease = function () {
play_soundAction("shoot");
_root.game_mode = 0;
_root.gotoAndStop("initial");
bu1.enabled = false;
bu2.enabled = false;
bu3.enabled = false;
bu4.enabled = false;
};
bu2.onRelease = function () {
play_soundAction("shoot");
bu1.enabled = false;
bu3.enabled = false;
bu4.enabled = false;
mc.play();
};
bu3.onRelease = function () {
play_soundAction("shoot");
bu1.enabled = false;
bu2.enabled = false;
bu3.enabled = false;
bu4.enabled = false;
addthis.gotoAndPlay(2);
};
bu4.onRelease = function () {
play_soundAction("shoot");
bu1.enabled = false;
bu2.enabled = false;
bu3.enabled = false;
bu4.enabled = false;
scoreboard.gotoAndPlay(2);
};
play_music("sound2", true);
var temp_test;
Instance of Symbol 2068 MovieClip in Frame 15
on (release) {
getURL ("http://www.freeonlinegames.com/?" + _root.gameName, "_blank");
}
Frame 34
start_game();
_quality = "LOW";
Frame 43
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
playmore_btn.onRelease = function () {
getURL ("http://www.freeonlinegames.com/?" + _root.gameName, "_blank");
};
submitMe.Score = _root.score;
var i = 1;
while (i < 10) {
if (i > String(score).length) {
this["NO" + i].gotoAndStop(1);
} else {
this["NO" + i].gotoAndStop(Number(String(score).charAt(String(score).length - i)) + 1);
}
i++;
}
Instance of ? "submitMe" in Frame 43
//component parameters
onClipEvent (construct) {
btnMC = "submitScore";
gameID = 311;
}
Frame 54
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
trace(_root.score);
playmore_btn.onRelease = function () {
getURL ("http://www.freeonlinegames.com/?" + _root.gameName, "_blank");
};
submitMe.Score = _root.score;
var i = 1;
while (i < 10) {
if (i > String(score).length) {
this["NO" + i].gotoAndStop(1);
} else {
this["NO" + i].gotoAndStop(Number(String(score).charAt(String(score).length - i)) + 1);
}
i++;
}
Instance of ? "submitMe" in Frame 54
//component parameters
onClipEvent (construct) {
btnMC = "submitScore";
gameID = 311;
}
Frame 63
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
_quality = "HIGH";
Frame 71
getURL ("");
Frame 76
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
_quality = "HIGH";
Frame 89
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
_quality = "HIGH";
Frame 102
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
Symbol 97 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?" + _root.gameName, "_blank");
}
Symbol 158 MovieClip Frame 1
stop();
var tagctr = (random(55) + 1);
gotoAndStop(tagctr);
Symbol 159 MovieClip Frame 105
stop();
Symbol 163 MovieClip Frame 1
_root.earl223 = function (val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
};
Symbol 170 MovieClip Frame 1
stop();
Symbol 2199 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 2 MovieClip Frame 1
this._visible = false;
Symbol 55 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 55 MovieClip Frame 42
stop();
Symbol 56 MovieClip Frame 1
this._visible = false;
stop();
Symbol 56 MovieClip Frame 2
this._visible = false;
Symbol 56 MovieClip Frame 3
this._visible = false;
Symbol 56 MovieClip Frame 4
this._visible = false;
Symbol 56 MovieClip Frame 5
this._visible = false;
Symbol 57 MovieClip Frame 1
setout = true;
Symbol 57 MovieClip Frame 16
stop();
setout = false;
_parent.hitArea.gotoAndStop(3);
Symbol 57 MovieClip Frame 20
stop();
Symbol 94 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 95 MovieClip [enemy7] Frame 1
stop();
Symbol 2191 MovieClip [__Packages.as.BasicMove] Frame 0
class as.BasicMove extends MovieClip
{
var this_body, hit_map, speed, act_on, jumpx, bodyArray, jumpy;
function BasicMove (attribute) {
super();
attribute.s_body.Method = this;
this_body = attribute.s_body;
hit_map = attribute.s_map;
speed = attribute.s_speed;
act_on = false;
}
function MoveBody(aspect) {
if (!ctrl_able) {
return(undefined);
}
if (sport_zt == "turn") {
if (this_body.mc._currentframe != this_body.mc._totalframes) {
return(undefined);
}
}
if (((sport_zt != "walk") && (sport_zt != "jump")) && (sport_zt != "attack")) {
sport_zt = "walk";
this_body.gotoAndStop("walk");
}
var _local3 = false;
if ((this_body.body_type == "PLA") && (sport_zt != "jump")) {
}
if (aspect == "L") {
if (sport_zt == "jump") {
if (check_brink(jumpx)) {
TurnBody();
jumpx = 0;
return(undefined);
}
jumpx = -3;
if (this_body._xscale == 100) {
this_body._xscale = -100;
}
} else {
if (check_brink(-speed)) {
TurnBody();
return(undefined);
}
if (check_land(-speed)) {
TurnBody();
return(undefined);
}
if (this_body._xscale == 100) {
if (!this_body.Method.attack_zt) {
sport_zt = "turn";
this_body.gotoAndStop("turn");
}
this_body._xscale = -100;
return(undefined);
}
if (!shoot_zt) {
if (_local3) {
} else {
this_body._x = this_body._x - speed;
for (var _local2 in bodyArray) {
if (bodyArray[_local2].Method.languishment_distinction == bodyArray[_local2].Method.languishment_max) {
bodyArray[_local2].Method.this_body._x = this_body._x - speed;
bodyArray[_local2].Method.this_body._y = this_body._y;
}
}
}
}
}
} else if (aspect == "R") {
if (sport_zt == "jump") {
if (check_brink(jumpx)) {
TurnBody();
jumpx = 0;
return(undefined);
}
jumpx = 3;
if (this_body._xscale == -100) {
this_body._xscale = 100;
}
} else {
if (check_brink(speed)) {
TurnBody();
return(undefined);
}
if (check_land(speed)) {
TurnBody();
return(undefined);
}
if (this_body._xscale == -100) {
if (!this_body.Method.attack_zt) {
sport_zt = "turn";
this_body.gotoAndStop("turn");
}
this_body._xscale = 100;
return(undefined);
}
if (!shoot_zt) {
if (_local3) {
} else {
this_body._x = this_body._x + speed;
for (var _local2 in bodyArray) {
if (bodyArray[_local2].Method.languishment_distinction == bodyArray[_local2].Method.languishment_max) {
bodyArray[_local2].Method.this_body._x = this_body._x + speed;
bodyArray[_local2].Method.this_body._y = this_body._y;
}
}
}
}
}
}
}
function JumpBody(power) {
if (!ctrl_able) {
return(undefined);
}
if (!jump_able) {
return(undefined);
}
sport_zt = "jump";
jumpy = power;
jump_able = false;
if (((!this_body.Method.mud_roll) && (!this_body.Method.attack_zt)) && ((!this_body.Method.languishment_distinction) > 0)) {
this_body.gotoAndStop("jump");
}
if (this_body.body_type == "PLA") {
if (power < 0) {
_root.play_soundAction("jump", false, 0);
} else {
_root.play_soundAction("down_s", false, 0);
}
}
if (this_body.jump_mc == undefined) {
this_body.createEmptyMovieClip("jump_mc", this_body.getNextHighestDepth());
}
var enemyBodyArray = bodyArray;
this_body.jump_mc.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if (this._parent.Method.body_deadface) {
return(undefined);
}
var _local4 = new Object();
_local4.x = this._x;
_local4.y = this._y;
this._parent.localToGlobal(_local4);
if (this._parent.Method.jumpy > 0) {
if (!this._parent.Method.hit_map.hitTest(_local4.x, _local4.y, true)) {
var _local5 = this._parent.Method.jumpy / 10;
if (_local5 > 1) {
_local5 = 1;
}
if ((this._parent.Method.GetGlobalPlace().y > 0) && (this._parent.Method.GetGlobalPlace().y < 400)) {
if (this._parent.Method.mud_roll) {
var _local6 = 20;
} else {
var _local6 = Math.ceil(this._parent.Method.jumpy + 2);
}
var _local3 = 0;
while (_local3 < _local6) {
if (this._parent.Method.hit_map.hitTest(_local4.x, _local4.y + _local3, true)) {
this._parent.Method.jump_able = true;
this._parent.Method.jumpy = 0;
this._parent.Method.jumpx = 0;
this._parent.Method.sport_zt = "walk";
if ((((!this._parent.Method.mud_roll) && (this._parent.Method.ctrl_able)) && (!this._parent.Method.attack_zt)) && ((!this._parent.Method.languishment_distinction) > 0)) {
this._parent.gotoAndStop("walk");
}
this._parent._y = this._parent._y + _local3;
if (this._parent.Method.ctrl_screen_able) {
this._parent.Method.ctrl_screen();
}
if (this._parent.body_type == "PLA") {
_root.play_soundAction("drop", false, 0.05);
}
delete this.onEnterFrame;
return(undefined);
}
_local3 = _local3 + _local5;
}
}
}
}
this._parent._y = this._parent._y + this._parent.Method.jumpy;
for (var _local7 in enemyBodyArray) {
if (enemyBodyArray[_local7].Method.languishment_distinction == enemyBodyArray[_local7].Method.languishment_max) {
enemyBodyArray[_local7].Method.this_body._y = this._parent._y;
}
}
if (((this._parent.body_type == "NPC") || (this._parent.body_type == "FLY")) && (this._parent.Method.GetGlobalPlace().y > 420)) {
this._parent._y = -this._parent.Method.screen_obj._y;
this._parent.Method.jumpy = -3;
}
if ((this._parent.body_type == "PLA") && (this._parent.Method.GetGlobalPlace().y > 420)) {
this._parent._y = -this._parent.Method.screen_obj._y;
}
if (!(this._parent.Method.hit_map.hitTest(_local4.x + this._parent.Method.jumpx, _local4.y, true) && (!this._parent.Method.hit_map.hitTest(_local4.x, _local4.y + 2, true)))) {
this._parent.Method.check_brink(this._parent.Method.jumpx);
this._parent._x = this._parent._x + this._parent.Method.jumpx;
for (var _local7 in enemyBodyArray) {
if (enemyBodyArray[_local7].Method.languishment_distinction == enemyBodyArray[_local7].Method.languishment_max) {
enemyBodyArray[_local7].Method.this_body._x = this._parent._x;
}
}
this._parent.Method.jumpx = this._parent.Method.jumpx * 0.98;
} else {
this._parent.Method.TurnBody();
}
if (this._parent._x > (this.brink_max - 5)) {
this._parent._x = this.brink_max;
} else if (this._parent._x < (this.brink_min + 5)) {
this._parent._x = this.brink_min;
}
if (this._parent.Method.jumpy < 15) {
this._parent.Method.jumpy = this._parent.Method.jumpy + this._parent.Method.acceleration;
}
if (this._parent.Method.ctrl_screen_able) {
this._parent.Method.ctrl_screen();
}
};
}
function StandBody() {
if (!ctrl_able) {
return(undefined);
}
if (sport_zt != "stand") {
sport_zt = "stand";
this_body.gotoAndStop("stand");
for (var _local2 in bodyArray) {
bodyArray[_local2].Method.this_body._x = this_body._x;
bodyArray[_local2].Method.this_body._y = this_body._y;
}
}
}
function RestBody() {
if (!ctrl_able) {
return(undefined);
}
}
function check_land(addnum) {
if (!ctrl_able) {
return(undefined);
}
var _local4 = new Object();
_local4.x = this_body._x + addnum;
_local4.y = this_body._y;
this_body._parent.localToGlobal(_local4);
if (hit_map.hitTest(_local4.x, _local4.y, true)) {
var _local5 = true;
var _local3 = 0;
while (_local3 < 30) {
if (!hit_map.hitTest(_local4.x, _local4.y - _local3, true)) {
this_body._y = this_body._y - (_local3 - 1);
_local5 = false;
break;
}
_local3++;
}
return(_local5);
}
var _local5 = true;
var _local3 = 0;
while (_local3 < 15) {
if (hit_map.hitTest(_local4.x, _local4.y + _local3, true)) {
this_body._y = this_body._y + _local3;
_local5 = false;
break;
}
_local3++;
}
if (_local5) {
if ((this_body.body_type == "NPC") && ((!_root.enemy_work) || (((!this_body.Method.mud_roll) && (random(10) > 3)) && (!this_body.attach_turn_able)))) {
if (this_body.Method.mud_roll) {
JumpBody(5);
} else {
TurnBody();
}
} else if (this_body.Method.mud_roll) {
jumpx = 0;
JumpBody(5);
} else {
JumpBody(0);
}
}
}
function check_brink(addx) {
if (((this_body._x + addx) > brink_max) && (addx > 0)) {
this_body._x = brink_max;
return(true);
}
if (((this_body._x + addx) < brink_min) && (addx < 0)) {
this_body._x = brink_min;
return(true);
}
return(false);
}
function TurnBody() {
if (this_body.body_type == "NPC") {
if (this_body.Method.mud_roll) {
_root.play_soundAction("santa_kick");
_root.trumble_screen(3, 0);
this_body.Method.roll_hit++;
if (this_body.Method.roll_hit >= 5) {
this_body.Method.mud_boom();
}
}
if (this_body.move_way == "L") {
this_body.move_way = "R";
} else {
this_body.move_way = "L";
}
} else if (this_body.body_type == "FLY") {
if (this_body.Method.mud_roll) {
_root.trumble_screen(3, 0);
_root.play_soundAction("santa_kick");
this_body.Method.roll_hit++;
if (this_body.Method.roll_hit >= 5) {
this_body.Method.mud_boom();
}
}
if (this_body.move_way == "L") {
this_body.move_way = "R";
this_body.Method.fly_x = this_body.Method.fly_x * -1;
} else {
this_body.move_way = "L";
this_body.Method.fly_x = this_body.Method.fly_x * -1;
}
} else {
return(undefined);
}
}
function check_pate_land() {
var _local3 = new Object();
_local3.x = this_body._x;
_local3.y = this_body._y;
this_body._parent.localToGlobal(_local3);
var _local2 = 0;
while (_local2 < 60) {
if (hit_map.hitTest(_local3.x, (_local3.y - _local2) - 30, true)) {
return(true);
}
_local2++;
}
return(false);
}
var sport_zt = "stand";
var shoot_zt = false;
var pause_body = false;
var ctrl_able = true;
var enter_frame = false;
var jump_able = true;
var acceleration = 0.9;
var brink_min = 10;
var brink_max = 670;
var move_able = true;
var add_speed = 0;
}
Symbol 2192 MovieClip [__Packages.as.EnemyObject] Frame 0
class as.EnemyObject extends as.BasicMove
{
var shoot_aim, screen_obj, isBall, attackTime, ctrl_able, sport_zt, this_body, check_brink, fly_x, TurnBody, fly_y, JumpBody, landuishment_time, move_able, jumpy, jumpx, speed, check_land;
function EnemyObject (attribute) {
super(attribute);
attribute.s_body.Method = this;
shoot_aim = attribute.s_shoot_aim;
screen_obj = attribute.s_body._parent._parent;
isBall = false;
attackTime = 0;
}
function body_fly() {
if (!ctrl_able) {
return(undefined);
}
if (sport_zt == "turn") {
if (this_body.mc._currentframe != this_body.mc._totalframes) {
return(undefined);
}
}
if ((sport_zt != "walk") && (sport_zt != "attack")) {
sport_zt = "walk";
this_body.gotoAndStop("walk");
}
if (check_brink(fly_x)) {
TurnBody();
return(undefined);
}
if (((this_body._xscale == 100) && (this_body.move_way == "L")) || ((this_body._xscale == -100) && (this_body.move_way == "R"))) {
if (!this_body.Method.attack_zt) {
sport_zt = "turn";
this_body.gotoAndStop("turn");
}
this_body._xscale = this_body._xscale * -1;
return(undefined);
}
if (((GetGlobalPlace().y < 50) && (fly_y < 0)) || ((GetGlobalPlace().y > 350) && (fly_y > 0))) {
fly_y = fly_y * -1;
if (this_body.attack_time != 0) {
this_body.attack_time = 0;
fly_x = 3 * (fly_x / Math.abs(fly_x));
fly_y = ((-random(20)) / 10) - 1;
if (fly_x > 0) {
this_body.move_way = "R";
this_body._xscale = 100;
}
if (fly_x < 0) {
this_body.move_way = "L";
this_body._xscale = -100;
}
}
this_body.gotoAndStop("walk");
}
this_body._x = this_body._x + fly_x;
this_body._y = this_body._y + fly_y;
}
function body_recovery() {
if (languishment_distinction > 0) {
return(undefined);
}
sport_zt = "recovery";
act_on = false;
this_body.gotoAndStop("recovery");
}
function attack_aim() {
if (languishment_distinction > 0) {
return(undefined);
}
if (this_body.hit.hitTest(shoot_aim.hit) && (!shoot_aim.Method.act_on)) {
shoot_aim.Method.body_death();
}
}
function body_languishment(power) {
if (!act_on) {
return(undefined);
}
if ((languishment_distinction == 0) && (this_body.body_type == "FLY")) {
JumpBody(20);
}
landuishment_time = landuishment_cast_time;
var _local2 = getTimer();
if ((languishment_distinction < languishment_max) && ((_local2 - attackTime) > 200)) {
attackTime = _local2;
languishment_distinction = languishment_distinction + 1;
if (languishment_distinction >= languishment_max) {
languishment_distinction = languishment_max;
this_body.body._visible = false;
this_body.body.gotoAndStop(1);
this_body.mud.gotoAndPlay("n" + languishment_distinction);
isBall = true;
}
if (this_body.mud == undefined) {
var _local3 = this_body.attachMovie("mudMC", "mud", this_body.getNextHighestDepth());
_local3._y = -33;
}
this_body.mud.gotoAndPlay("n" + languishment_distinction);
}
}
function check_languishment() {
if (languishment_distinction > 0) {
move_able = false;
this_body.gotoAndStop("death");
landuishment_time--;
if (languishment_distinction == languishment_max) {
this_body.body._visible = false;
}
if (landuishment_time <= 0) {
if (languishment_distinction == languishment_max) {
this_body.body._visible = true;
}
landuishment_time = landuishment_cast_time;
languishment_distinction = 0;
if (this_body.mud._rotation != 0) {
this_body.mud._rotation = 0;
}
}
if (languishment_distinction == 0) {
this_body.mud.removeMovieClip();
this_body.gotoAndStop("walk");
move_able = true;
}
}
}
function move_mud(aspect) {
if (!ctrl_able) {
return(undefined);
}
if (stop_time > 0) {
stop_time--;
return(undefined);
}
if (!mud_roll) {
trace(mud_roll);
}
for (var _local3 in this_body._parent) {
if (this_body._parent[_local3] != this_body) {
if (this_body.hit.hitTest(this_body._parent[_local3].hit)) {
_root.play_soundAction("dead1", false, 0);
this_body._parent[_local3].Method.body_mud_hit();
stop_time = 4;
jumpy = 0;
kill_body++;
}
}
}
if (_root.boss_body) {
if (this_body.hit.hitTest(_root.boss_mc.BOSS1.hit)) {
_root.boss_mc.BOSS1.suffer_attack();
mud_boom();
} else if (this_body.hit.hitTest(_root.boss_mc.BOSS2.hit)) {
_root.boss_mc.BOSS2.suffer_attack();
mud_boom();
} else if (this_body.hit.hitTest(_root.boss_mc.BOSS3.hit)) {
_root.boss_mc.BOSS3.suffer_attack();
mud_boom();
} else if (this_body.hit.hitTest(_root.boss_mc.BOSS4.hit)) {
_root.boss_mc.BOSS4.suffer_attack();
mud_boom();
}
}
if (aspect == "L") {
this_body.body._rotation = this_body.body._rotation - ((25 * this_body._xscale) / 100);
this_body.mud._rotation = this_body.mud._rotation - ((25 * this_body._xscale) / 100);
if (sport_zt == "jump") {
if (check_brink(jumpx)) {
TurnBody();
jumpx = 10;
return(undefined);
}
jumpx = -10;
} else {
if (check_brink(-speed)) {
if (GetGlobalPlace().y > 350) {
roll_hit++;
}
TurnBody();
return(undefined);
}
if (check_land(-speed)) {
TurnBody();
return(undefined);
}
this_body._x = this_body._x - speed;
}
} else if (aspect == "R") {
this_body.body._rotation = this_body.body._rotation + ((25 * this_body._xscale) / 100);
this_body.mud._rotation = this_body.mud._rotation + ((25 * this_body._xscale) / 100);
if (sport_zt == "jump") {
if (check_brink(jumpx)) {
TurnBody();
jumpx = -10;
return(undefined);
}
jumpx = 10;
} else {
if (check_brink(speed)) {
if (GetGlobalPlace().y > 350) {
roll_hit++;
}
TurnBody();
return(undefined);
}
if (check_land(speed)) {
TurnBody();
return(undefined);
}
this_body._x = this_body._x + speed;
}
}
}
function mudball_roll(way) {
mud_roll = true;
ctrl_able = true;
speed = 15;
}
function mud_boom() {
ctrl_able = false;
delete this_body.jump_mc.onEnterFrame;
this_body._parent.attachMovie("boom", "boom", this_body._parent.getNextHighestDepth(), {_x:this_body._x, _y:this_body._y - 40});
_root.play_soundAction("mudboom", false, 0.3);
_root.GetScore(100 * kill_body);
if ((kill_body == (_root.all_enemy_amount - 1)) && (!_root.boss_body)) {
_root.enemy_amount++;
_root.attach_bigark();
} else {
var _local3 = ((kill_body * 4) + random(21)) + 1;
if (_local3 > 21) {
_local3 = random(10) + 11;
}
_root.attach_giving(this_body, _local3);
}
this_body.removeMovieClip();
}
function check_playX(distance, faceto) {
if (((!shoot_aim.Method.act_on) && (Math.abs(this_body._y - shoot_aim._y) < 5)) && (languishment_distinction == 0)) {
var _local2 = ((this_body._x - shoot_aim._x) * this_body._xscale) / 100;
if (faceto) {
if (Math(_local2) < distance) {
return(true);
}
return(false);
}
if ((_local2 < 0) && (_local2 > (-distance))) {
return(true);
}
return(false);
}
return(false);
}
function GetGlobalPlace() {
var _local2 = new Object();
_local2.x = this_body._x;
_local2.y = this_body._y;
this_body._parent.localToGlobal(_local2);
return(_local2);
}
function body_mud_hit() {
ctrl_able = false;
_root.enemy_amount--;
this_body.mud.removeMovieClip();
delete this_body.onEnterFrame;
this_body.sport_zt = "remove";
_root.attach_giving(this_body);
_root.GetScore(100);
this_body.gotoAndStop("remove");
}
var shoot_able = true;
var act_on = true;
var languishment_distinction = 0;
var languishment_max = 7;
var landuishment_cast_time = 130;
var lanshment_time = 200;
var mud_roll = false;
var roll_hit = 0;
var attack_zt = false;
var stop_time = 0;
var kill_body = 0;
}
Symbol 2193 MovieClip [__Packages.as.PlayerObject] Frame 0
class as.PlayerObject extends as.BasicMove
{
var shoot_aim, screen_obj, bodyArray, shoot_zt, this_body, min_move, max_move, act_on, ctrl_able, jumpy;
function PlayerObject (attribute) {
super(attribute);
attribute.s_body.Method = this;
shoot_aim = attribute.s_aim;
screen_obj = attribute.s_screen_obj;
bodyArray = new Array();
}
function ShootMud() {
if (!shoot_able) {
return(undefined);
}
if (shoot_zt) {
if (this_body.mc._currentframe >= 7) {
this_body.mc.gotoAndPlay(1);
}
} else {
this_body.gotoAndStop("shoot");
}
shoot_zt = true;
}
function attackFun(hit) {
var shoot_aim_mc = shoot_aim;
var _local5 = shoot_might;
var eArray = bodyArray;
if (_root.run) {
} else {
this_body.gotoAndStop("shoot");
}
hit.onEnterFrame = function () {
for (var _local4 in shoot_aim_mc) {
if (shoot_aim_mc[_local4] != this) {
if (hit.hitTest(shoot_aim_mc[_local4].hit)) {
var _local3 = 0;
while (_local3 < eArray.length) {
if (eArray[_local3] == shoot_aim_mc[_local4]) {
return(undefined);
}
_local3++;
}
shoot_aim_mc[_local4].Method.body_languishment(1);
_root.play_soundAction("disappear", false, 0.2);
if (shoot_aim_mc[_local4].Method.isBall == true) {
eArray[eArray.length] = shoot_aim_mc[_local4];
trace(eArray.length);
}
}
}
}
};
}
function attackOver(hit1) {
var _local5 = shoot_aim;
_root.run = false;
for (var _local4 in bodyArray) {
var _local3 = bodyArray[0];
if (_local3.Method.languishment_distinction == _local3.Method.languishment_max) {
this_body.gotoAndStop("push");
_local3.mud.gotoAndStop("e7");
trace(_local3.mud._currentframe);
_local3.Method.isBall = false;
_local3.Method.mudball_roll();
if (this_body._xscale == 100) {
trace(_local3.move_way);
_local3.move_way = "R";
} else if (this_body._xscale == -100) {
trace(_local3.move_way);
_local3.move_way = "L";
}
bodyArray.splice(0, 1);
}
}
}
function GetGlobalPlace() {
var _local2 = new Object();
_local2.x = this_body._x;
_local2.y = this_body._y;
this_body._parent.localToGlobal(_local2);
return(_local2);
}
function ctrl_screen() {
var _local3 = GetGlobalPlace();
if ((_local3.y > max_screen_y) && (screen_obj._y > min_move)) {
if ((_local3.y - max_screen_y) > screen_movespeed_y) {
screen_obj._y = screen_obj._y - screen_movespeed_y;
} else {
screen_obj._y = screen_obj._y - (_local3.y - max_screen_y);
}
}
if ((_local3.y < min_screen_y) && (screen_obj._y < max_move)) {
if ((min_screen_y - _local3.y) > screen_movespeed_y) {
screen_obj._y = screen_obj._y + screen_movespeed_y;
} else {
screen_obj._y = screen_obj._y + (min_screen_y - _local3.y);
}
}
if (((screen_obj._y < min_move) && ((min_move - screen_obj._y) < 30)) && (!_root.pass_game)) {
screen_obj._y = min_move;
}
if (screen_obj._y > max_move) {
screen_obj._y = max_move;
}
screen_obj.bgMC._y = screen_obj._y * (-_root.fall_space);
}
function body_death() {
if (act_on) {
return(undefined);
}
for (var _local4 in bodyArray) {
var _local3 = bodyArray[0];
_local3.Method.attackTime = getTimer() + 2000;
_local3.Method.landuishment_time = 0;
_local3.Method.isBall = false;
bodyArray.splice(0, 1);
trace(bodyArray.length);
}
_root.play_soundAction("player_dead_s", false, 0.05);
act_on = true;
shoot_able = false;
body_deadface = true;
ctrl_able = false;
shoot_zt = false;
jumpy = 0;
this_body.gotoAndStop("death");
}
var shoot_able = true;
var shoot_might = 1;
var ctrl_screen_able = true;
var min_screen_y = 300;
var max_screen_y = 230;
var screen_movespeed_y = 10;
var body_deadface = false;
}
Instance of Symbol 185 MovieClip "mcNotice" in Symbol 222 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 222 MovieClip Frame 120
stop();
if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.play();
} else if (_root.debug) {
_root.okToPlay = true;
_root.play();
} else {
_root.mcTaglines._visible = false;
mcNotice._visible = true;
}
Symbol 223 MovieClip Frame 71
stop();
var fogsound = new Sound();
fogsound.attachSound("fogaudio");
fogsound.start(0, 1);
Symbol 260 MovieClip Frame 1
stop();
Symbol 263 MovieClip [kkkkkkk] Frame 1
stop();
Symbol 264 MovieClip Frame 1
this._visible = false;
Symbol 332 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 332 MovieClip Frame 42
stop();
Symbol 335 MovieClip Frame 5
stop();
Symbol 337 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 338 MovieClip [enemy4] Frame 1
stop();
Symbol 366 MovieClip [L_bg1] Frame 1
stop();
Symbol 382 MovieClip Frame 1
this.gotoAndStop(_root.leven);
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 33
stop();
this.onEnterFrame = function () {
if (this.hit.hitTest(_root.player_mc.hit)) {
if (_root.leven > 4) {
_root.pass_leven4();
} else {
_root.pass_leven();
}
delete this.onEnterFrame;
play();
}
};
Symbol 387 MovieClip Frame 34
stop();
Symbol 409 MovieClip Frame 12
gotoAndPlay ("loop");
Symbol 425 MovieClip Frame 1
_parent.Method.attackOver(hit1);
stop();
Symbol 425 MovieClip Frame 2
stop();
_parent.Method.attackFun(hit);
Symbol 455 MovieClip Frame 47
_parent.gotoAndStop(1);
Symbol 469 MovieClip Frame 4
Symbol 469 MovieClip Frame 11
stop();
Symbol 470 MovieClip Frame 17
_parent.Method.shoot_able = true;
_parent.Method.ctrl_able = true;
_parent.Method.sport_zt = "stand";
_parent.gotoAndStop(1);
Symbol 494 MovieClip Frame 16
_root.player_death();
Symbol 502 MovieClip [L_player] Frame 1
stop();
Symbol 525 MovieClip [mud1] Frame 1
stop();
Symbol 525 MovieClip [mud1] Frame 11
this.removeMovieClip();
Symbol 525 MovieClip [mud1] Frame 23
this.removeMovieClip();
Symbol 603 MovieClip Frame 28
gotoAndPlay ("tag");
Symbol 604 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 604 MovieClip Frame 40
stop();
Symbol 605 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 606 MovieClip [enemy1] Frame 1
stop();
Symbol 645 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 645 MovieClip Frame 42
stop();
Symbol 646 MovieClip Frame 7
stop();
Symbol 647 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 648 MovieClip [enemy2] Frame 1
stop();
Symbol 678 MovieClip Frame 37
stop();
Symbol 697 MovieClip Frame 26
_parent.removeMovieClip();
Symbol 698 MovieClip [enemy3] Frame 1
stop();
Symbol 735 MovieClip [boom] Frame 5
_root.effect1(this, this._x, this._y);
Symbol 735 MovieClip [boom] Frame 32
_root.enemy_amount--;
Symbol 735 MovieClip [boom] Frame 70
this.removeMovieClip();
Symbol 762 MovieClip [mud_mass] Frame 22
this.removeMovieClip();
Symbol 781 MovieClip [land_grass] Frame 10
this.removeMovieClip();
Symbol 827 MovieClip [mudMC] Frame 1
var playrestrict = true;
Symbol 827 MovieClip [mudMC] Frame 4
stop();
Symbol 827 MovieClip [mudMC] Frame 8
stop();
Symbol 827 MovieClip [mudMC] Frame 12
stop();
Symbol 827 MovieClip [mudMC] Frame 16
stop();
Symbol 827 MovieClip [mudMC] Frame 20
stop();
Symbol 827 MovieClip [mudMC] Frame 23
stop();
Symbol 827 MovieClip [mudMC] Frame 29
stop();
Symbol 827 MovieClip [mudMC] Frame 30
stop();
Symbol 878 MovieClip Frame 1
stop();
Symbol 887 MovieClip [giving] Frame 2
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 3
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 4
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 5
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 6
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 7
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 8
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 9
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 10
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 11
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 12
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 13
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 14
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 15
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 16
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 17
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 18
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 19
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 20
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 21
lifenum = 2;
Symbol 887 MovieClip [giving] Frame 22
lifenum = 10;
Symbol 887 MovieClip [giving] Frame 23
timenum = 10;
Symbol 887 MovieClip [giving] Frame 24
speednum = 1;
Symbol 887 MovieClip [giving] Frame 25
speednum = 0.5;
Symbol 887 MovieClip [giving] Frame 26
speednum = 0.5;
Symbol 887 MovieClip [giving] Frame 27
scorenum = 100 * (_currentframe - 1);
Symbol 887 MovieClip [giving] Frame 28
scorenum = 1000;
Symbol 887 MovieClip [giving] Frame 30
scorenum = 10000;
Symbol 887 MovieClip [giving] Frame 31
scorenum = 20000;
Symbol 887 MovieClip [giving] Frame 32
scorenum = 30000;
Symbol 887 MovieClip [giving] Frame 33
scorenum = 40000;
Symbol 934 MovieClip Frame 1
if (!_root.pass_game) {
_root.trumble_screen(0, 2);
}
Symbol 934 MovieClip Frame 19
if (!_root.pass_game) {
_root.trumble_screen(0, 2);
}
Symbol 948 MovieClip Frame 1
this._visible = false;
Symbol 965 MovieClip Frame 5
_parent.hit.gotoAndStop(2);
Symbol 965 MovieClip Frame 26
stop();
_parent.hit.gotoAndStop(3);
_parent.fist = true;
Symbol 965 MovieClip Frame 35
stop();
Symbol 990 MovieClip Frame 110
stop();
Symbol 1005 MovieClip Frame 93
_root.attach_giving(_parent, 30);
Symbol 1005 MovieClip Frame 137
stop();
Symbol 1049 MovieClip [bullet_fire] Frame 1
stop();
Symbol 1049 MovieClip [bullet_fire] Frame 12
this.removeMovieClip();
Symbol 1078 MovieClip Frame 1
stop();
Symbol 1078 MovieClip Frame 2
stop();
Symbol 1078 MovieClip Frame 3
stop();
Instance of Symbol 1078 MovieClip in Symbol 1102 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.lifelife);
}
Symbol 1107 MovieClip Frame 1
stop();
Symbol 1145 MovieClip Frame 1
stop();
Symbol 1179 MovieClip [prelude] Frame 51
if (this.Type == 1) {
_root.gameMC.removeMovieClip();
_root.UI.removeMovieClip();
_root.passgame();
}
_root.player_kiss.removeMovieClip();
Symbol 1179 MovieClip [prelude] Frame 100
this.removeMovieClip();
Symbol 1226 MovieClip Frame 6
stop();
Symbol 1231 MovieClip Frame 19
gotoAndPlay (10);
Symbol 1233 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1233 MovieClip Frame 42
stop();
Symbol 1235 MovieClip Frame 28
stop();
Symbol 1237 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1238 MovieClip [enemy5] Frame 1
stop();
Symbol 1242 MovieClip [mouse_bullet] Frame 1
stop();
Symbol 1242 MovieClip [mouse_bullet] Frame 16
this.removeMovieClip();
Symbol 1270 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1270 MovieClip Frame 42
stop();
Symbol 1271 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1272 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1273 MovieClip Frame 1
this._visible = false;
Symbol 1273 MovieClip Frame 2
this._visible = false;
Symbol 1286 MovieClip Frame 12
_parent.hit2.gotoAndStop(2);
Symbol 1287 MovieClip [enemy6] Frame 1
stop();
Symbol 1343 MovieClip Frame 5
if (!_root.pass_game) {
_root.trumble_screen(0, 1);
}
Symbol 1343 MovieClip Frame 21
if (!_root.pass_game) {
_root.trumble_screen(0, 1);
}
Symbol 1363 MovieClip Frame 60
_root.attach_giving(_parent, 31);
Symbol 1387 MovieClip [down_rock] Frame 1
stop();
Symbol 1387 MovieClip [down_rock] Frame 5
this.removeMovieClip();
Symbol 1422 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1422 MovieClip Frame 42
stop();
Symbol 1434 MovieClip Frame 7
_parent.hit2.gotoAndStop(2);
Symbol 1434 MovieClip Frame 10
_parent.hit2.gotoAndStop(1);
Symbol 1434 MovieClip Frame 21
_parent.hit2.gotoAndStop(3);
Symbol 1434 MovieClip Frame 26
_parent.hit2.gotoAndStop(4);
Symbol 1434 MovieClip Frame 30
_parent.hit2.gotoAndStop(5);
Symbol 1434 MovieClip Frame 33
stop();
Symbol 1435 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1436 MovieClip [enemy11] Frame 1
stop();
Symbol 1460 MovieClip Frame 1
setout = true;
Symbol 1460 MovieClip Frame 9
setout = false;
Symbol 1474 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1474 MovieClip Frame 42
stop();
Symbol 1485 MovieClip Frame 18
_parent.hit.gotoAndStop(4);
Symbol 1485 MovieClip Frame 31
_parent.hit.gotoAndStop(1);
Symbol 1485 MovieClip Frame 34
stop();
Symbol 1486 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1487 MovieClip [enemy8] Frame 1
stop();
Symbol 1522 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1522 MovieClip Frame 42
stop();
Symbol 1523 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1524 MovieClip Frame 1
stop();
Symbol 1549 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1549 MovieClip Frame 42
stop();
Symbol 1550 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1551 MovieClip Frame 1
this._visible = false;
stop();
Symbol 1551 MovieClip Frame 2
this._visible = false;
Symbol 1562 MovieClip Frame 13
stop();
Symbol 1563 MovieClip [enemy12] Frame 1
stop();
Symbol 1578 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1578 MovieClip Frame 42
stop();
Symbol 1579 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1585 MovieClip Frame 1
stop();
Symbol 1686 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1686 MovieClip Frame 2
stop();
this._visible = false;
Symbol 1694 MovieClip Frame 1
_parent.hit.gotoAndStop(1);
Symbol 1694 MovieClip Frame 5
_parent.hit.gotoAndStop(2);
Symbol 1694 MovieClip Frame 12
_parent.hit.gotoAndStop(1);
Symbol 1694 MovieClip Frame 19
_parent.hit.gotoAndStop(2);
Symbol 1694 MovieClip Frame 26
_parent.hit.gotoAndStop(1);
Symbol 1710 MovieClip Frame 61
_root.attach_giving(_parent, 32);
Symbol 1718 MovieClip Frame 10
stop();
Symbol 1725 MovieClip Frame 1
stop();
Symbol 1738 MovieClip Frame 30
stop();
Symbol 1750 MovieClip Frame 52
_root.attach_giving(_parent, 33);
Symbol 1750 MovieClip Frame 84
stop();
Symbol 1751 MovieClip [BOSS4] Frame 11
stop();
Symbol 1793 MovieClip Frame 1
stop();
Symbol 1804 MovieClip [L_map4] Frame 10
rock._visible = false;
Symbol 1820 MovieClip [mud2] Frame 1
stop();
Symbol 1820 MovieClip [mud2] Frame 11
this.removeMovieClip();
Symbol 1820 MovieClip [mud2] Frame 23
this.removeMovieClip();
Symbol 1835 MovieClip [mud3] Frame 1
stop();
Symbol 1835 MovieClip [mud3] Frame 11
this.removeMovieClip();
Symbol 1835 MovieClip [mud3] Frame 23
this.removeMovieClip();
Symbol 1849 MovieClip [mask3] Frame 8
_root.create_stage();
Symbol 1849 MovieClip [mask3] Frame 96
this.removeMovieClip();
Symbol 1871 MovieClip Frame 1
gotoAndStop(_root.leven);
Symbol 1872 MovieClip [mask2] Frame 18
_root.create_stage();
Symbol 1872 MovieClip [mask2] Frame 70
this.removeMovieClip();
Symbol 1888 MovieClip Frame 1
stop();
Symbol 1892 MovieClip [timeovermc] Frame 40
_root.gameover();
this.removeMovieClip();
Symbol 1895 MovieClip [bigark] Frame 48
stop();
Symbol 1935 MovieClip [big_ball] Frame 55
_root.shoot_bullet4_2();
Symbol 1935 MovieClip [big_ball] Frame 77
this.removeMovieClip();
Symbol 1991 MovieClip [player_kiss] Frame 1
_root.dropleaves(bg);
Symbol 1991 MovieClip [player_kiss] Frame 62
gotoAndPlay (10);
Symbol 1992 MovieClip Frame 25
stop();
Symbol 2009 MovieClip Frame 29
stop();
Symbol 2075 MovieClip Frame 1
addmore_btn.onRelease = function () {
getURL ("http://www.freegamesforyourwebsite.com/?" + _root.gameName, "_blank");
};
Symbol 2079 MovieClip Frame 1
stop();
Symbol 2079 MovieClip Frame 15
stop();
Instance of Symbol 2078 MovieClip in Symbol 2079 MovieClip Frame 15
on (release) {
_root.bu1.enabled = true;
_root.bu2.enabled = true;
_root.bu3.enabled = true;
_root.bu4.enabled = true;
_parent.gotoAndPlay(16);
}
Symbol 2090 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 2091 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 2098 MovieClip Frame 1
stop();
Symbol 2098 MovieClip Frame 2
stop();
Symbol 2108 MovieClip [TMP6pbk6uzm9i] Frame 1
var arrScore = new Array();
mcScoreboard.sboard.dir = "stop";
mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false;
mcLabel._visible = false;
var main = this;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
main.mcScoreboard.mcLoading._visible = false;
main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length;
main.mcScoreboard.sboard.mcScoreHolder.speedy = 0;
main.mcScoreboard.sboard.mcScoreHolder.desty = 0;
main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
};
xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + gameID) + "&rand=") + random(999999)) + "&filt=1");
Instance of Symbol 2108 MovieClip [TMP6pbk6uzm9i] in Symbol 2110 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
gameID = 311;
}
Symbol 2111 MovieClip Frame 1
stop();
Symbol 2111 MovieClip Frame 10
stop();
Instance of Symbol 2078 MovieClip in Symbol 2111 MovieClip Frame 10
on (press) {
_root.bu1.enabled = true;
_root.bu2.enabled = true;
_root.bu3.enabled = true;
_root.bu4.enabled = true;
_parent.gotoAndPlay(16);
}
Instance of Symbol 2078 MovieClip in Symbol 2114 MovieClip Frame 1
on (press) {
_root.bu1.enabled = true;
_root.bu2.enabled = true;
_root.bu3.enabled = true;
_root.bu4.enabled = true;
_parent._parent.gotoAndPlay(16);
}
Symbol 2115 MovieClip Frame 1
stop();
Symbol 2115 MovieClip Frame 15
stop();
Symbol 2125 MovieClip Frame 1
gotoAndStop(_root.leven);
Symbol 2126 MovieClip Frame 65
_root.start_mask2();
Symbol 2126 MovieClip Frame 86
stop();
Symbol 2127 MovieClip Frame 71
_root.start_mask2();
Symbol 2127 MovieClip Frame 84
stop();
Symbol 2128 MovieClip Frame 60
_root.start_mask2();
Symbol 2128 MovieClip Frame 88
stop();
Symbol 2129 MovieClip Frame 52
_root.start_mask2();
Symbol 2129 MovieClip Frame 62
stop();
Symbol 2130 MovieClip Frame 1
gotoAndStop(_root.leven);
_root.play_music("sound5", true);
Symbol 2175 MovieClip Frame 56
stop();
Symbol 2198 Button
on (release) {
_global.ipbSend();
stop();
}
Symbol 2141 MovieClip [TMPd4lzhusf84] Frame 1
function earl223(val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
}
mcButtonMain.mcButton.FOG.swapDepths(0);
mcButtonMain.mcButton.attachMovie(btnMC, "btnMC", 0);
mcButtonMain.mcButton.btnMC.onRelease = function () {
var _local2 = new LoadVars();
_local2.onLoad = function () {
getURL ("http://www.freeonlinegames.com/scoreboard.php?", "_blank");
};
_local2.score = Score;
_local2.score2 = earl223(String(Score));
_local2.gamer = gameID;
_local2.id = random(9999999);
_local2.toString();
_local2.sendAndLoad("http://www.freeonlinegames.com/scoreboard/score_c.php", _local2, "POST");
delete this.onRelease;
};
Symbol 2180 MovieClip Frame 2
stop();