Frame 1
function initialization() {
leven = 1;
sect = 0;
mam_ping = 1;
life = 10;
pause_all = false;
pass_game = true;
score = 0;
game_sounds = true;
}
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 = 550;
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 _local3 = Math.floor(this["min_move" + leven][sect] / 400);
var _local4 = Math.ceil(this["max_move" + leven][sect] / 400);
var _local2 = _local3;
while (_local2 <= _local4) {
if (!map_mc["L_map" + leven]) {
var _local5 = map_mc.attachMovie("L_map" + leven, "M_map" + _local2, map_mc.getNextHighestDepth());
_local5._y = -400 * _local2;
_local5.gotoAndStop(_local2 + 1);
}
_local2++;
}
_local2 = 0;
while (_local2 < (_local3 - 1)) {
map_mc["M_map" + _local2].removeMovieClip();
_local2++;
}
_local3 = Math.floor((this["min_move" + leven][sect] * (1 - fall_space)) / 400);
_local4 = Math.ceil((this["max_move" + leven][sect] * (1 - fall_space)) / 400);
_local2 = _local3;
while (_local2 <= _local4) {
if (!map_mc["L_bg" + leven]) {
var _local5 = bg_mc.attachMovie("L_bg" + leven, "M_bg" + _local2, bg_mc.getNextHighestDepth());
_local5._y = -400 * _local2;
_local5.gotoAndStop(_local2 + 1);
}
_local2++;
}
_local2 = 0;
while (_local2 < _local3) {
bg_mc["M_bg" + _local2].removeMovieClip();
_local2++;
}
} else {
map_mc.attachMovie("L_map5", "M_map", map_mc.getNextHighestDepth());
var _local5 = bg_mc.attachMovie("L_bg" + (random(4) + 1), "M_bg", bg_mc.getNextHighestDepth());
_local5.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) or ((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") and (_local1.y < min_screen_y)) and (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) and (enemy_amount == 0)) and (!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 _local2 = 0;
while (_local2 < 15) {
var _local1 = who.attachMovie("mud_mass", "mud_mass" + who.getNextHighestDepth(), who.getNextHighestDepth());
_local1.gotoAndStop(random(10) + 1);
drop_something(_local1, (random(160) / 10) - 8, -random(10));
_local2++;
}
}
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) or (_local3.x > 550)) or (_local3.y > 400)) {
this.removeMovieClip();
}
if ((this._y > 0) and 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) and (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 _local10 = random(150 - Math.floor(score / 10000));
} else {
var _local10 = random(100);
}
if (_local10 < 70) {
var _local7 = (random(20) + 1) + random((leven - 1) * 2);
if (_local7 > 21) {
_local7 = random(10) + 11;
}
_local4.gotoAndStop(_local7);
} else {
_local4.gotoAndStop(random(8) + 21);
}
if ((_local4._currentframe == 22) and (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) and (!this.moveable)) {
if (((Math.abs(_root.player_mc._y - this._y) < 20) and (Math.abs(_root.player_mc._x - this._x) < 60)) and (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) or (_local4.x > 570)) or (_local4.y > 450)) {
this.removeMovieClip();
}
if (this.hit.hitTest(player_mc.hit)) {
if (this.scorenum != undefined) {
if ((this._currentframe > 15) and (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("\u52A0\u5206\u5F69\u86CB");
_root.colour_egg = [1, 1, 1, 1, 1];
_root.GetAwardScore(1000, this._x, this._y - 30);
} else {
_root.play_soundAction("prop_s1", false, 0);
_root.GetAwardScore(this.scorenum, this._x, this._y - 30);
}
} else {
_root.play_soundAction("prop_s1", false, 0);
_root.GetAwardScore(this.scorenum, this._x, this._y - 30);
}
} else if (this.lifenum != undefined) {
_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) {
_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) {
_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) {
_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) and 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) or (GetGlobalPlace(this).x > 540)) {
this.movex = this.movex * -1;
}
if ((GetGlobalPlace(this).y < 0) and (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 _local5 = 1;
var _local4 = 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 or (_root.leven > 4)) {
return(undefined);
}
timed++;
if (gametime <= 5) {
this.redface = this.redface + this.redadd;
if ((this.redface <= 0) or (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) and 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 () {
_root.attachMovie("player_kiss", "player_kiss", _root.getNextHighestDepth());
_root.player_kiss._x = 275;
_root.player_kiss._y = 200;
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) and (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 = 550;
_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) and (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) or (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) and (!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 = 550;
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) and 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)) {
if (!Scode_press) {
player_mc.Method.ShootMud();
Scode_press = true;
}
} else {
Scode_press = false;
}
if (Key.isDown(Lcode)) {
player_mc.Method.MoveBody("L");
} else if (Key.isDown(Rcode)) {
player_mc.Method.MoveBody("R");
} else if ((player_mc.Method.sport_zt == "walk") or (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 and (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) {
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 {
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("end");
UI.time_to_score();
}
function attach_enemy1(startx, starty) {
var _local3 = enemy_mc.attachMovie("enemy1", "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.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) and 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") and this.Method.move_able) and (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 _local3 = enemy_mc.attachMovie("enemy2", "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 + (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) and 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") and 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 _local3 = enemy_mc.attachMovie("enemy3", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
if (boss_body) {
_local3.starttime = 15 + random(5);
} else {
_local3.starttime = random(3) + 3;
}
_local3.gotoAndStop("birth");
_local3.body_type = "FLY";
_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 + (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.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 == 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) and (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") and 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) and 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() and (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) and (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 90) and (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)) and (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") and 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 _local3 = enemy_mc.attachMovie("enemy5", "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.onEnterFrame = function () {
if (_root.pause_all) {
return(undefined);
}
if ((this.starttime == 1) and 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() and (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) and (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 60) and (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") and this.Method.move_able) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
this.Method.MoveBody(this.move_way);
}
};
_local3.shoot_bullet = function (startx, starty, aspect) {
var _local4 = enemy_mc.attachMovie("mouse_bullet", "mouse_bullet" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local4._x = startx;
_local4._y = starty;
_local4.movex = (8 * aspect) + (_root.game_mode * 1);
_local4.movey = -3 - (_root.game_mode * 1);
_local4.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) and (!player_mc.Method.act_on)) {
this.gotoAndPlay("boom");
_root.player_mc.Method.body_death();
delete this.onEnterFrame;
}
if (((_local3.x < 0) or (_local3.x > 550)) or (_local3.y > 400)) {
this.removeMovieClip();
}
if ((this.movey > 7) and 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 _local3 = enemy_mc.attachMovie("enemy6", "enemy" + enemy_mc.getNextHighestDepth(), enemy_mc.getNextHighestDepth());
_local3._x = startx;
_local3._y = starty;
if (boss_body) {
_local3.starttime = 15 + random(10);
} else {
_local3.starttime = random(3) + 3;
}
_local3.gotoAndStop("birth");
_local3.body_type = "FLY";
_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.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 == 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) and (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) and (!_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") and 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) and 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() and (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) and (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 90) and (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) and (!_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)) and (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") and 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) and 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() and (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) and (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 90) and (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) and (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") and this.Method.move_able) {
if (!this.Method.act_on) {
this.Method.act_on = true;
}
if ((!this.Method.attack_zt) and (!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 _local4 = new Object();
_local4.s_body = _local3;
_local4.s_map = map_mc;
_local4.s_shoot_aim = player_mc;
_local4.s_speed = 2;
new as.EnemyObject(_local4);
_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 _local5 = 5;
var _local4 = 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) / _local4;
this.Method.fly_y = ((player_mc._y - this._y) * _local5) / _local4;
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) and (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") and this.Method.move_able) and (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) and 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() and (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) and (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 90) and (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) and (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") and 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) and 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() and (_local4 == 1)) {
this.Method.JumpBody(-12.3);
}
if ((this.Method.GetGlobalPlace().y < 350) and (_local4 == 2)) {
this.Method.JumpBody(4);
}
this.feedback_time = 60;
}
} else if ((_local3 > 150) and (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)) and (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") and 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 _local3 = enemy_mc.attachMovie("enemy12", "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 _local4 = new Object();
_local4.s_body = _local3;
_local4.s_map = map_mc;
_local4.s_shoot_aim = player_mc;
_local4.s_speed = 2;
new as.EnemyObject(_local4);
_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(5);
if (!_root.enemy_work) {
_local3 = 10;
}
if (_local3 == 0) {
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) and (_local3 <= 5)) and (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 _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;
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") and this.Method.move_able) and (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_enemy3(51, -248);
enemy_amount = 4;
} else if (s_sect == 2) {
attach_enemy3(285, -782);
attach_enemy1(136, -745);
attach_enemy1(418, -748);
attach_enemy2(286, -504);
enemy_amount = 4;
} else if (s_sect == 3) {
attach_enemy2(273, -907);
attach_enemy1(500, -905);
attach_enemy1(35, -905);
attach_enemy2(315, -1148);
attach_enemy3(62, -1139);
enemy_amount = 5;
} else if (s_sect == 4) {
attach_enemy2(78, -1303);
attach_enemy1(383, -1226);
attach_enemy2(485, -1304);
attach_enemy2(76, -1469);
attach_enemy2(406, -1547);
attach_enemy3(309, -1461);
enemy_amount = 6;
} else if (s_sect == 5) {
attach_enemy1(292, -1781);
attach_enemy2(47, -1869);
attach_enemy3(289, -1870);
attach_enemy2(508, -1869);
attach_enemy2(286, -1628);
attach_enemy3(438, -1789);
enemy_amount = 6;
} else if (s_sect == 6) {
attach_enemy1(417, -2027);
attach_enemy2(57, -2269);
attach_enemy3(168, -2338);
attach_enemy2(77, -2183);
attach_enemy3(181, -2112);
attach_enemy3(334, -2229);
enemy_amount = 6;
} 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_enemy4(446, 294);
enemy_amount = 4;
} else if (s_sect == 1) {
attach_enemy4(40, -186);
attach_enemy4(497, -185);
attach_enemy5(130, -345);
attach_enemy6(272, -277);
enemy_amount = 4;
} else if (s_sect == 2) {
attach_enemy6(434, -757);
attach_enemy6(97, -752);
attach_enemy5(71, -584);
attach_enemy5(439, -586);
attach_enemy4(524, -506);
enemy_amount = 5;
} else if (s_sect == 3) {
attach_enemy5(95, -903);
attach_enemy5(429, -904);
attach_enemy6(70, -1143);
attach_enemy6(474, -1143);
enemy_amount = 4;
} else if (s_sect == 4) {
attach_enemy6(215, -1524);
attach_enemy5(280, -1381);
attach_enemy4(142, -1303);
attach_enemy6(348, -1524);
enemy_amount = 4;
} else if (s_sect == 5) {
attach_enemy6(273, -1850);
attach_enemy5(119, -1859);
attach_enemy4(264, -1702);
attach_enemy5(263, -1938);
enemy_amount = 4;
} else if (s_sect == 6) {
attach_enemy5(172, -2029);
attach_enemy5(366, -2029);
attach_enemy5(158, -2187);
attach_enemy5(404, -2187);
attach_enemy5(273, -2255);
enemy_amount = 5;
} else if (s_sect == 7) {
attach_enemy6(104, -2745);
attach_enemy6(447, -2745);
attach_enemy6(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);
enemy_amount = 4;
} else if (s_sect == 1) {
attach_enemy8(65, -186);
attach_enemy8(496, -186);
attach_enemy7(373, -109);
attach_enemy7(289, -265);
enemy_amount = 4;
} else if (s_sect == 2) {
attach_enemy7(382, -586);
attach_enemy7(179, -586);
attach_enemy9(261, -672);
attach_enemy8(112, -508);
attach_enemy8(430, -508);
enemy_amount = 5;
} else if (s_sect == 3) {
attach_enemy8(38, -1063);
attach_enemy8(450, -1065);
attach_enemy7(235, -1065);
attach_enemy8(287, -980);
attach_enemy9(163, -934);
enemy_amount = 5;
} else if (s_sect == 4) {
attach_enemy8(274, -1389);
attach_enemy7(70, -1308);
attach_enemy7(500, -1308);
attach_enemy9(75, -1438);
attach_enemy9(477, -1453);
enemy_amount = 5;
} else if (s_sect == 5) {
attach_enemy9(59, -1925);
attach_enemy9(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_enemy7(432, -2101);
attach_enemy7(284, -2263);
attach_enemy7(278, -2030);
attach_enemy9(280, -2162);
enemy_amount = 5;
} else if (s_sect == 7) {
attach_enemy9(146, -2651);
attach_enemy9(425, -2651);
attach_enemy9(280, -2555);
attach_enemy8(472, -2512);
attach_enemy8(133, -2512);
enemy_amount = 5;
} else if (s_sect == 8) {
attach_enemy9(157, -3065);
attach_enemy9(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_enemy10(532, 368);
attach_enemy11(486, 208);
attach_enemy10(67, 127);
attach_enemy11(406, 288);
enemy_amount = 4;
} else if (s_sect == 1) {
attach_enemy10(500, -269);
attach_enemy11(354, -109);
attach_enemy10(67, -273);
attach_enemy11(207, -112);
attach_enemy10(267, -273);
enemy_amount = 5;
} else if (s_sect == 2) {
attach_enemy10(500, -669);
attach_enemy10(67, -673);
attach_enemy11(319, -512);
attach_enemy10(304, -593);
attach_enemy12(290, -679);
enemy_amount = 5;
} else if (s_sect == 3) {
attach_enemy10(532, -985);
attach_enemy10(27, -985);
attach_enemy10(304, -993);
attach_enemy12(521, -1072);
attach_enemy12(145, -1079);
enemy_amount = 5;
} else if (s_sect == 4) {
attach_enemy10(285, -1346);
attach_enemy12(356, -1479);
attach_enemy12(216, -1479);
attach_enemy11(132, -1386);
attach_enemy11(429, -1386);
enemy_amount = 5;
} else if (s_sect == 5) {
attach_enemy10(285, -1712);
attach_enemy12(356, -1879);
attach_enemy12(216, -1879);
attach_enemy11(486, -1863);
attach_enemy11(279, -1787);
enemy_amount = 5;
} 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_enemy12(93, -2583);
attach_enemy12(281, -2640);
attach_enemy4(336, -2509);
attach_enemy2(101, -2503);
enemy_amount = 6;
} else if (s_sect == 8) {
attach_enemy9(124, -3069);
attach_enemy6(444, -3087);
attach_enemy3(293, -3005);
attach_enemy7(49, -2899);
attach_enemy5(497, -2904);
attach_enemy1(275, -2821);
attach_enemy8(348, -2905);
enemy_amount = 7;
} 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 = 5;
} 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) and (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) and (!_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) and (this._xscale > 0)) or ((this._x > 300) and (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) and (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) and (this._x < 150)) or ((this._xscale < 0) and (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) and (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) and (this.mc._currentframe > 20)) and (this.mc._currentframe < 90)) {
_root.attach_giving(this);
}
if ((this.mc._currentframe == this.mc._totalframes) and (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) and (!this.angry)) {
temp_time = 0;
if (random(3) == 0) {
this.sport_zt = "wait";
}
}
this._x = this._x + this.speed_move;
if ((this._x < 50) and (this.speed_move < 0)) {
this.turn_body = true;
} else if ((this._x > 500) and (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) and (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 _local5 = [59, 302, 510, 121, 296, 94, 195];
var _local4 = [218, 218, 218, 142, 142, 293, 59];
var _local3 = 0;
while (_local3 < (4 + _root.game_mode)) {
var _local2 = random(3) + 1;
if (leven > 4) {
_root["attach_enemy" + _local2](random(450) + 50, random(300) + 50);
} else {
_root["attach_enemy" + _local2](random(450) + 50, (random(300) + 50) - 2800);
}
_local3++;
}
_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 _local3 = _local2 * 0.707106773305449;
_root.attach_bullet1(-_local3, -_local3);
_root.attach_bullet1(_local3, -_local3);
} else {
var _local5 = _local2 * 0.866025400069253;
var _local4 = _local2 * 0.50000000643489;
_root.attach_bullet1(_local5, -_local4);
_root.attach_bullet1(_local4, -_local5);
_root.attach_bullet1(-_local5, -_local4);
_root.attach_bullet1(-_local4, -_local5);
}
_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) and (!_root.player_mc.Method.act_on)) {
this.gotoAndPlay("boom");
_root.player_mc.Method.body_death();
delete this.onEnterFrame;
}
if ((((_local3.x < 0) or (_local3.x > 550)) or (_local3.y > 400)) or (_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) and (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
if ((!this.attack_ZT) and ((this._x > 50) and (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) and (this._x < 500)) and 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) and (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) and (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) and (this.mc._currentframe > 20)) and (this.mc._currentframe < 90)) {
_root.attach_giving(this);
}
if ((this.mc._currentframe == this.mc._totalframes) and (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) or (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) and (!this.angry)) and (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) and (this.speed_move < 0)) {
this.turn_body = true;
} else if ((this._x > 700) and (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) and (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 _local5 = [66, 284, 500, 73, 197, 415, 110];
var _local4 = [216, 216, 216, 141, 68, 293, 293];
var _local3 = 0;
while (_local3 < (4 + _root.game_mode)) {
var _local2 = random(3) + 4;
if (leven > 4) {
_root["attach_enemy" + _local2](random(450) + 50, random(300) + 50);
} else {
_root["attach_enemy" + _local2](random(450) + 50, (random(300) + 50) - 3200);
}
_local3++;
}
_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) or (_local3.x > 550)) and (this.landtotal < 10)) {
this.speedx = this.speedx * -1;
}
if (((((_local3.x < -50) or (_local3.x > 600)) or (_local3.y > 400)) or (_local3.y < 0)) or (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) or ((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) and (!_root.player_mc.Method.act_on)) {
this.play();
_root.player_mc.Method.body_death();
delete this.onEnterFrame;
}
if (((_local3.x < 0) or (_local3.x > 550)) or (_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) and (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) and (!_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) and (this._y == (375 - _local3))) {
this.sport_zt = "attack1";
} else {
this.sport_zt = "attack2";
}
_root.play_soundAction("boss3_a");
if (((this._x < 70) and (this._xscale > 0)) or ((this._x > 380) and (this._xscale < 0))) {
this.turn_body = true;
return(undefined);
}
}
if (_root.check_bossX(150 + (_root.game_mode * 50)) and (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) or (this.mc._currentframe == 30)) or (this.mc._currentframe == 32)) or (this.mc._currentframe == 34)) {
_root.attach_NPC(this);
}
if ((this.mc._currentframe == this.mc._totalframes) and (this.mc._currentframe > 1)) {
this.sport_zt = "walk";
}
} else if (this.sport_zt == "attack2") {
if ((this.sport_now != "jump") and (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") and (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) and (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) and (this.mc._currentframe > 20)) and (this.mc._currentframe < 90)) {
_root.attach_giving(this);
}
if ((this.mc._currentframe == this.mc._totalframes) and (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) or (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) and (!this.angry)) and (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) and (this.speed_move < 0)) {
this.turn_body = true;
} else if ((this._x > 500) and (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) and (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(3) + 7;
_root["attach_enemy" + _local2](placex, placey);
_root.enemy_amount++;
}
function check_bossX(distance, faceto) {
if (((boss_mc.BOSS3._y - player_mc._y) < 80) and (!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) and (_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) or (_local4.x > 570)) {
this.movex = this.movex * -1;
}
if ((this.movey > 0) and 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) and (!_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 _local3 = 0;
while (_local3 < 100) {
var _local4 = this.mc2["a" + random(50)];
_root.dropbody(_local4);
if (!_local4.drop) {
break;
}
_local3++;
}
}
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) or this.hit.hitTest(_root.player_mc.hit2)) and (!_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) or (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) and (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 _local4 = boss_mc.attachMovie("big_ball", "big_ball" + boss_mc.getNextHighestDepth(), boss_mc.getNextHighestDepth());
_local4._x = 275;
_local4._y = boss_mc.BOSS4._y - 200;
}
}
if (this.attack_time2 <= 0) {
this.mc.play();
}
if ((this.mc._currentframe == this.mc._totalframes) and (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) and (this.mc._currentframe > 20)) and (this.mc._currentframe < 90)) {
_root.attach_giving(this);
}
if ((this.mc._currentframe == this.mc._totalframes) and (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) and (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 _local5 = [49, 288, 81, 397, 182, 334, 68];
var _local4 = [137, 137, 222, 222, 297, 297, 54];
var _local3 = 0;
while (_local3 < 4) {
var _local2 = random(3) + 9;
if (leven > 4) {
_root["attach_enemy" + _local2](random(450) + 50, random(300) + 50);
} else {
_root["attach_enemy" + _local2](random(450) + 50, (random(300) + 50) - 3600);
}
_local3++;
}
_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) and (!_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 _local3 = _local4 * 0.866025400069253;
var _local2 = _local4 * 0.50000000643489;
_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(-_local2, _local3);
_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) and (!_root.player_mc.Method.act_on)) {
_root.player_mc.Method.body_death();
}
if ((((_local3.x < 0) or (_local3.x > 550)) or (_local3.y > 400)) or (_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);
}
}
}
}
stop();
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 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 = 32;
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";
Frame 4
var score = 0;
var max_score = 0;
initialization();
this.gotoAndStop("startgame");
_quality = "HIGH";
Frame 15
bu1.onRelease = function () {
play_soundAction("shoot");
choose_mode();
bu1.enabled = false;
bu2.enabled = false;
};
bu2.onRelease = function () {
play_soundAction("shoot");
mc.play();
};
play_music("sound2", true);
var temp_test;
Frame 26
Frame 34
start_game();
_quality = "LOW";
Frame 43
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
bu2.onRelease = function () {
dropMC.removeMovieClip();
trace(_root.miniclip_score);
gotoAndStop("high_scores" + _root.miniclip_score);
};
dropleaves(_root);
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++;
}
Frame 54
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
bu2.onRelease = function () {
dropMC.removeMovieClip();
trace(_root.miniclip_score);
gotoAndStop("high_scores" + _root.miniclip_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++;
}
Frame 63
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
_quality = "HIGH";
Instance of Symbol 1851 MovieClip "comHighscores" in Frame 63
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.score";
gamename = "caveman_easy";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Frame 76
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
_quality = "HIGH";
Instance of Symbol 1851 MovieClip "comHighscores" in Frame 76
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.score";
gamename = "caveman_hard";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Frame 89
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
_quality = "HIGH";
Instance of Symbol 1851 MovieClip "comHighscores" in Frame 89
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.score";
gamename = "caveman_survive";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Frame 102
bu1.onRelease = function () {
dropMC.removeMovieClip();
gotoAndStop ("loading");
};
Instance of Symbol 1851 MovieClip "comHighscores" in Frame 102
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.score";
gamename = "caveman";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 4 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 5 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 5 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 60
Symbol 21 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 26 MovieClip Frame 1
this._visible = false;
Symbol 32 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 37 MovieClip Frame 2
if (_url.indexOf("http") > -1) {
if (_parent._parent._parent.loadAdNow) {
cacheBuster = getTimer() + random(999999);
showAd = "http://www.miniclip.com/swfcontent/push/didyouknow.swf?cacheBuster" + cacheBuster;
trace("Loading ad: " + showAd);
mcAd.loadMovie(showAd);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 37 MovieClip Frame 4
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 37 MovieClip Frame 12
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 100
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 50 MovieClip Frame 1
loadAdNow = false;
_root.stop();
play();
Instance of Symbol 26 MovieClip "mcIntro" in Symbol 50 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 50 MovieClip Frame 2
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 49 MovieClip "mcLoadingAnimated" in Symbol 50 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 50 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
loadAdNow = true;
mcLoadingAnimated._visible = true;
}
Symbol 50 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
_root.gotoAndStop(2);
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 1853 MovieClip [__Packages.as.BasicMove] Frame 0
class as.BasicMove extends MovieClip
{
var this_body, hit_map, speed, act_on, jumpx, 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") and (sport_zt != "jump")) and (sport_zt != "attack")) {
sport_zt = "walk";
this_body.gotoAndStop("walk");
}
var _local2 = false;
if ((this_body.body_type == "PLA") and (sport_zt != "jump")) {
_local2 = check_push_mud();
}
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 (_local2) {
} else {
this_body._x = this_body._x - speed;
}
}
}
} 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 (_local2) {
} else {
this_body._x = this_body._x + speed;
}
}
}
}
}
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) and (!this_body.Method.attack_zt)) and ((!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());
}
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) and (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) and this._parent.Method.ctrl_able) and (!this._parent.Method.attack_zt)) and ((!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;
if (((this._parent.body_type == "NPC") or (this._parent.body_type == "FLY")) and (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") and (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) and (!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;
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");
}
}
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") and ((!_root.enemy_work) or (((!this_body.Method.mud_roll) and (random(10) > 3)) and (!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) and (addx > 0)) {
this_body._x = brink_max;
return(true);
}
if (((this_body._x + addx) < brink_min) and (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);
}
function check_push_mud() {
if (!ctrl_able) {
return(undefined);
}
for (var _local3 in this_body.Method.shoot_aim) {
if (Math.abs(this_body._y - this_body.Method.shoot_aim[_local3]._y) < 40) {
var _local2 = (this_body._xscale / 100) * (this_body.Method.shoot_aim[_local3]._x - this_body._x);
if ((_local2 < 50) and (_local2 > 0)) {
if (((this_body.Method.shoot_aim[_local3].Method.languishment_distinction == this_body.Method.shoot_aim[_local3].Method.languishment_max) and (!this_body.Method.shoot_aim[_local3].Method.mud_roll)) and this_body.Method.shoot_aim[_local3].Method.ctrl_able) {
this_body.gotoAndStop("push2");
this_body.Method.shoot_aim[_local3].Method.move_mud2((1 * this_body._xscale) / 100);
return(true);
}
if (this_body._currentframe == 67) {
this_body.gotoAndStop("walk");
}
}
}
}
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 = 540;
var move_able = true;
var add_speed = 0;
}
Symbol 1854 MovieClip [__Packages.as.EnemyObject] Frame 0
class as.EnemyObject extends as.BasicMove
{
var shoot_aim, screen_obj, 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;
}
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") and (sport_zt != "attack")) {
sport_zt = "walk";
this_body.gotoAndStop("walk");
}
if (check_brink(fly_x)) {
TurnBody();
return(undefined);
}
if (((this_body._xscale == 100) and (this_body.move_way == "L")) or ((this_body._xscale == -100) and (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) and (fly_y < 0)) or ((GetGlobalPlace().y > 350) and (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) and (!shoot_aim.Method.act_on)) {
shoot_aim.Method.body_death();
}
}
function body_languishment(power) {
if (!act_on) {
return(undefined);
}
if ((languishment_distinction == 0) and (this_body.body_type == "FLY")) {
JumpBody(4);
}
landuishment_time = landuishment_cast_time;
if (languishment_distinction < languishment_max) {
languishment_distinction = languishment_distinction + power;
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);
}
if (this_body.mud == undefined) {
var _local2 = this_body.attachMovie("mudMC", "mud", this_body.getNextHighestDepth());
_local2._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--;
this_body.mud.gotoAndPlay("e" + languishment_distinction);
this_body.body.play();
if (this_body.mud._rotation != 0) {
this_body.mud._rotation = 0;
}
}
if (languishment_distinction == 0) {
this_body.mud.removeMovieClip();
this_body.gotoAndStop("walk");
this_body.feedback_time = 5;
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)) and (!_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) and (Math.abs(this_body._y - shoot_aim._y) < 5)) and (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) and (_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");
}
function move_mud2(Mspeed) {
if (check_brink(Mspeed)) {
if (GetGlobalPlace().y > 350) {
roll_hit++;
}
TurnBody();
return(undefined);
}
if (check_land(-Mspeed)) {
TurnBody();
return(undefined);
}
if (sport_zt != "jump") {
if (Mspeed > 0) {
this_body.mud._rotation = this_body.mud._rotation + ((3 * this_body._xscale) / 100);
} else {
this_body.mud._rotation = this_body.mud._rotation - ((3 * this_body._xscale) / 100);
}
}
shoot_aim._x = shoot_aim._x + Mspeed;
this_body._x = this_body._x + Mspeed;
}
var shoot_able = true;
var act_on = true;
var languishment_distinction = 0;
var languishment_max = 6;
var landuishment_cast_time = 100;
var mud_roll = false;
var roll_hit = 0;
var attack_zt = false;
var stop_time = 0;
var kill_body = 0;
}
Symbol 1855 MovieClip [__Packages.as.PlayerObject] Frame 0
class as.PlayerObject extends as.BasicMove
{
var shoot_aim, screen_obj, shoot_zt, this_body, ctrl_able, acceleration, hit_map, min_move, max_move, act_on, jumpy;
function PlayerObject (attribute) {
super(attribute);
attribute.s_body.Method = this;
shoot_aim = attribute.s_aim;
screen_obj = attribute.s_screen_obj;
}
function ShootMud() {
if (!shoot_able) {
return(undefined);
}
if (check_push()) {
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 check_push() {
for (var _local2 in shoot_aim) {
if (((this_body.hit.hitTest(shoot_aim[_local2].hit) and (shoot_aim[_local2].Method.languishment_distinction == shoot_aim[_local2].Method.languishment_max)) and (!shoot_aim[_local2].Method.mud_roll)) and (!shoot_aim[_local2].body._visible)) {
if (shoot_zt) {
return(true);
}
shoot_able = false;
ctrl_able = false;
this_body.gotoAndStop("push");
if (this_body._xscale < 0) {
shoot_aim[_local2].move_way = "L";
} else {
shoot_aim[_local2].move_way = "R";
}
shoot_aim[_local2].Method.mudball_roll();
return(true);
}
}
return(false);
}
function AttathMud() {
var _local3 = shoot_aim.attachMovie("mud" + shoot_might, "mud" + shoot_aim.getNextHighestDepth(), shoot_aim.getNextHighestDepth());
_root.play_soundAction("shoot", false, 0.1);
_local3._x = this_body._x + ((this_body._xscale / 100) * 26);
_local3._y = this_body._y - 40;
_local3.move_x = ((6 + (shoot_might * 2.5)) * this_body._xscale) / 100;
_local3.move_y = -3;
_local3.acceleration = acceleration;
_local3.start_y = _local3._y;
_local3.might = shoot_might;
_local3.hit_map = hit_map;
_local3.mc.gotoAndStop(shoot_might);
_local3.onEnterFrame = function () {
this._x = this._x + this.move_x;
this._y = this._y + this.move_y;
if (this.move_y < 10) {
this.move_y = this.move_y + this.acceleration;
}
if (_root.boss_body) {
if (this.hit.hitTest(_root.boss_mc.BOSS.hit)) {
this.gotoAndPlay("boom2");
_root.play_soundAction("disappear", false, 0.2);
delete this.onEnterFrame;
}
}
for (var _local4 in this._parent) {
if (this._parent[_local4] != this) {
if (this.hit.hitTest(this._parent[_local4].hit)) {
this._parent[_local4].Method.body_languishment(this.might);
this.gotoAndPlay("boom2");
_root.play_soundAction("disappear", false, 0.2);
delete this.onEnterFrame;
}
}
}
for (var _local4 in _root.object_mc) {
if ((_root.object_mc[_local4].life > 0) and this.hit.hitTest(_root.object_mc[_local4].hit)) {
_root.object_mc[_local4].mc.play();
_root.attach_giving(_root.object_mc[_local4]);
_root.object_mc[_local4].life--;
this.gotoAndPlay("boom2");
_root.play_soundAction("disappear", false, 0.2);
delete this.onEnterFrame;
if (_root.object_mc[_local4].life == 0) {
_root.object_mc[_local4].removeMovieClip();
}
}
}
var _local3 = new Object();
_local3.x = this._x;
_local3.y = this._y;
this._parent.localToGlobal(_local3);
if (((this._currentframe == 1) and this.hit_map.hitTest(_local3.x, _local3.y, true)) and (this.move_y > 6)) {
delete this.onEnterFrame;
this.gotoAndPlay("boom");
_root.play_soundAction("disappear", false, 0.2);
}
if (((_local3.x < 0) or (_local3.x > 550)) or (_local3.y > 400)) {
this.removeMovieClip();
}
};
}
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) and (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) and (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) and ((min_move - screen_obj._y) < 30)) and (!_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);
}
_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;
}
Symbol 64 MovieClip [L_bg1] Frame 1
stop();
Symbol 83 MovieClip Frame 1
this.gotoAndStop(_root.leven);
Symbol 85 MovieClip Frame 1
this._visible = false;
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 33
stop();
this.onEnterFrame = function () {
if (this.hit.hitTest(_root.player_mc.hit)) {
_root.pass_leven();
delete this.onEnterFrame;
play();
}
};
Symbol 89 MovieClip Frame 34
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 47
_parent.gotoAndStop(1);
Symbol 157 MovieClip Frame 4
_parent.Method.AttathMud();
Symbol 157 MovieClip Frame 7
Symbol 157 MovieClip Frame 10
stop();
Symbol 162 MovieClip Frame 17
_parent.Method.shoot_able = true;
_parent.Method.ctrl_able = true;
_parent.Method.sport_zt = "stand";
_parent.gotoAndStop(1);
Symbol 184 MovieClip Frame 16
_root.player_death();
stop();
Symbol 201 MovieClip [L_player] Frame 1
stop();
Symbol 224 MovieClip [mud1] Frame 1
stop();
Symbol 224 MovieClip [mud1] Frame 11
this.removeMovieClip();
Symbol 224 MovieClip [mud1] Frame 23
this.removeMovieClip();
Symbol 267 MovieClip Frame 28
gotoAndPlay ("tag");
Symbol 280 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 280 MovieClip Frame 40
stop();
Symbol 299 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 300 MovieClip [enemy1] Frame 1
stop();
Symbol 335 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 335 MovieClip Frame 42
stop();
Symbol 342 MovieClip Frame 7
stop();
Symbol 343 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 344 MovieClip [enemy2] Frame 1
stop();
Symbol 372 MovieClip Frame 37
stop();
Symbol 373 MovieClip Frame 26
_parent.removeMovieClip();
Symbol 374 MovieClip [enemy3] Frame 1
stop();
Symbol 383 MovieClip [boom] Frame 5
_root.effect1(this, this._x, this._y);
Symbol 383 MovieClip [boom] Frame 32
_root.enemy_amount--;
Symbol 383 MovieClip [boom] Frame 70
this.removeMovieClip();
Symbol 412 MovieClip [mud_mass] Frame 22
this.removeMovieClip();
Symbol 419 MovieClip [land_grass] Frame 10
this.removeMovieClip();
Symbol 449 MovieClip [mudMC] Frame 1
var playrestrict = true;
Symbol 449 MovieClip [mudMC] Frame 4
stop();
Symbol 449 MovieClip [mudMC] Frame 8
stop();
Symbol 449 MovieClip [mudMC] Frame 12
stop();
Symbol 449 MovieClip [mudMC] Frame 16
stop();
Symbol 449 MovieClip [mudMC] Frame 20
stop();
Symbol 449 MovieClip [mudMC] Frame 24
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 519 MovieClip [giving] Frame 2
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 3
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 4
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 5
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 6
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 7
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 8
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 9
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 10
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 11
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 12
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 13
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 14
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 15
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 16
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 17
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 18
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 19
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 20
scorenum = 100 * (_currentframe - 1);
Symbol 519 MovieClip [giving] Frame 21
lifenum = 2;
Symbol 519 MovieClip [giving] Frame 22
lifenum = 10;
Symbol 519 MovieClip [giving] Frame 23
timenum = 10;
Symbol 519 MovieClip [giving] Frame 24
speednum = 1;
Symbol 519 MovieClip [giving] Frame 25
speednum = 0.5;
Symbol 519 MovieClip [giving] Frame 26
powernum = 10;
Symbol 519 MovieClip [giving] Frame 27
powernum = 1;
Symbol 519 MovieClip [giving] Frame 28
scorenum = 1000;
Symbol 519 MovieClip [giving] Frame 30
scorenum = 10000;
Symbol 519 MovieClip [giving] Frame 31
scorenum = 20000;
Symbol 519 MovieClip [giving] Frame 32
scorenum = 30000;
Symbol 519 MovieClip [giving] Frame 33
scorenum = 40000;
Symbol 551 MovieClip Frame 1
if (!_root.pass_game) {
_root.trumble_screen(0, 2);
}
Symbol 551 MovieClip Frame 19
if (!_root.pass_game) {
_root.trumble_screen(0, 2);
}
Symbol 583 MovieClip Frame 1
this._visible = false;
Symbol 595 MovieClip Frame 5
_parent.hit.gotoAndStop(2);
Symbol 595 MovieClip Frame 26
stop();
_parent.hit.gotoAndStop(3);
_parent.fist = true;
Symbol 595 MovieClip Frame 35
stop();
Symbol 618 MovieClip Frame 93
_root.attach_giving(_parent, 30);
Symbol 618 MovieClip Frame 137
stop();
Symbol 654 MovieClip [bullet_fire] Frame 1
stop();
Symbol 654 MovieClip [bullet_fire] Frame 12
this.removeMovieClip();
Symbol 704 MovieClip Frame 1
stop();
Symbol 709 MovieClip Frame 1
stop();
Symbol 735 MovieClip Frame 1
stop();
Symbol 738 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 812 MovieClip [prelude] Frame 51
if (this.Type == 1) {
_root.gameMC.removeMovieClip();
_root.UI.removeMovieClip();
_root.passgame();
}
_root.player_kiss.removeMovieClip();
Symbol 812 MovieClip [prelude] Frame 100
this.removeMovieClip();
Symbol 831 MovieClip Frame 1
this.gotoAndStop(_root.leven);
Symbol 863 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 863 MovieClip Frame 42
stop();
Symbol 872 MovieClip Frame 5
stop();
Symbol 873 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 874 MovieClip [enemy4] Frame 1
stop();
Symbol 911 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 911 MovieClip Frame 42
stop();
Symbol 923 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 924 MovieClip [enemy5] Frame 1
stop();
Symbol 931 MovieClip [mouse_bullet] Frame 1
stop();
Symbol 931 MovieClip [mouse_bullet] Frame 16
this.removeMovieClip();
Symbol 959 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 959 MovieClip Frame 42
stop();
Symbol 960 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 961 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 962 MovieClip Frame 1
this._visible = false;
Symbol 962 MovieClip Frame 2
this._visible = false;
Symbol 975 MovieClip Frame 12
_parent.hit2.gotoAndStop(2);
Symbol 976 MovieClip [enemy6] Frame 1
stop();
Symbol 1000 MovieClip Frame 5
if (!_root.pass_game) {
_root.trumble_screen(0, 1);
}
Symbol 1000 MovieClip Frame 21
if (!_root.pass_game) {
_root.trumble_screen(0, 1);
}
Symbol 1045 MovieClip Frame 60
_root.attach_giving(_parent, 31);
Symbol 1062 MovieClip [down_rock] Frame 1
stop();
Symbol 1062 MovieClip [down_rock] Frame 7
this.removeMovieClip();
Symbol 1105 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1105 MovieClip Frame 42
stop();
Symbol 1106 MovieClip Frame 1
this._visible = false;
stop();
Symbol 1106 MovieClip Frame 2
this._visible = false;
Symbol 1106 MovieClip Frame 3
this._visible = false;
Symbol 1106 MovieClip Frame 4
this._visible = false;
Symbol 1106 MovieClip Frame 5
this._visible = false;
Symbol 1122 MovieClip Frame 7
_parent.hit2.gotoAndStop(2);
Symbol 1122 MovieClip Frame 10
_parent.hit2.gotoAndStop(1);
Symbol 1122 MovieClip Frame 21
_parent.hit2.gotoAndStop(3);
Symbol 1122 MovieClip Frame 26
_parent.hit2.gotoAndStop(4);
Symbol 1122 MovieClip Frame 30
_parent.hit2.gotoAndStop(5);
Symbol 1122 MovieClip Frame 33
stop();
Symbol 1123 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1124 MovieClip [enemy7] Frame 1
stop();
Symbol 1138 MovieClip Frame 1
setout = true;
Symbol 1138 MovieClip Frame 9
setout = false;
Symbol 1152 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1152 MovieClip Frame 42
stop();
Symbol 1165 MovieClip Frame 18
_parent.hit.gotoAndStop(4);
Symbol 1165 MovieClip Frame 31
_parent.hit.gotoAndStop(1);
Symbol 1165 MovieClip Frame 34
stop();
Symbol 1166 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1167 MovieClip [enemy8] Frame 1
stop();
Symbol 1202 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1202 MovieClip Frame 42
stop();
Symbol 1203 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1204 MovieClip [enemy10] Frame 1
stop();
Symbol 1239 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1239 MovieClip Frame 42
stop();
Symbol 1253 MovieClip Frame 1
setout = true;
Symbol 1253 MovieClip Frame 16
stop();
setout = false;
_parent.hitArea.gotoAndStop(3);
Symbol 1253 MovieClip Frame 17
Symbol 1253 MovieClip Frame 20
stop();
Symbol 1254 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1255 MovieClip [enemy11] Frame 1
stop();
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 1
this._visible = false;
stop();
Symbol 1272 MovieClip Frame 2
this._visible = false;
Symbol 1278 MovieClip [enemy12] Frame 1
stop();
Symbol 1306 MovieClip Frame 1
gotoAndPlay(random(10));
Symbol 1306 MovieClip Frame 42
stop();
Symbol 1307 MovieClip Frame 28
_parent.removeMovieClip();
Symbol 1316 MovieClip Frame 13
stop();
Symbol 1317 MovieClip [enemy9] Frame 1
stop();
Symbol 1378 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1378 MovieClip Frame 2
stop();
this._visible = false;
Symbol 1399 MovieClip Frame 1
_parent.hit.gotoAndStop(1);
Symbol 1399 MovieClip Frame 5
_parent.hit.gotoAndStop(2);
Symbol 1399 MovieClip Frame 12
_parent.hit.gotoAndStop(1);
Symbol 1399 MovieClip Frame 19
_parent.hit.gotoAndStop(2);
Symbol 1399 MovieClip Frame 26
_parent.hit.gotoAndStop(1);
Symbol 1409 MovieClip Frame 61
_root.attach_giving(_parent, 32);
Symbol 1426 MovieClip Frame 1
stop();
Symbol 1429 MovieClip Frame 1
stop();
Symbol 1430 MovieClip Frame 1
stop();
Symbol 1474 MovieClip Frame 30
stop();
Symbol 1497 MovieClip Frame 52
_root.attach_giving(_parent, 33);
Symbol 1498 MovieClip [BOSS4] Frame 11
stop();
Symbol 1535 MovieClip [L_map4] Frame 10
rock._visible = false;
Symbol 1549 MovieClip [mud2] Frame 1
stop();
Symbol 1549 MovieClip [mud2] Frame 11
this.removeMovieClip();
Symbol 1549 MovieClip [mud2] Frame 23
this.removeMovieClip();
Symbol 1564 MovieClip [mud3] Frame 1
stop();
Symbol 1564 MovieClip [mud3] Frame 11
this.removeMovieClip();
Symbol 1564 MovieClip [mud3] Frame 23
this.removeMovieClip();
Symbol 1573 MovieClip [mask3] Frame 8
_root.create_stage();
Symbol 1573 MovieClip [mask3] Frame 96
this.removeMovieClip();
Symbol 1587 MovieClip Frame 1
gotoAndStop(_root.leven);
Symbol 1588 MovieClip [mask2] Frame 18
_root.create_stage();
Symbol 1588 MovieClip [mask2] Frame 70
this.removeMovieClip();
Symbol 1631 MovieClip Frame 1
stop();
Symbol 1635 MovieClip [timeovermc] Frame 40
_root.gameover();
this.removeMovieClip();
Symbol 1644 MovieClip [bigark] Frame 48
stop();
Symbol 1661 MovieClip [big_ball] Frame 55
_root.shoot_bullet4_2();
Symbol 1661 MovieClip [big_ball] Frame 77
this.removeMovieClip();
Symbol 1711 MovieClip [player_kiss] Frame 1
_root.dropleaves(bg);
Symbol 1711 MovieClip [player_kiss] Frame 62
gotoAndPlay (10);
Symbol 1712 MovieClip Frame 25
stop();
Symbol 1739 MovieClip Frame 1
stop();
Symbol 1739 MovieClip Frame 15
stop();
Symbol 1740 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 1743 MovieClip Frame 1
gotoAndStop(_root.leven);
Symbol 1765 MovieClip Frame 65
_root.start_mask2();
Symbol 1765 MovieClip Frame 86
stop();
Symbol 1767 MovieClip Frame 71
_root.start_mask2();
Symbol 1767 MovieClip Frame 84
stop();
Symbol 1776 MovieClip Frame 60
_root.start_mask2();
Symbol 1776 MovieClip Frame 88
stop();
Symbol 1790 MovieClip Frame 52
_root.start_mask2();
Symbol 1790 MovieClip Frame 62
stop();
Symbol 1791 MovieClip Frame 1
gotoAndStop(_root.leven);
_root.play_music("sound5", true);
Symbol 1827 MovieClip Frame 56
stop();
Symbol 1840 MovieClip Frame 1
this._visible = false;
Symbol 1849 Button
on (release) {
gameURL = ("http://www.miniclip.com/games/" + gamename) + "/en/";
trace("Going to game: " + gameURL);
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 1851 MovieClip Frame 1
System.security.allowDomain("www.miniclip.com");
Instance of Symbol 1840 MovieClip "mcHighscores" in Symbol 1851 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1851 MovieClip Frame 2
if (scoreLocation == undefined) {
trace(("*** Miniclip Highscore Component: scoreLocation (" + scoreLocation) + ") is undefined.");
}
if ((((_url.indexOf("miniclip.com") == -1) && (_url.indexOf("miniclip.net") == -1)) && (_url.indexOf("miniclip.co.uk") == -1)) && (_url.indexOf("miniclips.com"))) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 1851 MovieClip Frame 3
stop();