Frame 1
fscommand ("showmenu", "false");
Stage.scaleMode = "noScale";
_root.setSounds(100);
_root.keySet = 1;
_quality = "HIGH";
_root.gameID_str = "1424";
_root.get_game_link = "http://www.2DPlay.com/freecontent.htm";
_root.main_link = "http://www.2DPlay.com/index.php?gameid=" + gameID_str;
_root.scores_link = ("http://www.2Dplay.com/highscores.php?gameid=" + gameID_str) + "&hiscore=";
_root.viewscores_link = "http://www.2dplay.com/showscores.php?gameid=" + gameID_str;
_root.download_link = "http://www.2DPlay.com/downloadgame.php?gameid=1424";
Frame 2
function SetButtonStr() {
switch (_quality) {
case "HIGH" :
_root.quality_str = "GRAPHICS QUALITY: HIGH";
break;
case "MEDIUM" :
_root.quality_str = "GRAPHICS QUALITY: MEDIUM";
break;
case "LOW" :
_root.quality_str = "GRAPHICS QUALITY: LOW";
}
switch (_root.keySet) {
case 1 :
_root.controls_set_str = "Left: A\rRight: D\rUp: W\rDown: S\rShoot: J Jump: K Grenade:L";
break;
case 2 :
_root.controls_set_str = "Left: A\rRight: D\rUp: W\rDown: S\rShoot: J Jump: SPACE Grenade:K";
break;
case 3 :
_root.controls_set_str = "Left: LEFT\rRight: RIGHT\rUp: UP\rDown: DOWN\rShoot: S Jump: A Grenade:SPACE";
}
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_vm_test() {
return(hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _local3, _local2, _local1));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_hmac_md5(key, data) {
var _local2 = str2binl(key);
if (_local2.length > 16) {
_local2 = core_md5(_local2, key.length * chrsz);
}
var _local3 = Array(16);
var _local4 = Array(16);
var _local1 = 0;
while (_local1 < 16) {
_local3[_local1] = _local2[_local1] ^ 909522486;
_local4[_local1] = _local2[_local1] ^ 1549556828;
_local1++;
}
var _local5 = core_md5(_local3.concat(str2binl(data)), 512 + (data.length * chrsz));
return(core_md5(_local4.concat(_local5), 640));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local3 = Array();
var _local4 = (1 << chrsz) - 1;
var _local1 = 0;
while (_local1 < (str.length * chrsz)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / chrsz) & _local4) << (_local1 % 32));
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2str(bin) {
var _local3 = "";
var _local4 = (1 << chrsz) - 1;
var _local1 = 0;
while (_local1 < (bin.length * 32)) {
_local3 = _local3 + String.fromCharCode((bin[_local1 >> 5] >>> (_local1 % 32)) & _local4);
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2hex(binarray) {
var _local3 = (hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var _local4 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local6 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local4 = "";
var _local2 = 0;
while (_local2 < (binarray.length * 4)) {
var _local5 = ((((binarray[_local2 >> 2] >> (8 * (_local2 % 4))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) % 4))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) % 4))) & 255);
var _local1 = 0;
while (_local1 < 4) {
if (((_local2 * 8) + (_local1 * 6)) > (binarray.length * 32)) {
_local4 = _local4 + b64pad;
} else {
_local4 = _local4 + _local6.charAt((_local5 >> (6 * (3 - _local1))) & 63);
}
_local1++;
}
_local2 = _local2 + 3;
}
return(_local4);
}
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
stop();
Frame 3
_root.splash_music = new Sound();
_root.splash_music.attachSound("NG42681mainslow");
_root.splash_music.setVolume(100);
_root.splash_music.start(0, 9999);
Frame 4
stop();
Instance of Symbol 954 MovieClip in Frame 4
onClipEvent (enterFrame) {
var xm = _root._xmouse;
var ym = _root._ymouse;
var x1 = _root.box3._x;
var x2 = (_root.box3._x + 167.7);
var y1 = _root.box3._y;
var y2 = (_root.box3._y + 176);
if ((((xm > x1) and (xm < x2)) and (ym > y1)) and (ym < y2)) {
}
}
Frame 5
_root.SetButtonStr();
stop();
Instance of Symbol 954 MovieClip in Frame 5
onClipEvent (enterFrame) {
var xm = _root._xmouse;
var ym = _root._ymouse;
var x1 = _root.box3._x;
var x2 = (_root.box3._x + 167.7);
var y1 = _root.box3._y;
var y2 = (_root.box3._y + 176);
if ((((xm > x1) and (xm < x2)) and (ym > y1)) and (ym < y2)) {
_root.box3._alpha = 100;
} else {
_root.box3._alpha = 50;
}
}
Frame 6
stop();
Frame 7
function movieTime() {
_root.play();
clearInterval(movieTimer);
}
stop();
movieTimer = setInterval(this, "movieTime", 2000);
Frame 12
function movieTime() {
_root.play();
clearInterval(movieTimer);
}
stop();
movieTimer = setInterval(this, "movieTime", 1000);
Frame 174
stop();
Frame 183
_root.splash_music.stop();
_root.setSounds(100);
Frame 184
function flame() {
if (Key.isDown(38)) {
_root.thing.shotType = "FLAME THROWER";
_root.thing.itemget.hp = "FLAME THROWER PICKUP";
_root.thing.itemget.play();
char.bulletStrength = 0.25;
char.bulletType = 2;
char.shootspeed = 50;
char.bulletEffect = 2;
char.pulse = true;
char.spray = false;
char.doubleShot = false;
_root.thing.bullType.gotoAndStop(3);
_root.rs_reload.start();
}
}
function setUpSounds() {
_root.rs_ugh = new Sound(this);
_root.rs_ugh.attachSound("rs_ugh");
_root.rs_jump = new Sound(this);
_root.rs_jump.attachSound("rs_jump");
_root.rs_punch = new Sound(this);
_root.rs_punch.attachSound("rs_punch");
_root.rs_lazer1 = new Sound(this);
_root.rs_lazer1.attachSound("rs_lazer1");
_root.rs_lazer2 = new Sound(this);
_root.rs_lazer2.attachSound("rs_lazer2");
_root.rs_bombcharge = new Sound(this);
_root.rs_bombcharge.attachSound("rs_bombcharge");
_root.rs_bombdrop = new Sound(this);
_root.rs_bombdrop.attachSound("rs_bombdrop");
_root.rs_explosion1 = new Sound(this);
_root.rs_explosion1.attachSound("rs_explosion1");
_root.rs_explosion2 = new Sound(this);
_root.rs_explosion2.attachSound("rs_explosion2");
_root.rs_explosion3 = new Sound(this);
_root.rs_explosion3.attachSound("rs_explosion3");
_root.rs_explosion4 = new Sound(this);
_root.rs_explosion4.attachSound("rs_explosion4");
_root.rs_explosion5 = new Sound(this);
_root.rs_explosion5.attachSound("rs_explosion5");
_root.rs_fire1 = new Sound(this);
_root.rs_fire1.attachSound("rs_fire1");
_root.rs_flamethrower = new Sound(this);
_root.rs_flamethrower.attachSound("rs_flamethrower");
_root.rs_hotair = new Sound(this);
_root.rs_hotair.attachSound("rs_hotair");
_root.rs_heat = new Sound(this);
_root.rs_heat.attachSound("rs_heat");
_root.rs_helicopter = new Sound(this);
_root.rs_helicopter.attachSound("rs_helicopter");
_root.rs_metalhit1 = new Sound(this);
_root.rs_metalhit1.attachSound("rs_metalhit1");
_root.rs_metalhit2 = new Sound(this);
_root.rs_metalhit2.attachSound("rs_metalhit2");
_root.rs_metalhit3 = new Sound(this);
_root.rs_metalhit3.attachSound("rs_metalhit3");
_root.rs_dirt = new Sound(this);
_root.rs_dirt.attachSound("rs_dirt");
_root.rs_electricity = new Sound(this);
_root.rs_electricity.attachSound("rs_electricity");
_root.rs_collectstuf = new Sound(this);
_root.rs_collectstuf.attachSound("rs_collectstuf");
_root.rs_reload = new Sound(this);
_root.rs_reload.attachSound("rs_reload");
_root.rs_wormbust = new Sound(this);
_root.rs_wormbust.attachSound("rs_wormbust");
_root.rs_wormscream1 = new Sound(this);
_root.rs_wormscream1.attachSound("rs_wormscream1");
_root.rs_wormscream2 = new Sound(this);
_root.rs_wormscream2.attachSound("rs_wormscream2");
_root.rs_wormscream2b = new Sound(this);
_root.rs_wormscream2b.attachSound("rs_wormscream2b");
_root.rs_laserbig = new Sound(this);
_root.rs_laserbig.attachSound("rs_laserbig");
_root.rs_alarm1 = new Sound(this);
_root.rs_alarm1.attachSound("rs_alarm1");
}
function setSounds(vol) {
_root.rs_ugh.setVolume(vol);
_root.rs_punch.setVolume(vol);
_root.rs_lazer1.setVolume(vol);
_root.rs_lazer2.setVolume(vol);
_root.rs_bombcharge.setVolume(vol);
_root.rs_bombdrop.setVolume(vol);
_root.rs_explosion1.setVolume(vol);
_root.rs_explosion2.setVolume(vol);
_root.rs_explosion3.setVolume(vol);
_root.rs_explosion4.setVolume(vol);
_root.rs_explosion5.setVolume(vol);
_root.rs_fire1.setVolume(vol);
_root.rs_flamethrower.setVolume(vol);
_root.rs_hotair.setVolume(vol);
_root.rs_heat.setVolume(vol);
_root.rs_helicopter.setVolume(vol);
_root.rs_metalhit1.setVolume(vol);
_root.rs_metalhit2.setVolume(vol);
_root.rs_metalhit3.setVolume(vol);
_root.rs_dirt.setVolume(vol);
_root.rs_electricity.setVolume(vol);
_root.rs_collectstuf.setVolume(vol);
_root.rs_reload.setVolume(vol);
_root.rs_wormbust.setVolume(vol);
_root.rs_wormscream1.setVolume(vol);
_root.rs_wormscream2.setVolume(vol);
_root.rs_wormscream2b.setVolume(vol);
_root.rs_laserbig.setVolume(vol);
_root.rs_alarm1.setVolume(vol);
}
function metalHit() {
r = random(2) + 1;
var _local2 = "_root.rs_metalhit" + r;
_root["rs_metalhit" + r].start();
}
function gogoTime() {
if (game.scrolling and (gg == 0)) {
gg = 1;
ggx = firstx;
} else if ((game.scrolling and (gg == 1)) and (!_root.paws)) {
gg = 0;
if (ggx == firstx) {
_root.thing.go.play();
}
}
}
function menuButton() {
if (_root.thing.menuButton.selected) {
trace("DD");
}
}
function checkLevel() {
if (game.level == 1) {
if (_root.screen.char._y > 1000) {
game.level = 2;
setUpLevel2();
}
} else if (game.level == 2) {
if (_root.screen.char._y > 1000) {
game.level = 3;
game.quota = game.quota + 2;
game.triggerFingers = game.triggerFingers - 5;
game.scrolling = true;
setUpLevel3();
}
} else if (game.level == 3) {
if (_root.screen.char._y > 1000) {
game.level = 4;
game.quota = game.quota + 2;
game.triggerFingers = game.triggerFingers - 5;
game.scrolling = true;
setUpLevel4();
}
} else if (game.level == 4) {
if (_root.screen.char._y > 1000) {
game.level = 5;
game.quota = game.quota + 2;
game.triggerFingers = game.triggerFingers - 5;
game.scrolling = true;
setUpLevel5();
}
}
}
function setUpLevel5() {
clearInterval(gogoTimer);
game.boulderExist = false;
game.Enemy1.prototype.score = 125;
game.level = 5;
_root.screen.level4testy.removeMovieClip();
_root.screen.hitBox.removeMovieClip();
_root.screen.removeMovieClip();
_root.flee = false;
game.scrolling = false;
_root.thing._x = 52.5;
_root._x = 0;
_root._y = 0;
_root.attachMovie("empty", "screen", 10000, {_x:0, _y:-50});
_root.attachMovie("maskbig", "maskbig", 106001);
_root.screen.setMask(_root.maskbig);
_root.screen.attachMovie("empty", "hitBox", 10);
_root.screen.attachMovie("level5testy", "level5test", 20, {_x:0, _y:50});
_root.screen.attachMovie("player", "char", 20000, {_x:180, _y:50});
mx = -20;
_root.screen.hitBox.attachMovie("level5mask", "level5mask", 10001, {_x:mx, _y:100});
firstx = null;
delete firstx;
secondx = null;
delete secondx;
inv = 0;
inv2 = 0;
firstx = 0;
secondx = 550;
scrollx = 500;
scrolli = 1;
var _local3 = 0;
while (_local3 < 5) {
var _local2 = "enemy" + _local3;
game[_local2] = new game.Enemy1();
_root.screen.attachMovie("enemy", _local2, 16001 + _local3);
game[_local2].clip = game.clip[_local2];
game[_local2].clip._x = random(100) + 550;
game[_local2].clip._y = random(150);
game[_local2].clip.gotoAndStop(3);
_local3++;
}
game.enemies = 5;
game.item = false;
flee = true;
_root.screen.attachMovie("octopus", "octopus", 1650, {_x:500, _y:336});
char.falling = true;
char.jump = true;
char.punch = false;
_root.screen.attachMovie("danger", "danger", 20002, {_x:0, _y:100});
_root.thing.boss._visible = true;
_root.rs_alarm1.start();
_root.rs_wormbust.start();
game.bossNRG = 100;
_root.thing.boss.nrg._xscale = game.bossNRG;
_root.worm = true;
_root.wormattack = false;
_root.wormphase = 1;
_root.bossScore = 5000;
}
function setUpLevel4() {
game.bigquota = 0;
game.boulderExist = false;
game.Enemy2.prototype.score = 125;
game.level = 4;
_root.screen.level3testy.removeMovieClip();
_root.screen.hitBox.removeMovieClip();
_root.screen.removeMovieClip();
_root.flee = false;
game.scrolling = true;
_root.thing._x = 52.5;
_root._x = 0;
_root._y = 0;
_root.attachMovie("empty", "screen", 10000, {_x:0, _y:-50});
_root.attachMovie("maskbig", "maskbig", 106001);
_root.screen.setMask(_root.maskbig);
_root.screen.attachMovie("empty", "hitBox", 10);
_root.screen.attachMovie("level4testy", "level4test", 20, {_x:0, _y:50});
_root.screen.attachMovie("player", "char", 20000, {_x:180, _y:50});
var _local7 = 0;
var _local4 = 1;
while (_local4 < 6) {
var _local3 = "level4mask" + _local4;
_root.screen.hitBox.attachMovie(_local3, _local3, 10000 + _local4, {_x:_local7, _y:100});
_local7 = _local7 + 250;
_local4++;
}
firstx = null;
delete firstx;
secondx = null;
delete secondx;
inv = 0;
inv2 = 0;
firstx = 0;
secondx = 550;
scrollx = 500;
scrolli = 1;
_root.screen.attachMovie("electric", "electric", 27, {_x:4494, _y:60});
game.electricPos = 1;
electricTimer = setInterval(this, "electricity", 600);
_local4 = 1;
while (_local4 < 6) {
var _local3 = "drum";
if (_local4 == 1) {
var _local6 = 3100;
var _local5 = 327;
}
if (_local4 == 2) {
var _local6 = 3150;
var _local5 = 327;
}
if (_local4 == 3) {
var _local6 = 3200;
var _local5 = 327;
}
if (_local4 == 4) {
var _local6 = 3250;
var _local5 = 327;
}
if (_local4 == 5) {
var _local6 = 3300;
var _local5 = 327;
}
_root.screen.attachMovie(_local3, _local3 + _local4, 20 + _local4, {_x:_local6, _y:_local5});
_local4++;
}
_local4 = 0;
while (_local4 < 5) {
var _local3 = "enemy" + _local4;
game[_local3] = new game.Enemy2();
_root.screen.attachMovie("enemy2", _local3, 16001 + _local4);
game[_local3].clip = game.clip[_local3];
game[_local3].clip._x = random(100) + 850;
game[_local3].clip._y = random(150);
game[_local3].clip.gotoAndStop(3);
_local4++;
}
game.Enemy2.prototype.strength = 3;
game.Enemy2.prototype.resetstrength = 3;
game.enemies = 5;
game.item = false;
game.flee = false;
char.falling = true;
char.jump = true;
char.punch = false;
}
function setUpLevel3() {
game.bigquota = 0;
game.boulderExist = false;
game.level = 3;
_root.screen.level2testy.removeMovieClip();
_root.screen.hitBox.removeMovieClip();
_root.screen.removeMovieClip();
_root.flee = false;
game.scrolling = true;
_root.thing._x = 52.5;
_root._x = 0;
_root._y = 0;
_root.attachMovie("empty", "screen", 10000, {_x:0, _y:-50});
_root.attachMovie("maskbig", "maskbig", 106001);
_root.screen.setMask(_root.maskbig);
_root.screen.attachMovie("empty", "hitBox", 10);
_root.screen.attachMovie("level3testy", "level3test", 20, {_x:0, _y:50});
_root.screen.attachMovie("player", "char", 20000, {_x:180, _y:50});
var _local7 = -10;
var _local4 = 1;
while (_local4 < 6) {
var _local3 = "level3mask" + _local4;
_root.screen.hitBox.attachMovie(_local3, _local3, 10000 + _local4, {_x:_local7, _y:100});
_local7 = _local7 + 250;
_local4++;
}
firstx = null;
delete firstx;
secondx = null;
delete secondx;
inv = 0;
inv2 = 0;
firstx = 0;
secondx = 550;
scrollx = 500;
scrolli = 1;
_root.screen.attachMovie("electric", "electric", 27, {_x:4379, _y:60});
game.electricPos = 1;
electricTimer = setInterval(this, "electricity", 600);
_local4 = 1;
while (_local4 < 6) {
var _local3 = "drum";
if (_local4 == 1) {
var _local6 = 3100;
var _local5 = 327;
}
if (_local4 == 2) {
var _local6 = 3150;
var _local5 = 327;
}
if (_local4 == 3) {
var _local6 = 3200;
var _local5 = 327;
}
if (_local4 == 4) {
var _local6 = 3250;
var _local5 = 327;
}
if (_local4 == 5) {
var _local6 = 3300;
var _local5 = 327;
}
_root.screen.attachMovie(_local3, _local3 + _local4, 20 + _local4, {_x:_local6, _y:_local5});
_local4++;
}
_local4 = 0;
while (_local4 < 5) {
var _local3 = "enemy" + _local4;
game[_local3] = new game.Enemy2();
_root.screen.attachMovie("enemy2", _local3, 16001 + _local4);
game[_local3].clip = game.clip[_local3];
game[_local3].clip._x = random(100) + 850;
game[_local3].clip._y = random(150);
game[_local3].clip.gotoAndStop(3);
_local4++;
}
game.enemies = 5;
game.item = false;
game.flee = false;
char.falling = true;
char.jump = true;
char.punch = false;
bgo = 3;
}
function checkElectricity() {
if (_root.screen.char.hitBox.hitTest(_root.screen.electric.hitBox) and (!char.invincible)) {
_root.screen.char.elec.gotoAndPlay(1);
char.nrg = char.nrg - 15;
_root.rs_ugh.start();
_root.thing.nrg._xscale = char.nrg;
char.invincible = true;
if (char.nrg < 1) {
_root.screen.removeMovieClip();
_root.thing.removeMovieClip();
_root._x = 0;
_root.maskbig.removeMovieClip();
_root.gotoAndPlay("dying");
}
}
var _local2 = 0;
while (_local2 < game.enemies) {
var _local4 = "enemy" + _local2;
var _local3 = game[_local4];
if (_local3.clip.hitBox.hitTest(_root.screen.electric) and (!_local3.death)) {
_local3.clip.elec.gotoAndPlay(1);
}
_local2++;
}
}
function electricity() {
if (game.level == 3) {
if (game.electricPos == 1) {
elex = 4268;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 2) {
elex = 4167;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 3) {
elex = 2103;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 4) {
elex = 2002;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 5) {
elex = 1901;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 6) {
elex = 656;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 7) {
elex = 555;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 8) {
elex = 454;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 9) {
elex = 4369;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos = 1;
}
}
if (game.level == 4) {
if (game.electricPos == 1) {
elex = 2672;
_root.screen.attachMovie("electric2", "electric", 27, {_x:elex, _y:314});
game.electricPos++;
} else if (game.electricPos == 2) {
elex = 4293;
_root.screen.attachMovie("electric2", "electric", 27, {_x:elex, _y:314});
game.electricPos++;
} else if (game.electricPos == 3) {
elex = 2672;
_root.screen.attachMovie("electric2", "electric", 27, {_x:elex, _y:314});
game.electricPos++;
} else if (game.electricPos == 4) {
elex = 1308;
_root.screen.attachMovie("electric2", "electric", 27, {_x:elex, _y:314});
game.electricPos++;
} else if (game.electricPos == 5) {
elex = 439;
_root.screen.attachMovie("electric2", "electric", 27, {_x:elex, _y:314});
game.electricPos++;
} else if (game.electricPos == 6) {
elex = 1454;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 7) {
elex = 2392;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 8) {
elex = 4384;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos++;
} else if (game.electricPos == 9) {
elex = 4494;
_root.screen.attachMovie("electric", "electric", 27, {_x:elex, _y:60});
game.electricPos = 1;
}
}
if (((_root.screen.electric._x + 50) > firstx) and ((_root.screen.electric._x - 50) < secondx)) {
_root.rs_electricity.start();
}
_root.screen.electric.gotoAndPlay(1);
}
function setUpLevel2() {
game.bigquota = 0;
game.boulderExist = false;
game.Enemy1.prototype.score = 75;
_root.thing.boss._visible = false;
game.level = 2;
_root.screen.level1testy.removeMovieClip();
_root.screen.hitBox.removeMovieClip();
_root.screen.arrow.removeMovieClip();
_root.screen.worm.removeMovieClip();
_root.screen.removeMovieClip();
_root.flee = false;
game.scrolling = true;
_root.thing._x = 52.5;
_root._x = 0;
_root._y = 0;
_root.attachMovie("empty", "screen", 10000, {_x:0, _y:-50});
_root.attachMovie("maskbig", "maskbig", 106001);
_root.screen.setMask(_root.maskbig);
_root.screen.attachMovie("empty", "hitBox", 10);
_root.screen.attachMovie("level2testy", "level2test", 20, {_x:0, _y:50});
_root.screen.attachMovie("player", "char", 20000, {_x:180, _y:50});
var _local6 = 0;
var _local3 = 1;
while (_local3 < 6) {
var _local2 = "mask2_" + _local3;
_root.screen.hitBox.attachMovie(_local2, _local2, 10000 + _local3, {_x:_local6, _y:100});
_local6 = _local6 + 250;
_local3++;
}
firstx = null;
delete firstx;
secondx = null;
delete secondx;
inv = 0;
inv2 = 0;
firstx = 0;
secondx = 550;
scrollx = 500;
scrolli = 1;
_local3 = 1;
while (_local3 < 6) {
var _local2 = "drum";
if (_local3 == 1) {
var _local5 = 3100;
var _local4 = 327;
}
if (_local3 == 2) {
var _local5 = 3150;
var _local4 = 327;
}
if (_local3 == 3) {
var _local5 = 3200;
var _local4 = 327;
}
if (_local3 == 4) {
var _local5 = 3250;
var _local4 = 327;
}
if (_local3 == 5) {
var _local5 = 3300;
var _local4 = 327;
}
_root.screen.attachMovie(_local2, _local2 + _local3, 20 + _local3, {_x:_local5, _y:_local4});
_local3++;
}
_local3 = 0;
while (_local3 < 5) {
var _local2 = "enemy" + _local3;
game[_local2] = new game.Enemy1();
_root.screen.attachMovie("enemy", _local2, 16001 + _local3);
game[_local2].clip = game.clip[_local2];
game[_local2].clip._x = random(100) + 850;
game[_local2].clip._y = random(150);
game[_local2].clip.gotoAndStop(3);
_local3++;
}
game.enemies = 5;
game.item = false;
}
function setUpLevel1() {
game.bigquota = 0;
game.boulderExist = false;
_root.attachMovie("empty", "screen", 10000, {_x:0, _y:-50});
_root.attachMovie("maskbig", "maskbig", 106001);
_root.screen.setMask(_root.maskbig);
_root.screen.attachMovie("empty", "hitBox", 10);
_root.screen.attachMovie("level1testy", "level1test", 20, {_x:0, _y:50});
_root.screen.attachMovie("player", "char", 20000, {_x:180, _y:50});
var _local6 = 0;
var _local2 = 1;
while (_local2 < 6) {
var _local3 = "mask" + _local2;
_root.screen.hitBox.attachMovie(_local3, _local3, 10000 + _local2, {_x:_local6, _y:100});
_local6 = _local6 + 250;
_local2++;
}
_local2 = 1;
while (_local2 < 6) {
var _local3 = "drum";
if (_local2 == 1) {
var _local5 = 880;
var _local4 = 284;
}
if (_local2 == 2) {
var _local5 = 916;
var _local4 = 284;
}
if (_local2 == 3) {
var _local5 = 2996;
var _local4 = 300;
}
if (_local2 == 4) {
var _local5 = 3048;
var _local4 = 275;
}
if (_local2 == 5) {
var _local5 = 4676;
var _local4 = 327;
}
_root.screen.attachMovie(_local3, _local3 + _local2, 20 + _local2, {_x:_local5, _y:_local4});
_local2++;
}
}
function invincible() {
inv++;
inv2++;
if (inv == 2) {
char.clip._visible = false;
}
if (inv == 3) {
char.clip._visible = true;
inv = 0;
if (inv2 > 60) {
char.invincible = false;
inv2 = 0;
}
}
}
function setKeys() {
if (_root.keySet == 1) {
var _local5 = Key.isDown(68);
var _local7 = Key.isDown(65);
var _local2 = Key.isDown(87);
var _local3 = Key.isDown(83);
var _local4 = Key.isDown(74);
var _local8 = Key.isDown(75);
var _local6 = Key.isDown(76);
}
if (numb == 2) {
var _local5 = Key.isDown(68);
var _local7 = Key.isDown(65);
var _local2 = Key.isDown(87);
var _local3 = Key.isDown(83);
var _local4 = Key.isDown(74);
var _local8 = Key.isDown(32);
var _local6 = Key.isDown(75);
}
if (numb == 3) {
var _local5 = Key.isDown(39);
var _local7 = Key.isDown(37);
var _local2 = Key.isDown(38);
var _local3 = Key.isDown(40);
var _local4 = Key.isDown(74);
var _local8 = Key.isDown(75);
var _local6 = Key.isDown(32);
}
}
function checkScroll() {
_root._x = _root._x - 2;
_root.thing._x = _root.thing._x + 2;
firstx = firstx + 2;
secondx = firstx + 500;
_root.maskbig._x = _root.maskbig._x + 2;
if (_root.screen.char._x < (firstx + mainx)) {
game.scrollCheck = false;
}
}
function checkRockWall() {
if (!rockWall) {
rockWall = true;
}
if (rockWall) {
}
}
function checkKeys(ob) {
if (char.nrg < 0) {
_root.screen.removeMovieClip();
_root.thing.removeMovieClip();
_root._x = 0;
_root.maskbig.removeMovieClip();
_root.gotoAndPlay("dying");
_root.maskbig.removeMovieClip();
}
if (Key.isDown(84)) {
_root.thing.tips.gotoAndStop(1);
}
if (Key.isDown(187)) {
skipLevels();
}
if (game.scrollCheck) {
checkScroll();
}
_root.thing.depth1 = _root._xmouse;
_root.thing.depth2 = _root._ymouse;
_root.thing.obxx = _root.screen.char._x;
_root.thing.obyy = _root.screen.char._y;
_root.thing.firstxx = firstx;
_root.thing.secondxx = secondx;
_root.thing.boulder = game.boulderStrength;
if (char.invincible) {
invincible();
}
ob = char;
if (_root.keySet == 1) {
var _local9 = Key.isDown(68);
var _local10 = Key.isDown(65);
var _local11 = Key.isDown(87);
var _local8 = Key.isDown(83);
var _local15 = Key.isDown(74);
var _local14 = Key.isDown(75);
var _local18 = Key.isDown(76);
_root.kup = "W";
_root.kdown = "S";
_root.kleft = "A";
_root.kright = "D";
_root.SHOOT = "J";
_root.JUMP = "K";
_root.GRENADE = "L";
}
if (_root.keySet == 2) {
var _local9 = Key.isDown(68);
var _local10 = Key.isDown(65);
var _local11 = Key.isDown(87);
var _local8 = Key.isDown(83);
var _local15 = Key.isDown(74);
var _local14 = Key.isDown(32);
var _local18 = Key.isDown(75);
_root.kup = "W";
_root.kdown = "S";
_root.kleft = "A";
_root.kright = "D";
_root.SHOOT = "J";
_root.JUMP = "SPACE";
_root.GRENADE = "K";
}
if (_root.keySet == 3) {
var _local9 = Key.isDown(39);
var _local10 = Key.isDown(37);
var _local11 = Key.isDown(38);
var _local8 = Key.isDown(40);
var _local15 = Key.isDown(83);
var _local14 = Key.isDown(65);
var _local18 = Key.isDown(32);
_root.kup = "UP ARROW";
_root.kdown = "DOWN ARROW";
_root.kleft = "LEFT ARROW";
_root.kright = "RIGHT ARROW";
_root.SHOOT = "S";
_root.JUMP = "A";
_root.GRENADE = "SPACE";
}
if (((_local11 and (!_local9)) and (!_local10)) and (!_local8)) {
ob.clip.chartop.gotoAndStop(3);
} else if ((_local11 and (!_local8)) and (_local9 or _local10)) {
ob.clip.chartop.gotoAndStop(2);
} else if ((_local8 and (!_local11)) and (_local9 or _local10)) {
ob.clip.chartop.gotoAndStop(4);
} else if (((((!_local11) and (!_local9)) and (!_local10)) and _local8) and ob.jump) {
ob.clip.chartop.gotoAndStop(5);
} else if ((!_local11) and (!_local8)) {
ob.clip.chartop.gotoAndStop(1);
} else if (((((!_local11) and (!_local9)) and (!_local10)) and _local8) and (!ob.jump)) {
ob.clip.chartop.gotoAndStop(4);
}
if (((((!_local9) and (!_local10)) and (!ob.jump)) and (!ob.shooting)) and (!ob.punch)) {
ob.clip.gotoAndStop(1);
}
if (((ob.jump and (!ob.shooting)) and ob.falling) and (!ob.punch)) {
ob.clip.gotoAndStop(4);
}
if ((_local9 and (!_local10)) and (!ob.punch)) {
char.clip._xscale = 100;
if (!ob.jump) {
char.clip.gotoAndStop(2);
}
ob.dirx = 1;
moveChar(char, 1, 0, 0);
} else if (((!_local9) and _local10) and (!ob.punch)) {
char.clip._xscale = -100;
if (!ob.jump) {
char.clip.gotoAndStop(2);
}
ob.dirx = -1;
moveChar(char, -1, 0, 0);
}
if (((!ob.jumpRelease) and (!_local14)) and (!ob.jump)) {
ob.jumpRelease = true;
}
var _local13 = _root.screen.hitBox;
if (((_local14 and _local8) and (!ob.jump)) and ob.jumpRelease) {
var _local5 = 6;
while (_local5 < 24) {
if (!_local13.hitTest(char.clip._x, char.clip._y + _local5, true)) {
ob.jumpspeed = 16;
char.clip._y = char.clip._y + _local5;
ob.jump = true;
ob.falling = true;
ob.jumpRelease = false;
}
if (ob.jump) {
break;
}
_local5++;
}
}
if (((_local14 and (!ob.jump)) and ob.jumpRelease) and (!ob.punch)) {
ob.jump = true;
ob.jumpRelease = false;
ob.jumpspeed = ob.jumpstart;
ob.plat = false;
ob.wallhit = false;
ob.falling = false;
char.clip.gotoAndStop(3);
}
if (ob.jump) {
if (_local14) {
var _local19 = ob.gravity;
} else {
var _local19 = ob.gravity + 1;
}
jump(ob, ob.jumpspeed, _local19);
}
if ((!ob.shootRelease) and (!_local15)) {
ob.shootRelease = true;
ob.shoot = true;
}
if (((((_local15 and ob.shoot) and ob.plat) and ob.shootRelease) and (!ob.pulse)) and (!ob.jump)) {
var _local6 = 0;
while (_local6 < 5) {
var _local7 = "enemy" + _local6;
var _local4 = game[_local7];
if ((_local4.clip.hitBox.hitTest(_root.screen.char.hitBox) and (!_local4.death)) and _local4.plat) {
if (((_local4.clip._x > ob.clip._x) and (ob.dirx == 1)) or ((_local4.clip._x < ob.clip._x) and (ob.dirx == -1))) {
_root.rs_punch.start();
ob.punch = true;
ob.shootRelease = false;
ob.shoot = false;
_root.screen.char.gotoAndStop(5);
_local4.clip.gotoAndStop(8);
_local4.death = true;
_local4.shooting = false;
game.kills++;
game.tempKills++;
if (_local4.score <= 0) {
_local4.score = 5;
}
score = ("+" + _local4.score) + " pts";
attachPoints(_local4.clip._x, _local4.clip._y, score, 0);
game.score = game.score + _local4.score;
_root.thing.obx = game.score;
scrollFunction();
break;
}
}
_local6++;
}
}
if ((_local15 and (!ob.shooting)) and (ob.shootRelease or ob.pulse)) {
if (!ob.pulse) {
ob.shootRelease = false;
_root.rs_lazer1.start();
} else {
_root.rs_heat.start();
}
ob.shooting = true;
shootTimer = setInterval(this, "shootTime", ob.shootspeed);
var _local17 = 0;
var _local16 = 0;
var _local12 = 1;
if (((_local11 and (!_local9)) and (!_local10)) and (!_local8)) {
_local16 = -1;
_local12 = 3;
} else if ((_local11 and (!_local8)) and (_local9 or _local10)) {
_local17 = ob.dirx;
_local16 = -1;
_local12 = 2;
} else if ((_local8 and (!_local11)) and (_local9 or _local10)) {
_local17 = ob.dirx;
_local16 = 1;
_local12 = 4;
} else if ((!_local11) and (!_local8)) {
_local17 = ob.dirx;
_local16 = 0;
_local12 = 1;
} else if (_local8 and ob.jump) {
_local16 = 1;
_local12 = 3;
} else if (_local8 and (!ob.jump)) {
_local17 = ob.dirx;
_local16 = 1;
_local12 = 1;
}
if (!ob.pulse) {
ob.clip.chartop.chartop.play();
}
shoot(ob, ob.clip._x, ob.clip._y, _local17, _local16);
if (ob.doubleShot) {
shoot(ob, ob.clip._x + (ob.dirx * 15), ob.clip._y, _local17, _local16);
}
}
if ((!ob.bombShootRelease) and (!_local18)) {
var _local17 = 0;
var _local16 = 0;
xspeed = _root.bombspeed;
_local17 = ob.dirx;
_local16 = -1;
bombs(ob, ob.clip._x, ob.clip._y, _local17, _local16, xspeed);
ob.bombShootRelease = true;
ob.bombShoot = true;
bombShootTime();
}
if (((_local18 and (!ob.bombShooting)) and ob.bombShootRelease) and (char.bombs > 0)) {
_root.bombspeed = 4;
ob.bombShooting = true;
ob.bombShootRelease = false;
bombTimer = setInterval(this, "bombTime", 200);
}
moveBullets();
moveBombs();
movePoints();
itemBrain();
checkLevel();
if (game.level == 1) {
wormAttack();
}
if ((game.level == 1) or (game.level == 5)) {
bombAttack();
}
if (game.level == 5) {
octoAttack();
}
enemyBrain();
enemyMoveBullets();
if ((game.level == 3) or (game.level == 4)) {
checkElectricity();
}
}
function itemBrain() {
if (game.item) {
_root.screen.item._y = _root.screen.item._y - 1;
if (_root.screen.char._x > (_root.screen.item._x + 15)) {
var _local3 = 1;
} else if (_root.screen.char._x < (_root.screen.item._x - 15)) {
var _local3 = -1;
}
_root.screen.item._x = _root.screen.item._x + _local3;
if ((_root.screen.item._y < -50) or (_root.screen.item._x < (firstx - 50))) {
game.item = false;
}
if (_root.screen.char.hitBox.hitTest(_root.screen.item.hitBox)) {
game.item = false;
var _local2 = "fx";
if (game.itemchoice == 1) {
_root.screen.attachMovie("smokegunhit", _local2, 30001, {_x:_root.screen.item._x, _y:_root.screen.item._y});
_root.screen.fx.gotoAndStop(8);
_root.thing.shotType = "SINGLE SHOT";
_root.thing.itemget.hp = "SINGLE SHOT PICKUP";
_root.thing.itemget.play();
char.bulletStrength = 1;
char.bulletType = 1;
char.shootspeed = 100;
char.bulletEffect = 1;
char.pulse = false;
char.spray = false;
char.doubleShot = false;
_root.thing.bullType.gotoAndStop(1);
_root.rs_reload.start();
}
if (game.itemchoice == 2) {
_root.screen.attachMovie("smokegunhit", _local2, 30001, {_x:_root.screen.item._x, _y:_root.screen.item._y});
_root.screen.fx.gotoAndStop(8);
_root.thing.shotType = "DOUBLE SHOT";
_root.thing.itemget.hp = "DOUBLE SHOT PICKUP";
_root.thing.itemget.play();
char.bulletStrength = 1;
char.bulletType = 1;
char.shootspeed = 200;
char.bulletEffect = 1;
char.pulse = false;
char.spray = false;
char.doubleShot = true;
_root.thing.bullType.gotoAndStop(2);
_root.rs_reload.start();
}
if (game.itemchoice == 3) {
_root.screen.attachMovie("smokegunhit", _local2, 30001, {_x:_root.screen.item._x, _y:_root.screen.item._y});
_root.screen.fx.gotoAndStop(8);
_root.thing.shotType = "FLAME THROWER";
_root.thing.itemget.hp = "FLAME THROWER PICKUP";
_root.thing.itemget.play();
char.bulletStrength = 0.5;
char.bulletType = 2;
char.shootspeed = 50;
char.bulletEffect = 2;
char.pulse = true;
char.spray = false;
char.doubleShot = false;
_root.thing.bullType.gotoAndStop(3);
_root.rs_reload.start();
}
if (game.itemchoice == 4) {
_root.screen.attachMovie("smokegunhit", _local2, 30001, {_x:_root.screen.item._x, _y:_root.screen.item._y});
_root.screen.fx.gotoAndStop(7);
_root.thing.itemget.hp = "GRENADE PICKUP";
_root.thing.itemget.play();
char.bombs = char.bombs + 3;
_root.thing.bombs = char.bombs;
_root.rs_reload.start();
}
if (game.itemchoice == 5) {
_root.screen.attachMovie("smokegunhit", _local2, 30001, {_x:_root.screen.item._x, _y:_root.screen.item._y});
_root.screen.fx.gotoAndStop(8);
_root.thing.shotType = "PLASMA BLAST";
_root.thing.itemget.hp = "PLASMA BLAST PICKUP";
_root.thing.itemget.play();
char.bulletStrength = 3;
char.bulletType = 5;
char.shootspeed = 300;
char.bulletEffect = 6;
char.pulse = false;
char.spray = false;
char.doubleShot = false;
_root.thing.bullType.gotoAndStop(4);
_root.rs_reload.start();
}
if (game.itemchoice == 6) {
_root.screen.attachMovie("smokegunhit", _local2, 30001, {_x:_root.screen.item._x, _y:_root.screen.item._y});
_root.screen.fx.gotoAndStop(9);
_root.thing.itemget.hp = "HEALTH PICKUP";
_root.thing.itemget.play();
char.nrg = char.nrg + 20;
_root.rs_collectstuf.start();
if (char.nrg > 100) {
char.nrg = 100;
}
_root.thing.nrg._xscale = char.nrg;
}
_root.screen.item._y = -50;
}
}
}
function enemyBrain() {
var _local4 = 0;
while (_local4 < game.enemies) {
var _local5 = "enemy" + _local4;
var _local2 = game[_local5];
if (flee) {
_local2.dirx = -1;
_local2.clip._xscale = -100;
_local2.clip.ex.play();
if (_local2.clip._x < (firstx - 50)) {
_local2.death = true;
_root.screen[_local5].removeMovieClip();
}
}
if ((_local2.death and (!flee)) and (game.bigquota < 71)) {
if (_local2.jump) {
jump(_local2, _local2.jumpspeed, _local2.gravity);
}
_local2.resurrect++;
if (_local2.resurrect >= 100) {
_local2.strength = _local2.resetstrength;
_local2.resurrect = 0;
_local2.clip._x = firstx + random(500);
_local2.clip._y = 0;
_local2.jump = true;
_local2.falling = true;
_local2.death = false;
_local2.clip.gotoAndStop(4);
if (game.level == 1) {
_local2.score = 50;
}
if (game.level == 2) {
_local2.score = 75;
}
if (game.level == 3) {
_local2.score = 100;
}
if ((game.level == 4) or (game.level == 5)) {
_local2.score = 125;
}
}
}
if (!_local2.death) {
var _local3 = _local2.dirx;
if (_local2.jump) {
jump(_local2, _local2.jumpspeed, _local2.gravity);
if (_local2.falling) {
_local2.clip.gotoAndStop(4);
} else {
_local2.clip.gotoAndStop(3);
}
}
if (!_local2.jump) {
_local2.clip.gotoAndStop(2);
}
checkWallHit(_local2, _local2.clip._x + (_local2.speed * _local3), _local2.clip._y - 10, _local2.plat);
checkPlatforms(_local2, _local2.clip._x + (_local2.speed * _local3), _local2.clip._y, _local2.plat);
if (!_local2.wallhit) {
_local2.clip._x = _local2.clip._x + (_local2.speed * _local3);
if ((((_local2.dirx == 1) and (_local2.clip._x > (char.clip._x + 150))) and (!_local2.jump)) and (!flee)) {
_local2.clip._xscale = _local2.clip._xscale * -1;
_local2.dirx = _local2.dirx * -1;
}
if ((((_local2.dirx == -1) and (_local2.clip._x < (char.clip._x - 150))) and (!_local2.jump)) and (!flee)) {
_local2.clip._xscale = _local2.clip._xscale * -1;
_local2.dirx = _local2.dirx * -1;
}
if (_local2.clip._x < (firstx - 25)) {
_local2.clip._x = secondx;
_local2.clip._y = 0;
_local2.dirx = -1;
_local2.clip._xscale = -100;
_local2.jump = true;
_local2.falling = true;
}
if ((((_local2.dirx == 1) and (_local2.clip._x > (char.clip._x + 650))) and (!_local2.jump)) and (!flee)) {
_local2.resurrect = 102;
_local2.death = true;
}
if ((((_local2.dirx == -1) and (!_local2.jump)) and (_local2.clip._x < (char.clip._x - 230))) and (!flee)) {
if (game.scrolling) {
_local2.resurrect = 102;
_local2.death = true;
} else if (_local2.clip._x < (char.clip._x - 650)) {
_local2.resurrect = 102;
_local2.death = true;
}
}
if (((_local3 == 1) and (_local2.clip._y > 400)) and (!flee)) {
_local2.resurrect = 102;
_local2.death = true;
}
}
if (_local2.wallhit and (!_local2.jump)) {
var _local6 = random(100);
checkWallHit(_local2, _local2.clip._x + (_local2.speed * _local3), _local2.clip._y - 150, _local2.plat);
if (((_local6 > 30) and (!_local2.wallhit)) or flee) {
_local2.jump = true;
_local2.jumpRelease = false;
_local2.jumpspeed = -22;
_local2.plat = false;
_local2.wallhit = false;
_local2.falling = false;
_local2.clip.gotoAndStop(3);
} else {
_local2.clip._xscale = _local2.clip._xscale * -1;
_local2.dirx = _local2.dirx * -1;
}
}
}
if (((_local3 == 1) and (char.clip._x > _local2.clip._x)) or ((_local3 == -1) and (char.clip._x < _local2.clip._x))) {
if ((char.clip._y > (_local2.clip._y - 50)) and (char.clip._y < (_local2.clip._y + 50))) {
gundiry = 0;
_local2.clip.chartop.gotoAndStop(1);
} else if (char.clip._y < (_local2.clip._y - 50)) {
gundiry = -1;
_local2.clip.chartop.gotoAndStop(2);
} else if (char.clip._y > (_local2.clip._y + 50)) {
gundiry = 1;
_local2.clip.chartop.gotoAndStop(4);
} else {
gundiry = 0;
_local2.clip.chartop.gotoAndStop(1);
}
}
if ((!_local2.shooting) and (!_local2.death)) {
var _local6 = random(game.triggerFingers);
if (((_local6 == 4) and (_local2.clip._x < secondx)) and (_local2.clip._x > firstx)) {
if (((_local2.dirx == -1) and (char.clip._x > (_local2.clip._x - 250))) and (char.clip._x < (_local2.clip._x - 30))) {
gundirx = _local3;
if ((_local2.clip._x > firstx) and (_local2.clip._x < secondx)) {
_root.rs_lazer2.start();
}
enemyShoot(_local2, _local2.clip._x, _local2.clip._y, gundirx, gundiry);
}
if (((_local2.dirx == 1) and (char.clip._x < (_local2.clip._x + 250))) and (char.clip._x > (_local2.clip._x + 30))) {
gundirx = _local3;
if ((_local2.clip._x > firstx) and (_local2.clip._x < secondx)) {
_root.rs_lazer2.start();
}
enemyShoot(_local2, _local2.clip._x, _local2.clip._y, gundirx, gundiry);
}
}
}
_local4++;
}
}
function enemyScoreCountdown() {
var _local2 = 0;
while (_local2 < game.enemies) {
var _local3 = "enemy" + _local2;
var _local4 = game[_local3];
_local4.score = _local4.score - 5;
_local2++;
}
_root.bossScore = _root.bossScore - 5;
}
function shootTime() {
_root.char.shoot = true;
_root.char.shooting = false;
clearInterval(shootTimer);
}
function bombTime() {
_root.bombspeed = _root.bombspeed + 1;
if (_root.bombspeed >= 16) {
_root.bombspeed = 16;
clearInterval(bombTimer);
}
}
function bombShootTime() {
_root.char.bombShoot = true;
_root.char.bombShooting = false;
clearInterval(bombShootTimer);
}
function movePoints() {
i = 0;
while (i < 13) {
name = "points" + i;
if (_root.screen[name]._y > -5) {
_root.screen[name]._y = _root.screen[name]._y - 4;
}
i++;
}
}
function attachPoints(x, y, w, n) {
name = "points" + n;
_root.screen.attachMovie("points", name, 25000 + n, {_x:x, _y:y});
_root.screen[name].points = w;
}
function shoot(ob, obx, oby, dirx, diry) {
game.bulletcounter++;
if (game.bulletcounter > 12) {
game.bulletcounter = 0;
}
var _local1 = "bullet" + game.bulletcounter;
game[_local1] = new game.Bullet();
game[_local1].alive = true;
game[_local1].id = game.bulletcounter;
game[_local1].bulletEffect = ob.bulletEffect;
game[_local1].bullSpeed = 19;
if (dirx or diry) {
game[_local1].dirx = dirx;
game[_local1].diry = diry;
}
if (diry == 1) {
if (!ob.pulse) {
if (!dirx) {
ob.jumpspeed = ob.jumpspeed - ob.gravity;
} else {
ob.jumpspeed = ob.jumpspeed - (ob.gravity / 2);
}
} else if (!dirx) {
ob.jumpspeed = ob.jumpspeed - (ob.gravity / 2);
} else {
ob.jumpspeed = ob.jumpspeed - (ob.gravity / 3);
}
}
if (ob.pulse) {
var _local3 = random(10) - 5;
} else {
var _local3 = 0;
}
game.clip.attachMovie("bullet1", _local1, 10100 + game.bulletcounter, {_x:obx + _local3, _y:(oby - (charHeight / 2)) + _local3});
game.clip[_local1].gotoAndStop(ob.bulletType);
game[_local1].clip = game.clip[_local1];
}
function moveBullets() {
var _local2 = 0;
while (_local2 < 13) {
var _local9 = "bullet" + _local2;
if (game[_local9].alive) {
_root.screen["bullet" + _local2]._x = _root.screen["bullet" + _local2]._x + (19 * game["bullet" + _local2].dirx);
_root.screen["bullet" + _local2]._y = _root.screen["bullet" + _local2]._y + (19 * game["bullet" + _local2].diry);
var _local15 = _root.screen.hitBox;
if (_local15.hitTest(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y, true)) {
var _local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
var _local14 = _local2 - 1;
_root.screen[_local7].gotoAndStop(game[_local9].bulletEffect);
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
if (((_root.screen["bullet" + _local2]._y < -35) or (_root.screen["bullet" + _local2]._x < (firstx - 30))) or (_root.screen["bullet" + _local2]._x > (secondx + 60))) {
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
var _local4 = 0;
while (_local4 < game.enemies) {
var _local7 = "enemy" + _local4;
var _local3 = game[_local7];
if (_local3.clip.hitBox.hitTest(_root.screen["bullet" + _local2]) and (!_local3.death)) {
metalHit();
_local3.clip.hit.play();
_local3.strength = _local3.strength - char.bulletStrength;
_local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
var _local14 = _local2 - 1;
var _local5 = 0;
if (game[_local9].bulletEffect == 1) {
_local5 = 5;
}
if (game[_local9].bulletEffect == 2) {
_local5 = 6;
}
if (game[_local9].bulletEffect == 6) {
_local5 = 7;
}
_root.screen[_local7].gotoAndStop(4);
if (_local3.strength <= 0) {
game.kills++;
game.bigquota++;
game.tempKills++;
if (_local3.score <= 0) {
_local3.score = 5;
}
score = ("+" + _local3.score) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 20, score, _local2);
game.score = game.score + _local3.score;
_root.thing.obx = game.score;
scrollFunction();
_local7 = "item";
r = random(8);
if ((!game.item) and (r == 4)) {
_root.screen.attachMovie("item", _local7, 10800, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
game.item = true;
game.itemjump = true;
game.itemjumpspeed = -10;
}
_local3.clip.gotoAndStop(_local5);
_local3.death = true;
_local3.shooting = false;
}
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
_local4++;
}
if (game.bomby) {
if (_root.screen.bomby.hit.hitBox.hitTest(_root.screen["bullet" + _local2])) {
metalHit();
game.bombyStrength = game.bombyStrength - char.bulletStrength;
sc = 15;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
_root.screen.bomby.hit.play();
if (game.bombyStrength <= 0) {
sc = 50;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
_root.screen.bomby.gotoAndStop(3);
game.bomby = false;
game.bombyCreate = false;
_root.rs_helicopter.stop();
_root.rs_explosion1.start();
scrollFunction();
}
var _local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
_root.screen[_local7].gotoAndStop(4);
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
}
if (game.bombydrop) {
if (_root.screen.bomb.hitTest(_root.screen["bullet" + _local2])) {
metalHit();
sc = 35;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
game.bombStrength = game.bombStrength - char.bulletStrength;
if (game.bombStrength <= 0) {
_root.screen.bomb.removeMovieClip();
game.bombydrop = false;
game.bombStrength = 2;
_root.rs_explosion2.start();
_root.screen.attachMovie("smallExplode", "smallExplode", 10600, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
}
var _local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
_root.screen[_local7].gotoAndStop(4);
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
}
if (_root.screen.octopus.octo.head.hitBox.hitTest(_root.screen["bullet" + _local2]) and (game.level == 5)) {
metalHit();
sc = 10;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
_root.screen.octopus.octo.head.play();
game.bossNRG = game.bossNRG - char.bulletStrength;
_root.thing.boss.nrg._xscale = game.bossNRG;
if ((game.bossNRG < 20) and (_root.wormphase < 7)) {
_root.screen.octopus.gotoAndStop(3);
_root.wormphase = 8;
}
if ((game.bossNRG < 0) and (_root.wormphase == 8)) {
r = 0;
while (r < 3000) {
game.bossNRG = game.bossNRG + 0.01;
_root.thing.boss.nrg._xscale = game.bossNRG;
r++;
}
_root.wormphase = 9;
_root.screen.octopus.gotoAndStop(4);
game.score = game.score + 500;
_root.thing.obx = game.score;
}
if ((game.bossNRG < 0) and (_root.wormphase == 9)) {
_root.rs_helicopter.stop();
_root.rs_explosion1.start();
_root.rs_wormscream2b.start();
_root.screen.octopus.gotoAndStop(5);
_root.wormphase = 10;
if (_root.bossScore <= 0) {
_root.bossScore = 50;
}
score = ("+" + _root.bossScore) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 80, score, _local2);
game.score = game.score + _root.bossScore;
_root.thing.obx = game.score;
_root.rs_wormscream2b.start();
}
var _local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
_root.screen[_local7].gotoAndStop(4);
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
var _local6 = 1;
while (_local6 < 6) {
var _local7 = "drum" + _local6;
if (_root.screen[_local7].hitTest(_root.screen["bullet" + _local2])) {
metalHit();
sc = 20;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
var _local11 = _root.screen[_local7]._x;
var _local10 = _root.screen[_local7]._y;
_root.screen[_local7].removeMovieClip();
_local7 = "drumexplode";
_root.screen.attachMovie(_local7, _local7, 20 + _local6, {_x:_local11, _y:_local10});
_root.rs_explosion2.start();
_local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
_root.screen[_local7].gotoAndStop(4);
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
_local6++;
}
if (game.boulderExist and _root.screen.bigrock.hitBox.hitTest(_root.screen["bullet" + _local2])) {
metalHit();
_root.screen.bigrock.play();
game.boulderStrength = game.boulderStrength - char.bulletStrength;
sc = 5;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
if (game.boulderStrength < 0) {
_root.rs_explosion2.start();
_root.screen.bigrock.gotoAndPlay(4);
if (game.level == 2) {
mask = "mask2_22";
} else if (game.level == 3) {
mask = "level3mask22";
} else if (game.level == 4) {
mask = "level4mask22";
}
_root.screen.hitBox[mask].trapDoor._x = 7000;
}
var _local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
_root.screen[_local7].gotoAndStop(4);
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
if (worm) {
if (((((!wormy.leg1) and (!wormy.leg2)) and (!wormy.leg3)) and (!wormy.leg4)) and wormy.head) {
if (_root.screen.worm.worm.head.hitBox.hitTest(_root.screen["bullet" + _local2])) {
metalHit();
wormy.headhits = wormy.headhits + char.bulletStrength;
game.score = game.score + 15;
_root.thing.obx = game.score;
if (wormy.headhits > 6) {
_root.rs_explosion1.start();
game.bossNRG = 0;
_root.thing.boss.nrg._xscale = game.bossNRG;
if (_root.bossScore <= 0) {
_root.bossScore = 50;
}
trace(_root.bossScore);
score = ("+" + _root.bossScore) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 80, score, _local2);
game.score = game.score + _root.bossScore;
_root.thing.obx = game.score;
_root.screen.worm.worm.head.gotoAndStop(6);
_root.screen.worm.gotoAndStop(7);
wormy.head = false;
_root.worm = false;
_root.screen.attachMovie("arrow", "arrow", 200001, {_x:_root.screen.worm._x, _y:_root.screen.worm._y});
_root.screen.hitBox.mask22.trapDoor._x = _root.screen.hitBox.mask22.trapDoor._x + 200;
_root.rs_wormscream2b.start();
}
_root.screen.worm.worm.head.play();
var _local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
_root.screen[_local7].gotoAndStop(4);
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
}
_local4 = 0;
while (_local4 < 5) {
var _local7 = "leg" + _local4;
if (_root.screen.worm.worm[_local7].hitBox.hitTest(_root.screen["bullet" + _local2])) {
metalHit();
var _local8 = "leghits" + _local4;
wormy[_local8] = wormy[_local8] + char.bulletStrength;
sc = 15;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bullet" + _local2]._x, _root.screen["bullet" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
if ((wormy[_local8] > wormy.legdamage) and wormy[_local7]) {
game.bossNRG = game.bossNRG - 20;
_root.thing.boss.nrg._xscale = game.bossNRG;
_root.screen.worm.worm[_local7].gotoAndStop(6);
wormy[_local7] = false;
game.score = game.score + 50;
_root.thing.obx = game.score;
_root.rs_wormscream2.start();
}
_root.screen.worm.worm[_local7].play();
_local7 = "smoke" + _local2;
_local9 = "bullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local7, 10500 + _local2, {_x:_root.screen["bullet" + _local2]._x, _y:_root.screen["bullet" + _local2]._y});
_root.screen[_local7].gotoAndStop(4);
_root.screen["bullet" + _local2].removeMovieClip();
game[_local9].alive = false;
}
_local4++;
}
}
}
_local2++;
}
}
function enemyShoot(ob, obx, oby, dirx, diry) {
game.enemyBulletcounter++;
if (game.enemyBulletcounter > 9) {
game.enemyBulletcounter = 0;
}
var _local1 = "ebullet" + game.enemyBulletcounter;
game[_local1] = new game.Bullet();
game[_local1].alive = true;
game[_local1].id = game.enemyBulletcounter;
game[_local1].bulletEffect = ob.bulletEffect;
if (dirx or diry) {
game[_local1].dirx = dirx;
game[_local1].diry = diry;
}
r = 0;
game.clip.attachMovie("bullet1", _local1, 20120 + game.enemyBulletcounter, {_x:(obx + ((charWidth / 2) * dirx)) + r, _y:(oby - (charHeight / 2)) + r});
game.clip[_local1].gotoAndStop(ob.bulletType);
game[_local1].clip = game.clip[_local1];
ob.clip.chartop.chartop.play();
}
function enemyMoveBullets() {
var _local2 = 0;
while (_local2 < 10) {
var _local3 = "ebullet" + _local2;
if (game[_local3].alive) {
_root.screen["ebullet" + _local2]._x = _root.screen["ebullet" + _local2]._x + (5 * game["ebullet" + _local2].dirx);
_root.screen["ebullet" + _local2]._y = _root.screen["ebullet" + _local2]._y + (5 * game["ebullet" + _local2].diry);
var _local6 = _root.screen.hitBox;
if (_local6.hitTest(_root.screen["ebullet" + _local2]._x, _root.screen["ebullet" + _local2]._y, true)) {
var _local4 = "esmoke" + _local2;
_local3 = "ebullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local4, 10520 + _local2, {_x:_root.screen["ebullet" + _local2]._x, _y:_root.screen["ebullet" + _local2]._y});
var _local10 = _local2 - 1;
_root.screen[_local4].gotoAndStop(game[_local3].bulletEffect);
_root.screen["ebullet" + _local2].removeMovieClip();
game[_local3].alive = false;
}
if (((_root.screen["ebullet" + _local2]._y < -35) or (_root.screen["ebullet" + _local2]._x < (firstx - 30))) or (_root.screen["ebullet" + _local2]._x > (secondx + 60))) {
var _local10 = _local2 - 1;
_root.screen["ebullet" + _local2].removeMovieClip();
game[_local3].alive = false;
}
var _local7 = char.invincible;
if ((char.clip.hitBox.hitTest(_root.screen["ebullet" + _local2]) and (!char.death)) and (!_local7)) {
_root.rs_ugh.start();
char.clip.hit.play();
var _local4 = "esmoke" + _local2;
_local3 = "ebullet" + _local2;
_root.screen.attachMovie("smokegunhit", _local4, 10500 + _local2, {_x:_root.screen["ebullet" + _local2]._x, _y:_root.screen["ebullet" + _local2]._y});
var _local5 = 0;
if (game[_local3].bulletEffect == 1) {
_local5 = 5;
}
if (game[_local3].bulletEffect == 2) {
_local5 = 6;
}
_root.screen[_local4].gotoAndStop(4);
_root.screen["ebullet" + _local2].removeMovieClip();
game[_local3].alive = false;
char.nrg = char.nrg - 5;
if (char.nrg < 1) {
_root.screen.removeMovieClip();
_root.thing.removeMovieClip();
_root._x = 0;
_root.maskbig.removeMovieClip();
_root.gotoAndPlay("dying");
}
_root.thing.nrg._xscale = char.nrg;
char.invincible = true;
}
}
_local2++;
}
}
function bombs(ob, obx, oby, dirx, diry, xspeed) {
game.bombcounter++;
_root.rs_bombcharge.start();
if (game.bombcounter > 6) {
game.bombcounter = 0;
}
var _local2 = "bomb" + game.bombcounter;
game[_local2] = new game.Bomb();
game[_local2].alive = true;
game[_local2].id = game.bombcounter;
game[_local2].bulletEffect = 3;
game[_local2].bombSpeedx = xspeed;
game[_local2].bombSpeedy = 25;
if (dirx or ob.diry) {
game[_local2].dirx = dirx;
game[_local2].diry = diry;
}
game.clip.attachMovie("bullet1", _local2, 10300 + game.bombcounter, {_x:obx + ((charWidth / 2) * dirx), _y:oby - charHeight});
game.clip[_local2].gotoAndStop(3);
game[_local2].clip = game.clip[_local2];
char.bombs--;
_root.thing.bombs = char.bombs;
}
function moveBombs() {
var _local2 = 0;
while (_local2 < 7) {
var _local7 = "bomb" + _local2;
if (game[_local7].alive) {
if (game["bomb" + _local2].bombSpeedy < 30) {
game["bomb" + _local2].bombSpeedy = game["bomb" + _local2].bombSpeedy - 3;
}
_root.screen["bomb" + _local2]._x = _root.screen["bomb" + _local2]._x + (game["bomb" + _local2].bombSpeedx * game["bomb" + _local2].dirx);
_root.screen["bomb" + _local2]._y = _root.screen["bomb" + _local2]._y + (game["bomb" + _local2].bombSpeedy * game["bomb" + _local2].diry);
var _local13 = _root.screen.hitBox;
if (_local13.hitTest(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y, true)) {
scrollFunction();
var _local6 = "bombsmoke" + _local2;
_local7 = "bomb" + _local2;
_root.rs_explosion2.start();
_root.screen.attachMovie("smokegunhit", _local6, 10300 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen.attachMovie("bombFlash", "bombFlash", 30, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
var _local14 = _local2 - 1;
_root.screen[_local6].gotoAndStop(game[_local7].bulletEffect);
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
}
var _local4 = 0;
while (_local4 < game.enemies) {
var _local6 = "enemy" + _local4;
var _local3 = game[_local6];
if (_local3.clip.hitBox.hitTest(_root.screen["bomb" + _local2]) and (!_local3.death)) {
xplode = true;
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
} else if (_local3.clip.hitBox.hitTest(_root.screen.bombFlash) and (!_local3.death)) {
xplode = true;
} else {
xplode = false;
}
if (xplode) {
game.kills++;
game.tempKills++;
if (_local3.score <= 0) {
_local3.score = 5;
}
score = ("+" + _local3.score) + " pts";
attachPoints(_local3.clip._x, _local3.clip._y + 20, score, _local2);
game.score = game.score + _local3.score;
_root.thing.obx = game.score;
_root.rs_explosion2.start();
_local6 = "bombsmoke" + _local2;
_local7 = "bomb" + _local2;
_root.screen.attachMovie("smokegunhit", _local6, 10400 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
_root.screen[_local6].gotoAndStop(5);
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
_local3.clip.gotoAndStop(5);
_local3.death = true;
}
_local4++;
}
if (_root.screen.octopus.octo.head.hitBox.hitTest(_root.screen["bomb" + _local2]) and (game.level == 5)) {
metalHit();
sc = 10;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
_root.screen.octopus.octo.head.play();
game.bossNRG = game.bossNRG - game.Bomb.Strength;
_root.thing.boss.nrg._xscale = game.bossNRG;
if ((game.bossNRG < 20) and (_root.wormphase < 7)) {
_root.screen.octopus.gotoAndStop(3);
_root.wormphase = 8;
}
if ((game.bossNRG < 0) and (_root.wormphase == 8)) {
game.bossNRG = 0;
r = 0;
while (r < 3000) {
game.bossNRG = game.bossNRG + 0.01;
_root.thing.boss.nrg._xscale = game.bossNRG;
r++;
}
_root.wormphase = 9;
_root.screen.octopus.gotoAndStop(4);
game.score = game.score + 500;
_root.thing.obx = game.score;
}
if ((game.bossNRG < 0) and (_root.wormphase == 9)) {
_root.rs_helicopter.stop();
_root.rs_explosion1.start();
_root.screen.octopus.gotoAndStop(5);
_root.wormphase = 10;
if (_root.bossScore <= 0) {
_root.bossScore = 50;
}
score = ("+" + _root.bossScore) + " pts";
attachPoints(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y + 80, score, _local2);
game.score = game.score + _root.bossScore;
_root.thing.obx = game.score;
_root.rs_wormscream2b.start();
}
var _local6 = "smoke" + _local2;
_local7 = "bomb" + _local2;
_root.rs_explosion2.start();
_root.screen.attachMovie("smokegunhit", _local6, 10500 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
_root.screen[_local6].gotoAndStop(5);
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
game[_local7].alive = false;
}
if (game.bomby) {
if (_root.screen.bomby.hit.hitBox.hitTest(_root.screen["bomb" + _local2]) or _local3.clip.hitBox.hitTest(_root.screen.bombFlash)) {
game.bombyStrength = game.bombyStrength - game.Bomb.Strength;
sc = 15;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
_root.screen.bomby.hit.play();
if (game.bombyStrength <= 0) {
_root.screen.bomby.gotoAndStop(3);
game.bomby = false;
game.bombyCreate = false;
_root.rs_helicopter.stop();
_root.rs_explosion1.start();
}
var _local6 = "smoke" + _local2;
_local7 = "bomb" + _local2;
_root.rs_explosion2.start();
_root.screen.attachMovie("smokegunhit", _local6, 10500 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
_root.screen[_local6].gotoAndStop(5);
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
}
}
if (game.bombydrop) {
if (_root.screen.bomb.hitTest(_root.screen["bomb" + _local2]) or _local3.clip.hitBox.hitTest(_root.screen.bombFlash)) {
sc = 35;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
game.bombStrength = game.bombStrength - game.Bomb.Strength;
if (game.bombStrength <= 0) {
_root.screen.bomb.removeMovieClip();
game.bombydrop = false;
game.bombStrength = 2;
_root.rs_explosion2.start();
_root.screen.attachMovie("smallExplode", "smallExplode", 10600, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
}
var _local6 = "smoke" + _local2;
_local7 = "bomb" + _local2;
_root.screen.attachMovie("smokegunhit", _local6, 10500 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
_root.screen[_local6].gotoAndStop(5);
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
}
}
var _local5 = 1;
while (_local5 < 6) {
var _local6 = "drum" + _local5;
if (_root.screen[_local6].hitTest(_root.screen["bomb" + _local2])) {
sc = 20;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
var _local9 = _root.screen[_local6]._x;
var _local8 = _root.screen[_local6]._y;
_root.screen[_local6].removeMovieClip();
_local6 = "drumexplode";
_root.rs_explosion2.start();
_root.screen.attachMovie(_local6, _local6, 20 + _local5, {_x:_local9, _y:_local8});
_local6 = "smoke" + _local2;
_local7 = "bomb" + _local2;
_root.screen.attachMovie("smokegunhit", _local6, 10500 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen[_local6].gotoAndStop(5);
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
}
_local5++;
}
if (game.boulderExist and _root.screen.bigrock.hitBox.hitTest(_root.screen["bomb" + _local2])) {
metalHit();
sc = 5;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
_root.screen.bigrock.play();
game.boulderStrength = game.boulderStrength - game.Bomb.Strength;
if (game.boulderStrength < 0) {
_root.rs_explosion2.start();
_root.screen.bigrock.gotoAndPlay(4);
if (game.level == 2) {
mask = "mask2_22";
} else if (game.level == 3) {
mask = "level3mask22";
} else if (game.level == 4) {
mask = "level4mask22";
}
_root.screen.hitBox[mask].trapDoor._x = 7000;
}
var _local6 = "smoke" + _local2;
_local7 = "bomb" + _local2;
_root.screen.attachMovie("smokegunhit", _local6, 10500 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen[_local6].gotoAndStop(5);
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
}
if (worm) {
if (((((!wormy.leg1) and (!wormy.leg2)) and (!wormy.leg3)) and (!wormy.leg4)) and wormy.head) {
if (_root.screen.worm.worm.head.hitBox.hitTest(_root.screen["bomb" + _local2]) or _local3.clip.hitBox.hitTest(_root.screen.bombFlash)) {
_root.rs_wormscream2b.start();
_root.rs_explosion2.start();
wormy.headhits = wormy.headhits + game.Bomb.Strength;
game.score = game.score + 15;
_root.thing.obx = game.score;
if (wormy.headhits > 6) {
game.bossNRG = 0;
_root.thing.boss.nrg._xscale = game.bossNRG;
if (_root.bossScore <= 0) {
_root.bossScore = 50;
}
score = ("+" + _root.bossScore) + " pts";
attachPoints(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y + 80, score, _local2);
game.score = game.score + _root.bossScore;
_root.thing.obx = game.score;
_root.screen.worm.worm.head.gotoAndStop(6);
_root.screen.worm.gotoAndStop(7);
wormy.head = false;
_root.worm = false;
_root.screen.attachMovie("arrow", "arrow", 200001, {_x:_root.screen.worm._x, _y:_root.screen.worm._y});
_root.screen.hitBox.mask22.trapDoor._x = _root.screen.hitBox.mask22.trapDoor._x + 200;
}
_root.screen.worm.worm.head.play();
var _local6 = "smoke" + _local2;
_local7 = "bomb" + _local2;
_root.screen.attachMovie("smokegunhit", _local6, 10500 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen[_local6].gotoAndStop(5);
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
}
}
_local4 = 0;
while (_local4 < 5) {
var _local6 = "leg" + _local4;
if (_root.screen.worm.worm[_local6].hitBox.hitTest(_root.screen["bomb" + _local2]) or _local3.clip.hitBox.hitTest(_root.screen.bombFlash)) {
_root.rs_explosion2.start();
var _local10 = "leghits" + _local4;
sc = 15;
score = ("+" + sc) + " pts";
attachPoints(_root.screen["bomb" + _local2]._x, _root.screen["bomb" + _local2]._y + 20, score, _local2);
game.score = game.score + sc;
_root.thing.obx = game.score;
_root.thing.obx = game.score;
if (wormy[_local10] > wormy.legdamage) {
game.bossNRG = game.bossNRG - 20;
_root.thing.boss.nrg._xscale = game.bossNRG;
_root.screen.worm.worm[_local6].gotoAndStop(6);
wormy[_local6] = false;
game.score = game.score + 50;
_root.thing.obx = game.score;
_root.rs_wormscream2.start();
}
_root.screen.worm.worm[_local6].play();
_local6 = "smoke" + _local2;
_local7 = "bomb" + _local2;
_root.screen.attachMovie("smokegunhit", _local6, 10500 + _local2, {_x:_root.screen["bomb" + _local2]._x, _y:_root.screen["bomb" + _local2]._y});
_root.screen[_local6].gotoAndStop(5);
_root.screen.attachMovie("bombFlash", "bombFlash", 100500, {_x:_root.screen["bombsmoke" + _local2]._x, _y:_root.screen["bombsmoke" + _local2]._y});
_root.screen["bomb" + _local2].removeMovieClip();
game[_local7].alive = false;
}
_local4++;
}
}
}
_local2++;
}
}
function moveChar(ob, dirx, diry, jump) {
checkWallHit(ob, ob.clip._x + (ob.speed * dirx), ob.clip._y - 10, ob.plat);
checkPlatforms(ob, ob.clip._x + (ob.speed * dirx), ob.clip._y, ob.plat);
if (!ob.wallhit) {
if (ob != char) {
ob.clip._x = ob.clip._x + (ob.speed * dirx);
}
if (ob == char) {
if ((dirx == 1) and (ob.clip._x < secondx)) {
ob.clip._x = ob.clip._x + (ob.speed * dirx);
if ((ob.clip._x > (firstx + mainx)) and game.scrolling) {
_root._x = _root._x - (ob.speed * dirx);
_root.thing._x = _root.thing._x + (ob.speed * dirx);
_root.maskbig._x = _root.maskbig._x + (ob.speed * dirx);
firstx = firstx + (ob.speed * dirx);
secondx = firstx + 500;
scrollFunction();
}
}
if ((dirx == -1) and (ob.clip._x > (firstx + 40))) {
ob.clip._x = ob.clip._x + (ob.speed * dirx);
}
}
}
}
function scrollFunction() {
if (game.level == 1) {
mask = "mask";
} else if (game.level == 2) {
mask = "mask2_";
} else if (game.level == 3) {
mask = "level3mask";
} else if (game.level == 4) {
mask = "level4mask";
}
if (firstx > scrollx) {
_root.screen.hitBox[mask + scrolli].removeMovieClip();
var _local2 = mask + (scrolli + 5);
_root.screen.hitBox.attachMovie(_local2, _local2, 10000 + scrolli, {_x:scrollx + 750, _y:100});
if ((game.level > 1) and ((scrolli + 5) == 22)) {
if (game.level == 2) {
bx = 5352;
by = 350;
}
if (game.level == 3) {
bx = 5332;
by = 350;
}
if (game.level == 4) {
bx = 5372;
by = 350;
}
_local2 = "bigrock";
_root.screen.attachMovie(_local2, _local2, 29, {_x:bx, _y:by});
game.boulderExist = true;
game.boulderStrength = 25;
}
scrolli++;
scrollx = scrollx + 250;
}
if (game.scrolling) {
if ((game.scrollScene == 1) and (_root.screen.char._x > 840)) {
game.scrolling = false;
game.tempKills = 0;
game.bomby = true;
}
if ((game.scrollScene == 2) and (_root.screen.char._x > 2245)) {
game.scrolling = false;
game.tempKills = 0;
game.bomby = true;
bgo = 0;
}
if ((game.scrollScene == 3) and (_root.screen.char._x > 3865)) {
game.scrolling = false;
game.tempKills = 0;
game.bomby = true;
}
if ((game.scrollScene == 4) and (_root.screen.char._x > 5130)) {
game.scrolling = false;
game.tempKills = 0;
}
if ((game.level == 2) and (_root.screen.char._x > 5130)) {
game.scrolling = false;
game.tempKills = 0;
}
if ((game.level == 3) and (_root.screen.char._x > 5130)) {
game.scrolling = false;
game.tempKills = 0;
}
if ((game.level == 4) and (_root.screen.char._x > 5120)) {
game.scrolling = false;
game.tempKills = 0;
}
}
var _local3 = false;
if (game.bigquota > 70) {
game.tempKills = 200;
}
if ((((!game.scrolling) and (game.tempKills > game.quota)) and (game.scrollScene < 4)) and (!game.bomby)) {
game.tempKills = 0;
game.scrollScene++;
game.quota = game.quota + 2;
game.enemies++;
game.scrolling = true;
game.triggerFingers = game.triggerFingers - 5;
_root.thing.go.play();
game.scrollCheck = true;
}
if (((!game.scrolling) and (game.tempKills > game.quota)) and (game.scrollScene == 4)) {
flee = true;
game.scrollScene++;
_root.screen.attachMovie("danger", "danger", 20002, {_x:4900, _y:100});
var _local2 = "worm";
_root.screen.attachMovie("worm", _local2, 9100, {_x:5390, _y:320});
_root.thing.boss._visible = true;
_root.rs_alarm1.start();
_root.rs_wormbust.start();
}
}
function jump(ob, speed, gravity) {
if (ob.jumpspeed < 16) {
ob.jumpspeed = ob.jumpspeed + gravity;
} else {
ob.jumpspeed = 16;
}
ob.clip._y = ob.clip._y + ob.jumpspeed;
checkPlatforms(ob, ob.clip._x, ob.clip._y, ob.plat);
if (((ob.jumpspeed >= 0) and (!ob.falling)) and (!ob.death)) {
ob.clip.gotoAndStop(4);
ob.falling = true;
}
}
function checkPlatforms(ob, obx, oby, plat) {
var _local4 = _root.screen.hitBox;
if (ob.plat) {
if (_local4.hitTest(ob.clip._x, ob.clip._y, true)) {
var _local3 = 0;
while (_local3 < 10) {
if (!_local4.hitTest(ob.clip._x, ob.clip._y - _local3, true)) {
break;
}
_local3++;
}
ob.walkfall = false;
ob.jump = false;
ob.plat = true;
ob.clip._y = ob.clip._y - _local3;
}
if (!_local4.hitTest(ob.clip._x, ob.clip._y, true)) {
ob.clip._y = ob.clip._y + 2;
ob.walkfall = true;
if (!_local4.hitTest(ob.clip._x, ob.clip._y, true)) {
var _local5 = random(100);
if (((((((_local5 > 70) and (!ob.wallhit)) and (ob != char)) and (!ob.jump)) and (!ob.falling)) and ob.plat) or ob.patrol) {
if (ob.patrol) {
p = -15;
} else {
p = -10;
}
ob.jump = true;
ob.jumpRelease = false;
ob.jumpspeed = p;
ob.plat = false;
ob.wallhit = false;
ob.falling = false;
ob.clip.gotoAndStop(3);
} else {
ob.jumpspeed = 6;
ob.jump = true;
ob.falling = true;
}
}
}
}
if (_local4.hitTest(ob.clip._x, ob.clip._y + ob.jumpspeed, true) and ob.falling) {
var _local3 = 0;
while (_local3 < ob.jumpspeed) {
if (_local4.hitTest(ob.clip._x, ob.clip._y + _local3, true)) {
break;
}
_local3++;
}
ob.clip._y = ob.clip._y + _local3;
ob.falling = false;
ob.jump = false;
ob.plat = true;
if (!ob.death) {
ob.clip.gotoAndStop(1);
}
}
}
function checkWallHit(ob, obx, oby, plat) {
var _local2 = _root.screen.hitBox;
if (_local2.hitTest(obx, oby, true)) {
ob.wallhit = true;
} else {
ob.wallhit = false;
}
}
function octoAttack() {
var _local2 = char.invincible;
if (char.clip.hitBox.hitTest(_root.screen.worm.worm.hitBox) and (!_local2)) {
char.clip.hit.play();
_root.rs_ugh.start();
char.nrg = char.nrg - 15;
if (char.nrg < 1) {
_root.screen.removeMovieClip();
_root.thing.removeMovieClip();
_root._x = 0;
_root.maskbig.removeMovieClip();
_root.gotoAndPlay("dying");
}
_root.thing.nrg._xscale = char.nrg;
char.invincible = true;
}
var _local4 = random(25);
if ((char.clip._x > _root.screen.octopus._x) and (_root.wormphase < 7)) {
_root.rs_explosion3.start();
_root.screen.attachMovie("boulderbreak", "boulderbreak", 30001, {_x:_root.screen.boulderspin._x, _y:336});
_root.screen.boulderspin.removeMovieClip();
_root.wormphase = 1;
_root.octox = -1;
_root.rs_explosion3.start();
_root.rs_wormscream2.start();
}
if (_local4 == 4) {
if ((_root.wormphase > 0) and (_root.wormphase < 5)) {
_root.wormphase++;
if ((_root.wormphase == 5) and (game.bossNRG > 80)) {
_root.wormphase = 1;
}
_root.screen.octopus.gotoAndStop(1);
_root.wormshoot = true;
_root.rs_wormscream1.start();
var _local3 = game[name];
var name = "enemy1";
_local3 = game[name];
var _local7 = game.worm;
_root.screen.octopus.spark.play();
if (_root.wormphase < 3) {
var _local6 = 1;
} else {
var _local6 = 0;
}
enemyShoot(_local3, _root.screen.octopus._x - 100, _root.screen.octopus._y - 100, -1, _local6);
_root.rs_lazer2.start();
} else if (_root.wormphase == 5) {
_root.screen.octopus.gotoAndStop(2);
} else if (_root.wormphase == 6) {
}
}
if (_root.wormphase == 6) {
var _local5 = _root.screen.char._x;
_root.screen.attachMovie("boulderspin", "boulderspin", 30000, {_x:_local5, _y:-10});
_root.wormphase = 7;
_root.rs_wormscream2.start();
}
if (_root.wormphase > 6) {
_root.screen.boulderspin._y = _root.screen.boulderspin._y + 8;
_local2 = char.invincible;
if (_root.screen.boulderspin.hitBox.hitTest(_root.screen.char.hitBox) and (!_local2)) {
_root.rs_ugh.start();
char.nrg = char.nrg - 10;
if (char.nrg < 1) {
_root.screen.removeMovieClip();
_root.thing.removeMovieClip();
_root._x = 0;
_root.maskbig.removeMovieClip();
_root.gotoAndPlay("dying");
}
_root.thing.nrg._xscale = char.nrg;
char.invincible = true;
}
if (_root.screen.boulderspin._y > 336) {
_root.rs_explosion3.start();
_root.screen.attachMovie("boulderbreak", "boulderbreak", 30001, {_x:_root.screen.boulderspin._x, _y:336});
_root.screen.boulderspin.removeMovieClip();
_root.wormphase = 1;
_root.octox = -1;
_root.rs_explosion3.start();
}
}
if (_root.wormphase == 9) {
if (_local4 == 4) {
var name = "enemy1";
var _local3 = game[name];
var _local7 = game.worm;
_root.screen.octopus.spark.play();
_root.rs_lazer2.start();
if (_root.octox == -1) {
enemyShoot(_local3, _root.screen.octopus._x - 90, _root.screen.octopus._y - 120, -1, 1);
} else {
enemyShoot(_local3, _root.screen.octopus._x + 90, _root.screen.octopus._y - 120, 1, 1);
}
}
if (_root.octox == -1) {
_root.screen.octopus._x = _root.screen.octopus._x - 6;
_root.screen.octopus._xscale = 100;
if (_root.screen.octopus._x < firstx) {
_root.octox = 1;
_root.rs_wormscream1.start();
}
}
if (_root.octox == 1) {
_root.screen.octopus._x = _root.screen.octopus._x + 6;
_root.screen.octopus._xscale = -100;
if (_root.screen.octopus._x > secondx) {
_root.octox = -1;
_root.rs_wormscream1.start();
}
}
_root.u = 0;
}
if (_root.wormphase == 10) {
_root.u++;
if (_root.u > 200) {
_root.screen.removeMovieClip();
_root.thing.removeMovieClip();
_root.maskbig.removeMovieClip();
_root.play();
}
}
}
function wormAttack() {
var _local5 = char.invincible;
if (char.clip.hitBox.hitTest(_root.screen.worm.worm.hitBox) and (!_local5)) {
char.clip.hit.play();
_root.rs_ugh.start();
char.nrg = char.nrg - 15;
if (char.nrg < 1) {
_root.screen.removeMovieClip();
_root.thing.removeMovieClip();
_root._x = 0;
_root.maskbig.removeMovieClip();
_root.gotoAndPlay("dying");
}
_root.thing.nrg._xscale = char.nrg;
char.invincible = true;
}
if (worm and (!wormattack)) {
if (wormshoot) {
var _local3 = "enemy1";
var _local4 = game[_local3];
var _local6 = game.worm;
wormshoot = false;
enemyShoot(_local4, (_root.screen.worm._x - (_root.screen.worm._width / 2)) + 35, _root.screen.worm._y - 210, -1, 1);
}
var _local2 = random(25);
if (char.clip._x > (_root.screen.worm._x - 100)) {
_root.wormattack = true;
_root.screen.worm.gotoAndStop(6);
_root.rs_laserbig.start();
_local2 = 0;
}
if (_local2 == 4) {
if (_root.wormphase == 1) {
_root.wormattack = true;
_root.wormphase = 2;
_root.screen.worm.gotoAndStop(3);
_root.wormshoot = true;
_root.rs_wormscream1.start();
} else if (_root.wormphase == 2) {
_root.wormattack = true;
_root.wormphase = 3;
_root.screen.worm.gotoAndStop(3);
_root.wormshoot = true;
} else if (_root.wormphase == 3) {
_root.wormattack = true;
_root.wormphase = 4;
_root.screen.worm.gotoAndStop(5);
_root.rs_laserbig.start();
} else if (_root.wormphase == 4) {
_root.wormattack = true;
_root.wormphase = 5;
_root.screen.worm.gotoAndStop(3);
_root.wormshoot = true;
} else if (_root.wormphase == 5) {
_root.wormattack = true;
_root.wormphase = 6;
_root.screen.worm.gotoAndStop(3);
_root.wormshoot = true;
} else if (_root.wormphase == 6) {
_root.wormattack = true;
_root.wormphase = 1;
_root.screen.worm.gotoAndStop(4);
_root.rs_laserbig.start();
}
}
}
}
function bombAttack() {
if (game.bomby) {
if (!game.bombyCreate) {
var _local6 = firstx;
var _local5 = secondx;
game.bombyCreate = true;
game.bombyStrength = 5;
game.bombyx = -1;
game.bombydrop = false;
game.bombStrength = 2;
_root.screen.bomby.gotoAndStop(1);
var _local3 = "bomby";
_root.screen.attachMovie("copter", _local3, 9100, {_x:secondx + 100, _y:150});
_root.rs_helicopter.start(0, 1000);
}
_root.screen.bomby._x = _root.screen.bomby._x + (5 * game.bombyx);
if (_root.screen.bomby._x < firstx) {
game.bombyx = 1;
}
if (_root.screen.bomby._x > secondx) {
game.bombyx = -1;
}
if ((_root.screen.bomby._x < (_root.screen.char._x + 10)) and (_root.screen.bomby._x > (_root.screen.char._x - 10))) {
if (!game.bombydrop) {
_root.rs_bombdrop.start();
_root.screen.bomby.gotoAndStop(2);
game.bombydrop = true;
_root.screen.attachMovie("bomb", "bomb", 9099, {_x:_root.screen.bomby._x, _y:_root.screen.bomby._y});
}
}
}
if (game.bombydrop) {
_root.screen.bomb._y = _root.screen.bomb._y + 6;
var _local2 = _root.screen.bomb._y + _root.screen.bomb._height;
if (_root.screen.hitBox.hitTest(_root.screen.bomb._x, _local2, true)) {
game.bombydrop = false;
game.bombStrength = 2;
_root.rs_explosion2.start();
_root.screen.attachMovie("smallExplode", "smallExplode", 9098, {_x:_root.screen.bomb._x, _y:_local2});
_root.screen.bomb.removeMovieClip();
}
var _local4 = char.invincible;
if ((char.clip.hitBox.hitTest(_root.screen.bomb) and (!char.death)) and (!_local4)) {
_root.rs_ugh.start();
char.clip.hit.play();
char.nrg = char.nrg - 9;
if (char.nrg < 1) {
_root.screen.removeMovieClip();
_root.thing.removeMovieClip();
_root._x = 0;
_root.maskbig.removeMovieClip();
_root.gotoAndPlay("dying");
}
game.bombydrop = false;
game.bombStrength = 2;
_root.rs_explosion2.start();
_root.screen.attachMovie("smallExplode", "smallExplode", 9099, {_x:_root.screen.bomb._x, _y:_local2});
_root.screen.bomb.removeMovieClip();
_root.thing.nrg._xscale = char.nrg;
char.invincible = true;
}
}
}
killsTotal = 0;
setUpSounds();
setUpLevel1();
_root.bd = false;
enemyScoreCountdownTimer = setInterval(this, "enemyScoreCountdown", 1000);
gogoTimer = setInterval(this, "gogoTime", 5000);
gg = 0;
_root.thing.itemget.play();
rockWall = false;
_root.sound = "ON";
_root.scrolledX = 4;
_root.thing.boss._visible = false;
var paws = false;
stop();
char = {speed:4, jumpstart:-22, gravity:1.5, dirx:1, jump:true, plat:true, falling:true, bombShooting:false, bombShoot:true, shooting:false, shoot:true, shootspeed:100, bulletType:1, pulse:false, spray:false, bombRelease:true, shootRelease:true, jumpRelease:true};
char.clip = _root.screen.char;
char.x = char.clip._x;
char.y = char.clip._y;
_root.thing.shotType = "SINGLE SHOT";
char.bulletType = 1;
char.bulletStrength = 1;
char.bombStrength = 5;
char.shootspeed = 100;
char.bulletEffect = 1;
char.pulse = false;
char.spray = false;
char.genesis = 1;
char.death = false;
char.nrg = 100;
char.bombs = 10;
char.invincible = false;
char.jump = true;
char.falling = true;
char.bombShootRelease = true;
var inv = 0;
var inv2 = 0;
var mainx = char.clip._x;
var firstx = 0;
var secondx = 550;
var scrollx = 500;
var scrolli = 1;
var charWidth = _root.screen.char._width;
var charHeight = _root.screen.char._height;
game = {bulletcounter:0, enemyBulletcounter:0, bombcounter:0, scrolling:true, scrollScene:1, kills:0, tempKills:0, quota:5, triggerFingers:75};
game.clip = _root.screen;
game.score = 0;
game.item = false;
game.itemchoice = 0;
game.bigquota = 0;
game.boulderDashed = false;
game.boulderx = 0;
game.bouldery = 0;
game.boulderCount = 0;
game.dash = 0;
game.enemies = 2;
game.scrollCheck = false;
game.bomby = false;
game.bombyCreate = false;
game.bombyStrength = 5;
game.bombyx = -1;
game.bombStrength = 2;
game.Bullet = function () {
};
game.Bullet.prototype.speed = 18;
game.Bullet.prototype.alive = false;
game.Bomb = function () {
};
game.Bomb.prototype.speed = 10;
game.Bomb.prototype.dirx = 0;
game.Bomb.prototype.diry = -1;
game.Bomb.prototype.alive = false;
game.Bomb.Strength = 10;
game.Enemy1 = function () {
};
game.Enemy1.prototype.speed = 3;
game.Enemy1.prototype.bulletType = 1;
game.Enemy1.prototype.pulse = false;
game.Enemy1.prototype.jump = true;
game.Enemy1.prototype.falling = true;
game.Enemy1.prototype.jumpStart = -22;
game.Enemy1.prototype.jumpspeed = -5;
game.Enemy1.prototype.gravity = 1.5;
game.Enemy1.prototype.patrol = false;
game.Enemy1.prototype.dirx = 1;
game.Enemy1.prototype.jumpPos = false;
game.Enemy1.prototype.death = false;
game.Enemy1.prototype.resurrect = 0;
game.Enemy1.prototype.shoot = true;
game.Enemy1.prototype.shooting = false;
game.Enemy1.prototype.bulletType = 4;
game.Enemy1.prototype.strength = 1;
game.Enemy1.prototype.resetstrength = 1;
game.Enemy1.prototype.score = 50;
game.Enemy2 = function () {
};
game.Enemy2.prototype.speed = 3.5;
game.Enemy2.prototype.bulletType = 1;
game.Enemy2.prototype.pulse = false;
game.Enemy2.prototype.jump = true;
game.Enemy2.prototype.falling = true;
game.Enemy2.prototype.jumpStart = -22;
game.Enemy2.prototype.jumpspeed = -5;
game.Enemy2.prototype.gravity = 1.4;
game.Enemy2.prototype.patrol = true;
game.Enemy2.prototype.dirx = 1;
game.Enemy2.prototype.jumpPos = false;
game.Enemy2.prototype.death = false;
game.Enemy2.prototype.resurrect = 0;
game.Enemy2.prototype.shoot = true;
game.Enemy2.prototype.shooting = false;
game.Enemy2.prototype.bulletType = 4;
game.Enemy2.prototype.strength = 2;
game.Enemy2.prototype.resetstrength = 2;
game.Enemy2.prototype.score = 100;
var flee = false;
game.bossNRG = 100;
wormy = {leg1:true, leg2:true, leg3:true, leg4:true, head:true};
_root.wormy.leghits1 = 0;
_root.wormy.leghits2 = 0;
_root.wormy.leghits3 = 0;
_root.wormy.leghits4 = 0;
_root.wormy.headhits = 0;
_root.wormy.legdamage = 10;
_root.worm = false;
_root.wormattack = false;
_root.wormphase = 0;
_root.wormshoot = false;
var i = 0;
while (i < 5) {
var name = ("enemy" + i);
game[name] = new game.Enemy1();
_root.screen.attachMovie("enemy", name, 16001 + i);
game[name].clip = game.clip[name];
if (i < 1) {
game[name].clip._x = random(100) + 550;
game[name].clip._y = random(150);
} else {
game[name].clip._x = random(5000);
game[name].clip._y = -50;
}
game[name].clip.gotoAndStop(3);
game.level = 1;
bgo = 0;
i++;
}
Instance of Symbol 739 MovieClip [empty] in Frame 184
onClipEvent (enterFrame) {
if (!_root.paws) {
_root.checkKeys();
}
}
Instance of Symbol 1153 MovieClip "thing" in Frame 184
onClipEvent (load) {
this.swapDepths(10001);
}
Instance of Symbol 1155 MovieClip "music" in Frame 184
onClipEvent (load) {
this.play();
}
Frame 185
stop();
Frame 186
stopAllSounds();
_root.play();
Frame 187
_root._x = 0;
score = game.score;
stop();
Instance of Symbol 972 MovieClip in Frame 187
onClipEvent (load) {
score = _root.game.score;
clearInterval(gogoTimer);
}
Frame 188
stopAllSounds();
Frame 189
_root._x = 0;
Frame 288
_root.rs_helicopter.stop();
gotoAndStop ("gameover");
Symbol 24 MovieClip Frame 1
stop();
Instance of Symbol 5 MovieClip "hitBox" in Symbol 24 MovieClip Frame 1
onClipEvent (load) {
if (!wormy.leg1) {
this.gotoAndStop(7);
}
}
Symbol 24 MovieClip Frame 5
gotoAndStop (1);
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 5
gotoAndStop (1);
Symbol 35 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
_root._y = _root._y + 5;
Symbol 53 MovieClip Frame 3
_root._y = _root._y - 10;
_root.rs_wormbust.start();
_root.rs_punch.start();
Symbol 53 MovieClip Frame 5
_root._y = _root._y + 10;
Symbol 53 MovieClip Frame 7
_root._y = _root._y - 10;
Symbol 53 MovieClip Frame 8
_root.rs_punch.start();
Symbol 53 MovieClip Frame 9
_root._y = _root._y + 10;
Symbol 53 MovieClip Frame 11
_root._y = _root._y - 5;
Symbol 53 MovieClip Frame 15
_root.wormphase = 6;
_root.screen.octopus.gotoAndStop(1);
Symbol 72 MovieClip [smallExplode] Frame 23
stop();
Symbol 73 MovieClip Frame 1
_root.rs_explosion3.start();
_root.rs_wormscream2.start();
Instance of Symbol 5 MovieClip "hitBox" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
if (!wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 5 MovieClip "hitBox" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
if (!wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 5 MovieClip "hitBox" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
if (!wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 5 MovieClip "hitBox" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
if (!wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 5 MovieClip "hitBox" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
if (!wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 5 MovieClip "hitBox" in Symbol 73 MovieClip Frame 1
onClipEvent (load) {
if (!wormy.leg1) {
this.gotoAndStop(7);
}
}
Symbol 73 MovieClip Frame 5
_root.rs_explosion3.start();
Symbol 73 MovieClip Frame 10
_root.rs_explosion3.start();
Symbol 73 MovieClip Frame 15
_root.rs_explosion3.start();
Symbol 73 MovieClip Frame 20
_root.rs_explosion3.start();
_root.game.tempKills = 0;
_root.game.bomby = true;
_root.game.bombyCreate = false;
Symbol 73 MovieClip Frame 45
gotoAndPlay (40);
Symbol 98 MovieClip [explodemc] Frame 23
stop();
Symbol 99 MovieClip [octopus] Frame 1
stop();
Symbol 99 MovieClip [octopus] Frame 5
stop();
Symbol 149 MovieClip [mask2_21] Frame 1
stop();
Symbol 203 MovieClip Frame 46
_root._y = _root._y + 5;
Symbol 203 MovieClip Frame 48
_root._y = _root._y - 10;
Symbol 203 MovieClip Frame 50
_root._y = _root._y + 10;
Symbol 203 MovieClip Frame 52
_root._y = _root._y - 10;
Symbol 203 MovieClip Frame 54
_root._y = _root._y + 10;
Symbol 203 MovieClip Frame 56
_root._y = _root._y - 10;
Symbol 203 MovieClip Frame 58
_root._y = _root._y + 10;
Symbol 203 MovieClip Frame 60
_root._y = _root._y - 10;
Symbol 203 MovieClip Frame 62
_root._y = _root._y + 10;
Symbol 203 MovieClip Frame 64
_root._y = _root._y - 10;
Symbol 203 MovieClip Frame 66
_root._y = _root._y + 10;
Symbol 203 MovieClip Frame 68
_root._y = _root._y - 5;
Symbol 203 MovieClip Frame 176
_root.worm = true;
_root.wormattack = false;
_root.wormphase = 1;
_root.bossScore = 1000;
_parent.nextFrame();
Instance of Symbol 24 MovieClip "leg1" in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg2" in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg2) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg3" in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg3) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg4" in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg4) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg1" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg2" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg2) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg3" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg3) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg4" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg4) {
this.gotoAndStop(7);
}
}
Symbol 211 MovieClip Frame 4
Symbol 211 MovieClip Frame 9
_root.rs_lazer2.start();
Symbol 211 MovieClip Frame 16
_root.wormattack = false;
_root.screen.worm.gotoAndStop(2);
Symbol 220 MovieClip Frame 5
stop();
Instance of Symbol 24 MovieClip "leg1" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg2" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg2) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg3" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg3) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg4" in Symbol 228 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg4) {
this.gotoAndStop(7);
}
}
Symbol 228 MovieClip Frame 69
_root.wormattack = false;
_root.screen.worm.gotoAndStop(2);
Instance of Symbol 24 MovieClip "leg1" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg2" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg2) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg3" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg3) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg4" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg4) {
this.gotoAndStop(7);
}
}
Symbol 231 MovieClip Frame 70
_root.wormattack = false;
_root.screen.worm.gotoAndStop(2);
Instance of Symbol 24 MovieClip "leg1" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg1) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg2" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg2) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg3" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg3) {
this.gotoAndStop(7);
}
}
Instance of Symbol 24 MovieClip "leg4" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
if (!_root.wormy.leg4) {
this.gotoAndStop(7);
}
}
Symbol 239 MovieClip Frame 45
_root.wormattack = false;
_root.screen.worm.gotoAndStop(2);
Symbol 240 MovieClip Frame 65
stop();
Symbol 254 MovieClip Frame 70
stop();
Symbol 255 MovieClip Frame 170
stop();
Symbol 256 MovieClip [worm] Frame 1
stop();
Symbol 256 MovieClip [worm] Frame 6
stop();
Symbol 258 MovieClip [bombFlash] Frame 3
stop();
removeMovieClip(_root.screen.bombFlash);
Symbol 308 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 30
stop();
Symbol 434 MovieClip Frame 1
_root.rs_fire1.start();
Symbol 434 MovieClip Frame 40
_root.rs_explosion5.start();
Symbol 438 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 30
stop();
Symbol 462 MovieClip Frame 30
stop();
Symbol 463 MovieClip [enemy2] Frame 1
stop();
Symbol 463 MovieClip [enemy2] Frame 5
_root.rs_explosion5.start();
Symbol 463 MovieClip [enemy2] Frame 7
_root.rs_explosion5.start();
Symbol 463 MovieClip [enemy2] Frame 8
_root.rs_explosion3.start();
Symbol 471 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 30
stop();
Symbol 536 MovieClip Frame 1
_root.rs_fire1.start();
Symbol 536 MovieClip Frame 55
_root.rs_explosion5.start();
Symbol 536 MovieClip Frame 80
stop();
Symbol 555 MovieClip Frame 30
stop();
Symbol 558 MovieClip Frame 30
stop();
Symbol 559 MovieClip [enemy] Frame 1
stop();
Symbol 559 MovieClip [enemy] Frame 5
_root.rs_explosion5.start();
Symbol 559 MovieClip [enemy] Frame 7
_root.rs_explosion5.start();
Symbol 559 MovieClip [enemy] Frame 8
_root.rs_explosion3.start();
Symbol 570 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 578 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 17
_root.char.punch = false;
_parent.gotoAndStop(1);
Symbol 590 MovieClip [player] Frame 1
stop();
Symbol 590 MovieClip [player] Frame 5
stop();
Symbol 597 MovieClip Frame 5
stop();
Symbol 607 MovieClip Frame 17
stop();
Symbol 620 MovieClip [bullet1] Frame 1
stop();
Symbol 632 MovieClip Frame 22
stop();
Symbol 644 MovieClip Frame 31
stop();
Symbol 658 MovieClip Frame 24
stop();
Symbol 660 MovieClip Frame 19
stop();
Symbol 668 MovieClip Frame 24
stop();
Symbol 683 MovieClip Frame 22
stop();
Symbol 701 MovieClip Frame 21
stop();
Symbol 702 MovieClip [smokegunhit] Frame 1
stop();
Symbol 702 MovieClip [smokegunhit] Frame 3
stop();
Symbol 702 MovieClip [smokegunhit] Frame 4
stop();
Symbol 702 MovieClip [smokegunhit] Frame 5
stop();
Symbol 706 MovieClip [smoke] Frame 22
stop();
Symbol 710 MovieClip [item] Frame 1
_root.game.itemchoice = 1;
Symbol 710 MovieClip [item] Frame 12
_root.game.itemchoice = 2;
Symbol 710 MovieClip [item] Frame 23
_root.game.itemchoice = 3;
Symbol 710 MovieClip [item] Frame 34
_root.game.itemchoice = 4;
Symbol 710 MovieClip [item] Frame 45
_root.game.itemchoice = 5;
Symbol 710 MovieClip [item] Frame 56
_root.game.itemchoice = 6;
Symbol 711 MovieClip [arrow] Frame 35
stop();
Symbol 728 MovieClip [danger] Frame 101
stop();
Symbol 731 MovieClip Frame 1
stop();
Instance of Symbol 739 MovieClip [empty] in Symbol 755 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.screen.bomby._y = _root.screen.bomby._y + 4;
}
Symbol 755 MovieClip Frame 29
stop();
_root.screen.bomby.removeMovieClip();
Symbol 756 MovieClip [copter] Frame 1
stop();
Symbol 787 MovieClip [drumexplode] Frame 20
stop();
Symbol 841 MovieClip [electric2] Frame 22
stop();
Symbol 848 MovieClip [electric] Frame 22
stop();
Symbol 850 MovieClip [blackout1] Frame 56
_root.bd = true;
_root.screen.blackOut.removeMovieClip();
Symbol 851 MovieClip [blackOut] Frame 24
_root.screen.blackOut.removeMovieClip();
Symbol 860 MovieClip [bigrock] Frame 1
stop();
Symbol 860 MovieClip [bigrock] Frame 3
gotoAndStop (1);
Symbol 860 MovieClip [bigrock] Frame 4
play();
Instance of Symbol 859 MovieClip in Symbol 860 MovieClip [bigrock] Frame 4
onClipEvent (enterFrame) {
play();
}
Symbol 860 MovieClip [bigrock] Frame 28
stop();
Symbol 863 MovieClip [boulderbreak] Frame 16
_root.screen.boulderbreak.removeMovieClip();
Symbol 878 MovieClip Frame 1
var gameBytesTotal = 0;
var gameBytesLoaded = 0;
var percent = 0;
Symbol 878 MovieClip Frame 3
gameBytesTotal = _root.getBytesTotal();
gameBytesLoaded = _root.getBytesLoaded();
percent = Math.round((gameBytesLoaded / gameBytesTotal) * 100);
bar.loadbar._xscale = percent;
if (((gameBytesLoaded >= gameBytesTotal) && (gameBytesTotal > 0)) && (_root.logo._currentframe >= _root.logo._totalframes)) {
_root.gotoAndPlay("vt_game_start");
stop();
} else {
gotoAndPlay ("preload");
}
Symbol 881 Button
on (release) {
getURL (_root.main_link, "_blank");
}
Symbol 951 MovieClip Frame 1
_root.loading._visible = false;
Symbol 951 MovieClip Frame 207
_root.loading._visible = true;
stop();
Symbol 977 Button
on (release) {
getURL (_root.main_link, "_blank");
}
Symbol 1013 MovieClip Frame 1
stop();
Symbol 1016 Button
on (release) {
_root.setSounds(100);
_root.gotoAndPlay("intro_start");
}
Symbol 1018 Button
on (release) {
getURL (_root.viewscores_link, "_blank");
}
Symbol 1020 Button
on (release) {
getURL (_root.download_link, "_blank");
}
Symbol 1022 Button
on (release) {
getURL (_root.main_link, "_blank");
}
Symbol 1024 Button
on (release) {
_root.gotoAndPlay("credits");
}
Symbol 1026 Button
on (release) {
_root.gotoAndPlay("options");
}
Symbol 1028 Button
on (release) {
getURL (_root.get_game_link, "_blank");
}
Symbol 1029 Button
on (release) {
getURL (_root.download_link, "_blank");
}
Symbol 1031 Button
on (release) {
_root.gotoAndPlay("startgame");
}
Symbol 1034 Button
on (release) {
switch (_quality) {
case "HIGH" :
_quality = "LOW";
break;
case "MEDIUM" :
_quality = "HIGH";
break;
case "LOW" :
_quality = "MEDIUM";
}
_root.SetButtonStr();
}
Symbol 1037 Button
on (release) {
_root.keySet = ((_root.keySet == 3) ? 1 : (_root.keySet + 1));
_root.SetButtonStr();
}
Symbol 1051 Button
on (release) {
clearInterval(movieTimer);
_root.gotoAndPlay("gamestart");
}
Symbol 1086 Button
on (release) {
gotoAndStop (2);
}
Symbol 1088 Button
on (release) {
_root.play();
}
Symbol 1089 MovieClip Frame 1
stop();
Symbol 1096 Button
on (release) {
_root.gotoAndPlay("gamestart");
}
Symbol 1102 Button
on (release) {
stopAllSounds();
_root.music.gotoAndStop(1);
_root.setSounds(100);
removeMovieClip(_root.screen);
removeMovieClip(_root.thing);
removeMovieClip(_root.maskbig);
_root._x = 0;
_root.gotoAndPlay("vt_game_start");
}
Symbol 1104 Button
on (release) {
_root.paws = false;
_root.thing.menu.gotoAndStop(1);
}
Symbol 1107 Button
on (release) {
if (_root.sound == "ON") {
_root.sound_str = "SWITCH SOUND ON";
_root.sound = "OFF";
stopAllSounds();
_root.music.gotoAndStop(1);
_root.setSounds(0);
} else if (_root.sound == "OFF") {
_root.sound_str = "SWITCH SOUND OFF";
_root.sound = "ON";
_root.setSounds(100);
_root.music.play();
}
sound = _root.sound;
}
Symbol 1108 MovieClip Frame 1
stop();
Symbol 1108 MovieClip Frame 2
_root.SetButtonStr();
qual = _root._quality;
sound = _root.sound;
if (_root.sound == "ON") {
_root.sound_str = "SWITCH SOUND OFF";
} else {
_root.sound_str = "SWITCH SOUND ON";
}
Symbol 1114 MovieClip Frame 1
function tipTime() {
_root.thing.tips.nextFrame();
}
tip = ((((((("Use " + _root.kup) + ",") + _root.kleft) + ",") + _root.kdown) + ",") + _root.kright) + ", to move and direct your weapon (combine keys for diagonal fire)";
tipTimer = setInterval(this, "tipTime", 5000);
stop();
Symbol 1114 MovieClip Frame 2
tip = ("Use " + _root.SHOOT) + " to fire";
stop();
Symbol 1114 MovieClip Frame 3
tip = ("Use " + _root.GRENADE) + " for Grenades. The longer you hold it the further it will go";
stop();
Symbol 1114 MovieClip Frame 4
tip = ("Use " + _root.JUMP) + " for Jump";
stop();
Symbol 1114 MovieClip Frame 5
stop();
Symbol 1114 MovieClip Frame 6
play();
clearInterval(tipTimer);
Symbol 1114 MovieClip Frame 15
stop();
Symbol 1120 MovieClip Frame 1
stop();
Symbol 1130 MovieClip Frame 1
stop();
Symbol 1140 Button
on (release) {
if (_root.paws) {
_root.paws = false;
_root.thing.menu.gotoAndStop(1);
} else {
_root.paws = true;
_root.thing.menu.gotoAndStop(2);
}
}
Symbol 1147 MovieClip Frame 1
stop();
Symbol 1148 Button
on (release) {
getURL (_root.main_link, "_blank");
}
Instance of Symbol 1108 MovieClip "menu" in Symbol 1153 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 1114 MovieClip "tips" in Symbol 1153 MovieClip Frame 1
onClipEvent (load) {
if (_root.keySet == 1) {
_root.kup = "W";
_root.kdown = "S";
_root.kleft = "A";
_root.kright = "D";
_root.SHOOT = "J";
_root.JUMP = "K";
_root.GRENADE = "L";
}
if (_root.keySet == 2) {
_root.kup = "W";
_root.kdown = "S";
_root.kleft = "A";
_root.kright = "D";
_root.SHOOT = "J";
_root.JUMP = "SPACE";
_root.GRENADE = "K";
}
if (_root.keySet == 3) {
_root.kup = "UP ARROW";
_root.kdown = "DOWN ARROW";
_root.kleft = "LEFT ARROW";
_root.kright = "RIGHT ARROW";
_root.SHOOT = "S";
_root.JUMP = "A";
_root.GRENADE = "SPACE";
}
}
Symbol 1155 MovieClip Frame 1
if (_root.sound == "ON") {
play();
} else {
stop();
}
Symbol 1155 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1158 Button
on (release) {
gotoAndStop (2);
}
Symbol 1160 Button
on (release) {
gotoAndStop (3);
}
Symbol 1162 MovieClip Frame 1
stop();
Symbol 1172 Button
on (release) {
var hashkey = _root.hex_md5(((("gameid=" + _root.gameID_str) + "&hiscore=") + score) + "2DPlay.com/");
getURL (String(((_root.scores_link + score) + "&hash=") + hashkey), "_blank");
}
Symbol 1173 Button
on (release) {
stopAllSounds();
_root.music.gotoAndStop(1);
_root.gotoAndPlay("vt_game_start");
}
Symbol 1175 Button
on (release) {
stopAllSounds();
_root.music.gotoAndStop(1);
_root.setSounds(0);
_root.gotoAndPlay("gamestart");
}
Symbol 1191 MovieClip Frame 56
_root.play();
Symbol 1191 MovieClip Frame 60
stop();