Frame 1
_quality = "best";
stop();
Instance of Symbol 276 MovieClip in Frame 1
onClipEvent (mouseDown) {
getURL ("http://www.shockarcade.com", "_blank");
}
Frame 2
stop();
stopAllSounds();
Frame 3
stop();
function moveme(ob) {
var _local1 = ob;
var _local2 = _root;
if (_local1.alive == true) {
if (_local1._y > 500) {
_local2.combo = 0;
_local1.alive = false;
_local1.removeMovieClip();
_local2.bombarray.splice(_local1, 1);
}
if (_local1._x > 460) {
_local2.combo = 0;
_local1.alive = false;
_local1.removeMovieClip();
_local2.bombarray.splice(_local1, 1);
} else if (_local1._x < -10) {
_local2.combo = 0;
_local1.alive = false;
_local1.removeMovieClip();
_local2.bombarray.splice(_local1, 1);
}
if (_local1.dir == 0) {
_local1._y = _local1._y + _local1.speed;
_local1.gotoAndStop(1);
_local1.move.play();
} else if (_local1.dir == 1) {
_local1.gotoAndStop(1);
_local1.move.play();
_local1._xscale = 100;
_local1._x = _local1._x + _local1.speed;
} else if (_local1.dir == 2) {
_local1.gotoAndStop(1);
_local1.move.play();
_local1._xscale = -100;
_local1._x = _local1._x - _local1.speed;
}
}
}
function moveme2(ob2) {
var _local1 = ob2;
var _local2 = _root;
if (_local1.alive == true) {
if (_local1.stoppable == true) {
if (_local1.hit == true) {
if (_local1.walking == true) {
_local1.dazed = true;
_local1.hit = false;
} else if (_local1.climbing == true) {
_local1.dazed = true;
_local1.hit = false;
}
}
}
if (_local1.fall == true) {
if ((_local1.stages == 1) && (_local1._y < 500)) {
_local1._y = _local1._y + 4;
} else if ((_local1.stages == 1) && (_local1._y > 500)) {
_local1.fall = false;
}
if ((_local1.stages == 2) && (_local1._y < 400)) {
_local1._y = _local1._y + 4;
} else if ((_local1.stages == 2) && (_local1._y > 400)) {
_local1.fall = false;
}
if ((_local1.stages == 3) && (_local1._y < 336)) {
_local1._y = _local1._y + 4;
} else if ((_local1.stages == 3) && (_local1._y > 335)) {
_local1.fall = false;
}
if ((_local1.stages == 4) && (_local1._y < 246)) {
_local1._y = _local1._y + 4;
} else if ((_local1.stages == 4) && (_local1._y > 245)) {
_local1.fall = false;
}
if ((_local1.stages == 5) && (_local1._y < 156)) {
_local1._y = _local1._y + 4;
} else if ((_local1.stages == 5) && (_local1._y > 155)) {
_local1.fall = false;
}
}
if (_local1.dazed == true) {
_local1.dcount = _local1.dcount + 1;
if (_local1.dcount == 30) {
_local1.dcount = 0;
_local1.dazed = false;
}
}
if ((_local1.health <= 0) and (_local1.alive == true)) {
if (_local1.stages == 1) {
_local2.score = _local2.score + 450;
} else if (_local1.stages == 2) {
_local2.score = _local2.score + 300;
} else if (_local1.stages == 3) {
_local2.score = _local2.score + 200;
} else if (_local1.stages == 4) {
_local2.score = _local2.score + 100;
} else if (_local1.stages == 5) {
_local2.score = _local2.score + 25;
}
_local2.killed++;
_local1.alive = false;
}
if ((_local1.dazed == false) && (_local1.fall == false)) {
if (_local1.stages == 1) {
if ((_local1._x < (_local1.move1 - 2)) or (_local1._x < (_local1.move1 - 1))) {
_local1._x = _local1._x + _local1.speed;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1._xscale = 100;
_local1.walking = true;
_local1.climbing = false;
} else if ((_local1._x > (_local1.move1 + 2)) or (_local1._x > (_local1.move1 + 1))) {
_local1._x = _local1._x - _local1.speed;
_local1._xscale = -100;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1.walking = true;
_local1.climbing = false;
} else if (((((_local1._x == (_local1.move1 + 2)) or (_local1._x == (_local1.move1 - 2))) or (_local1._x == _local1.move1)) or (_local1._x == (_local1.move1 + 1))) or (_local1._x == (_local1.move1 - 1))) {
if (_local1._y > 400) {
_local1._y = _local1._y - _local1.speed;
_local1.gotoAndStop(2);
_local1.climb.play();
_local1.walking = false;
_local1.climbing = true;
} else if (_local1._y <= 400) {
_local1.stages = 2;
}
}
} else if (_local1.stages == 2) {
if ((_local1._x < (_local1.move2 - 2)) or (_local1._x < (_local1.move2 - 1))) {
_local1._x = _local1._x + _local1.speed;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1._xscale = 100;
_local1.walking = true;
_local1.climbing = false;
} else if ((_local1._x > (_local1.move2 + 2)) or (_local1._x > (_local1.move2 + 1))) {
_local1._x = _local1._x - _local1.speed;
_local1._xscale = -100;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1.walking = true;
_local1.climbing = false;
} else if (((((_local1._x == (_local1.move2 + 2)) or (_local1._x == (_local1.move2 - 2))) or (_local1._x == _local1.move2)) or (_local1._x == (_local1.move2 + 1))) or (_local1._x == (_local1.move2 - 1))) {
if (_local1._y > 300) {
_local1._y = _local1._y - _local1.speed;
_local1.gotoAndStop(2);
_local1.climb.play();
_local1.walking = false;
_local1.climbing = true;
} else if (_local1._y <= 300) {
_local1.stages = 3;
}
}
} else if (_local1.stages == 3) {
if ((_local1._x < (_local1.move3 - 2)) or (_local1._x < (_local1.move3 - 1))) {
_local1._x = _local1._x + _local1.speed;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1._xscale = 100;
_local1.walking = true;
_local1.climbing = false;
} else if ((_local1._x > (_local1.move3 + 2)) or (_local1._x > (_local1.move3 + 1))) {
_local1._x = _local1._x - _local1.speed;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1._xscale = -100;
_local1.walking = true;
_local1.climbing = false;
} else if (((((_local1._x == (_local1.move3 + 2)) or (_local1._x == (_local1.move3 - 2))) or (_local1._x == _local1.move3)) or (_local1._x == (_local1.move3 + 1))) or (_local1._x == (_local1.move3 - 1))) {
if (_local1._y > 200) {
_local1._y = _local1._y - _local1.speed;
_local1.gotoAndStop(2);
_local1.climb.play();
_local1.walking = false;
_local1.climbing = true;
} else if (_local1._y <= 200) {
_local1.stages = 4;
}
}
} else if (_local1.stages == 4) {
if ((_local1._x < (_local1.move4 - 2)) or (_local1._x < (_local1.move4 - 1))) {
_local1._x = _local1._x + _local1.speed;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1._xscale = 100;
_local1.walking = true;
_local1.climbing = false;
} else if ((_local1._x > (_local1.move4 + 2)) or (_local1._x > (_local1.move4 + 1))) {
_local1._x = _local1._x - _local1.speed;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1._xscale = -100;
_local1.walking = true;
_local1.climbing = false;
} else if (((((_local1._x == (_local1.move4 + 2)) or (_local1._x == (_local1.move4 - 2))) or (_local1._x == _local1.move4)) or (_local1._x == (_local1.move4 + 1))) or (_local1._x == (_local1.move4 - 1))) {
if (_local1._y > 100) {
_local1._y = _local1._y - _local1.speed;
_local1.gotoAndStop(2);
_local1.climb.play();
_local1.walking = false;
_local1.climbing = true;
} else if (_local1._y <= 100) {
_local1.stages = 5;
}
}
} else if (_local1.stages == 5) {
if (_local1._x < _local2.char._x) {
_local1._x = _local1._x + speed;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1._xscale = 100;
_local1.walking = true;
_local1.climbing = false;
} else if (_local1._x > _local2.char._x) {
_local1._x = _local1._x - speed;
_local1.gotoAndStop(1);
_local1.walk.play();
_local1._xscale = -100;
_local1.walking = true;
_local1.climbing = false;
}
}
}
}
}
drop = new Sound();
drop.attachSound("drop1");
death1 = new Sound();
death1.attachSound("deathhuman");
death2 = new Sound();
death2.attachSound("death2");
death3 = new Sound();
death3.attachSound("death3");
death4 = new Sound();
death4.attachSound("death4");
death5 = new Sound();
death5.attachSound("death5");
_quality = "medium";
_root.attachMovie("screen", "screen2", 2);
screen2._x = 225;
screen2._y = 232.5;
_root.attachMovie("char", "char", 3);
char._x = 225;
char._y = 100;
_root.attachMovie("p", "p", 1);
p._x = 225;
p._y = 300;
_root.attachMovie("enemyholder", "enemyholder", 4);
_root.attachMovie("bombholder", "bombholder", 5);
_root.attachMovie("shadow", "shadow", 20000);
shadow._x = 225;
shadow._y = 495;
_root.pip1 = new Array();
_root.pip2 = new Array();
_root.pip3 = new Array();
_root.pip4 = new Array();
_root.pipes1 = new Array();
_root.pipes1[0] = _root.p.l1;
_root.pipes1[1] = _root.p.l2;
_root.pipes1[2] = _root.p.l3;
_root.pipes2 = new Array();
_root.pipes2[0] = _root.p.l4;
_root.pipes2[1] = _root.p.l5;
_root.pipes2[2] = _root.p.l6;
_root.pipes2[3] = _root.p.l7;
_root.pipes3 = new Array();
_root.pipes3[0] = _root.p.l8;
_root.pipes3[1] = _root.p.l9;
_root.pipes3[2] = _root.p.l10;
_root.pipes4 = new Array();
_root.pipes4[0] = _root.p.l11;
_root.pipes4[1] = _root.p.l12;
_root.pipes4[2] = _root.p.l13;
_root.pipes4[3] = _root.p.l14;
n = _root.pipes1.length;
ran = random(n);
newpipe = _root.pipes1[ran];
_root.pip1.push(newpipe);
newpipe.gotoAndPlay(2);
_root.pipes1.splice(ran, 1);
n = _root.pipes1.length;
ran = random(n);
newpipe = _root.pipes1[ran];
_root.pip1.push(newpipe);
newpipe.gotoAndPlay(2);
_root.pipes1.splice(ran, 1);
n = _root.pipes2.length;
ran = random(n);
newpipe = _root.pipes2[ran];
newpipe.gotoAndPlay(2);
_root.pip2[0] = newpipe;
_root.pipes2.splice(ran, 1);
n = _root.pipes2.length;
ran = random(n);
newpipe = _root.pipes2[ran];
newpipe.gotoAndPlay(2);
_root.pip2[1] = newpipe;
_root.pipes2.splice(ran, 1);
n = _root.pipes3.length;
ran = random(n);
newpipe = _root.pipes3[ran];
newpipe.gotoAndPlay(2);
_root.pip3[0] = newpipe;
_root.pipes3.splice(ran, 1);
n = _root.pipes3.length;
ran = random(n);
newpipe = _root.pipes3[ran];
newpipe.gotoAndPlay(2);
_root.pip3[1] = newpipe;
_root.pipes3.splice(ran, 1);
n = _root.pipes4.length;
ran = random(n);
newpipe = _root.pipes4[ran];
newpipe.gotoAndPlay(2);
_root.pip4[0] = newpipe;
_root.pipes4.splice(ran, 1);
n = _root.pipes4.length;
ran = random(n);
newpipe = _root.pipes4[ran];
newpipe.gotoAndPlay(2);
_root.pip4[1] = newpipe;
_root.pipes4.splice(ran, 1);
enemyarray = [];
bombarray = [];
bomb_count = 0;
enemy_count = 0;
num = 0;
num2 = 0;
rage = false;
start = true;
enemies = 0;
killed = 0;
level = 1;
ragemeter = 0;
var maxenemies = 5;
_root.combo = 1;
var count = 39;
var maxcount = 40;
var setcount = 0;
var firecount = 19;
var firecountmax = 20;
var score = 0;
_root.onEnterFrame = function () {
var _local1 = _root;
if (ragemeter >= 100) {
rage = true;
ragemeter = 100;
}
if (rage == true) {
rcount = rcount + 1;
if (rcount == 250) {
rcount = 0;
rage = false;
ragemeter = 0;
}
}
b = 0;
while (b <= bombarray.length) {
var _local2 = _local1.bombarray[b];
moveme(_local2);
b++;
}
if (killed == maxenemies) {
bomb_count = 0;
enemy_count = 0;
num = 0;
num2 = 0;
delete enemyarray;
delete bombarray;
enemyarray = [];
bombarray = [];
_local1.enemyholder.removeMovieClip();
_local1.bombholder.removeMovieClip();
_local1.attachMovie("enemyholder", "enemyholder", 10000);
_local1.attachMovie("bombholder", "bombholder", 5000);
level = level + 1;
levelup = true;
killed = 0;
if (shadow._yscale < 600) {
shadow._yscale = shadow._yscale + 5;
}
maxenemies = maxenemies + 1;
if (maxcount > 9) {
maxcount = maxcount - 1;
}
count = maxcount - 1;
if (_local1.level == 5) {
n = _local1.pipes1.length;
ran = random(n);
newpipe = _local1.pipes1[ran];
newpipe.gotoAndPlay(2);
_local1.pip1.push(newpipe);
_local1.pipes1.splice(ran, 1);
} else if ((level == 10) or (level == 25)) {
n = _local1.pipes2.length;
ran = random(n);
newpipe = _local1.pipes2[ran];
newpipe.gotoAndPlay(2);
_local1.pip2.push(newpipe);
_local1.pipes2.splice(ran, 1);
} else if (level == 15) {
n = _local1.pipes3.length;
ran = random(n);
newpipe = _local1.pipes3[ran];
newpipe.gotoAndPlay(2);
_local1.pip3.push(newpipe);
_local1.pipes3.splice(ran, 1);
} else if ((level == 20) or (level == 30)) {
n = _local1.pipes4.length;
ran = random(n);
newpipe = _local1.pipes4[ran];
newpipe.gotoAndPlay(2);
_local1.pip4.push(newpipe);
_local1.pipes4.splice(ran, 1);
}
enemies = 0;
}
if (start == true) {
if (enemies < maxenemies) {
count = count + 1;
if (count == maxcount) {
if (level < 6) {
type = random(2);
} else if ((level > 5) and (level < 11)) {
type = random(2) + 1;
} else if ((level > 10) and (level < 16)) {
type = random(2) + 2;
} else if (level > 15) {
type = 3;
}
if (type == 0) {
_local1.enemyholder.attachMovie("enemy2", "enemy" + enemy_count, enemy_count);
_local1.enemyholder["enemy" + enemy_count].speed = 4;
_local1.enemyholder["enemy" + enemy_count].health = 5;
_local1.enemyholder["enemy" + enemy_count].stoppable = true;
_local1.enemyholder["enemy" + enemy_count].version = 0;
} else if (type == 1) {
_local1.enemyholder.attachMovie("enemy3", "enemy" + enemy_count, enemy_count);
_local1.enemyholder["enemy" + enemy_count].speed = 5;
_local1.enemyholder["enemy" + enemy_count].health = 5;
_local1.enemyholder["enemy" + enemy_count].stoppable = true;
_local1.enemyholder["enemy" + enemy_count].version = 1;
} else if (type == 2) {
_local1.enemyholder.attachMovie("enemy4", "enemy" + enemy_count, enemy_count);
_local1.enemyholder["enemy" + enemy_count].speed = 4;
_local1.enemyholder["enemy" + enemy_count].health = 10;
_local1.enemyholder["enemy" + enemy_count].stoppable = true;
_local1.enemyholder["enemy" + enemy_count].version = 2;
} else if (type == 3) {
_local1.enemyholder.attachMovie("enemy", "enemy" + enemy_count, enemy_count);
_local1.enemyholder["enemy" + enemy_count].speed = 5;
_local1.enemyholder["enemy" + enemy_count].health = 10;
_local1.enemyholder["enemy" + enemy_count].stoppable = true;
_local1.enemyholder["enemy" + enemy_count].version = 3;
}
_local1.enemyholder["enemy" + enemy_count].dazed = false;
_local1.enemyholder["enemy" + enemy_count].fall = false;
_local1.enemyholder["enemy" + enemy_count].climbing = false;
_local1.enemyholder["enemy" + enemy_count].hit = false;
_local1.enemyholder["enemy" + enemy_count].walking = true;
_local1.enemyholder["enemy" + enemy_count].alive = true;
if (level < 9) {
choose = random(4);
} else if ((level > 8) and (level < 17)) {
choose = random(6);
} else if ((level > 16) and (level < 25)) {
choose = random(8);
} else if ((level > 24) and (level < 33)) {
choose = random(10);
}
if (choose == 0) {
_local1.enemyholder["enemy" + enemy_count].stages = 1;
_local1.enemyholder["enemy" + enemy_count]._x = -20;
_local1.enemyholder["enemy" + enemy_count]._y = 490;
n = _local1.pip1.length;
ran = random(n);
select1 = _local1.pip1[ran];
if (select1 == _local1.p.l1) {
_local1.enemyholder["enemy" + enemy_count].move1 = 325;
} else if (select1 == _local1.p.l2) {
_local1.enemyholder["enemy" + enemy_count].move1 = 225;
} else if (select1 == _local1.p.l3) {
_local1.enemyholder["enemy" + enemy_count].move1 = 125;
}
n = _local1.pip2.length;
ran = random(n);
select2 = _local1.pip2[ran];
if (select2 == _local1.p.l4) {
_local1.enemyholder["enemy" + enemy_count].move2 = 375;
} else if (select2 == _local1.p.l5) {
_local1.enemyholder["enemy" + enemy_count].move2 = 275;
} else if (select2 == _local1.p.l6) {
_local1.enemyholder["enemy" + enemy_count].move2 = 175;
} else if (select2 == _local1.p.l7) {
_local1.enemyholder["enemy" + enemy_count].move2 = 75;
}
n = _local1.pip3.length;
ran = random(n);
select3 = _local1.pip3[ran];
if (select3 == _local1.p.l8) {
_local1.enemyholder["enemy" + enemy_count].move3 = 325;
} else if (select3 == _local1.p.l9) {
_local1.enemyholder["enemy" + enemy_count].move3 = 225;
} else if (select3 == _local1.p.l10) {
_local1.enemyholder["enemy" + enemy_count].move3 = 125;
}
n = _local1.pip4.length;
ran = random(n);
select4 = _local1.pip4[ran];
if (select4 == _local1.p.l11) {
_local1.enemyholder["enemy" + enemy_count].move4 = 375;
} else if (select4 == _local1.p.l12) {
_local1.enemyholder["enemy" + enemy_count].move4 = 275;
} else if (select4 == _local1.p.l13) {
_local1.enemyholder["enemy" + enemy_count].move4 = 175;
} else if (select4 == _local1.p.l14) {
_local1.enemyholder["enemy" + enemy_count].move4 = 75;
}
} else if (choose == 1) {
_local1.enemyholder["enemy" + enemy_count].stages = 1;
_local1.enemyholder["enemy" + enemy_count]._x = 470;
_local1.enemyholder["enemy" + enemy_count]._y = 490;
n = _local1.pip1.length;
ran = random(n);
select1 = _local1.pip1[ran];
if (select1 == _local1.p.l1) {
_local1.enemyholder["enemy" + enemy_count].move1 = 325;
} else if (select1 == _local1.p.l2) {
_local1.enemyholder["enemy" + enemy_count].move1 = 225;
} else if (select1 == _local1.p.l3) {
_local1.enemyholder["enemy" + enemy_count].move1 = 125;
}
n = _local1.pip2.length;
ran = random(n);
select2 = _local1.pip2[ran];
if (select2 == _local1.p.l4) {
_local1.enemyholder["enemy" + enemy_count].move2 = 375;
} else if (select2 == _local1.p.l5) {
_local1.enemyholder["enemy" + enemy_count].move2 = 275;
} else if (select2 == _local1.p.l6) {
_local1.enemyholder["enemy" + enemy_count].move2 = 175;
} else if (select2 == _local1.p.l7) {
_local1.enemyholder["enemy" + enemy_count].move2 = 75;
}
n = _local1.pip3.length;
ran = random(n);
select3 = _local1.pip3[ran];
if (select3 == _local1.p.l8) {
_local1.enemyholder["enemy" + enemy_count].move3 = 325;
} else if (select3 == _local1.p.l9) {
_local1.enemyholder["enemy" + enemy_count].move3 = 225;
} else if (select3 == _local1.p.l10) {
_local1.enemyholder["enemy" + enemy_count].move3 = 125;
}
n = _local1.pip4.length;
ran = random(n);
select4 = _local1.pip4[ran];
if (select4 == _local1.p.l11) {
_local1.enemyholder["enemy" + enemy_count].move4 = 375;
} else if (select4 == _local1.p.l12) {
_local1.enemyholder["enemy" + enemy_count].move4 = 275;
} else if (select4 == _local1.p.l13) {
_local1.enemyholder["enemy" + enemy_count].move4 = 175;
} else if (select4 == _local1.p.l14) {
_local1.enemyholder["enemy" + enemy_count].move4 = 75;
}
} else if (choose == 2) {
_local1.enemyholder["enemy" + enemy_count].stages = 2;
_local1.enemyholder["enemy" + enemy_count]._x = -20;
_local1.enemyholder["enemy" + enemy_count]._y = 400;
n = _local1.pip2.length;
ran = random(n);
select2 = _local1.pip2[ran];
if (select2 == _local1.p.l4) {
_local1.enemyholder["enemy" + enemy_count].move2 = 375;
} else if (select2 == _local1.p.l5) {
_local1.enemyholder["enemy" + enemy_count].move2 = 275;
} else if (select2 == _local1.p.l6) {
_local1.enemyholder["enemy" + enemy_count].move2 = 175;
} else if (select2 == _local1.p.l7) {
_local1.enemyholder["enemy" + enemy_count].move2 = 75;
}
n = _local1.pip3.length;
ran = random(n);
select3 = _local1.pip3[ran];
if (select3 == _local1.p.l8) {
_local1.enemyholder["enemy" + enemy_count].move3 = 325;
} else if (select3 == _local1.p.l9) {
_local1.enemyholder["enemy" + enemy_count].move3 = 225;
} else if (select3 == _local1.p.l10) {
_local1.enemyholder["enemy" + enemy_count].move3 = 125;
}
n = _local1.pip4.length;
ran = random(n);
select4 = _local1.pip4[ran];
if (select4 == _local1.p.l11) {
_local1.enemyholder["enemy" + enemy_count].move4 = 375;
} else if (select4 == _local1.p.l12) {
_local1.enemyholder["enemy" + enemy_count].move4 = 275;
} else if (select4 == _local1.p.l13) {
_local1.enemyholder["enemy" + enemy_count].move4 = 175;
} else if (select4 == _local1.p.l14) {
_local1.enemyholder["enemy" + enemy_count].move4 = 75;
}
} else if (choose == 3) {
_local1.enemyholder["enemy" + enemy_count].stages = 2;
_local1.enemyholder["enemy" + enemy_count]._x = 470;
_local1.enemyholder["enemy" + enemy_count]._y = 400;
n = _local1.pip2.length;
ran = random(n);
select2 = _local1.pip2[ran];
if (select2 == _local1.p.l4) {
_local1.enemyholder["enemy" + enemy_count].move2 = 375;
} else if (select2 == _local1.p.l5) {
_local1.enemyholder["enemy" + enemy_count].move2 = 275;
} else if (select2 == _local1.p.l6) {
_local1.enemyholder["enemy" + enemy_count].move2 = 175;
} else if (select2 == _local1.p.l7) {
_local1.enemyholder["enemy" + enemy_count].move2 = 75;
}
n = _local1.pip3.length;
ran = random(n);
select3 = _local1.pip3[ran];
if (select3 == _local1.p.l8) {
_local1.enemyholder["enemy" + enemy_count].move3 = 325;
} else if (select3 == _local1.p.l9) {
_local1.enemyholder["enemy" + enemy_count].move3 = 225;
} else if (select3 == _local1.p.l10) {
_local1.enemyholder["enemy" + enemy_count].move3 = 125;
}
n = _local1.pip4.length;
ran = random(n);
select4 = _local1.pip4[ran];
if (select4 == _local1.p.l11) {
_local1.enemyholder["enemy" + enemy_count].move4 = 375;
} else if (select4 == _local1.p.l12) {
_local1.enemyholder["enemy" + enemy_count].move4 = 275;
} else if (select4 == _local1.p.l13) {
_local1.enemyholder["enemy" + enemy_count].move4 = 175;
} else if (select4 == _local1.p.l14) {
_local1.enemyholder["enemy" + enemy_count].move4 = 75;
}
} else if (choose == 4) {
_local1.enemyholder["enemy" + enemy_count].stages = 3;
_local1.enemyholder["enemy" + enemy_count]._x = -20;
_local1.enemyholder["enemy" + enemy_count]._y = 300;
n = _local1.pip3.length;
ran = random(n);
select3 = _local1.pip3[ran];
if (select3 == _local1.p.l8) {
_local1.enemyholder["enemy" + enemy_count].move3 = 325;
} else if (select3 == _local1.p.l9) {
_local1.enemyholder["enemy" + enemy_count].move3 = 225;
} else if (select3 == _local1.p.l10) {
_local1.enemyholder["enemy" + enemy_count].move3 = 125;
}
n = _local1.pip4.length;
ran = random(n);
select4 = _local1.pip4[ran];
if (select4 == _local1.p.l11) {
_local1.enemyholder["enemy" + enemy_count].move4 = 375;
} else if (select4 == _local1.p.l12) {
_local1.enemyholder["enemy" + enemy_count].move4 = 275;
} else if (select4 == _local1.p.l13) {
_local1.enemyholder["enemy" + enemy_count].move4 = 175;
} else if (select4 == _local1.p.l14) {
_local1.enemyholder["enemy" + enemy_count].move4 = 75;
}
} else if (choose == 5) {
_local1.enemyholder["enemy" + enemy_count].stages = 3;
_local1.enemyholder["enemy" + enemy_count]._x = 470;
_local1.enemyholder["enemy" + enemy_count]._y = 300;
n = _local1.pip3.length;
ran = random(n);
select3 = _local1.pip3[ran];
if (select3 == _local1.p.l8) {
_local1.enemyholder["enemy" + enemy_count].move3 = 325;
} else if (select3 == _local1.p.l9) {
_local1.enemyholder["enemy" + enemy_count].move3 = 225;
} else if (select3 == _local1.p.l10) {
_local1.enemyholder["enemy" + enemy_count].move3 = 125;
}
n = _local1.pip4.length;
ran = random(n);
select4 = _local1.pip4[ran];
if (select4 == _local1.p.l11) {
_local1.enemyholder["enemy" + enemy_count].move4 = 375;
} else if (select4 == _local1.p.l12) {
_local1.enemyholder["enemy" + enemy_count].move4 = 275;
} else if (select4 == _local1.p.l13) {
_local1.enemyholder["enemy" + enemy_count].move4 = 175;
} else if (select4 == _local1.p.l14) {
_local1.enemyholder["enemy" + enemy_count].move4 = 75;
}
} else if (choose == 6) {
_local1.enemyholder["enemy" + enemy_count].stages = 4;
_local1.enemyholder["enemy" + enemy_count]._x = -20;
_local1.enemyholder["enemy" + enemy_count]._y = 200;
n = _local1.pip4.length;
ran = random(n);
select4 = _local1.pip4[ran];
if (select4 == _local1.p.l11) {
_local1.enemyholder["enemy" + enemy_count].move4 = 375;
} else if (select4 == _local1.p.l12) {
_local1.enemyholder["enemy" + enemy_count].move4 = 275;
} else if (select4 == _local1.p.l13) {
_local1.enemyholder["enemy" + enemy_count].move4 = 175;
} else if (select4 == _local1.p.l14) {
_local1.enemyholder["enemy" + enemy_count].move4 = 75;
}
} else if (choose == 7) {
_local1.enemyholder["enemy" + enemy_count].stages = 4;
_local1.enemyholder["enemy" + enemy_count]._x = 470;
_local1.enemyholder["enemy" + enemy_count]._y = 200;
n = _local1.pip4.length;
ran = random(n);
select4 = _local1.pip4[ran];
if (select4 == _local1.p.l11) {
_local1.enemyholder["enemy" + enemy_count].move4 = 375;
} else if (select4 == _local1.p.l12) {
_local1.enemyholder["enemy" + enemy_count].move4 = 275;
} else if (select4 == _local1.p.l13) {
_local1.enemyholder["enemy" + enemy_count].move4 = 175;
} else if (select4 == _local1.p.l14) {
_local1.enemyholder["enemy" + enemy_count].move4 = 75;
}
} else if (choose == 8) {
_local1.enemyholder["enemy" + enemy_count].stages = 5;
_local1.enemyholder["enemy" + enemy_count]._x = -20;
_local1.enemyholder["enemy" + enemy_count]._y = 100;
} else if (choose == 9) {
_local1.enemyholder["enemy" + enemy_count].stages = 5;
_local1.enemyholder["enemy" + enemy_count]._x = 470;
_local1.enemyholder["enemy" + enemy_count]._y = 100;
}
_local1.enemyarray.push(_local1.enemyholder["enemy" + enemy_count]);
enemy_count++;
enemies = enemies + 1;
num = num + 1;
count = 0;
}
}
if (_local1.rage == true) {
firecountmax = 11;
} else if (_local1.rage == false) {
firecountmax = 22;
}
if (firecount < firecountmax) {
firecount = firecount + 1;
}
if (firecount > firecountmax) {
firecount = firecountmax;
}
if (key.isDown(32)) {
if (firecount == firecountmax) {
char.gotoAndStop(6);
char.downthrow.play();
_local1.bombholder.attachMovie("bomb", "bomb" + bomb_count, bomb_count);
_local1.bombholder["bomb" + bomb_count]._x = char._x;
_local1.bombholder["bomb" + bomb_count]._y = char._y - 30;
_local1.bombholder["bomb" + bomb_count].alive = true;
if (rage == true) {
_local1.bombholder["bomb" + bomb_count].speed = 22;
_local1.bombholder["bomb" + bomb_count].damage = 10;
} else {
_local1.bombholder["bomb" + bomb_count].speed = 11;
_local1.bombholder["bomb" + bomb_count].damage = 5;
}
if (key.isDown(key.right)) {
char.gotoAndStop(3);
char.sidethrow.play();
_local1.bombholder["bomb" + bomb_count].dir = 1;
} else if (key.isDown(key.left)) {
char.gotoAndStop(3);
char.sidethrow.play();
_local1.bombholder["bomb" + bomb_count].dir = 2;
} else if ((!key.isDown(key.left)) and (!key.isDown(key.right))) {
_local1.bombholder["bomb" + bomb_count].dir = 0;
}
_local1.bombarray.push(_local1.bombholder["bomb" + bomb_count]);
bomb_count++;
num2 = num2 + 1;
firecount = 0;
}
}
}
a = 0;
while (a <= _local1.enemyarray.length) {
var _local3 = _local1.enemyarray[a];
moveme2(_local3);
if (char.hitTest(_local1.enemyarray[a])) {
char.dead = true;
}
b = 0;
while (b <= _local1.bombarray.length) {
if (_local1.bombarray[b].hitTest(_local1.enemyarray[a])) {
_local1.bombarray[b].gotoAndStop(2);
_local1.bombarray[b].explode.play();
_local1.enemyarray[a].health = _local1.enemyarray[a].health - _local1.bombarray[b].damage;
_local1.enemyarray[a].hit = true;
_local1.score = _local1.score + (100 * _local1.combo);
_local1.combo = _local1.combo + 1;
if (_local1.enemyarray[a].health <= 0) {
if (_local1.enemyarray[a].version == 0) {
_local1.death2.start();
} else if (_local1.enemyarray[a].version == 1) {
_local1.death3.start();
} else if (_local1.enemyarray[a].version == 2) {
_local1.death4.start();
} else if (_local1.enemyarray[a].version == 3) {
_local1.death5.start();
}
if (_local1.enemyarray[a].climbing == true) {
_local1.enemyarray[a].gotoAndStop(4);
_local1.enemyarray[a].climbdeath.play();
} else {
_local1.enemyarray[a].gotoAndStop(3);
_local1.enemyarray[a].sidedeath.play();
}
_local1.killed = _local1.killed + 1;
_local1.enemyarray.splice(a, 1);
}
_local1.bombarray[b].alive = false;
if (_local1.ragemeter <= 95) {
_local1.ragemeter = _local1.ragemeter + 5;
}
_local1.bombarray[b].removeMovieClip();
_local1.bombarray.splice(b, 1);
}
b++;
}
a++;
}
if (char.dead == true) {
char.gotoAndStop(5);
_local1.death1.start();
char.die.play();
char.alive = false;
} else {
char.alive = true;
}
};
char.onEnterFrame = function () {
if (char.alive == true) {
if (_root.rage == true) {
speed = 10;
} else {
speed = 5;
}
if (key.isDown(key.left)) {
if (char._x > 0) {
char._x = char._x - speed;
}
char._xscale = -100;
char.gotoAndStop(2);
char.walk.play();
} else if (key.isDown(key.right)) {
char._xscale = 100;
if (char._x < 450) {
char._x = char._x + speed;
}
char.gotoAndStop(2);
char.walk.play();
} else {
char.gotoAndStop(1);
}
}
};
Frame 4
stop();
stopAllSounds();
char.removeMovieClip();
enemyholder.removeMovieClip();
p.removeMovieClip();
screen2.removeMovieClip();
bombholder.removeMovieClip();
shadow.removeMovieClip();
Symbol 7 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 15
gotoAndPlay (1);
Symbol 44 MovieClip Frame 5
_parent.gotoAndPlay(2);
Symbol 63 MovieClip Frame 9
_parent.gotoAndPlay(2);
Symbol 90 MovieClip Frame 13
_root.gotoAndPlay("over");
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 4
_parent.gotoAndPlay(2);
Symbol 97 MovieClip [char] Frame 1
stop();
Symbol 97 MovieClip [char] Frame 2
stop();
Symbol 97 MovieClip [char] Frame 3
stop();
Symbol 97 MovieClip [char] Frame 4
stop();
Symbol 97 MovieClip [char] Frame 5
stop();
Symbol 97 MovieClip [char] Frame 6
stop();
Symbol 111 MovieClip Frame 10
gotoAndPlay (1);
Symbol 118 MovieClip [bomb] Frame 1
stop();
Symbol 118 MovieClip [bomb] Frame 2
stop();
Symbol 130 MovieClip Frame 1
play();
Symbol 130 MovieClip Frame 4
gotoAndPlay (1);
Symbol 139 MovieClip Frame 1
play();
Symbol 147 MovieClip Frame 7
stop();
removeMovieClip(_parent);
Symbol 151 MovieClip Frame 7
removeMovieClip(_parent);
Symbol 164 MovieClip Frame 1
play();
Symbol 164 MovieClip Frame 9
gotoAndPlay (1);
Symbol 175 MovieClip Frame 1
play();
Symbol 175 MovieClip Frame 10
gotoAndPlay (10);
Symbol 182 MovieClip Frame 6
stop();
removeMovieClip(_parent);
Symbol 185 MovieClip Frame 8
removeMovieClip(_parent);
Symbol 195 MovieClip Frame 1
play();
Symbol 195 MovieClip Frame 8
gotoAndPlay (1);
Symbol 203 MovieClip Frame 1
play();
Symbol 203 MovieClip Frame 7
gotoAndPlay (9);
Symbol 209 MovieClip Frame 5
stop();
removeMovieClip(_parent);
Symbol 216 MovieClip Frame 7
removeMovieClip(_parent);
Symbol 225 MovieClip Frame 1
play();
Symbol 225 MovieClip Frame 7
gotoAndPlay (1);
Symbol 234 MovieClip Frame 1
play();
Symbol 234 MovieClip Frame 8
gotoAndPlay (8);
Symbol 240 MovieClip Frame 5
stop();
removeMovieClip(_parent);
Symbol 243 MovieClip Frame 7
stop();
removeMovieClip(_parent);
Symbol 244 MovieClip [enemy4] Frame 1
stop();
Symbol 244 MovieClip [enemy4] Frame 2
stop();
Symbol 244 MovieClip [enemy4] Frame 3
stop();
Symbol 244 MovieClip [enemy4] Frame 4
stop();
Symbol 249 MovieClip [message] Frame 50
_root.levelup = false;
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Instance of Symbol 255 MovieClip "bar" in Symbol 257 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._xscale == 100) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
}
Symbol 260 MovieClip Frame 50
_root.go = false;
Instance of Symbol 257 MovieClip in Symbol 261 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
this.bar._xscale = _root.ragemeter;
}
Instance of Symbol 260 MovieClip in Symbol 261 MovieClip [screen] Frame 1
onClipEvent (load) {
_root.go = true;
}
onClipEvent (enterFrame) {
if (_root.go == true) {
play();
} else {
gotoAndPlay (1);
}
}
Instance of Symbol 249 MovieClip [message] in Symbol 261 MovieClip [screen] Frame 1
onClipEvent (enterFrame) {
if (_root.levelup == true) {
play();
} else {
gotoAndPlay (1);
}
}
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 2
play();
Symbol 264 MovieClip Frame 25
stop();
Symbol 267 Button
on (release) {
getURL ("http://www.shockarcade.com");
}
Symbol 276 MovieClip Frame 1
play();
Symbol 276 MovieClip Frame 2
play();
Symbol 276 MovieClip Frame 40
stop();
Instance of Symbol 275 MovieClip in Symbol 276 MovieClip Frame 40
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
with (_level0) {
nextFrame();
}
}
}
Symbol 285 Button
on (release) {
getURL ("http://www.bleedingentertainment.com/");
}
Symbol 290 Button
on (release) {
getURL ("http://www.shockarcade.com");
}
Symbol 295 Button
on (release) {
gotoAndPlay ("gamep");
}
Symbol 322 Button
on (release) {
gotoAndPlay ("menu");
}
Symbol 327 Button
on (release) {
gotoAndPlay ("gamep");
}
Symbol 332 Button
on (release) {
getURL ("http://www.shockarcade.com");
}