Frame 66 (239 B)
loaded = this.getBytesLoaded();
total = this.getBytesTotal();
percent = int((loaded / total) * 100) + " %";
setProperty("bar", _xscale , graph);
graph = int((loaded / total) * 100);
if (loaded >= total) {
gotoAndPlay ("end");
}
Frame 67 (31 B)
stop();
gotoAndPlay ("loop");
Frame 68 (23 B)
gotoAndStop ("story");
Frame 408 (1.05 KiB) ●
function bg_sd(n) {
bg_sound = new Sound(this);
bg_sound.attachSound("bg_sd" + n);
bg_sound.setVolume(100);
bg_sound.start(0, 999);
}
function end_bg_sd() {
bg_sound.stop();
}
function luodi_sd() {
pz_sound = new Sound(this);
pz_sound.attachSound("luodi");
pz_sound.setVolume(100);
pz_sound.start();
}
function qitiao_sd() {
body_sound = new Sound(this);
body_sound.attachSound("qitiao");
body_sound.setVolume(100);
body_sound.start();
}
function end_body_sd() {
body_sound.stop();
}
function cj_sd() {
cj_sound = new Sound(this);
cj_sound.attachSound("cj_sd");
cj_sound.setVolume(100);
cj_sound.start();
}
function data_start() {
level = 1;
var _local2 = 0;
while (_local2 < 9) {
removeMovieClip(this["text_co_mc" + (_local2 + 1)]);
removeMovieClip(this["text_id_mc" + (_local2 + 1)]);
_local2++;
}
}
stop();
begin_btn.onRelease = function () {
gotoAndStop (410);
};
help_btn.onRelease = function () {
gotoAndStop (409);
};
end_bg_sd();
bg_sd(1);
clearInterval(intervalTime);
data_start();
Frame 410 (12.21 KiB) ● ●
function sendAndLoad_data_fun() {
var _local1 = new LoadVars();
_local1.username = score_menu.menu.user_txt.text;
_local1.score = score_txt;
_local1.gameid = gameid;
yourname_text = _local1.username;
trace(_local1.username);
trace(_local1.score);
var _local2 = new LoadVars();
_local2.onLoad = function (success) {
gotoAndStop (702);
};
if ((score_arry[8] != undefined) && (_local1.score <= score_arry[8])) {
gotoAndStop (702);
highscore_act = false;
} else {
_local1.sendAndLoad(link_b_url, _local2, "POST");
highscore_act = true;
}
}
function rank_ini() {
if (name_arry.length < 9) {
rank_no = name_arry.length;
} else {
rank_no = 9;
}
var _local3 = 0;
while (_local3 < rank_no) {
this.text_co_mc.duplicateMovieClip("text_co_mc" + (_local3 + 1), _local3 + 20);
this["text_co_mc" + (_local3 + 1)]._y = this.text_co_mc._y + (40 * _local3);
this["text_co_mc" + (_local3 + 1)].list_txt.text = _root.score_arry[_local3];
this["text_co_mc" + (_local3 + 1)].v = _local3 + 1;
this.text_id_mc.duplicateMovieClip("text_id_mc" + (_local3 + 1), _local3 + 1);
this["text_id_mc" + (_local3 + 1)]._y = this.text_id_mc._y + (40 * _local3);
this["text_id_mc" + (_local3 + 1)].list_txt.text = _root.name_arry[_local3];
this["text_id_mc" + (_local3 + 1)].v = _local3 + 1;
if (this["text_id_mc" + (_local3 + 1)].list_txt.text == yourname_text) {
this["text_id_mc" + (_local3 + 1)].gotoAndStop(2);
}
_local3++;
}
}
function order(a, b) {
var _local2 = Number(a.split("/")[1]);
var _local1 = Number(b.split("/")[1]);
if (_local2 > _local1) {
return(-1);
}
if (_local2 < _local1) {
return(1);
}
return(0);
}
function random_n() {
var _local5 = 5;
var _local2 = new Array();
var _local1 = 0;
while (_local1 < _local5) {
_local2[_local1] = _local1;
_local1++;
}
m = new Array();
_local1 = 0;
while (_local1 < _local5) {
var _local4 = _local2.length;
var _local3 = random(_local4);
m[_local1] = _local2[_local3];
_local2.splice(_local3, 1);
_local1++;
}
if ((m[0] == 0) or (m[1] == 0)) {
random_n();
}
trace(m);
}
function move_cloud(n_n) {
if (m[n_speed] == 0) {
_root["mc_cloud" + n_n].speed = 0;
} else {
_root["mc_cloud" + n_n].speed = (1.5 * _root.level_game) + (m[n_speed] / 2);
}
n_speed++;
if (n_speed >= 5) {
n_speed = 0;
random_n();
trace(n_speed);
}
}
function number_start() {
_root.n_distance = 0;
_root.pause = 0;
_root.mc_monkey.jump = 0;
_root.die = 0;
m[0] = 0;
move_cloud(1);
move_cloud(2);
move_cloud(3);
_root.mc_monkey._y = _root.mc_cloud1._y - 20;
_root.mc_monkey._x = _root.mc_cloud1._x;
_root.mc_cloud2._y = _root.mc_cloud1._y - 233.333333333333;
_root.mc_cloud3._y = _root.mc_cloud1._y - 466.666666666667;
}
function to_start() {
_root.mc_monkey.n_down = 0;
_root.mc_monkey.jump = 0;
_root.mc_monkey.n_jump = 0;
_root.mc_monkey.n_up = 0;
_root.mc_monkey.n_right = 0;
_root.mc_monkey.n_left = 0;
}
function score_init() {
clearInterval(intervalTime);
if (_root.point > 1) {
_root.winNo = 1;
var _local2 = int(_root.time_txt / 20) * 3;
} else {
_root.winNo = 1;
}
}
function gameover_init() {
if (game_good == 0) {
_root.game_over = 1;
_root.score_init();
_root.score_menu.play();
_root.mc_monkey._visible = 0;
} else {
_root.game_over = 1;
_root.score_init();
_root.mc_monkey.gotoAndPlay("win");
}
}
function calltime() {
time_txt++;
}
function next_game() {
if (_root.player_life <= 1) {
_root.winNo = 1;
_root.score_menu.play();
_root.score_menu.swapDepths(_root.player);
} else {
_root.remove_bg();
_root.player.swapDepths(_root.player.depth);
_root.player_life--;
_root.score_txt = _root.score_txt - 200;
if (_root.Level == 2) {
gotoAndPlay (411);
} else if (_root.Level == 3) {
gotoAndPlay (436);
} else if (_root.Level == 4) {
gotoAndPlay (461);
}
}
}
function game(n) {
_root.remove_bg();
_root.player.swapDepths(_root.player.depth);
_root.Level++;
if (n == 3) {
gotoAndPlay (436);
} else if (n == 4) {
gotoAndPlay (461);
}
}
function win_level(m) {
if (m == 2) {
var _local4 = 30;
_root.hitlevel2++;
} else if (m == 3) {
var _local4 = 70;
_root.hitlevel3++;
} else if (m == 4) {
var _local4 = 150;
_root.hitlevel4++;
}
if (_root.bodycount == _local4) {
_root.die_init();
delete _root.player.onEnterFrame;
_root.player.gotoAndStop("next");
Key.removeListener(someListener);
var _local2 = enemyactive - 100;
while (_local2 < (enemyactive + 1)) {
var _local3 = random(2) + 1;
_root["enemy" + _local2].enemy.gotoAndPlay("die" + _local3);
_root["enemy" + _local2].alive = "false";
_local2++;
}
}
}
function remove_bg() {
var _local2 = 1;
while (_local2 < 4) {
_root["hulan" + _local2].swapDepths(_root["hulan" + _local2].depth);
_local2++;
}
}
stop();
var sd_no = true;
end_bg_sd();
bg_sd(2);
cloud_pd = 1;
n_cloud = 1;
n_speed = 0;
game_good = 0;
move_RT = 0;
_root.game_over = 0;
_root.point = 0;
_root.mc_monkey.n_jump = 0;
var winNo;
var time_txt = 0;
var score_txt = 0;
var level_game = 1;
var Level = 1;
var gameid = "game005";
var user_txt;
var yourname_text;
var highscore_act;
var overlayer = 16;
var player_life = 5;
var bodycount = 0;
var aktammo = 20;
var distance_txt = (overlayer + 2);
var hitlevel2 = 0;
var hitlevel3 = 0;
var hitlevel4 = 0;
var link_a_url = ((("http://www.funcorder.com/getXML.php?gameid=" + gameid) + "&rand=") + Math.random());
var link_b_url = "http://www.funcorder.com/ins_post.php";
trace(link_a_url);
var name_arry = new Array();
var score_arry = new Array();
var myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function (success) {
trace("load xml");
var _local3 = this.firstChild;
var _local2 = 0;
while (_local2 < _local3.childNodes.length) {
name_arry[_local2] = _local3.childNodes[_local2].attributes.name;
score_arry[_local2] = _local3.childNodes[_local2].attributes.score;
trace("score: " + score_arry[_local2]);
_local2++;
}
rank_ini();
};
myXML.load(link_a_url);
submit_btn.onRelease = function () {
sendAndLoad_data_fun();
};
k = -1;
random_n();
number_start();
Key.removeListener(someListener);
someListener = new Object();
someListener.onKeyDown = function () {
if (((Key.isDown(32) and (_root.mc_monkey.jump == 0)) and (_root.pause == 0)) and (_root.game_over == 0)) {
_root.mc_monkey.gotoAndStop("ready");
}
if (Key.isDown(39)) {
_root.mc_monkey.n_right = 1;
_root.mc_monkey.n_left = 0;
}
if (Key.isDown(37)) {
_root.mc_monkey.n_right = 0;
_root.mc_monkey.n_left = 1;
}
};
someListener.onKeyUp = function () {
if (Key.getCode() == 32) {
if (((_root.mc_monkey.jump == 0) and (_root.pause == 0)) and (_root.game_over == 0)) {
qitiao_sd();
_root.mc_monkey.jump = 1;
_root.mc_monkey.n_up = 1;
_root.n_cloud++;
if (_root.n_cloud > 3) {
_root.n_cloud = 1;
}
}
}
if (Key.getCode() == 37) {
_root.mc_monkey.n_left = 0;
}
if (Key.getCode() == 39) {
_root.mc_monkey.n_right = 0;
}
};
Key.addListener(someListener);
_root.mc_monkey.onPress = function () {
if (_root.game_over == 0) {
this.gotoAndStop("ready");
}
};
_root.mc_monkey.onRelease = (_root.mc_monkey.onReleaseOutside = function () {
if ((_root.mc_monkey.jump == 0) and (_root.pause == 0)) {
qitiao_sd();
_root.mc_monkey.jump = 1;
_root.mc_monkey.n_up = 1;
_root.n_cloud++;
if (_root.n_cloud > 3) {
_root.n_cloud = 1;
}
}
});
speed_jump_monkey = 32;
_root.mc_monkey.onEnterFrame = function () {
if (_root.game_over == 0) {
if (_root.pause == 0) {
if (_root.mc_monkey.jump == 0) {
if (_root.mc_monkey.n_right == 1) {
_root.mc_monkey._x = _root.mc_monkey._x + 10;
}
if (_root.mc_monkey.n_left == 1) {
_root.mc_monkey._x = _root.mc_monkey._x - 10;
}
if (Math.abs(_root.mc_monkey._x - _root["mc_cloud" + _root.n_cloud]._x) > 50) {
_root.mc_monkey.jump = 1;
_root.mc_monkey.n_down = 1;
_root.die = 1;
if (_root.cloud_pd == 1) {
_root.n_cloud++;
_root.cloud_pd = 0;
cj_sd();
trace("cloud_pa=" + _root.cloud_pd);
}
}
}
if (_root.mc_monkey.jump == 1) {
if (_root.mc_monkey.n_up == 1) {
_root.mc_monkey.n_jump++;
if (_root.mc_monkey.n_jump <= 16) {
_root.mc_monkey._y = _root.mc_monkey._y - (_root.speed_jump_monkey - _root.mc_monkey.n_jump);
}
if (_root.mc_monkey.n_jump >= 11) {
_root.mc_monkey.n_up = 0;
_root.mc_monkey.n_down = 1;
}
this.gotoAndStop("jump");
}
if (_root.mc_monkey.n_down == 1) {
_root.mc_monkey._y = _root.mc_monkey._y + 25;
if (((_root.mc_monkey._y - _root.mc_bg._y) <= 50) and (_root.die == 0)) {
_root.die = 1;
trace("qiao");
luodi_sd();
this._y = _root.mc_bg._y;
_root.pause = 1;
_root.point++;
_root.distance_txt = (_root.overlayer + 2) - _root.point;
_root.score_txt = _root.score_txt + 500;
this.gotoAndPlay("zl");
} else if (((_root.mc_monkey._y - _root["mc_cloud" + _root.n_cloud]._y) <= 40) and (_root.die == 0)) {
if (Math.abs(_root.mc_monkey._x - _root["mc_cloud" + _root.n_cloud]._x) <= 25) {
luodi_sd();
_root["mc_cloud" + _root.n_cloud].play();
this._y = _root["mc_cloud" + _root.n_cloud]._y - 20;
_root.to_start();
_root.pause = 1;
_root.point++;
_root.distance_txt = (_root.overlayer + 2) - _root.point;
_root.score_txt = _root.score_txt + 100;
this.gotoAndPlay("zl");
if (_root.level_game < 4) {
if (int(_root.point - (_root.level_game * 20)) > 1) {
_root.level_game++;
trace("leve:" + level_game);
}
}
} else {
_root.die = 1;
this.gotoAndStop("down");
cj_sd();
}
} else if (_root.mc_monkey._y >= 1500) {
_root.player_life--;
if (_root.score_txt >= 100) {
_root.score_txt = _root.score_txt - 100;
} else {
_root.score_txt = 0;
}
_root.mc_life.play();
this.n_cloud = _root.n_cloud - 1;
if (this.n_cloud == 0) {
this.n_cloud = 3;
}
this._x = _root["mc_cloud" + this.n_cloud]._x;
this._y = _root["mc_cloud" + this.n_cloud]._y - 20;
_root.cloud_pd = 1;
this.gotoAndStop("up");
_root.to_start();
_root.die = 0;
_root.n_cloud--;
}
}
if (_root.mc_monkey.n_right == 1) {
_root.mc_monkey._x = _root.mc_monkey._x + 10;
}
if (_root.mc_monkey.n_left == 1) {
_root.mc_monkey._x = _root.mc_monkey._x - 10;
}
}
} else {
var _local4 = 25;
var _local3 = 1;
while (_local3 <= 3) {
_root["mc_cloud" + _local3]._y = _root["mc_cloud" + _local3]._y + _local4;
if ((_root["mc_cloud" + _local3]._y > 600) && (_root.point < (_root.overlayer + 3))) {
_root["mc_cloud" + _local3]._y = _root["mc_cloud" + _local3]._y - 700;
_root.move_cloud(_local3);
}
_local3++;
}
_root.mc_monkey._y = _root.mc_monkey._y + _local4;
_root.mc_bg._y = _root.mc_bg._y + _local4;
if ((_root.mc_bg._y > 400) && (_root.die == 1)) {
trace("gameover");
_root.game_good = 1;
_root.gameover_init();
}
if ((_root.mc_bg._y > -200) && (_root.point < _root.overlayer)) {
_root.mc_bg._y = _root.mc_bg._y - 650;
}
_root.n_distance = _root.n_distance + _local4;
if (_root.n_distance >= 233.333333333333) {
_local3 = 1;
while (_local3 <= 3) {
_root["mc_cloud" + _local3]._y = _root["mc_cloud" + _local3]._y - (_root.n_distance - 233.333333333333);
_local3++;
}
_root.mc_monkey._y = _root.mc_monkey._y - (_root.n_distance - 233.333333333333);
_root.mc_bg._y = _root.mc_bg._y - (_root.n_distance - 233.333333333333);
_root.n_distance = 0;
_root.pause = 0;
}
}
}
};
intervalTime = setInterval(this, "calltime", 1000);
mic_btn.onRelease = function () {
if (sd_no == true) {
end_bg_sd();
sd_no = false;
} else {
bg_sd(2);
sd_no = true;
}
};
Instance of Symbol 213 MovieClip "mc_cloud1" in Frame 410 (485 B)
onClipEvent (load) {
w = _height + 10;
this.hit = false;
bx1 = 190;
bx2 = 540;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_x = (_x - this.speed);
if (_x >= bx2) {
_x = bx2;
this.speed = -this.speed;
this.gotoAndStop(1);
}
if (_x <= bx1) {
_x = bx1;
this.speed = -this.speed;
this.gotoAndStop(2);
}
}
if (this.hitTest("_root.mc_monkey") and (_root.mc_monkey.jump == 0)) {
_root.mc_monkey._x = _root.mc_monkey._x - this.speed;
}
}
Instance of Symbol 216 MovieClip "mc_cloud3" in Frame 410 (485 B)
onClipEvent (load) {
w = _height + 10;
this.hit = false;
bx1 = 190;
bx2 = 540;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_x = (_x - this.speed);
if (_x >= bx2) {
_x = bx2;
this.speed = -this.speed;
this.gotoAndStop(1);
}
if (_x <= bx1) {
_x = bx1;
this.speed = -this.speed;
this.gotoAndStop(2);
}
}
if (this.hitTest("_root.mc_monkey") and (_root.mc_monkey.jump == 0)) {
_root.mc_monkey._x = _root.mc_monkey._x - this.speed;
}
}
Instance of Symbol 218 MovieClip "mc_cloud2" in Frame 410 (485 B)
onClipEvent (load) {
w = _height + 10;
this.hit = false;
bx1 = 190;
bx2 = 540;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_x = (_x - this.speed);
if (_x >= bx2) {
_x = bx2;
this.speed = -this.speed;
this.gotoAndStop(1);
}
if (_x <= bx1) {
_x = bx1;
this.speed = -this.speed;
this.gotoAndStop(2);
}
}
if (this.hitTest("_root.mc_monkey") and (_root.mc_monkey.jump == 0)) {
_root.mc_monkey._x = _root.mc_monkey._x - this.speed;
}
}
Frame 411 (742 B)
var a = (enemyactive - 100);
while (a < (enemyactive + 1)) {
_root["enemy" + a].removeMovieClip();
_root["boss_mc" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["ammo" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["weili_mc" + a].removeMovieClip();
a++;
}
var a = (lifeactive - 100);
while (a < (lifeactive + 1)) {
_root["add_life" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["hanbao_mc" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["shengdai_mc" + a].removeMovieClip();
a++;
}
Frame 435 (5.06 KiB) ● ●
function die_init() {
player.walkup = false;
player.walkdown = false;
player.walkleft = false;
player.walkright = false;
speedausgleich = 0;
}
function goto_gameover() {
_root.remove_bg();
_root.player.swapDepths(_root.player.depth);
gotoAndPlay (486);
}
stop();
gotomenuok = false;
shot._visible = false;
var shotactive = 500000;
var shotspeed = 200;
var smokenum = 400000;
var playeralive = true;
var speed = 10;
enemy.alive = "false";
var enemyactive = 1000000;
var ammoactive = 600000;
var lifeactive = 800000;
aktammo = aktammo + 30;
_root.score_txt = _root.score_txt + 200;
var comespeedstart = 70;
var comespeed = comespeedstart;
var actives = 0;
speedausgleich = 0;
zufallammo = 600;
zufallammo2 = 1600;
durchschlagshotgun = 1;
durchschlagMP = 0.5;
durchschlag = durchschlagshotgun;
tempoH = 0;
tempoV = 0;
var gunfires = true;
var player_inj = false;
var boss_act = false;
mc_life.gotoAndStop("l" + _root.player_life);
Key.removeListener(someListener);
someListener = new Object();
someListener.onKeyDown = function () {
var _local2 = _root;
if ((_local2.playeralive == true) && (_root.player_inj != true)) {
if (Key.isDown(37)) {
_local2.player.walkleft = true;
}
if (Key.isDown(39)) {
_local2.player.walkright = true;
}
if (Key.isDown(38)) {
_local2.player.walkup = true;
}
if (Key.isDown(40)) {
_local2.player.walkdown = true;
}
if (Key.isDown(32)) {
if (_root.playeralive == true) {
if (_root.aktammo > 0) {
if (_root.gunfires == true) {
_root.player.gotoAndStop("standfire");
_root.gunGO_mc.gotoAndPlay(2);
_root.gunfires = false;
shotactive = shotactive + 1;
duplicateMovieClip (shot, "shot" + shotactive, shotactive);
_root["shot" + shotactive]._visible = false;
_root["shot" + shotactive].fly = true;
_root["shot" + shotactive].shotspeed = shotspeed;
_root.smoke.gotoAndPlay(2);
_root.aktammo--;
}
}
}
}
}
};
someListener.onKeyUp = function () {
var _local2 = _root;
if (_local2.playeralive == true) {
if (Key.getCode() == 37) {
_local2.player.walkleft = false;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 39) {
_local2.player.walkright = false;
_root.speedausgleich = 0;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 38) {
_local2.player.walkup = false;
player.gotoAndStop("stand");
}
if (Key.getCode() == 40) {
_local2.player.walkdown = false;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 32) {
_local2.player.gotoAndStop("stand");
}
}
};
Key.addListener(someListener);
_root.player.onEnterFrame = function () {
if (player.walkleft == true) {
if (player._x > 50) {
player._x = player._x - speed;
shader._x = shader._x - speed;
smoke._x = smoke._x - speed;
huntpos._x = huntpos._x - speed;
shot._x = shot._x - speed;
}
player.gotoAndStop("walk");
}
if (player.walkright == true) {
if (player._x < 190) {
speedausgleich = 0;
player._x = player._x + speed;
shader._x = shader._x + speed;
smoke._x = smoke._x + speed;
huntpos._x = huntpos._x + speed;
shot._x = shot._x + speed;
} else if (player._x >= 190) {
speedausgleich = speed;
var _local2 = 1;
while (_local2 < 5) {
if (_root["bg0" + _local2]._x < -1000) {
_root["bg0" + _local2]._x = _root["bg0" + _local2]._x + 2922;
}
if (_root["hulan" + _local2]._x < -1000) {
_root["hulan" + _local2]._x = _root["hulan" + _local2]._x + 2922;
}
_root["build" + _local2]._x = _root["build" + _local2]._x - speedausgleich;
_root["bg0" + _local2]._x = _root["bg0" + _local2]._x - speedausgleich;
_root["hulan" + _local2]._x = _root["hulan" + _local2]._x - speedausgleich;
_local2++;
}
}
player.gotoAndStop("walk");
}
if (player.walkup == true) {
if (player._y > 350) {
player._y = player._y - speed;
shader._y = shader._y - speed;
smoke._y = smoke._y - speed;
huntpos._y = huntpos._y - speed;
shot._y = shot._y - speed;
}
player.gotoAndStop("walk");
}
if (player.walkdown == true) {
if (player._y < 540) {
player._y = player._y + speed;
smoke._y = smoke._y + speed;
huntpos._y = huntpos._y + speed;
shot._y = shot._y + speed;
}
player.gotoAndStop("walk");
}
if ((actives < 4) && (_root.enemyactive < 1000030)) {
if (random(comespeed) == 0) {
enemyerzeuger.gotoAndPlay(2);
}
}
if (comespeed > 20) {
comespeed = int(comespeedstart - (bodycount / 2));
}
if (aktammo < 30) {
zufallammo = 300;
} else {
zufallammo = 600;
}
if (random(zufallammo) == 0) {
ammoerzeuger.gotoAndPlay(2);
}
if (player_life < 2) {
zufallammo2 = 300;
if (random(zufallammo2) == 0) {
lifeerzeuger.gotoAndPlay(2);
}
}
if (random(400) == 0) {
weilierzeuger.gotoAndPlay(2);
}
if (random(800) == 0) {
hanbaoerzeuger.gotoAndPlay(2);
}
if (random(800) == 0) {
shengdaierzeuger.gotoAndPlay(2);
}
};
Instance of Symbol 384 MovieClip "player" in Frame 435 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1100000);
}
Instance of Symbol 738 MovieClip "hulan2" in Frame 435 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150001);
}
Instance of Symbol 738 MovieClip "hulan1" in Frame 435 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150000);
}
Instance of Symbol 738 MovieClip "hulan3" in Frame 435 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150002);
}
Instance of Symbol 291 MovieClip "score_menu" in Frame 435 (53 B)
onClipEvent (load) {
this.depth = this.getDepth();
}
Frame 436 (742 B)
var a = (enemyactive - 100);
while (a < (enemyactive + 1)) {
_root["enemy" + a].removeMovieClip();
_root["boss_mc" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["ammo" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["weili_mc" + a].removeMovieClip();
a++;
}
var a = (lifeactive - 100);
while (a < (lifeactive + 1)) {
_root["add_life" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["hanbao_mc" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["shengdai_mc" + a].removeMovieClip();
a++;
}
Frame 460 (5.2 KiB) ● ●
function die_init() {
player.walkup = false;
player.walkdown = false;
player.walkleft = false;
player.walkright = false;
speedausgleich = 0;
}
function goto_gameover() {
_root.remove_bg();
_root.player.swapDepths(_root.player.depth);
gotoAndPlay (486);
}
stop();
gotomenuok = false;
shot._visible = false;
var shotactive = 500000;
var shotspeed = 200;
var smokenum = 400000;
var playeralive = true;
var speed = 12;
enemy.alive = "false";
var enemyactive = 1000000;
var ammoactive = 600000;
var lifeactive = 800000;
aktammo = aktammo + 30;
_root.score_txt = _root.score_txt + 200;
var comespeedstart = 70;
var comespeed = comespeedstart;
var actives = 0;
speedausgleich = 0;
zufallammo = 600;
zufallammo2 = 1600;
durchschlagshotgun = 1;
durchschlagMP = 0.5;
durchschlag = durchschlagshotgun;
tempoH = 0;
tempoV = 0;
var gunfires = true;
var player_inj = false;
var boss_act = false;
mc_life.gotoAndStop("l" + _root.player_life);
Key.removeListener(someListener);
someListener = new Object();
someListener.onKeyDown = function () {
var _local2 = _root;
if ((_local2.playeralive == true) && (_root.player_inj != true)) {
if (Key.isDown(37)) {
_local2.player.walkleft = true;
}
if (Key.isDown(39)) {
_local2.player.walkright = true;
}
if (Key.isDown(38)) {
_local2.player.walkup = true;
}
if (Key.isDown(40)) {
_local2.player.walkdown = true;
}
if (Key.isDown(32)) {
if (_root.playeralive == true) {
if (_root.aktammo > 0) {
if (_root.gunfires == true) {
_root.player.gotoAndStop("standfire");
_root.gunGO_mc.gotoAndPlay(2);
_root.gunfires = false;
shotactive = shotactive + 1;
duplicateMovieClip (shot, "shot" + shotactive, shotactive);
_root["shot" + shotactive]._visible = false;
_root["shot" + shotactive].fly = true;
_root["shot" + shotactive].shotspeed = shotspeed;
_root.smoke.gotoAndPlay(2);
_root.aktammo--;
}
}
}
}
}
};
someListener.onKeyUp = function () {
var _local2 = _root;
if (_local2.playeralive == true) {
if (Key.getCode() == 37) {
_local2.player.walkleft = false;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 39) {
_local2.player.walkright = false;
_root.speedausgleich = 0;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 38) {
_local2.player.walkup = false;
player.gotoAndStop("stand");
}
if (Key.getCode() == 40) {
_local2.player.walkdown = false;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 32) {
_local2.player.gotoAndStop("stand");
}
}
};
Key.addListener(someListener);
_root.player.onEnterFrame = function () {
if (player.walkleft == true) {
if (player._x > 50) {
player._x = player._x - speed;
shader._x = shader._x - speed;
smoke._x = smoke._x - speed;
huntpos._x = huntpos._x - speed;
shot._x = shot._x - speed;
}
player.gotoAndStop("walk");
}
if (player.walkright == true) {
if (player._x < 190) {
speedausgleich = 0;
player._x = player._x + speed;
shader._x = shader._x + speed;
smoke._x = smoke._x + speed;
huntpos._x = huntpos._x + speed;
shot._x = shot._x + speed;
} else if (player._x >= 190) {
speedausgleich = speed;
var _local2 = 1;
while (_local2 < 4) {
if (_root["bg0" + _local2]._x < -1200) {
_root["bg0" + _local2]._x = _root["bg0" + _local2]._x + 2750;
}
if (_root["hulan" + _local2]._x < -1200) {
_root["hulan" + _local2]._x = _root["hulan" + _local2]._x + 2750;
}
if (_root["build" + _local2]._x < -1200) {
_root["build" + _local2]._x = _root["build" + _local2]._x + 2750;
}
_root["bg0" + _local2]._x = _root["bg0" + _local2]._x - speedausgleich;
_root["hulan" + _local2]._x = _root["hulan" + _local2]._x - speedausgleich;
_root["build" + _local2]._x = _root["build" + _local2]._x - (speedausgleich / 2);
_local2++;
}
}
player.gotoAndStop("walk");
}
if (player.walkup == true) {
if (player._y > 350) {
player._y = player._y - speed;
shader._y = shader._y - speed;
smoke._y = smoke._y - speed;
huntpos._y = huntpos._y - speed;
shot._y = shot._y - speed;
}
player.gotoAndStop("walk");
}
if (player.walkdown == true) {
if (player._y < 540) {
player._y = player._y + speed;
smoke._y = smoke._y + speed;
huntpos._y = huntpos._y + speed;
shot._y = shot._y + speed;
}
player.gotoAndStop("walk");
}
if ((actives < 4) && (_root.enemyactive < 1000040)) {
if (random(comespeed) == 0) {
enemyerzeuger.gotoAndPlay(2);
}
}
if (comespeed > 20) {
comespeed = int(comespeedstart - (bodycount / 2));
}
if (aktammo < 30) {
zufallammo = 300;
} else {
zufallammo = 600;
}
if (random(zufallammo) == 0) {
ammoerzeuger.gotoAndPlay(2);
}
if (player_life < 2) {
zufallammo2 = 200;
if (random(zufallammo2) == 0) {
lifeerzeuger.gotoAndPlay(2);
}
}
if (random(400) == 0) {
weilierzeuger.gotoAndPlay(2);
}
if (random(800) == 0) {
hanbaoerzeuger.gotoAndPlay(2);
}
if (random(800) == 0) {
shengdaierzeuger.gotoAndPlay(2);
}
};
Instance of Symbol 384 MovieClip "player" in Frame 460 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1100000);
}
Instance of Symbol 776 MovieClip "hulan2" in Frame 460 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150001);
}
Instance of Symbol 776 MovieClip "hulan3" in Frame 460 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150003);
}
Instance of Symbol 776 MovieClip "hulan1" in Frame 460 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150000);
}
Instance of Symbol 291 MovieClip "score_menu" in Frame 460 (53 B)
onClipEvent (load) {
this.depth = this.getDepth();
}
Frame 461 (742 B)
var a = (enemyactive - 100);
while (a < (enemyactive + 1)) {
_root["enemy" + a].removeMovieClip();
_root["boss_mc" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["ammo" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["weili_mc" + a].removeMovieClip();
a++;
}
var a = (lifeactive - 100);
while (a < (lifeactive + 1)) {
_root["add_life" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["hanbao_mc" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["shengdai_mc" + a].removeMovieClip();
a++;
}
Frame 485 (5.07 KiB) ● ●
function die_init() {
player.walkup = false;
player.walkdown = false;
player.walkleft = false;
player.walkright = false;
speedausgleich = 0;
}
function goto_gameover() {
_root.remove_bg();
_root.player.swapDepths(_root.player.depth);
gotoAndPlay (486);
}
stop();
gotomenuok = false;
shot._visible = false;
var shotactive = 500000;
var shotspeed = 200;
var smokenum = 400000;
var playeralive = true;
var speed = 12;
enemy.alive = "false";
var enemyactive = 1000000;
var ammoactive = 600000;
var lifeactive = 800000;
aktammo = aktammo + 30;
_root.score_txt = _root.score_txt + 200;
var comespeedstart = 70;
var comespeed = comespeedstart;
var actives = 0;
speedausgleich = 0;
zufallammo = 600;
zufallammo2 = 1600;
durchschlagshotgun = 1;
durchschlagMP = 0.5;
durchschlag = durchschlagshotgun;
tempoH = 0;
tempoV = 0;
var gunfires = true;
var player_inj = false;
var boss_act = false;
mc_life.gotoAndStop("l" + _root.player_life);
Key.removeListener(someListener);
someListener = new Object();
someListener.onKeyDown = function () {
var _local2 = _root;
if ((_local2.playeralive == true) && (_root.player_inj != true)) {
if (Key.isDown(37)) {
_local2.player.walkleft = true;
}
if (Key.isDown(39)) {
_local2.player.walkright = true;
}
if (Key.isDown(38)) {
_local2.player.walkup = true;
}
if (Key.isDown(40)) {
_local2.player.walkdown = true;
}
if (Key.isDown(32)) {
if (_root.playeralive == true) {
if (_root.aktammo > 0) {
if (_root.gunfires == true) {
_root.player.gotoAndStop("standfire");
_root.gunGO_mc.gotoAndPlay(2);
_root.gunfires = false;
shotactive = shotactive + 1;
duplicateMovieClip (shot, "shot" + shotactive, shotactive);
_root["shot" + shotactive]._visible = false;
_root["shot" + shotactive].fly = true;
_root["shot" + shotactive].shotspeed = shotspeed;
_root.smoke.gotoAndPlay(2);
_root.aktammo--;
}
}
}
}
}
};
someListener.onKeyUp = function () {
var _local2 = _root;
if (_local2.playeralive == true) {
if (Key.getCode() == 37) {
_local2.player.walkleft = false;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 39) {
_local2.player.walkright = false;
_root.speedausgleich = 0;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 38) {
_local2.player.walkup = false;
player.gotoAndStop("stand");
}
if (Key.getCode() == 40) {
_local2.player.walkdown = false;
_local2.player.gotoAndStop("stand");
}
if (Key.getCode() == 32) {
_local2.player.gotoAndStop("stand");
}
}
};
Key.addListener(someListener);
_root.player.onEnterFrame = function () {
if (player.walkleft == true) {
if (player._x > 50) {
player._x = player._x - speed;
shader._x = shader._x - speed;
smoke._x = smoke._x - speed;
huntpos._x = huntpos._x - speed;
shot._x = shot._x - speed;
}
player.gotoAndStop("walk");
}
if (player.walkright == true) {
if (player._x < 190) {
speedausgleich = 0;
player._x = player._x + speed;
shader._x = shader._x + speed;
smoke._x = smoke._x + speed;
huntpos._x = huntpos._x + speed;
shot._x = shot._x + speed;
} else if (player._x >= 190) {
speedausgleich = speed;
var _local2 = 1;
while (_local2 < 4) {
if (_root["bg0" + _local2]._x < -1000) {
_root["bg0" + _local2]._x = _root["bg0" + _local2]._x + 2750;
}
if (_root["hulan" + _local2]._x < -1000) {
_root["hulan" + _local2]._x = _root["hulan" + _local2]._x + 2750;
}
_root["bg0" + _local2]._x = _root["bg0" + _local2]._x - speedausgleich;
_root["hulan" + _local2]._x = _root["hulan" + _local2]._x - speedausgleich;
_local2++;
}
}
player.gotoAndStop("walk");
}
if (player.walkup == true) {
if (player._y > 350) {
player._y = player._y - speed;
shader._y = shader._y - speed;
smoke._y = smoke._y - speed;
huntpos._y = huntpos._y - speed;
shot._y = shot._y - speed;
}
player.gotoAndStop("walk");
}
if (player.walkdown == true) {
if (player._y < 540) {
player._y = player._y + speed;
smoke._y = smoke._y + speed;
huntpos._y = huntpos._y + speed;
shot._y = shot._y + speed;
}
player.gotoAndStop("walk");
}
if (actives < 4) {
if (random(comespeed) == 0) {
enemyerzeuger.gotoAndPlay(2);
}
}
if (comespeed > 20) {
comespeed = int(comespeedstart - (bodycount / 2));
}
if (aktammo < 30) {
zufallammo = 300;
} else {
zufallammo = 600;
}
if (random(zufallammo) == 0) {
ammoerzeuger.gotoAndPlay(2);
}
if (player_life < 2) {
zufallammo2 = 200;
if (random(zufallammo2) == 0) {
lifeerzeuger.gotoAndPlay(2);
}
}
if ((_root.bodycount > 120) && (_root.boss_act == false)) {
_root.boss_act = true;
bosserzeuger.gotoAndPlay(2);
}
if (random(400) == 0) {
weilierzeuger.gotoAndPlay(2);
}
if (random(800) == 0) {
hanbaoerzeuger.gotoAndPlay(2);
}
if (random(800) == 0) {
shengdaierzeuger.gotoAndPlay(2);
}
};
Instance of Symbol 384 MovieClip "player" in Frame 485 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1100000);
}
Instance of Symbol 793 MovieClip "hulan1" in Frame 485 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150000);
}
Instance of Symbol 793 MovieClip "hulan2" in Frame 485 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150001);
}
Instance of Symbol 793 MovieClip "hulan3" in Frame 485 (80 B)
onClipEvent (load) {
this.depth = this.getDepth();
this.swapDepths(1150002);
}
Instance of Symbol 291 MovieClip "score_menu" in Frame 485 (53 B)
onClipEvent (load) {
this.depth = this.getDepth();
}
Frame 486 (743 B)
var a = (enemyactive - 15);
while (a < (enemyactive + 100)) {
_root["enemy" + a].removeMovieClip();
_root["boss_mc" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 15);
while (a < (ammoactive + 100)) {
_root["ammo" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 15);
while (a < (ammoactive + 100)) {
_root["weili" + a].removeMovieClip();
a++;
}
var a = (lifeactive - 15);
while (a < (lifeactive + 100)) {
_root["add_life" + a].removeMovieClip();
a++;
}
var a = (lifeactive - 100);
while (a < (lifeactive + 1)) {
_root["hanbao_mc" + a].removeMovieClip();
a++;
}
var a = (lifeactive - 100);
while (a < (lifeactive + 1)) {
_root["shengdai_mc" + a].removeMovieClip();
a++;
}
Frame 701 (52 B)
stop();
_root.winNo = 2;
_root.score_menu.play();
Frame 702 (259 B)
stop();
end_bg_sd();
bg_sd(1);
System.useCodepage = true;
myXML.load(link_a_url);
if (highscore_act == true) {
yourscore_mc._visible = false;
} else {
yourscore_mc.yourname_txt.text = yourname_text;
yourscore_mc.yourscore_txt.text = score_txt;
}
Symbol 24 Button (58 B)
on (release) {
stopAllSounds();
gotoAndPlay ("loop0");
}
Symbol 49 Button (63 B)
on (release) {
getURL ("http://www.funcorder.com", "_self");
}
Symbol 50 Button (63 B)
on (release) {
getURL ("http://www.funcorder.com", "_self");
}
Symbol 51 Button (77 B)
on (release) {
getURL ("http://www.funcorder.com/exclusive.php", "_self");
}
Symbol 57 MovieClip Frame 1 (8 B)
stop();
Symbol 64 Button (36 B)
on (release) {
gotoAndStop (408);
}
Symbol 173 MovieClip Frame 1 (34 B)
_parent.ammotype = "mp";
stop();
Symbol 173 MovieClip Frame 2 (39 B)
_parent.ammotype = "shotgun";
stop();
Symbol 180 Button (36 B)
on (release) {
gotoAndStop (410);
}
Symbol 188 MovieClip Frame 1 (42 B)
if (isok == "yo") {
gotoAndPlay (3);
}
Symbol 188 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 188 MovieClip Frame 3 (189 B)
this._x = this._x - _root.speedausgleich;
if (_root.player.hitbox.hitTest(this.ammo) == true) {
_root.durchschlag = 2;
_root.weili_goto.gotoAndPlay(2);
gotoAndPlay ("collected");
}
Symbol 188 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 188 MovieClip Frame 16 (24 B)
this.removeMovieClip();
Symbol 213 MovieClip Frame 1 (8 B)
stop();
Symbol 216 MovieClip Frame 1 (8 B)
stop();
Symbol 218 MovieClip Frame 1 (8 B)
stop();
Symbol 227 MovieClip Frame 1 (8 B)
stop();
Symbol 228 MovieClip Frame 47 (71 B)
var duihua_no = (random(10) + 1);
this.duihua.gotoAndStop(duihua_no);
Symbol 228 MovieClip Frame 220 (17 B)
gotoAndPlay (1);
Symbol 234 MovieClip Frame 10 (17 B)
gotoAndPlay (7);
Symbol 236 MovieClip Frame 15 (24 B)
_parent.gotoAndStop(1);
Symbol 240 MovieClip Frame 24 (18 B)
gotoAndPlay (11);
Symbol 259 MovieClip Frame 90 (57 B)
_root.player_life++;
_root.Level++;
_root.next_game();
Symbol 260 MovieClip Frame 1 (8 B)
stop();
Symbol 260 MovieClip Frame 13 (17 B)
gotoAndStop (1);
Symbol 260 MovieClip Frame 51 (8 B)
stop();
Symbol 260 MovieClip Frame 68 (8 B)
stop();
Symbol 265 MovieClip Frame 1 (119 B)
n1 = int(_root.point / 100);
n2 = int((_root.point - (n1 * 100)) / 10);
n3 = (_root.point - (n1 * 100)) - (n2 * 10);
Symbol 269 MovieClip Frame 2 (8 B)
stop();
Symbol 269 MovieClip Frame 10 (8 B)
stop();
Symbol 269 MovieClip Frame 18 (8 B)
stop();
Symbol 269 MovieClip Frame 26 (8 B)
stop();
Symbol 269 MovieClip Frame 34 (8 B)
stop();
Symbol 269 MovieClip Frame 35 (50 B)
stop();
stopAllSounds();
_root.gameover_init();
Symbol 280 Button (998 B)
on (release) {
_root.remove_bg();
_root.player.swapDepths(_root.player.depth);
_root.score_menu.swapDepths(_root.score_menu.depth);
var a = (_root.enemyactive - 100);
while (a < (_root.enemyactive + 100)) {
_root["enemy" + a].removeMovieClip();
_root["boss_mc" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 100)) {
_root["ammo" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 100)) {
_root["weili_mc" + a].removeMovieClip();
a++;
}
var a = (_root.lifeactive - 100);
while (a < (_root.lifeactive + 100)) {
_root["add_life" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 1)) {
_root["hanbao_mc" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 1)) {
_root["shengdai_mc" + a].removeMovieClip();
a++;
}
_parent._parent.gotoAndStop("start");
}
Symbol 282 Button (988 B)
on (press) {
_root.remove_bg();
_root.player.swapDepths(_root.player.depth);
_root.score_menu.swapDepths(_root.score_menu.depth);
var a = (_root.enemyactive - 100);
while (a < (_root.enemyactive + 100)) {
_root["enemy" + a].removeMovieClip();
_root["boss_mc" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 100)) {
_root["ammo" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 100)) {
_root["weili_mc" + a].removeMovieClip();
a++;
}
var a = (_root.lifeactive - 100);
while (a < (_root.lifeactive + 100)) {
_root["add_life" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 1)) {
_root["hanbao_mc" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 1)) {
_root["shengdai_mc" + a].removeMovieClip();
a++;
}
_root.sendAndLoad_data_fun();
}
Symbol 289 MovieClip Frame 1 (8 B)
stop();
Symbol 291 MovieClip Frame 1 (8 B)
stop();
Symbol 291 MovieClip Frame 2 (31 B)
menu.gotoAndStop(_root.winNo);
Symbol 291 MovieClip Frame 7 (31 B)
menu.gotoAndStop(_root.winNo);
Symbol 291 MovieClip Frame 15 (40 B)
stop();
menu.gotoAndStop(_root.winNo);
Symbol 298 MovieClip Frame 1 (203 B)
n4 = int(_root.time_txt / 600);
n1 = int((_root.time_txt - (n4 * 600)) / 60);
n2 = int(((_root.time_txt - (n4 * 600)) - (n1 * 60)) / 10);
n3 = ((_root.time_txt - (n4 * 600)) - (n1 * 60)) - (n2 * 10);
Symbol 301 Button (36 B)
on (release) {
gotoAndStop (408);
}
Symbol 357 MovieClip Frame 5 (57 B)
_root.player_inj = false;
_parent.gotoAndStop("stand");
Symbol 383 MovieClip Frame 1 (52 B)
_root.mc_life.gotoAndPlay("l" + _root.player_life);
Symbol 383 MovieClip Frame 32 (28 B)
stop();
_root.next_game();
Symbol 384 MovieClip Frame 1 (8 B)
stop();
Symbol 384 MovieClip Frame 13 (24 B)
play();
trace("aaaa");
Symbol 384 MovieClip Frame 15 (15 B)
trace("pass");
Symbol 384 MovieClip Frame 63 (29 B)
_root.game(_root.Level + 1);
Symbol 478 MovieClip Frame 10 (17 B)
gotoAndPlay (1);
Symbol 478 MovieClip Frame 29 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 478 MovieClip Frame 42 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 478 MovieClip Frame 65 (32 B)
_parent.fadeit = true;
stop();
Symbol 478 MovieClip Frame 103 (32 B)
_parent.fadeit = true;
stop();
Symbol 480 MovieClip Frame 1 (70 B)
if (this.alive == "true") {
gotoAndPlay (2);
} else {
stop();
}
Symbol 480 MovieClip Frame 2 (87 B)
xwalkspeed = 3 + random(5);
ywalkspeed = 1;
fadewaiter = 0;
energy = 1 + random(5);
Symbol 480 MovieClip Frame 3 (2.36 KiB) ●
anzeige.text = this.energy;
xwalkspeedakt = xwalkspeed + _root.speedausgleich;
diffx = Math.round(this._x - _root.huntpos._x);
diffy = Math.round(this._y - _root.huntpos._y);
if (this.fadeit == true) {
if ((this._alpha > 0) && (this.fadewaiter > 30)) {
this._alpha = this._alpha - 10;
} else if (this._alpha < 0) {
stop();
this.removeMovieClip();
} else {
fadewaiter = fadewaiter + 1;
}
}
if (this.alive == "true") {
if (_root.playeralive == true) {
if (random(50) < 3) {
this.walkallowed = true;
} else if (random(50) == 4) {
this.walkallowed = false;
this.enemy.gotoAndStop(1);
}
if (this.walkallowed == true) {
this.enemy.play();
if (diffx > 2) {
this._xscale = 86;
this._x = this._x - xwalkspeedakt;
} else if (diffx < 0) {
this._xscale = -86;
this._x = this._x + xwalkspeedakt;
}
if (diffy > 8) {
this._y = this._y - ywalkspeed;
} else if (diffy < 5) {
this._y = this._y + ywalkspeed;
}
} else {
this._x = this._x - _root.speedausgleich;
}
}
} else {
this._x = this._x - _root.speedausgleich;
}
this.getroffen = false;
a = _root.shotactive - 20;
while (a < (_root.shotactive + 1)) {
if (_root["shot" + a].hitTest(this.enemy.hitbox) == true) {
_root["shot" + a].removeMovieClip();
this.getroffen = true;
}
a++;
}
if (this.alive != "deathsceneplayed") {
if (_root.player.hitbox.hitTest(this.enemy.hitbox) == true) {
if ((_root.playeralive == true) && (this.att_act == false)) {
_root.playeralive = false;
_root.die_init();
_root.player.gotoAndStop("die");
this.enemy.gotoAndPlay("att");
}
}
if (this.getroffen == true) {
this.energy = this.energy - _root.durchschlag;
if (this.energy < 0.5) {
var die_ra = (random(2) + 1);
_root.actives = _root.actives - 1;
this.alive = "false";
_root.bodycount = _root.bodycount + 1;
_root.score_txt = _root.score_txt + 100;
this.enemy.gotoAndPlay("die" + die_ra);
this.alive = "deathsceneplayed";
_root.win_level(_root.Level);
} else {
if (xwalkspeed > 2) {
xwalkspeed = xwalkspeed - 1;
}
_root.score_txt = _root.score_txt + 50;
this.enemy.gotoAndPlay("inj");
if (diffx > 0) {
this._x = this._x + 20;
} else if (diffx < 0) {
this._x = this._x - 20;
}
}
}
}
Symbol 480 MovieClip Frame 4 (84 B)
if (_root.playeralive == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (3);
}
Symbol 537 MovieClip Frame 10 (17 B)
gotoAndPlay (1);
Symbol 537 MovieClip Frame 25 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 537 MovieClip Frame 38 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 537 MovieClip Frame 62 (32 B)
_parent.fadeit = true;
stop();
Symbol 537 MovieClip Frame 103 (32 B)
_parent.fadeit = true;
stop();
Symbol 538 MovieClip Frame 1 (70 B)
if (this.alive == "true") {
gotoAndPlay (2);
} else {
stop();
}
Symbol 538 MovieClip Frame 2 (87 B)
xwalkspeed = 5 + random(5);
ywalkspeed = 1;
fadewaiter = 0;
energy = 1 + random(5);
Symbol 538 MovieClip Frame 3 (2.36 KiB) ●
anzeige.text = this.energy;
xwalkspeedakt = xwalkspeed + _root.speedausgleich;
diffx = Math.round(this._x - _root.huntpos._x);
diffy = Math.round(this._y - _root.huntpos._y);
if (this.fadeit == true) {
if ((this._alpha > 0) && (this.fadewaiter > 30)) {
this._alpha = this._alpha - 10;
} else if (this._alpha < 0) {
stop();
this.removeMovieClip();
} else {
fadewaiter = fadewaiter + 1;
}
}
if (this.alive == "true") {
if (_root.playeralive == true) {
if (random(50) < 3) {
this.walkallowed = true;
} else if (random(50) == 4) {
this.walkallowed = false;
this.enemy.gotoAndStop(1);
}
if (this.walkallowed == true) {
this.enemy.play();
if (diffx > 2) {
this._xscale = 86;
this._x = this._x - xwalkspeedakt;
} else if (diffx < 0) {
this._xscale = -86;
this._x = this._x + xwalkspeedakt;
}
if (diffy > 8) {
this._y = this._y - ywalkspeed;
} else if (diffy < 5) {
this._y = this._y + ywalkspeed;
}
} else {
this._x = this._x - _root.speedausgleich;
}
}
} else {
this._x = this._x - _root.speedausgleich;
}
this.getroffen = false;
a = _root.shotactive - 20;
while (a < (_root.shotactive + 1)) {
if (_root["shot" + a].hitTest(this.enemy.hitbox) == true) {
_root["shot" + a].removeMovieClip();
this.getroffen = true;
}
a++;
}
if (this.alive != "deathsceneplayed") {
if (_root.player.hitbox.hitTest(this.enemy.hitbox) == true) {
if ((_root.playeralive == true) && (this.att_act == false)) {
_root.playeralive = false;
_root.die_init();
_root.player.gotoAndStop("die");
this.enemy.gotoAndPlay("att");
}
}
if (this.getroffen == true) {
this.energy = this.energy - _root.durchschlag;
if (this.energy < 0.5) {
var die_ra = (random(2) + 1);
_root.actives = _root.actives - 1;
this.alive = "false";
_root.bodycount = _root.bodycount + 1;
_root.score_txt = _root.score_txt + 100;
this.enemy.gotoAndPlay("die" + die_ra);
this.alive = "deathsceneplayed";
_root.win_level(_root.Level);
} else {
if (xwalkspeed > 2) {
xwalkspeed = xwalkspeed - 1;
}
_root.score_txt = _root.score_txt + 50;
this.enemy.gotoAndPlay("inj");
if (diffx > 0) {
this._x = this._x + 20;
} else if (diffx < 0) {
this._x = this._x - 20;
}
}
}
}
Symbol 538 MovieClip Frame 4 (84 B)
if (_root.playeralive == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (3);
}
Symbol 603 MovieClip Frame 10 (17 B)
gotoAndPlay (1);
Symbol 603 MovieClip Frame 23 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 603 MovieClip Frame 36 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 603 MovieClip Frame 53 (32 B)
_parent.fadeit = true;
stop();
Symbol 603 MovieClip Frame 88 (32 B)
_parent.fadeit = true;
stop();
Symbol 605 MovieClip Frame 1 (70 B)
if (this.alive == "true") {
gotoAndPlay (2);
} else {
stop();
}
Symbol 605 MovieClip Frame 2 (87 B)
xwalkspeed = 2 + random(5);
ywalkspeed = 1;
fadewaiter = 0;
energy = 1 + random(5);
Symbol 605 MovieClip Frame 3 (2.36 KiB) ●
anzeige.text = this.energy;
xwalkspeedakt = xwalkspeed + _root.speedausgleich;
diffx = Math.round(this._x - _root.huntpos._x);
diffy = Math.round(this._y - _root.huntpos._y);
if (this.fadeit == true) {
if ((this._alpha > 0) && (this.fadewaiter > 30)) {
this._alpha = this._alpha - 10;
} else if (this._alpha < 0) {
stop();
this.removeMovieClip();
} else {
fadewaiter = fadewaiter + 1;
}
}
if (this.alive == "true") {
if (_root.playeralive == true) {
if (random(50) < 3) {
this.walkallowed = true;
} else if (random(50) == 4) {
this.walkallowed = false;
this.enemy.gotoAndStop(1);
}
if (this.walkallowed == true) {
this.enemy.play();
if (diffx > 2) {
this._xscale = 86;
this._x = this._x - xwalkspeedakt;
} else if (diffx < 0) {
this._xscale = -86;
this._x = this._x + xwalkspeedakt;
}
if (diffy > 8) {
this._y = this._y - ywalkspeed;
} else if (diffy < 5) {
this._y = this._y + ywalkspeed;
}
} else {
this._x = this._x - _root.speedausgleich;
}
}
} else {
this._x = this._x - _root.speedausgleich;
}
this.getroffen = false;
a = _root.shotactive - 20;
while (a < (_root.shotactive + 1)) {
if (_root["shot" + a].hitTest(this.enemy.hitbox) == true) {
_root["shot" + a].removeMovieClip();
this.getroffen = true;
}
a++;
}
if (this.alive != "deathsceneplayed") {
if (_root.player.hitbox.hitTest(this.enemy.hitbox) == true) {
if ((_root.playeralive == true) && (this.att_act == false)) {
_root.playeralive = false;
_root.die_init();
_root.player.gotoAndStop("die");
this.enemy.gotoAndPlay("att");
}
}
if (this.getroffen == true) {
this.energy = this.energy - _root.durchschlag;
if (this.energy < 0.5) {
var die_ra = (random(2) + 1);
_root.actives = _root.actives - 1;
this.alive = "false";
_root.bodycount = _root.bodycount + 1;
_root.score_txt = _root.score_txt + 100;
this.enemy.gotoAndPlay("die" + die_ra);
this.alive = "deathsceneplayed";
_root.win_level(_root.Level);
} else {
if (xwalkspeed > 2) {
xwalkspeed = xwalkspeed - 1;
}
_root.score_txt = _root.score_txt + 50;
this.enemy.gotoAndPlay("inj");
if (diffx > 0) {
this._x = this._x + 20;
} else if (diffx < 0) {
this._x = this._x - 20;
}
}
}
}
Symbol 605 MovieClip Frame 4 (84 B)
if (_root.playeralive == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (3);
}
Symbol 620 MovieClip Frame 10 (17 B)
gotoAndPlay (1);
Symbol 620 MovieClip Frame 21 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 620 MovieClip Frame 45 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 620 MovieClip Frame 62 (32 B)
_parent.fadeit = true;
stop();
Symbol 620 MovieClip Frame 79 (32 B)
_parent.fadeit = true;
stop();
Symbol 621 MovieClip Frame 1 (70 B)
if (this.alive == "true") {
gotoAndPlay (2);
} else {
stop();
}
Symbol 621 MovieClip Frame 2 (87 B)
xwalkspeed = 4 + random(5);
ywalkspeed = 1;
fadewaiter = 0;
energy = 1 + random(5);
Symbol 621 MovieClip Frame 3 (2.36 KiB) ●
anzeige.text = this.energy;
xwalkspeedakt = xwalkspeed + _root.speedausgleich;
diffx = Math.round(this._x - _root.huntpos._x);
diffy = Math.round(this._y - _root.huntpos._y);
if (this.fadeit == true) {
if ((this._alpha > 0) && (this.fadewaiter > 30)) {
this._alpha = this._alpha - 10;
} else if (this._alpha < 0) {
stop();
this.removeMovieClip();
} else {
fadewaiter = fadewaiter + 1;
}
}
if (this.alive == "true") {
if (_root.playeralive == true) {
if (random(50) < 3) {
this.walkallowed = true;
} else if (random(50) == 4) {
this.walkallowed = false;
this.enemy.gotoAndStop(1);
}
if (this.walkallowed == true) {
this.enemy.play();
if (diffx > 2) {
this._xscale = 86;
this._x = this._x - xwalkspeedakt;
} else if (diffx < 0) {
this._xscale = -86;
this._x = this._x + xwalkspeedakt;
}
if (diffy > 8) {
this._y = this._y - ywalkspeed;
} else if (diffy < 5) {
this._y = this._y + ywalkspeed;
}
} else {
this._x = this._x - _root.speedausgleich;
}
}
} else {
this._x = this._x - _root.speedausgleich;
}
this.getroffen = false;
a = _root.shotactive - 20;
while (a < (_root.shotactive + 1)) {
if (_root["shot" + a].hitTest(this.enemy.hitbox) == true) {
_root["shot" + a].removeMovieClip();
this.getroffen = true;
}
a++;
}
if (this.alive != "deathsceneplayed") {
if (_root.player.hitbox.hitTest(this.enemy.hitbox) == true) {
if ((_root.playeralive == true) && (this.att_act == false)) {
_root.playeralive = false;
_root.die_init();
_root.player.gotoAndStop("die");
this.enemy.gotoAndPlay("att");
}
}
if (this.getroffen == true) {
this.energy = this.energy - _root.durchschlag;
if (this.energy < 0.5) {
var die_ra = (random(2) + 1);
_root.actives = _root.actives - 1;
this.alive = "false";
_root.bodycount = _root.bodycount + 1;
_root.score_txt = _root.score_txt + 100;
this.enemy.gotoAndPlay("die" + die_ra);
this.alive = "deathsceneplayed";
_root.win_level(_root.Level);
} else {
if (xwalkspeed > 2) {
xwalkspeed = xwalkspeed - 1;
}
_root.score_txt = _root.score_txt + 50;
this.enemy.gotoAndPlay("inj");
if (diffx > 0) {
this._x = this._x + 20;
} else if (diffx < 0) {
this._x = this._x - 20;
}
}
}
}
Symbol 621 MovieClip Frame 4 (84 B)
if (_root.playeralive == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (3);
}
Symbol 622 MovieClip Frame 1 (8 B)
stop();
Symbol 623 MovieClip Frame 2 (42 B)
if (fly == false) {
gotoAndPlay (1);
}
Symbol 623 MovieClip Frame 3 (69 B)
shot._x = shot._x + shotspeed;
shot.gotoAndStop(_root.durchschlag);
Symbol 623 MovieClip Frame 4 (72 B)
if (shot._x > 4000) {
this.removeMovieClip();
}
gotoAndPlay (3);
Symbol 626 MovieClip Frame 1 (8 B)
stop();
Symbol 626 MovieClip Frame 2 (87 B)
if (_root.durchschlag == 1) {
gotoAndPlay ("q1");
} else {
gotoAndPlay ("q2");
}
Symbol 626 MovieClip Frame 5 (17 B)
gotoAndStop (1);
Symbol 626 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 649 MovieClip Frame 10 (17 B)
gotoAndPlay (1);
Symbol 649 MovieClip Frame 30 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 649 MovieClip Frame 43 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 649 MovieClip Frame 67 (56 B)
_parent.fadeit = true;
stop();
_root.goto_gameover();
Symbol 650 MovieClip Frame 1 (70 B)
if (this.alive == "true") {
gotoAndPlay (2);
} else {
stop();
}
Symbol 650 MovieClip Frame 2 (88 B)
xwalkspeed = 4 + random(5);
ywalkspeed = 3;
fadewaiter = 0;
energy = 20 + random(5);
Symbol 650 MovieClip Frame 3 (2.35 KiB) ●
anzeige.text = this.energy;
xwalkspeedakt = xwalkspeed + _root.speedausgleich;
diffx = Math.round(this._x - _root.huntpos._x);
diffy = Math.round(this._y - _root.huntpos._y);
if (this.fadeit == true) {
if ((this._alpha > 0) && (this.fadewaiter > 30)) {
this._alpha = this._alpha - 10;
} else if (this._alpha < 0) {
stop();
this.removeMovieClip();
} else {
fadewaiter = fadewaiter + 1;
}
}
if (this.alive == "true") {
if (_root.playeralive == true) {
if (random(50) < 3) {
this.walkallowed = true;
} else if (random(50) == 4) {
this.walkallowed = false;
}
if (this.walkallowed == true) {
if (diffx > 2) {
this._xscale = 86;
this._x = this._x - xwalkspeedakt;
} else if (diffx < 0) {
this._xscale = -86;
this._x = this._x + xwalkspeedakt;
}
if (diffy > 8) {
this._y = this._y - ywalkspeed;
} else if (diffy < 5) {
this._y = this._y + ywalkspeed;
}
} else {
this._x = this._x - _root.speedausgleich;
}
}
} else {
this._x = this._x - _root.speedausgleich;
}
this.getroffen = false;
a = _root.shotactive - 20;
while (a < (_root.shotactive + 1)) {
if (_root["shot" + a].hitTest(this.enemy.hitbox) == true) {
_root["shot" + a].removeMovieClip();
this.getroffen = true;
}
a++;
}
if (this.alive != "deathsceneplayed") {
if ((_root.player.hitbox.hitTest(this.enemy.hitbox) == true) || (_root.player.hitbox.hitTest(this.enemy.hitbox2) == true)) {
if ((_root.playeralive == true) && (this.att_act == false)) {
this.att_act = true;
_root.playeralive = false;
_root.die_init();
_root.player.gotoAndStop("die");
this.enemy.gotoAndPlay("att");
}
}
if ((this.getroffen == true) && (this.att_act == false)) {
this.energy = this.energy - _root.durchschlag;
if (this.energy < 0.5) {
_root.actives = _root.actives - 1;
this.alive = "false";
_root.bodycount = _root.bodycount + 1;
_root.score_txt = _root.score_txt + 1000;
this.enemy.gotoAndPlay("die");
this.alive = "deathsceneplayed";
} else {
if (xwalkspeed > 2) {
xwalkspeed = xwalkspeed - 1;
}
_root.score_txt = _root.score_txt + 150;
this.enemy.gotoAndPlay("inj");
if (diffx > 0) {
this._x = this._x + 20;
} else if (diffx < 0) {
this._x = this._x - 20;
}
}
}
}
Symbol 650 MovieClip Frame 4 (84 B)
if (_root.playeralive == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (3);
}
Symbol 698 MovieClip Frame 12 (17 B)
gotoAndPlay (2);
Symbol 698 MovieClip Frame 23 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 698 MovieClip Frame 40 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 698 MovieClip Frame 57 (32 B)
_parent.fadeit = true;
stop();
Symbol 698 MovieClip Frame 74 (32 B)
_parent.fadeit = true;
stop();
Symbol 700 MovieClip Frame 1 (70 B)
if (this.alive == "true") {
gotoAndPlay (2);
} else {
stop();
}
Symbol 700 MovieClip Frame 2 (87 B)
xwalkspeed = 5 + random(6);
ywalkspeed = 1;
fadewaiter = 0;
energy = 1 + random(5);
Symbol 700 MovieClip Frame 3 (2.36 KiB) ●
anzeige.text = this.energy;
xwalkspeedakt = xwalkspeed + _root.speedausgleich;
diffx = Math.round(this._x - _root.huntpos._x);
diffy = Math.round(this._y - _root.huntpos._y);
if (this.fadeit == true) {
if ((this._alpha > 0) && (this.fadewaiter > 30)) {
this._alpha = this._alpha - 10;
} else if (this._alpha < 0) {
stop();
this.removeMovieClip();
} else {
fadewaiter = fadewaiter + 1;
}
}
if (this.alive == "true") {
if (_root.playeralive == true) {
if (random(50) < 3) {
this.walkallowed = true;
} else if (random(50) == 4) {
this.walkallowed = false;
this.enemy.gotoAndStop(1);
}
if (this.walkallowed == true) {
this.enemy.play();
if (diffx > 2) {
this._xscale = 86;
this._x = this._x - xwalkspeedakt;
} else if (diffx < 0) {
this._xscale = -86;
this._x = this._x + xwalkspeedakt;
}
if (diffy > 8) {
this._y = this._y - ywalkspeed;
} else if (diffy < 5) {
this._y = this._y + ywalkspeed;
}
} else {
this._x = this._x - _root.speedausgleich;
}
}
} else {
this._x = this._x - _root.speedausgleich;
}
this.getroffen = false;
a = _root.shotactive - 20;
while (a < (_root.shotactive + 1)) {
if (_root["shot" + a].hitTest(this.enemy.hitbox) == true) {
_root["shot" + a].removeMovieClip();
this.getroffen = true;
}
a++;
}
if (this.alive != "deathsceneplayed") {
if (_root.player.hitbox.hitTest(this.enemy.hitbox) == true) {
if ((_root.playeralive == true) && (this.att_act == false)) {
_root.playeralive = false;
_root.die_init();
_root.player.gotoAndStop("die");
this.enemy.gotoAndPlay("att");
}
}
if (this.getroffen == true) {
this.energy = this.energy - _root.durchschlag;
if (this.energy < 0.5) {
var die_ra = (random(2) + 1);
_root.actives = _root.actives - 1;
this.alive = "false";
_root.bodycount = _root.bodycount + 1;
_root.score_txt = _root.score_txt + 100;
this.enemy.gotoAndPlay("die" + die_ra);
this.alive = "deathsceneplayed";
_root.win_level(_root.Level);
} else {
if (xwalkspeed > 2) {
xwalkspeed = xwalkspeed - 1;
}
_root.score_txt = _root.score_txt + 50;
this.enemy.gotoAndPlay("inj");
if (diffx > 0) {
this._x = this._x + 20;
} else if (diffx < 0) {
this._x = this._x - 20;
}
}
}
}
Symbol 700 MovieClip Frame 4 (84 B)
if (_root.playeralive == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (3);
}
Symbol 735 MovieClip Frame 12 (17 B)
gotoAndPlay (2);
Symbol 735 MovieClip Frame 23 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 735 MovieClip Frame 40 (43 B)
gotoAndPlay (1);
_parent.att_act = false;
Symbol 735 MovieClip Frame 57 (32 B)
_parent.fadeit = true;
stop();
Symbol 735 MovieClip Frame 74 (32 B)
_parent.fadeit = true;
stop();
Symbol 736 MovieClip Frame 1 (70 B)
if (this.alive == "true") {
gotoAndPlay (2);
} else {
stop();
}
Symbol 736 MovieClip Frame 2 (87 B)
xwalkspeed = 3 + random(6);
ywalkspeed = 1;
fadewaiter = 0;
energy = 1 + random(5);
Symbol 736 MovieClip Frame 3 (2.36 KiB) ●
anzeige.text = this.energy;
xwalkspeedakt = xwalkspeed + _root.speedausgleich;
diffx = Math.round(this._x - _root.huntpos._x);
diffy = Math.round(this._y - _root.huntpos._y);
if (this.fadeit == true) {
if ((this._alpha > 0) && (this.fadewaiter > 30)) {
this._alpha = this._alpha - 10;
} else if (this._alpha < 0) {
stop();
this.removeMovieClip();
} else {
fadewaiter = fadewaiter + 1;
}
}
if (this.alive == "true") {
if (_root.playeralive == true) {
if (random(50) < 3) {
this.walkallowed = true;
} else if (random(50) == 4) {
this.walkallowed = false;
this.enemy.gotoAndStop(1);
}
if (this.walkallowed == true) {
this.enemy.play();
if (diffx > 2) {
this._xscale = 86;
this._x = this._x - xwalkspeedakt;
} else if (diffx < 0) {
this._xscale = -86;
this._x = this._x + xwalkspeedakt;
}
if (diffy > 8) {
this._y = this._y - ywalkspeed;
} else if (diffy < 5) {
this._y = this._y + ywalkspeed;
}
} else {
this._x = this._x - _root.speedausgleich;
}
}
} else {
this._x = this._x - _root.speedausgleich;
}
this.getroffen = false;
a = _root.shotactive - 20;
while (a < (_root.shotactive + 1)) {
if (_root["shot" + a].hitTest(this.enemy.hitbox) == true) {
_root["shot" + a].removeMovieClip();
this.getroffen = true;
}
a++;
}
if (this.alive != "deathsceneplayed") {
if (_root.player.hitbox.hitTest(this.enemy.hitbox) == true) {
if ((_root.playeralive == true) && (this.att_act == false)) {
_root.playeralive = false;
_root.die_init();
_root.player.gotoAndStop("die");
this.enemy.gotoAndPlay("att");
}
}
if (this.getroffen == true) {
this.energy = this.energy - _root.durchschlag;
if (this.energy < 0.5) {
var die_ra = (random(2) + 1);
_root.actives = _root.actives - 1;
this.alive = "false";
_root.bodycount = _root.bodycount + 1;
_root.score_txt = _root.score_txt + 100;
this.enemy.gotoAndPlay("die" + die_ra);
this.alive = "deathsceneplayed";
_root.win_level(_root.Level);
} else {
if (xwalkspeed > 2) {
xwalkspeed = xwalkspeed - 1;
}
_root.score_txt = _root.score_txt + 50;
this.enemy.gotoAndPlay("inj");
if (diffx > 0) {
this._x = this._x + 20;
} else if (diffx < 0) {
this._x = this._x - 20;
}
}
}
}
Symbol 736 MovieClip Frame 4 (84 B)
if (_root.playeralive == true) {
gotoAndPlay (3);
} else {
gotoAndPlay (3);
}
Symbol 739 MovieClip Frame 1 (8 B)
stop();
Symbol 739 MovieClip Frame 15 (41 B)
_root.gunfires = true;
gotoAndStop (1);
Symbol 740 MovieClip Frame 1 (8 B)
stop();
Symbol 740 MovieClip Frame 2 (374 B)
_root.enemyactive = _root.enemyactive + 1;
var ra_enemy = (random(2) + 1);
duplicateMovieClip (_root["enemy" + ra_enemy], "enemy" + _root.enemyactive, _root.enemyactive);
_root["enemy" + _root.enemyactive].alive = "true";
_root["enemy" + _root.enemyactive].att_act = false;
_root["enemy" + _root.enemyactive]._y = 350 + random(200);
_root.actives = _root.actives + 1;
Symbol 740 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 741 MovieClip Frame 1 (8 B)
stop();
Symbol 741 MovieClip Frame 2 (225 B)
_root.ammoactive = _root.ammoactive + 1;
duplicateMovieClip (_root.ammo, "ammo" + _root.ammoactive, _root.ammoactive);
_root["ammo" + _root.ammoactive].isok = "yo";
_root["ammo" + _root.ammoactive]._y = 300 + random(200);
Symbol 741 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 746 MovieClip Frame 1 (42 B)
if (isok == "yo") {
gotoAndPlay (3);
}
Symbol 746 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 746 MovieClip Frame 3 (167 B)
this._x = this._x - _root.speedausgleich;
if (_root.player.hitbox.hitTest(this.ammo) == true) {
_root.aktammo = _root.aktammo + 20;
gotoAndPlay ("collected");
}
Symbol 746 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 746 MovieClip Frame 16 (24 B)
this.removeMovieClip();
Symbol 747 MovieClip Frame 1 (42 B)
if (isok == "yo") {
gotoAndPlay (3);
}
Symbol 747 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 747 MovieClip Frame 3 (323 B)
this._x = this._x - _root.speedausgleich;
if (_root.player.hitbox.hitTest(this.life) == true) {
if (_root.player_life < 5) {
_root.player_life = _root.player_life + 1;
_root.mc_life.gotoAndStop("l" + _root.player_life);
} else {
_root.score_txt = _root.score_txt + 200;
}
gotoAndPlay ("collected");
}
Symbol 747 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 747 MovieClip Frame 16 (24 B)
this.removeMovieClip();
Symbol 748 MovieClip Frame 1 (8 B)
stop();
Symbol 748 MovieClip Frame 2 (241 B)
_root.lifeactive = _root.lifeactive + 1;
duplicateMovieClip (_root.add_life, "add_life" + _root.lifeactive, _root.lifeactive);
_root["add_life" + _root.lifeactive].isok = "yo";
_root["add_life" + _root.lifeactive]._y = 350 + random(200);
Symbol 748 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 750 MovieClip Frame 1 (8 B)
stop();
Symbol 750 MovieClip Frame 2 (301 B)
_root.enemyactive = _root.enemyactive + 1;
duplicateMovieClip (_root.boss_mc, "boss_mc" + _root.enemyactive, _root.enemyactive);
_root["boss_mc" + _root.enemyactive].alive = "true";
_root["boss_mc" + _root.enemyactive].att_act = false;
_root["boss_mc" + _root.enemyactive]._y = 350 + random(200);
Symbol 750 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 751 MovieClip Frame 1 (8 B)
stop();
Symbol 751 MovieClip Frame 2 (241 B)
_root.ammoactive = _root.ammoactive + 1;
duplicateMovieClip (_root.weili_mc, "weili_mc" + _root.ammoactive, _root.ammoactive);
_root["weili_mc" + _root.ammoactive].isok = "yo";
_root["weili_mc" + _root.ammoactive]._y = 300 + random(200);
Symbol 751 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 755 MovieClip Frame 1 (8 B)
stop();
Symbol 755 MovieClip Frame 250 (41 B)
_root.durchschlag = 1;
gotoAndStop (1);
Symbol 756 Button (869 B)
on (release) {
_root.remove_bg();
_root.player.swapDepths(_root.player.depth);
var a = (enemyactive - 100);
while (a < (enemyactive + 1)) {
_root["enemy" + a].removeMovieClip();
_root["boss_mc" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["ammo" + a].removeMovieClip();
a++;
}
var a = (ammoactive - 100);
while (a < (ammoactive + 1)) {
_root["weili_mc" + a].removeMovieClip();
a++;
}
var a = (lifeactive - 100);
while (a < (lifeactive + 1)) {
_root["add_life" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 1)) {
_root["hanbao_mc" + a].removeMovieClip();
a++;
}
var a = (_root.ammoactive - 100);
while (a < (_root.ammoactive + 1)) {
_root["shengdai_mc" + a].removeMovieClip();
a++;
}
gotoAndStop (408);
}
Symbol 760 MovieClip Frame 1 (42 B)
if (isok == "yo") {
gotoAndPlay (3);
}
Symbol 760 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 760 MovieClip Frame 3 (172 B)
this._x = this._x - _root.speedausgleich;
if (_root.player.hitbox.hitTest(this.ammo) == true) {
_root.score_txt = _root.score_txt + 100;
gotoAndPlay ("collected");
}
Symbol 760 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 760 MovieClip Frame 16 (24 B)
this.removeMovieClip();
Symbol 763 MovieClip Frame 1 (42 B)
if (isok == "yo") {
gotoAndPlay (3);
}
Symbol 763 MovieClip Frame 2 (17 B)
gotoAndPlay (1);
Symbol 763 MovieClip Frame 3 (171 B)
this._x = this._x - _root.speedausgleich;
if (_root.player.hitbox.hitTest(this.ammo) == true) {
_root.score_txt = _root.score_txt + 50;
gotoAndPlay ("collected");
}
Symbol 763 MovieClip Frame 4 (17 B)
gotoAndPlay (3);
Symbol 763 MovieClip Frame 16 (24 B)
this.removeMovieClip();
Symbol 764 MovieClip Frame 1 (8 B)
stop();
Symbol 764 MovieClip Frame 2 (245 B)
_root.ammoactive = _root.ammoactive + 1;
duplicateMovieClip (_root.hanbao_mc, "hanbao_mc" + _root.ammoactive, _root.ammoactive);
_root["hanbao_mc" + _root.ammoactive].isok = "yo";
_root["hanbao_mc" + _root.ammoactive]._y = 300 + random(200);
Symbol 764 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 765 MovieClip Frame 1 (8 B)
stop();
Symbol 765 MovieClip Frame 2 (253 B)
_root.ammoactive = _root.ammoactive + 1;
duplicateMovieClip (_root.shengdai_mc, "shengdai_mc" + _root.ammoactive, _root.ammoactive);
_root["shengdai_mc" + _root.ammoactive].isok = "yo";
_root["shengdai_mc" + _root.ammoactive]._y = 300 + random(200);
Symbol 765 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 777 MovieClip Frame 1 (8 B)
stop();
Symbol 777 MovieClip Frame 2 (374 B)
_root.enemyactive = _root.enemyactive + 1;
var ra_enemy = (random(4) + 1);
duplicateMovieClip (_root["enemy" + ra_enemy], "enemy" + _root.enemyactive, _root.enemyactive);
_root["enemy" + _root.enemyactive].alive = "true";
_root["enemy" + _root.enemyactive].att_act = false;
_root["enemy" + _root.enemyactive]._y = 350 + random(200);
_root.actives = _root.actives + 1;
Symbol 777 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 794 MovieClip Frame 1 (8 B)
stop();
Symbol 794 MovieClip Frame 2 (374 B)
_root.enemyactive = _root.enemyactive + 1;
var ra_enemy = (random(6) + 1);
duplicateMovieClip (_root["enemy" + ra_enemy], "enemy" + _root.enemyactive, _root.enemyactive);
_root["enemy" + _root.enemyactive].alive = "true";
_root["enemy" + _root.enemyactive].att_act = false;
_root["enemy" + _root.enemyactive]._y = 350 + random(200);
_root.actives = _root.actives + 1;
Symbol 794 MovieClip Frame 3 (17 B)
gotoAndStop (1);
Symbol 921 Button (69 B)
on (release) {
data_start();
stopAllSounds();
gotoAndStop (408);
}
Symbol 924 MovieClip Frame 1 (8 B)
stop();
Symbol 924 MovieClip Frame 2 (8 B)
stop();