Frame 65
stop();
Frame 69
gotoAndPlay ("2,1");
stopAllSounds();
Frame 89
stop();
Frame 146
stop();
Frame 147
stop();
Frame 148
stop();
Frame 149
stop();
Frame 150
stop();
Frame 151
stop();
Frame 152
stop();
Frame 153
stop();
money = 50;
hp = 600;
level = 1;
item = 1;
gotninja = true;
gotmag = false;
gotpaint = false;
gotmol = false;
gotcat = false;
ninjas = Infinity;
magammo = 0;
paintammo = 0;
molotovs = 0;
cats = 0;
signlevel = 0;
defense = 1;
handicap = false;
defup = 3;
bacon = false;
deflimit = 4;
lives = 2;
Frame 154
Mouse.show();
stop();
Instance of Symbol 307 MovieClip "actions" in Frame 154
/* no clip actions */
Instance of Symbol 104 MovieClip "hitler" in Frame 155
onClipEvent (load) {
active = false;
dx = 50;
go = true;
left = true;
}
onClipEvent (enterFrame) {
if (active == true) {
this._x = this._x - dx;
if (go == true) {
if (this._x < -600) {
timetogo = 0;
left = false;
dx = dx * -1;
this._xscale = -Math.abs(this._xscale);
}
if (this._x > 950) {
timetogo = 0;
left = true;
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
if ((this._x == 0) and (left == false)) {
_root.sounds.gotoAndStop(9);
}
if ((this._x == 600) and (left == true)) {
_root.sounds.gotoAndStop(9);
}
}
}
}
Instance of Symbol 328 MovieClip "ground" in Frame 155
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) {
f = 1;
while (f < 4) {
duplicateMovieClip (_root["mini-fire"], "newmini" + _root.bullet.mfc, _root.bullet.mfc);
_root["newmini" + _root.bullet.mfc]._x = _root["newbullet" + _root.timer.bc]._x;
_root["newmini" + _root.bullet.mfc]._y = _root["newbullet" + _root.timer.bc]._y;
_root.bullet.mfc = _root.bullet.mfc + 1;
f++;
}
_root.sounds.gotoAndStop(5);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) {
duplicateMovieClip (_root.explo, ["newexplo" + _root.explo.ec], _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = _root["newbullet" + _root.timer.bc]._x;
_root["newexplo" + _root.explo.ec]._y = _root["newbullet" + _root.timer.bc]._y;
_root["newbullet" + _root.timer.bc].removeMovieClip();
_root.sounds.gotoAndStop(7);
_root.explo.ec++;
}
i = 1;
while (i < 11) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
_root["enemy" + i]._y = _root["enemy" + i]._y - 16;
}
i++;
}
if (_root.timer.gameover == false) {
if (this.hitTest(_root.handi._x, _root.handi._y, true)) {
_root.handi._y = _root.handi._y - 16;
}
}
}
Instance of Symbol 342 MovieClip "arm" in Frame 155
onClipEvent (enterFrame) {
if (_root.timer.gameover == false) {
this._y = 175;
}
xd = _root._xmouse - _x;
yd = _root._ymouse - _y;
radAngle = Math.atan2(yd, xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 344 MovieClip "dungus" in Frame 155
onClipEvent (enterFrame) {
if (_root._xmouse > this._x) {
this._xscale = -Math.abs(this._xscale);
_root.arm._xscale = -Math.abs(_root.arm._yscale);
_root.arm._x = this._x + 5;
}
if (_root._xmouse < this._x) {
this._xscale = Math.abs(this._xscale);
_root.arm._xscale = Math.abs(_root.arm._yscale);
_root.arm._x = this._x - 5;
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 155
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (24 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (56 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (90 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (97 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = 628;
_root["newenemy" + enenum]._y = 14;
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (deaths == 6) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].gotoAndPlay(2);
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 349 MovieClip "bullet" in Frame 155
onClipEvent (load) {
spd = 35;
bottom = 375;
if (_root.timer.selectedweapon == 1) {
spd = 35;
}
if (_root.timer.selectedweapon == 2) {
spd = 50;
}
if (_root.timer.selectedweapon == 3) {
spd = 60;
}
if (_root.timer.selectedweapon == 4) {
spd = 35;
}
if (_root.timer.selectedweapon == 5) {
spd = 50;
}
_x = _root.arm._x;
_y = _root.arm._y;
mfc = 1;
_rotation = _root.arm._rotation;
}
onClipEvent (enterFrame) {
if (_name == "bullet") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
i = 200;
while (i < 300) {
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 1)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 3;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 2)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 5;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 3)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 5;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 4)) and (_root["newenemy" + i].dead == false)) {
_root.fire.fc++;
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = _root["newenemy" + i]._x;
_root["newfire" + _root.fire.fc]._y = _root["newenemy" + i]._y;
_root["newenemy" + i].life = _root["newenemy" + i].life - 2;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 5)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i++;
}
}
}
Instance of Symbol 351 MovieClip in Frame 155
onClipEvent (enterFrame) {
this.gotoAndStop(_root.item);
}
Instance of Symbol 167 MovieClip "fire" in Frame 155
onClipEvent (load) {
fc = 800;
hurtrate = 12;
firelife = 70;
}
onClipEvent (enterFrame) {
if (fc == 810) {
fc = 800;
}
firelife--;
hurtrate++;
if (hurtrate >= 12) {
hurtrate = 12;
}
this._y = this._y + 10;
if (this._y > _root.ground._y) {
this._y = _root.ground._y;
}
if (firelife == 0) {
this.removeMovieClip();
}
}
Instance of Symbol 167 MovieClip "mini-fire" in Frame 155
onClipEvent (load) {
gravity = 10;
direct = int((Math.random() * 10) - 5);
jumping = true;
firelife = 50;
}
onClipEvent (enterFrame) {
if (_name != "mini-fire") {
if (jumping == true) {
this._y = this._y - gravity;
this._x = this._x + direct;
}
if (gravity == -15) {
gravity == -15;
}
gravity--;
if (this.hitTest(_root.ground)) {
jumping = false;
}
firelife--;
if (firelife == 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 373 MovieClip "explo" in Frame 155
onClipEvent (load) {
ec = 100;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
this.removeMovieClip();
}
}
Instance of Symbol 133 MovieClip "stick guy" in Frame 155
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
this._x = this._x + vel;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 1)) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 2)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 3)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) and (dead == false)) {
life = life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 376 MovieClip "cash" in Frame 155
onClipEvent (load) {
jump = 10;
dir = int(Math.random() * 10);
cashnum = 1;
}
onClipEvent (enterFrame) {
if (this._name != "cash") {
this._y = this._y - jump;
this._x = this._x + dir;
jump--;
if (this._x <= 0) {
dir = dir * -1;
}
if (this._x >= 530) {
dir = dir * -1;
}
if (this._y > _root.ground._y) {
removeMovieClip(this);
_root.money = _root.money + 1;
updateAfterEvent();
}
}
}
Instance of Symbol 121 MovieClip "gun guy" in Frame 155
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x + bv;
this._x = this._x - vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x + vel;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 1)) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 378 MovieClip "evil bullet" in Frame 155
onClipEvent (load) {
bv = 20;
}
onClipEvent (enterFrame) {
if (this._name != "evil bullet") {
if (this._x > _root.sign._x) {
this._x = this._x - bv;
}
if (this._x < _root.sign._x) {
this._x = this._x + bv;
}
if (this.hitTest(_root.sign)) {
removeMovieClip(this);
_root.hp = _root.hp - (10 - _root.defense);
_root.sign.play();
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 155
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 1)) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 2)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 3)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) and (dead == false)) {
life = life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy b" in Frame 155
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy b") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 30)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x - bv;
this._x = this._x + vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 1)) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 181 MovieClip "m.bacon" in Frame 155
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
_root.bacon = true;
}
if (this._currentframe == 27) {
_root.bacon = false;
_root.street.gotoAndStop(1);
_root.item = 1;
this._x = -1000;
this._y = -1000;
}
}
Instance of Symbol 191 MovieClip "handi" in Frame 155
onClipEvent (load) {
dy = 16;
dx = 5;
leftwall = 200;
rightwall = 400;
activated = false;
fired = false;
firerate = 12;
bc = 300;
jump = 10;
}
onClipEvent (enterFrame) {
if (activated == true) {
this._y = this._y + dy;
if (this._x < _root._xmouse) {
this._x = this._x + dx;
this._xscale = -Math.abs(this._xscale);
}
if (this._x > _root._xmouse) {
this._x = this._x - dx;
this._xscale = Math.abs(this._xscale);
}
if (this._x < leftwall) {
this._x = this._x + dx;
_root.handi._x = this._x;
}
if (this._x > rightwall) {
this._x = this._x - dx;
_root.handi._x = this._x;
}
firerate++;
if (firerate >= 12) {
firerate = 12;
}
if (_root._xmouse > this._x) {
this._xscale = -Math.abs(this._xscale);
_root["h.arm"]._xscale = -Math.abs(_root["h.arm"]._yscale);
}
if (_root._xmouse < this._x) {
this._xscale = Math.abs(this._xscale);
_root["h.arm"]._xscale = Math.abs(_root["h.arm"]._yscale);
}
if (((_root.timer.shooting == true) and (fired == false)) and (firerate == 12)) {
bc++;
fired = true;
firerate = 0;
duplicateMovieClip (_root["bullet b"], "newbulletb" + bc, bc);
_root["newbulletb" + bc]._x = this._x;
_root["newbulletb" + bc]._y = this._y - 42;
_root.sounds.gotoAndStop(3);
_root["h.arm"].gotoAndPlay(2);
} else {
fired = false;
}
}
if (_root.timer.gameover == true) {
this._y = this._y - jump;
activated = false;
jump--;
}
}
Instance of Symbol 346 MovieClip "bullet b" in Frame 155
onClipEvent (load) {
spd = 50;
xd = _root._xmouse - _x;
yd = _root._ymouse - _y;
radAngle = Math.atan2(yd, xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
onClipEvent (enterFrame) {
if (_name == "bullet b") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
i = 200;
while (i < 250) {
if (this.hitTest(_root["newenemy" + i])) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 3;
_root["newbulletb" + _root.newbulletb.bc].removeMovieClip();
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
removeMovieClip(this);
}
i++;
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 155
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 2;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 392 MovieClip "h.arm" in Frame 155
onClipEvent (enterFrame) {
this._x = _root.handi._x;
this._y = _root.handi._y - 25;
xd = _root._xmouse - _x;
yd = _root._ymouse - _y;
radAngle = Math.atan2(yd, xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 396 MovieClip "crosshair" in Frame 155
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
if (this._name != "crosshair") {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
}
Instance of Symbol 328 MovieClip "ground" in Frame 156
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) {
f = 1;
while (f < 4) {
duplicateMovieClip (_root["mini-fire"], "newmini" + _root.bullet.mfc, _root.bullet.mfc);
_root["newmini" + _root.bullet.mfc]._x = _root["newbullet" + _root.timer.bc]._x;
_root["newmini" + _root.bullet.mfc]._y = _root["newbullet" + _root.timer.bc]._y;
_root.bullet.mfc = _root.bullet.mfc + 1;
f++;
}
_root.sounds.gotoAndStop(5);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) {
duplicateMovieClip (_root.explo, ["newexplo" + _root.explo.ec], _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = _root["newbullet" + _root.timer.bc]._x;
_root["newexplo" + _root.explo.ec]._y = _root["newbullet" + _root.timer.bc]._y;
_root["newbullet" + _root.timer.bc].removeMovieClip();
_root.sounds.gotoAndStop(7);
_root.explo.ec++;
}
i = 1;
while (i < 11) {
if (this.hitTest(_root["enemy" + i]._x, _root["enemy" + i]._y, true)) {
_root["enemy" + i]._y = _root["enemy" + i]._y - 16;
}
i++;
}
if (this.hitTest(_root.handi._x, _root.handi._y, true)) {
_root.handi._y = _root.handi._y - 16;
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 156
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (20 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (25 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (55 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (80 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (82 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (130 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (deaths == 10) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 0;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 349 MovieClip "bullet" in Frame 156
onClipEvent (load) {
spd = 35;
bottom = 375;
if (_root.timer.selectedweapon == 1) {
spd = 35;
}
if (_root.timer.selectedweapon == 2) {
spd = 50;
}
if (_root.timer.selectedweapon == 3) {
spd = 60;
}
if (_root.timer.selectedweapon == 4) {
spd = 35;
}
if (_root.timer.selectedweapon == 5) {
spd = 50;
}
_x = _root.arm._x;
_y = _root.arm._y;
mfc = 1;
_rotation = _root.arm._rotation;
}
onClipEvent (enterFrame) {
if (_name == "bullet") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
i = 200;
while (i < 300) {
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 1)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 3;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 2)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 5;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 3)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 5;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 4)) and (_root["newenemy" + i].dead == false)) {
_root.fire.fc++;
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = _root["newenemy" + i]._x;
_root["newfire" + _root.fire.fc]._y = _root["newenemy" + i]._y;
_root["newenemy" + i].life = _root["newenemy" + i].life - 2;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 5)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i++;
}
}
}
Instance of Symbol 133 MovieClip "stick guy" in Frame 156
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 2)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 3)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newfire" + _root.fire.fc])) {
_root["newfire" + _root.fire.fc]._x = this._x;
life = life - 2;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) and (dead == false)) {
life = life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy" in Frame 156
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
vel = 6;
soundnum = 8;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x + bv;
this._x = this._x - vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 156
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy b" in Frame 156
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy b") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x - bv;
this._x = this._x + vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 181 MovieClip "m.bacon" in Frame 156
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
_root.bacon = true;
}
if (this._currentframe == 27) {
_root.bacon = false;
_root.street.gotoAndStop(1);
_root.item = 1;
this._x = -1000;
this._y = -1000;
}
}
Instance of Symbol 346 MovieClip "bullet b" in Frame 156
onClipEvent (load) {
spd = 50;
xd = _root._xmouse - _x;
yd = _root._ymouse - _y;
radAngle = Math.atan2(yd, xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
onClipEvent (enterFrame) {
if (_name == "bullet b") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
i = 1;
while (i < 999) {
if (this.hitTest(_root["newenemy" + i])) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 3;
_root["newbulletb" + _root.newbulletb.bc].removeMovieClip();
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
removeMovieClip(this);
}
i++;
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 401 MovieClip "duck" in Frame 156
onClipEvent (load) {
dx = (Math.random() * 5) + 5;
dy = (Math.random() * 5) + 5;
dead = false;
life = 6;
power = 8;
stay = false;
rightwall = 530;
leftwall = 0;
upwall = 0;
dogcount = 500;
gavemoney = false;
soundnum = 11;
}
onClipEvent (enterFrame) {
if (this._name != "duck") {
if (dead == false) {
this._x = this._x - dx;
this._y = this._y - dy;
}
if (((this._x > rightwall) and (stay == true)) and (dead == false)) {
dx = dx * -1;
this.gotoAndStop(1);
}
if ((this._x < leftwall) and (dead == false)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(2);
}
if ((this._y < upwall) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == true)) {
_root["newdog" + dogcount].gotoAndPlay(2);
this.removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(11);
}
}
i++;
}
if (life <= 0) {
dead = true;
duplicateMovieClip (_root.dog, "newdog" + dogcount, dogcount);
_root["newdog" + dogcount]._x = this._x;
_root["newdog" + dogcount]._y = _root.ground._y + 40;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._rotation = this._rotation - 10;
this._y = this._y + 15;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
dx = dx * -1;
dy = dy * -1;
stay = true;
play();
_root.sign.play();
}
}
}
Instance of Symbol 401 MovieClip "duck 2" in Frame 156
onClipEvent (load) {
dx = (Math.random() * 5) + 5;
dy = (Math.random() * 5) + 5;
dead = false;
life = 6;
power = 8;
stay = false;
rightwall = 530;
leftwall = 0;
upwall = 0;
dogcount = 500;
gavemoney = false;
soundnum = 11;
this._xscale = -Math.abs(this._xscale);
}
onClipEvent (enterFrame) {
if (this._name != "duck 2") {
if (dead == false) {
this._x = this._x + dx;
this._y = this._y - dy;
}
if ((this._x > rightwall) and (dead == false)) {
dx = dx * -1;
this.gotoAndStop(1);
}
if (((this._x < leftwall) and (dead == false)) and (stay == true)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(2);
}
if ((this._y < upwall) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == true)) {
_root["newdog" + dogcount].gotoAndPlay(2);
this.removeMovieClip();
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (life <= 0) {
dead = true;
duplicateMovieClip (_root.dog, "newdog" + dogcount, dogcount);
_root["newdog" + dogcount]._x = this._x;
_root["newdog" + dogcount]._y = _root.ground._y + 40;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(11);
}
}
i++;
}
if (dead == true) {
this._rotation = this._rotation - 10;
this._y = this._y + 15;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
dx = dx * -1;
dy = dy * -1;
stay = true;
play();
_root.sign.play();
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 156
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 3;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 157
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (25 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (40 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (55 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (90 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (130 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (140 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (174 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (186 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (210 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (224 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (246 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (deaths == 14) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 0;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 133 MovieClip "stick guy" in Frame 157
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 2)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 3)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) and (dead == false)) {
life = life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy" in Frame 157
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
vel = 6;
soundnum = 8;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x + bv;
this._x = this._x - vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 157
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy b" in Frame 157
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy b") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x - bv;
this._x = this._x + vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newfire" + _root.fire.fc])) {
_root["newfire" + _root.fire.fc]._x = this._x;
life = life - 2;
}
if (this.hitTest(_root["newexplo" + _root.explo.ec])) {
life = life - 9;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 401 MovieClip "duck" in Frame 157
onClipEvent (load) {
dx = (Math.random() * 5) + 5;
dy = (Math.random() * 5) + 5;
dead = false;
life = 6;
power = 8;
stay = false;
rightwall = 530;
leftwall = 0;
upwall = 0;
dogcount = 500;
gavemoney = false;
soundnum = 11;
}
onClipEvent (enterFrame) {
if (this._name != "duck") {
if (dead == false) {
this._x = this._x - dx;
this._y = this._y - dy;
}
if (((this._x > rightwall) and (stay == true)) and (dead == false)) {
dx = dx * -1;
this.gotoAndStop(1);
}
if ((this._x < leftwall) and (dead == false)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(2);
}
if ((this._y < upwall) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == true)) {
_root["newdog" + dogcount].gotoAndPlay(2);
this.removeMovieClip();
}
if (life <= 0) {
dead = true;
duplicateMovieClip (_root.dog, "newdog" + dogcount, dogcount);
_root["newdog" + dogcount]._x = this._x;
_root["newdog" + dogcount]._y = _root.ground._y + 40;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(11);
}
}
i++;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (dead == true) {
this._rotation = this._rotation - 10;
this._y = this._y + 15;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
dx = dx * -1;
dy = dy * -1;
stay = true;
play();
_root.sign.play();
}
}
}
Instance of Symbol 401 MovieClip "duck 2" in Frame 157
onClipEvent (load) {
dx = (Math.random() * 5) + 5;
dy = (Math.random() * 5) + 5;
dead = false;
life = 6;
power = 8;
stay = false;
rightwall = 530;
leftwall = 0;
upwall = 0;
dogcount = 500;
gavemoney = false;
soundnum = 11;
this._xscale = -Math.abs(this._xscale);
}
onClipEvent (enterFrame) {
if (this._name != "duck 2") {
if (dead == false) {
this._x = this._x + dx;
this._y = this._y - dy;
}
if ((this._x > rightwall) and (dead == false)) {
dx = dx * -1;
this.gotoAndStop(1);
}
if (((this._x < leftwall) and (dead == false)) and (stay == true)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(2);
}
if ((this._y < upwall) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == true)) {
_root["newdog" + dogcount].gotoAndPlay(2);
this.removeMovieClip();
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (life <= 0) {
dead = true;
duplicateMovieClip (_root.dog, "newdog" + dogcount, dogcount);
_root["newdog" + dogcount]._x = this._x;
_root["newdog" + dogcount]._y = _root.ground._y + 40;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(11);
}
}
i++;
}
if (dead == true) {
this._rotation = this._rotation - 10;
this._y = this._y + 15;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
dx = dx * -1;
dy = dy * -1;
stay = true;
play();
_root.sign.play();
}
}
}
Instance of Symbol 427 MovieClip "deer" in Frame 157
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x - dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if ((this._x <= 0) and (dead == false)) {
dx = dx * -1;
stay = true;
this._xscale = -Math.abs(this._xscale);
}
if (((this._x > 530) and (dead == false)) and (stay == true)) {
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 427 MovieClip "deer 2" in Frame 157
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer 2") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x + dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if (((this._x <= 0) and (dead == false)) and (stay == true)) {
dx = dx * -1;
stay = true;
this._xscale = Math.abs(this._xscale);
}
if ((this._x > 530) and (dead == false)) {
dx = dx * -1;
this._xscale = -Math.abs(this._xscale);
stay = true;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 157
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 4;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 158
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (40 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (45 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = -73;
_root["newenemy" + enenum]._y = 265;
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (145 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (175 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (190 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (200 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = 640;
_root["newenemy" + enenum]._y = 314;
}
if (time == (215 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = 623;
_root["newenemy" + enenum]._y = 139;
}
if (time == (230 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = -73;
_root["newenemy" + enenum]._y = 265;
}
if (time == (235 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = 640;
_root["newenemy" + enenum]._y = 314;
}
if (time == (260 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = 628;
_root["newenemy" + enenum]._y = 14;
}
if (time == (275 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (deaths == 15) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 0;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 158
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 158
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 5;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 159
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (90 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (105 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (145 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (155 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (160 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (175 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (185 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (200 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (220 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (225 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (deaths == 16) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 0;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 427 MovieClip "deer" in Frame 159
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x - dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if ((this._x <= 0) and (dead == false)) {
dx = dx * -1;
stay = true;
this._xscale = -Math.abs(this._xscale);
}
if (((this._x > 530) and (dead == false)) and (stay == true)) {
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 159
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 6;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 160
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (30 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (45 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (90 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (110 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (155 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (165 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (180 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (190 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (195 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (205 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (deaths == 15) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 0;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 427 MovieClip "deer" in Frame 160
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x - dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if ((this._x <= 0) and (dead == false)) {
dx = dx * -1;
stay = true;
this._xscale = -Math.abs(this._xscale);
}
if (((this._x > 530) and (dead == false)) and (stay == true)) {
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 438 MovieClip "cow" in Frame 160
onClipEvent (load) {
life = 6;
dx = 10;
power = 30;
gavemoney = false;
dead = false;
}
onClipEvent (enterFrame) {
if (this._name != "cow") {
this._x = this._x - dx;
if (this.hitTest(_root.sign)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.sounds.gotoAndStop(7);
_root.hp = _root.hp - (power - _root.defense);
_root.timer.deaths = _root.timer.deaths + 1;
_root.sign.play();
removeMovieClip(this);
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
removeMovieClip(this);
_root.sounds.gotoAndStop(7);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 438 MovieClip "cow 2" in Frame 160
onClipEvent (load) {
life = 6;
dx = 10;
power = 30;
gavemoney = false;
dead = false;
}
onClipEvent (enterFrame) {
if (this._name != "cow 2") {
this._x = this._x + dx;
if (this.hitTest(_root.sign)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.sounds.gotoAndStop(7);
_root.hp = _root.hp - (power - _root.defense);
_root.timer.deaths = _root.timer.deaths + 1;
_root.sign.play();
removeMovieClip(this);
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
removeMovieClip(this);
_root.sounds.gotoAndStop(7);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 160
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 7;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 161
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (30 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (40 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (45 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (60 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (90 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (95 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (110 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (160 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (180 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (185 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (deaths == 17) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 401 MovieClip "duck 2" in Frame 161
onClipEvent (load) {
dx = (Math.random() * 5) + 5;
dy = (Math.random() * 5) + 5;
dead = false;
life = 6;
power = 8;
stay = false;
rightwall = 530;
leftwall = 0;
upwall = 0;
dogcount = 500;
gavemoney = false;
soundnum = 11;
this._xscale = -Math.abs(this._xscale);
}
onClipEvent (enterFrame) {
if (this._name != "duck 2") {
if (dead == false) {
this._x = this._x + dx;
this._y = this._y - dy;
}
if ((this._x > rightwall) and (dead == false)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(1);
}
if (((this._x < leftwall) and (dead == false)) and (stay == true)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(2);
}
if ((this._y < upwall) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == true)) {
_root["newdog" + dogcount].gotoAndPlay(2);
this.removeMovieClip();
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (life <= 0) {
dead = true;
duplicateMovieClip (_root.dog, "newdog" + dogcount, dogcount);
_root["newdog" + dogcount]._x = this._x;
_root["newdog" + dogcount]._y = _root.ground._y + 40;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(11);
}
}
i++;
}
if (dead == true) {
this._rotation = this._rotation - 10;
this._y = this._y + 15;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
dx = dx * -1;
dy = dy * -1;
stay = true;
play();
_root.sign.play();
}
}
}
Instance of Symbol 427 MovieClip "deer" in Frame 161
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x - dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if ((this._x <= 0) and (dead == false)) {
dx = dx * -1;
stay = true;
this._xscale = -Math.abs(this._xscale);
}
if (((this._x > 530) and (dead == false)) and (stay == true)) {
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 427 MovieClip "deer 2" in Frame 161
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer 2") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x + dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if (((this._x <= 0) and (dead == false)) and (stay == true)) {
dx = dx * -1;
stay = true;
this._xscale = Math.abs(this._xscale);
}
if ((this._x > 530) and (dead == false)) {
dx = dx * -1;
this._xscale = -Math.abs(this._xscale);
stay = true;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 438 MovieClip "cow" in Frame 161
onClipEvent (load) {
life = 6;
dx = 10;
power = 30;
gavemoney = false;
dead = false;
}
onClipEvent (enterFrame) {
if (this._name != "cow") {
this._x = this._x - dx;
if (this.hitTest(_root.sign)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.sounds.gotoAndStop(7);
_root.hp = _root.hp - (power - _root.defense);
_root.timer.deaths = _root.timer.deaths + 1;
_root.sign.play();
removeMovieClip(this);
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
removeMovieClip(this);
_root.sounds.gotoAndStop(7);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 438 MovieClip "cow 2" in Frame 161
onClipEvent (load) {
life = 6;
dx = 10;
power = 30;
gavemoney = false;
dead = false;
}
onClipEvent (enterFrame) {
if (this._name != "cow 2") {
this._x = this._x + dx;
if (this.hitTest(_root.sign)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.sounds.gotoAndStop(7);
_root.hp = _root.hp - (power - _root.defense);
_root.timer.deaths = _root.timer.deaths + 1;
_root.sign.play();
removeMovieClip(this);
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
removeMovieClip(this);
_root.sounds.gotoAndStop(7);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 161
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 8;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 162
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (45 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (60 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (95 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (105 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["newenemy" + enenum]._x;
_root["newenemy" + enenum]._y = _root["newenemy" + enenum]._y;
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (140 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (155 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (160 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (165 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (175 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (185 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (200 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (deaths == 18) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 162
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 427 MovieClip "deer" in Frame 162
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x - dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if ((this._x <= 0) and (dead == false)) {
dx = dx * -1;
stay = true;
this._xscale = -Math.abs(this._xscale);
}
if (((this._x > 530) and (dead == false)) and (stay == true)) {
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 162
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 9;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 163
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (40 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (55 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (65 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (80 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enmnum]._y = _root.deer._y;
}
if (time == (90 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (110 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (140 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (145 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (160 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (180 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (190 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (195 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (210 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
}
if (deaths == 21) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 163
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 427 MovieClip "deer" in Frame 163
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x - dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if ((this._x <= 0) and (dead == false)) {
dx = dx * -1;
stay = true;
this._xscale = -Math.abs(this._xscale);
}
if (((this._x > 530) and (dead == false)) and (stay == true)) {
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 163
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 10;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 164
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (40 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (60 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b" + enenum]._x;
_root["newenemy" + enenum]._y = _root["stick guy b" + enenum]._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (110 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (165 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (175 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (185 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (195 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (210 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (220 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (225 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (deaths == 18) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 133 MovieClip "stick guy" in Frame 164
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 2)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 3)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) and (dead == false)) {
life = life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy" in Frame 164
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
vel = 6;
soundnum = 8;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x + bv;
this._x = this._x - vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy b" in Frame 164
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy b") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x - bv;
this._x = this._x + vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newfire" + _root.fire.fc])) {
_root["newfire" + _root.fire.fc]._x = this._x;
life = life - 2;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 427 MovieClip "deer" in Frame 164
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x - dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if ((this._x <= 0) and (dead == false)) {
dx = dx * -1;
stay = true;
this._xscale = -Math.abs(this._xscale);
}
if (((this._x > 530) and (dead == false)) and (stay == true)) {
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 452 MovieClip "truck" in Frame 164
onClipEvent (load) {
power = 15;
life = 15;
dead = false;
gavemoney = false;
dx = 20;
}
onClipEvent (enterFrame) {
if (this._name != "truck") {
this._x = this._x - dx;
if (dx < 0) {
dx++;
}
if (dx == 0) {
dx = (Math.random() * 20) + 10;
}
if (this.hitTest(_root.sign)) {
dx = dx * -1;
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 9) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
_root.sounds.gotoAndStop(7);
}
removeMovieClip(this);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 452 MovieClip "truck 2" in Frame 164
onClipEvent (load) {
power = 15;
life = 15;
dead = false;
gavemoney = false;
dx = 20;
}
onClipEvent (enterFrame) {
if (this._name != "truck 2") {
this._x = this._x + dx;
if (dx < 0) {
dx++;
}
if (dx == 0) {
dx = int(Math.random() * 20) + 10;
}
if (this.hitTest(_root.sign)) {
dx = dx * -1;
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 9) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
_root.sounds.gotoAndStop(7);
}
removeMovieClip(this);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 164
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 11;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 165
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (40 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (45 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (60 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (95 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (110 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (140 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (160 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (175 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (190 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (205 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (220 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (235 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (deaths == 19) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 165
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 452 MovieClip "truck" in Frame 165
onClipEvent (load) {
power = 15;
life = 15;
dead = false;
gavemoney = false;
dx = 20;
}
onClipEvent (enterFrame) {
if (this._name != "truck") {
this._x = this._x - dx;
if (dx < 0) {
dx++;
}
if (dx == 0) {
dx = int(Math.random() * 20) + 10;
}
if (this.hitTest(_root.sign)) {
dx = dx * -1;
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 9) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
_root.sounds.gotoAndStop(7);
}
removeMovieClip(this);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 165
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 12;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 166
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (45 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (65 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (110 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (160 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (180 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (190 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (205 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (220 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (230 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (245 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (255 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (deaths == 20) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 121 MovieClip "gun guy" in Frame 166
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
vel = 6;
soundnum = 8;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x + bv;
this._x = this._x - vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 166
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy b" in Frame 166
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy b") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x - bv;
this._x = this._x + vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newfire" + _root.fire.fc])) {
_root["newfire" + _root.fire.fc]._x = this._x;
life = life - 2;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 166
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 13;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 167
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (55 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (80 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (95 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (130 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (140 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (145 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (160 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (180 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (200 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (210 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (230 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (240 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (255 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (270 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (285 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (300 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (deaths == 20) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 167
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 14;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 168
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (30 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (45 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (55 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (90 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (105 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (120 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (155 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (175 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (190 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (205 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (225 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (240 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (260 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (285 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (305 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (320 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (335 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (350 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (365 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (385 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (deaths == 22) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 168
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 15;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 169
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (65 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (90 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (110 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (130 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (145 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (165 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (180 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (195 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (210 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (220 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (235 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (255 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (270 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (285 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (305 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (225 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (235 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (deaths == 21) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 169
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 16;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 170
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (130 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (140 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (155 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (175 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (190 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (200 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (215 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (225 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (240 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (250 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (265 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (280 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (295 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (310 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (325 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (340 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (355 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (370 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (380 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (390 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (405 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (420 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (435 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (450 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (deaths == 30) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 170
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 17;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 171
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (65 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (195 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (220 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (time == (235 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (260 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (deaths == 13) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 171
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 18;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 349 MovieClip "bullet" in Frame 172
onClipEvent (load) {
spd = 35;
bottom = 375;
if (_root.timer.selectedweapon == 1) {
spd = 35;
}
if (_root.timer.selectedweapon == 2) {
spd = 50;
}
if (_root.timer.selectedweapon == 3) {
spd = 60;
}
if (_root.timer.selectedweapon == 4) {
spd = 35;
}
if (_root.timer.selectedweapon == 5) {
spd = 50;
}
_x = _root.arm._x;
_y = _root.arm._y;
mfc = 1;
_rotation = _root.arm._rotation;
}
onClipEvent (enterFrame) {
if (_name == "bullet") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
i = 200;
while (i < 300) {
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 1)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 3;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 2)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 5;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 3)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 5;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 4)) and (_root["newenemy" + i].dead == false)) {
_root.fire.fc++;
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = _root["newenemy" + i]._x;
_root["newfire" + _root.fire.fc]._y = _root["newenemy" + i]._y;
_root["newenemy" + i].life = _root["newenemy" + i].life - 2;
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newenemy" + i]) and (this._currentframe == 5)) and (_root["newenemy" + i].dead == false)) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i++;
}
}
}
Instance of Symbol 351 MovieClip in Frame 172
onClipEvent (enterFrame) {
this.gotoAndStop(_root.item);
}
Instance of Symbol 167 MovieClip "fire" in Frame 172
onClipEvent (load) {
fc = 800;
hurtrate = 12;
firelife = 70;
}
onClipEvent (enterFrame) {
if (fc == 810) {
fc = 800;
}
firelife--;
hurtrate++;
if (hurtrate >= 12) {
hurtrate = 12;
}
this._y = this._y + 10;
if (this._y > _root.ground._y) {
this._y = _root.ground._y;
}
if (firelife == 0) {
this.removeMovieClip();
}
}
Instance of Symbol 167 MovieClip "mini-fire" in Frame 172
onClipEvent (load) {
gravity = 10;
direct = int((Math.random() * 10) - 5);
jumping = true;
firelife = 50;
}
onClipEvent (enterFrame) {
if (_name != "mini-fire") {
if (jumping == true) {
this._y = this._y - gravity;
this._x = this._x + direct;
}
if (gravity == -15) {
gravity == -15;
}
gravity--;
if (this.hitTest(_root.ground)) {
jumping = false;
}
firelife--;
if (firelife == 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 373 MovieClip "explo" in Frame 172
onClipEvent (load) {
ec = 100;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
this.removeMovieClip();
}
}
Instance of Symbol 133 MovieClip "stick guy" in Frame 172
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 2)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 3)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) and (dead == false)) {
life = life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 376 MovieClip "cash" in Frame 172
onClipEvent (load) {
jump = 10;
dir = int(Math.random() * 10);
cashnum = 1;
}
onClipEvent (enterFrame) {
if (this._name != "cash") {
this._y = this._y - jump;
this._x = this._x + dir;
jump--;
if (this._x <= 0) {
dir = dir * -1;
}
if (this._x >= 530) {
dir = dir * -1;
}
if (this._y > _root.ground._y) {
removeMovieClip(this);
_root.money = _root.money + 1;
updateAfterEvent();
}
}
}
Instance of Symbol 121 MovieClip "gun guy" in Frame 172
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
vel = 6;
soundnum = 8;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x + bv;
this._x = this._x - vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 378 MovieClip "evil bullet" in Frame 172
onClipEvent (load) {
bv = 20;
}
onClipEvent (enterFrame) {
if (this._name != "evil bullet") {
if (this._x > _root.sign._x) {
this._x = this._x - bv;
}
if (this._x < _root.sign._x) {
this._x = this._x + bv;
}
if (this.hitTest(_root.sign)) {
removeMovieClip(this);
_root.hp = _root.hp - (10 - _root.defense);
_root.sign.play();
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 172
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 30;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy b" in Frame 172
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 30;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy b") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x - bv;
this._x = this._x + vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newfire" + _root.fire.fc])) {
_root["newfire" + _root.fire.fc]._x = this._x;
life = life - 2;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 181 MovieClip "m.bacon" in Frame 172
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
_root.bacon = true;
}
if (this._currentframe == 27) {
_root.bacon = false;
_root.street.gotoAndStop(1);
_root.item = 1;
this._x = -1000;
this._y = -1000;
}
}
Instance of Symbol 346 MovieClip "bullet b" in Frame 172
onClipEvent (load) {
spd = 50;
xd = _root._xmouse - _x;
yd = _root._ymouse - _y;
radAngle = Math.atan2(yd, xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
onClipEvent (enterFrame) {
if (_name == "bullet b") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
i = 1;
while (i < 999) {
if (this.hitTest(_root["newenemy" + i])) {
_root["newenemy" + i].life = _root["newenemy" + i].life - 3;
_root["newbulletb" + _root.newbulletb.bc].removeMovieClip();
_root.sounds.gotoAndStop(_root["newenemy" + i].soundnum);
removeMovieClip(this);
}
i++;
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) {
this.removeMovieClip();
}
}
}
Instance of Symbol 401 MovieClip "duck 2" in Frame 172
onClipEvent (load) {
dx = (Math.random() * 5) + 5;
dy = (Math.random() * 5) + 5;
dead = false;
life = 6;
power = 8;
stay = false;
rightwall = 530;
leftwall = 0;
upwall = 0;
dogcount = 500;
gavemoney = false;
soundnum = 11;
this._xscale = -Math.abs(this._xscale);
}
onClipEvent (enterFrame) {
if (this._name != "duck 2") {
if (dead == false) {
this._x = this._x + dx;
this._y = this._y - dy;
}
if ((this._x > rightwall) and (dead == false)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(1);
}
if (((this._x < leftwall) and (dead == false)) and (stay == true)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(2);
}
if ((this._y < upwall) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == true)) {
_root["newdog" + dogcount].gotoAndPlay(2);
this.removeMovieClip();
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (life <= 0) {
dead = true;
duplicateMovieClip (_root.dog, "newdog" + dogcount, dogcount);
_root["newdog" + dogcount]._x = this._x;
_root["newdog" + dogcount]._y = _root.ground._y + 40;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(11);
}
}
i++;
}
if (dead == true) {
this._rotation = this._rotation - 10;
this._y = this._y + 15;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
dx = dx * -1;
dy = dy * -1;
stay = true;
play();
_root.sign.play();
}
}
}
Instance of Symbol 427 MovieClip "deer" in Frame 172
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x - dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if ((this._x <= 0) and (dead == false)) {
dx = dx * -1;
stay = true;
this._xscale = -Math.abs(this._xscale);
}
if (((this._x > 530) and (dead == false)) and (stay == true)) {
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 427 MovieClip "deer 2" in Frame 172
onClipEvent (load) {
jump = 15;
power = 8;
life = 15;
dead = false;
gavemoney = false;
stay = false;
dx = 5;
}
onClipEvent (enterFrame) {
if (this._name != "deer 2") {
this._y = this._y - jump;
jump = jump - 1;
this._x = this._x + dx;
if (jump <= -15) {
jump = -15;
}
if (this.hitTest(_root.ground) and (dead == false)) {
jump = 15;
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
jump = 15;
this._y = this._y - 30;
_root.sign.play();
}
if (((this._x <= 0) and (dead == false)) and (stay == true)) {
dx = dx * -1;
stay = true;
this._xscale = Math.abs(this._xscale);
}
if ((this._x > 530) and (dead == false)) {
dx = dx * -1;
this._xscale = -Math.abs(this._xscale);
stay = true;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.timer.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
}
}
}
Instance of Symbol 438 MovieClip "cow" in Frame 172
onClipEvent (load) {
life = 6;
dx = 10;
power = 30;
gavemoney = false;
dead = false;
}
onClipEvent (enterFrame) {
if (this._name != "cow") {
this._x = this._x - dx;
if (this.hitTest(_root.sign)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.sounds.gotoAndStop(7);
_root.hp = _root.hp - (power - _root.defense);
_root.timer.deaths = _root.timer.deaths + 1;
_root.sign.play();
removeMovieClip(this);
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
removeMovieClip(this);
_root.sounds.gotoAndStop(7);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 438 MovieClip "cow 2" in Frame 172
onClipEvent (load) {
life = 6;
dx = 10;
power = 30;
gavemoney = false;
dead = false;
}
onClipEvent (enterFrame) {
if (this._name != "cow 2") {
this._x = this._x + dx;
if (this.hitTest(_root.sign)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.sounds.gotoAndStop(7);
_root.hp = _root.hp - (power - _root.defense);
_root.timer.deaths = _root.timer.deaths + 1;
_root.sign.play();
removeMovieClip(this);
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
removeMovieClip(this);
_root.sounds.gotoAndStop(7);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 401 MovieClip "duck" in Frame 172
onClipEvent (load) {
dx = (Math.random() * 5) + 5;
dy = (Math.random() * 5) + 5;
dead = false;
life = 6;
power = 8;
stay = false;
rightwall = 530;
leftwall = 0;
upwall = 0;
dogcount = 500;
gavemoney = false;
soundnum = 11;
}
onClipEvent (enterFrame) {
if (this._name != "duck") {
if (dead == false) {
this._x = this._x - dx;
this._y = this._y - dy;
}
if (((this._x > rightwall) and (stay == true)) and (dead == false)) {
dx = dx * -1;
this.gotoAndStop(1);
}
if ((this._x < leftwall) and (dead == false)) {
stay = true;
dx = dx * -1;
this.gotoAndStop(2);
}
if ((this._y < upwall) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == false)) {
stay = true;
dy = dy * -1;
}
if ((this._y > _root.ground._y) and (dead == true)) {
_root["newdog" + dogcount].gotoAndPlay(2);
this.removeMovieClip();
}
if (life <= 0) {
dead = true;
duplicateMovieClip (_root.dog, "newdog" + dogcount, dogcount);
_root["newdog" + dogcount]._x = this._x;
_root["newdog" + dogcount]._y = _root.ground._y + 40;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(11);
}
}
i++;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
if (dead == true) {
this._rotation = this._rotation - 10;
this._y = this._y + 15;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 6) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
if (this.hitTest(_root.sign) and (dead == false)) {
_root.hp = _root.hp - (power - _root.defense);
dx = dx * -1;
dy = dy * -1;
stay = true;
play();
_root.sign.play();
}
}
}
Instance of Symbol 452 MovieClip "truck" in Frame 172
onClipEvent (load) {
power = 15;
life = 15;
dead = false;
gavemoney = false;
dx = 20;
}
onClipEvent (enterFrame) {
if (this._name != "truck") {
this._x = this._x - dx;
if (dx < 0) {
dx++;
}
if (dx == 0) {
dx = (Math.random() * 20) + 10;
}
if (this.hitTest(_root.sign)) {
dx = dx * -1;
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 9) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
_root.sounds.gotoAndStop(7);
}
removeMovieClip(this);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 452 MovieClip "truck 2" in Frame 172
onClipEvent (load) {
power = 15;
life = 15;
dead = false;
gavemoney = false;
dx = 20;
}
onClipEvent (enterFrame) {
if (this._name != "truck 2") {
this._x = this._x + dx;
if (dx < 0) {
dx++;
}
if (dx == 0) {
dx = int(Math.random() * 20) + 10;
}
if (this.hitTest(_root.sign)) {
dx = dx * -1;
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 9) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
_root.sounds.gotoAndStop(7);
}
removeMovieClip(this);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 172
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (60 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (75 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (95 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (110 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (125 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (165 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (180 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (195 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (210 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (225 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (240 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (255 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (270 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (285 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (300 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (320 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (335 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (345 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (360 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (375 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (395 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (deaths == 25) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 172
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 19;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 452 MovieClip "truck" in Frame 173
onClipEvent (load) {
power = 15;
life = 15;
dead = false;
gavemoney = false;
dx = 20;
}
onClipEvent (enterFrame) {
if (this._name != "truck") {
this._x = this._x - dx;
if (dx < 0) {
dx++;
}
if (dx == 0) {
dx = int(Math.random() * 20) + 10;
}
if (this.hitTest(_root.sign)) {
dx = dx * -1;
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 9) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
_root.sounds.gotoAndStop(7);
}
removeMovieClip(this);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 452 MovieClip "truck 2" in Frame 173
onClipEvent (load) {
power = 15;
life = 15;
dead = false;
gavemoney = false;
dx = 20;
}
onClipEvent (enterFrame) {
if (this._name != "truck 2") {
this._x = this._x + dx;
if (dx < 0) {
dx++;
}
if (dx == 0) {
dx = (Math.random() * 20) + 10;
}
if (this.hitTest(_root.sign)) {
dx = dx * -1;
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
if (life <= 0) {
dead = true;
}
if (dead == true) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 9) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
_root.sounds.gotoAndStop(7);
}
removeMovieClip(this);
gavemoney = true;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(soundnum);
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
}
}
i++;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 173
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root.deer, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.deer._x;
_root["newenemy" + enenum]._y = _root.deer._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (65 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (80 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (130 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (140 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (155 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root["deer 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["deer 2"]._x;
_root["newenemy" + enenum]._y = _root["deer 2"]._y;
}
if (time == (190 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (205 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (220 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (225 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (240 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (260 + randtime)) {
enenum++;
duplicateMovieClip (_root["cow 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["cow 2"]._x;
_root["newenemy" + enenum]._y = _root["cow 2"]._y;
_root.sounds.gotoAndStop(12);
}
if (time == (275 + randtime)) {
enenum++;
duplicateMovieClip (_root.duck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.duck._x;
_root["newenemy" + enenum]._y = _root.duck._y;
}
if (time == (290 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (305 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (335 + randtime)) {
enenum++;
duplicateMovieClip (_root["truck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["truck 2"]._x;
_root["newenemy" + enenum]._y = _root["truck 2"]._y;
_root.sounds.gotoAndStop(13);
}
if (time == (350 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (375 + randtime)) {
enenum++;
duplicateMovieClip (_root.cow, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.cow._x;
_root["newenemy" + enenum]._y = _root.cow._y;
_root.sounds.gotoAndStop(12);
}
if (time == (390 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (405 + randtime)) {
enenum++;
duplicateMovieClip (_root["duck 2"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["duck 2"]._x;
_root["newenemy" + enenum]._y = _root["duck 2"]._y;
}
if (time == (435 + randtime)) {
enenum++;
duplicateMovieClip (_root.truck, "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root.truck._x;
_root["newenemy" + enenum]._y = _root.truck._y;
_root.sounds.gotoAndStop(13);
}
if (deaths == 25) {
_root.levelcleared._x = 300;
_root.levelcleared._y = 170;
_root.levelcleared.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 390 MovieClip "levelcleared" in Frame 173
onClipEvent (enterFrame) {
if (this._currentframe == 35) {
_root.level = 20;
_root.handicap = false;
removeMovieClip(_root.newcrosshair);
_root.gotoAndStop("shop");
}
}
Instance of Symbol 133 MovieClip "stick guy" in Frame 174
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 40;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
}
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 2)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 3)) and (dead == false)) {
life = life - 5;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root.hand)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.hand.life = _root.hand.life - (50 + int(Math.random() * 50));
_root.sounds.gotoAndStop(7);
this.removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 5)) and (dead == false)) {
life = life - 30;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root.sounds.gotoAndStop(7);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.explo.ec++;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy" in Frame 174
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 40;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
vel = 6;
soundnum = 8;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x + bv;
this._x = this._x - vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x + vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root.hand)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.hand.life = _root.hand.life - (50 + int(Math.random() * 50));
_root.sounds.gotoAndStop(7);
this.removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 133 MovieClip "stick guy b" in Frame 174
onClipEvent (load) {
attacking = false;
onfire = false;
fired = false;
life = 9;
power = 10;
dead = false;
jump = 40;
defaultTime = 20;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "stick guy b") {
this._y = this._y + 16;
if ((this._y > _root.ground._y) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground._y) and (dead == true)) {
removeMovieClip(this);
}
if ((distance(this, _root.sign) > 50) and (dead == false)) {
this._x = this._x + vel;
this._xscale = Math.abs(this._xscale);
}
if ((distance(this, _root.sign) <= 50) and (dead == false)) {
this.play();
if (this._currentframe == 9) {
_root.hp = _root.hp - (power - _root.defense);
_root.sign.play();
_root.life._xscale = _root.life._xscale - (7 - _global.defense);
}
this._x = this._x - vel;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if ((this.hitTest(_root["newbullet" + _root.timer.bc]) and (_root["newbullet" + _root.timer.bc]._currentframe == 4)) and (dead == false)) {
duplicateMovieClip (_root.fire, "newfire" + _root.fire.fc, _root.fire.fc);
_root["newfire" + _root.fire.fc]._x = this._x;
_root["newfire" + _root.fire.fc]._y = this._y;
_root.fire.fc++;
life = life - 2;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root.hand)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.hand.life = _root.hand.life - (50 + int(Math.random() * 50));
_root.sounds.gotoAndStop(7);
this.removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 121 MovieClip "gun guy b" in Frame 174
onClipEvent (load) {
attacking = false;
bcount = 1;
life = 9;
power = 5;
dead = false;
jump = 40;
defaultTime = 35;
randomtime = int(Math.random() * 30);
totaltime = defaultTime + randomtime;
gavemoney = false;
firetime = 12;
soundnum = 8;
vel = 6;
}
onClipEvent (enterFrame) {
function distance(clip1, clip2) {
dx = clip1._x - clip2._x;
return(Math.sqrt(dx * dx));
}
if (this._name != "gun guy b") {
this._y = this._y + 16;
if ((this._y > (_root.ground._y - 40)) and (dead == false)) {
this._y = this._y - 16;
}
if ((this._y > _root.ground) and (dead == true)) {
removeMovieClip(this);
}
firetime++;
if (firetime > 12) {
firetime = 12;
}
if ((distance(this, _root.sign) < 150) and (dead == false)) {
if (firetime == 12) {
this.play();
if (this._currentframe == 2) {
duplicateMovieClip (_root["evil bullet"], "newevil" + bcount, bcount);
_root["newevil" + bcount]._x = this._x;
_root["newevil" + bcount]._y = this._y;
bcount++;
firetime = 0;
}
}
_root["newevil" + bcount]._x = _root["newevil" + bcount]._x - bv;
this._x = this._x + vel;
}
if ((distance(this, _root.sign) >= 70) and (dead == false)) {
this._x = this._x - vel;
this._xscale = -Math.abs(this._xscale);
}
if (this.hitTest(_root.hand)) {
_root.explo.ec++;
duplicateMovieClip (_root.explo, "newexplo" + _root.explo.ec, _root.explo.ec);
_root["newexplo" + _root.explo.ec]._x = this._x;
_root["newexplo" + _root.explo.ec]._y = this._y;
_root.hand.life = _root.hand.life - (50 + int(Math.random() * 50));
_root.sounds.gotoAndStop(7);
this.removeMovieClip();
}
i = 800;
while (i < 811) {
if (this.hitTest(_root["newfire" + i])) {
_root["newfire" + i]._x = this._x;
_root["newfire" + i]._y = this._y;
if (_root["newfire" + i].hurtrate == 12) {
_root["newfire" + i].hurtrate = 0;
life = life - 2;
_root.sounds.gotoAndStop(8);
}
}
i++;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc]) and (dead == false)) {
life = life - 3;
_root.sounds.gotoAndStop(8);
_root["newbullet" + _root.timer.bc].removeMovieClip();
}
if (this.hitTest(_root["newfire" + _root.fire.fc])) {
_root["newfire" + _root.fire.fc]._x = this._x;
life = life - 2;
}
if ((life <= 0) and (dead == false)) {
dead = true;
}
if ((_root.bacon == true) and this.hitTest(_root.street)) {
life = 0;
}
if (this.hitTest(_root.hitler)) {
life = life - 1;
_root.sounds.gotoAndStop(8);
}
if (dead == true) {
this._y = this._y - jump;
jump--;
this._rotation = this._rotation - 10;
if (gavemoney == false) {
_root.timer.deaths = _root.timer.deaths + 1;
c = 1;
while (c < 4) {
duplicateMovieClip (_root.cash, "newcash" + _root.cash.cashnum, _root.cash.cashnum);
_root["newcash" + _root.cash.cashnum]._x = this._x;
_root["newcash" + _root.cash.cashnum]._y = this._y;
_root.cash.cashnum++;
c++;
}
gavemoney = true;
}
}
}
}
Instance of Symbol 307 MovieClip "timer" in Frame 174
onClipEvent (load) {
deaths = 0;
selectedweapon = 1;
bc = 50;
timer = 0;
currentammo = _root.ninjas;
reload = 10;
time2shoot = 6;
shooting = false;
gravity = 40;
mfc = 1;
enenum = 200;
bacon = false;
shield = false;
randtime = int(Math.random() * 60);
time = 0;
gethandicaped = _root.handicap;
gameover = false;
crossnum = 999;
duplicateMovieClip (_root.crosshair, "newcrosshair", crossnum);
_root.newcrosshair._x = _root._xmouse;
_root.newcrosshair._y = _root._ymouse;
}
onClipEvent (mouseDown) {
shooting = true;
_root.arm.gotoAndStop("fire" + selectedweapon);
}
onClipEvent (mouseUp) {
shooting = false;
}
onClipEvent (enterFrame) {
time++;
if (time == (35 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (50 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (70 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (85 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (100 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (115 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (135 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy"]._x;
_root["newenemy" + enenum]._y = _root["stick guy"]._y;
}
if (time == (150 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (170 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time == (185 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy"]._x;
_root["newenemy" + enenum]._y = _root["gun guy"]._y;
}
if (time == (205 + randtime)) {
enenum++;
duplicateMovieClip (_root["gun guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["gun guy b"]._x;
_root["newenemy" + enenum]._y = _root["gun guy b"]._y;
}
if (time == (220 + randtime)) {
enenum++;
duplicateMovieClip (_root["stick guy b"], "newenemy" + enenum, enenum);
_root["newenemy" + enenum]._x = _root["stick guy b"]._x;
_root["newenemy" + enenum]._y = _root["stick guy b"]._y;
}
if (time > 220) {
time = 0;
}
if (enenum == 220) {
enenum = 200;
}
if (_root.hand.life < 0) {
e = 200;
while (e < 221) {
_root["newenemy" + e].dead = true;
e++;
}
stopAllSounds();
_root.play();
}
if (shooting == false) {
_root.arm.gotoAndStop("hold" + selectedweapon);
}
timer++;
reload++;
if (reload > time2shoot) {
reload = time2shoot;
}
if (Key.isDown(49) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(50) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(51) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(52) and (_root.gotmol == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(53) and (_root.gotcat == true)) {
selectedweapon = 5;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(37) and (_root.gotninja == true)) {
selectedweapon = 1;
time2shoot = 6;
currentammo = _root.ninjas;
_root["newbullet" + bc].spd = 35;
}
if (Key.isDown(39) and (_root.gotmag == true)) {
selectedweapon = 2;
time2shoot = 8;
currentammo = _root.magammo;
_root["newbullet" + bc].spd = 50;
}
if (Key.isDown(38) and (_root.gotpaint == true)) {
selectedweapon = 3;
time2shoot = 3;
currentammo = _root.paintammo;
_root["newbullet" + bc].spd = 50;
}
if ((Key.isDown(37) and Key.isDown(38)) and (_root.gotmolo == true)) {
selectedweapon = 4;
time2shoot = 6;
currentammo = _root.molotovs;
_root["newbullet" + bc].spd = 40;
}
if ((Key.isDown(39) and Key.isDown(38)) and (_root.gotcat == true)) {
selectedweapon = 4;
time2shoot = 10;
currentammo = _root.cats;
_root["newbullet" + bc].spd = 40;
}
if (Key.isDown(40) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(40) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(40) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (Key.isDown(32) and (_root.item == 2)) {
_root["m.bacon"]._x = _root.sign._x;
_root["m.bacon"]._y = _root.sign._y - ((_root.sign._height / 2) + 80);
_root.street.gotoAndStop(2);
_root["m.bacon"].play();
}
if (Key.isDown(32) and (_root.item == 3)) {
_root.hitler.active = true;
_root.hitler._y = 249;
_root.item = 1;
_root.sounds.gotoAndStop(9);
}
if (Key.isDown(32) and (_root.item == 4)) {
_root.shield._x = _root.sign._x;
_root.shield = true;
_root.item = 1;
}
if (_root.shield == true) {
_root.defense = _root.defense + 3;
}
if (_root.defense > _root.deflimit) {
_root.defense = _root.deflimit;
}
if (gethandicaped == true) {
_root.handi._x = _root.sign._x;
_root.handi.activated = true;
gethandicaped = false;
}
if (_root.hp <= 0) {
gameover = true;
}
if ((gameover == true) and (_root.lives > 0)) {
gameover = false;
_root.hp = 600;
_root.lives = _root.lives - 1;
_root.sounds.gotoAndPlay(14);
}
if ((gameover == true) and (_root.lives == 0)) {
_root.dungus._y = _root.dungus._y - 20;
_root.dungus._rotation = _root.dungus._rotation - 10;
_root.arm._y = _root.arm._y - 20;
_root.arm._rotation = _root.arm._rotation - 10;
_root.sign._x = _root.sign._x - 20;
_root.sign._y = _root.sign._y - 30;
_root.sign._rotation = _root.sign._rotation - 10;
_root.gameover._x = 270;
_root.gameover._y = 170;
_root.sounds.gotoAndStop(10);
}
if (((shooting == true) and (currentammo > 0)) and (reload == time2shoot)) {
bc++;
duplicateMovieClip (_root.bullet, "newbullet" + bc, bc);
_root["newbullet" + bc].gotoAndStop(selectedweapon);
reload = 0;
currentammo = currentammo - 1;
if (selectedweapon == 1) {
_root.ninjas = _root.ninjas - 1;
}
if (selectedweapon == 2) {
_root.magammo = _root.magammo - 1;
}
if (selectedweapon == 3) {
_root.paintammo = _root.paintammo - 1;
}
if (selectedweapon == 4) {
_root.molotovs = _root.molotovs - 1;
}
if (selectedweapon == 5) {
_root.cats = _root.cats - 1;
}
if (_root["newbullet" + bc]._currentframe == 1) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 2) {
_root.sounds.gotoAndStop(3);
}
if (_root["newbullet" + bc]._currentframe == 3) {
_root.sounds.gotoAndStop(4);
mycolor = new Color(_root["newbullet" + bc]);
mycolor.setTransform({rb:int(Math.random() * 255), bb:int(Math.random() * 255), gb:int(Math.random() * 255)});
}
if (_root["newbullet" + bc]._currentframe == 4) {
_root.sounds.gotoAndStop(2);
}
if (_root["newbullet" + bc]._currentframe == 5) {
_root.sounds.gotoAndStop(6);
}
}
}
Instance of Symbol 109 MovieClip "hand" in Frame 174
onClipEvent (load) {
go = false;
dead = false;
life = 1000;
dx = 10;
vel = 3;
dy = 15;
}
onClipEvent (enterFrame) {
if (go == false) {
this._y = this._y + 5;
if (this._y >= 150) {
go = true;
}
}
if (go == true) {
this._x = this._x + dx;
this._y = this._y + dy;
dy = dy - vel;
if (this._x <= 70) {
dx = dx * -1;
}
if (this._x >= 470) {
dx = dx * -1;
}
if (dy <= -20) {
vel = vel * -1;
}
if (dy >= 20) {
vel = vel * -1;
}
if (this.hitTest(_root["newbullet" + _root.timer.bc])) {
_root["newbullet" + _root.timer.bc].spd = _root["newbullet" + _root.timer.bc].spd * -1;
}
}
}
Instance of Symbol 487 MovieClip in Frame 175
onClipEvent (enterFrame) {
gotoAndStop (70);
}
Instance of Symbol 104 MovieClip "hitler" in Frame 289
onClipEvent (load) {
active = false;
dx = 50;
go = true;
left = true;
}
onClipEvent (enterFrame) {
if (active == true) {
this._x = this._x - dx;
if (go == true) {
if (this._x < -600) {
timetogo = 0;
left = false;
dx = dx * -1;
this._xscale = -Math.abs(this._xscale);
}
if (this._x > 950) {
timetogo = 0;
left = true;
dx = dx * -1;
this._xscale = Math.abs(this._xscale);
}
if ((this._x == 0) and (left == false)) {
_root.sounds.gotoAndStop(9);
}
if ((this._x == 600) and (left == true)) {
_root.sounds.gotoAndStop(9);
}
}
}
}
Instance of Symbol 191 MovieClip "handi" in Frame 337
onClipEvent (load) {
dy = 16;
dx = 5;
leftwall = 200;
rightwall = 400;
activated = false;
fired = false;
firerate = 12;
bc = 300;
jump = 10;
}
onClipEvent (enterFrame) {
if (activated == true) {
this._y = this._y + dy;
if (this._x < _root._xmouse) {
this._x = this._x + dx;
this._xscale = -Math.abs(this._xscale);
}
if (this._x > _root._xmouse) {
this._x = this._x - dx;
this._xscale = Math.abs(this._xscale);
}
if (this._x < leftwall) {
this._x = this._x + dx;
_root.handi._x = this._x;
}
if (this._x > rightwall) {
this._x = this._x - dx;
_root.handi._x = this._x;
}
firerate++;
if (firerate >= 12) {
firerate = 12;
}
if (_root._xmouse > this._x) {
this._xscale = -Math.abs(this._xscale);
_root["h.arm"]._xscale = -Math.abs(_root["h.arm"]._yscale);
}
if (_root._xmouse < this._x) {
this._xscale = Math.abs(this._xscale);
_root["h.arm"]._xscale = Math.abs(_root["h.arm"]._yscale);
}
if (((_root.timer.shooting == true) and (fired == false)) and (firerate == 12)) {
bc++;
fired = true;
firerate = 0;
duplicateMovieClip (_root["bullet b"], "newbulletb" + bc, bc);
_root["newbulletb" + bc]._x = this._x;
_root["newbulletb" + bc]._y = this._y - 42;
_root.sounds.gotoAndStop(3);
_root["h.arm"].gotoAndPlay(2);
} else {
fired = false;
}
}
if (_root.timer.gameover == true) {
this._y = this._y - jump;
activated = false;
jump--;
}
}
Instance of Symbol 392 MovieClip "h.arm" in Frame 337
onClipEvent (enterFrame) {
this._x = _root.handi._x;
this._y = _root.handi._y - 25;
xd = _root._xmouse - _x;
yd = _root._ymouse - _y;
radAngle = Math.atan2(yd, xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 344 MovieClip "dungus" in Frame 338
onClipEvent (enterFrame) {
if (_root._xmouse > this._x) {
this._xscale = -Math.abs(this._xscale);
_root.arm._xscale = -Math.abs(_root.arm._yscale);
_root.arm._x = this._x + 5;
}
if (_root._xmouse < this._x) {
this._xscale = Math.abs(this._xscale);
_root.arm._xscale = Math.abs(_root.arm._yscale);
_root.arm._x = this._x - 5;
}
}
Instance of Symbol 344 MovieClip "dungus" in Frame 350
onClipEvent (enterFrame) {
if (_root._xmouse > this._x) {
this._xscale = -Math.abs(this._xscale);
_root.arm._xscale = -Math.abs(_root.arm._yscale);
_root.arm._x = this._x + 5;
}
if (_root._xmouse < this._x) {
this._xscale = Math.abs(this._xscale);
_root.arm._xscale = Math.abs(_root.arm._yscale);
_root.arm._x = this._x - 5;
}
}
Instance of Symbol 191 MovieClip "handi" in Frame 350
onClipEvent (load) {
dy = 16;
dx = 5;
leftwall = 200;
rightwall = 400;
activated = false;
fired = false;
firerate = 12;
bc = 300;
jump = 10;
}
onClipEvent (enterFrame) {
if (activated == true) {
this._y = this._y + dy;
if (this._x < _root._xmouse) {
this._x = this._x + dx;
this._xscale = -Math.abs(this._xscale);
}
if (this._x > _root._xmouse) {
this._x = this._x - dx;
this._xscale = Math.abs(this._xscale);
}
if (this._x < leftwall) {
this._x = this._x + dx;
_root.handi._x = this._x;
}
if (this._x > rightwall) {
this._x = this._x - dx;
_root.handi._x = this._x;
}
firerate++;
if (firerate >= 12) {
firerate = 12;
}
if (_root._xmouse > this._x) {
this._xscale = -Math.abs(this._xscale);
_root["h.arm"]._xscale = -Math.abs(_root["h.arm"]._yscale);
}
if (_root._xmouse < this._x) {
this._xscale = Math.abs(this._xscale);
_root["h.arm"]._xscale = Math.abs(_root["h.arm"]._yscale);
}
if (((_root.timer.shooting == true) and (fired == false)) and (firerate == 12)) {
bc++;
fired = true;
firerate = 0;
duplicateMovieClip (_root["bullet b"], "newbulletb" + bc, bc);
_root["newbulletb" + bc]._x = this._x;
_root["newbulletb" + bc]._y = this._y - 42;
_root.sounds.gotoAndStop(3);
_root["h.arm"].gotoAndPlay(2);
} else {
fired = false;
}
}
if (_root.timer.gameover == true) {
this._y = this._y - jump;
activated = false;
jump--;
}
}
Instance of Symbol 392 MovieClip "h.arm" in Frame 350
onClipEvent (enterFrame) {
this._x = _root.handi._x;
this._y = _root.handi._y - 25;
xd = _root._xmouse - _x;
yd = _root._ymouse - _y;
radAngle = Math.atan2(yd, xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
}
Instance of Symbol 191 MovieClip "handi" in Frame 370
onClipEvent (load) {
dy = 16;
dx = 5;
leftwall = 200;
rightwall = 400;
activated = false;
fired = false;
firerate = 12;
bc = 300;
jump = 10;
}
onClipEvent (enterFrame) {
if (activated == true) {
this._y = this._y + dy;
if (this._x < _root._xmouse) {
this._x = this._x + dx;
this._xscale = -Math.abs(this._xscale);
}
if (this._x > _root._xmouse) {
this._x = this._x - dx;
this._xscale = Math.abs(this._xscale);
}
if (this._x < leftwall) {
this._x = this._x + dx;
_root.handi._x = this._x;
}
if (this._x > rightwall) {
this._x = this._x - dx;
_root.handi._x = this._x;
}
firerate++;
if (firerate >= 12) {
firerate = 12;
}
if (_root._xmouse > this._x) {
this._xscale = -Math.abs(this._xscale);
_root["h.arm"]._xscale = -Math.abs(_root["h.arm"]._yscale);
}
if (_root._xmouse < this._x) {
this._xscale = Math.abs(this._xscale);
_root["h.arm"]._xscale = Math.abs(_root["h.arm"]._yscale);
}
if (((_root.timer.shooting == true) and (fired == false)) and (firerate == 12)) {
bc++;
fired = true;
firerate = 0;
duplicateMovieClip (_root["bullet b"], "newbulletb" + bc, bc);
_root["newbulletb" + bc]._x = this._x;
_root["newbulletb" + bc]._y = this._y - 42;
_root.sounds.gotoAndStop(3);
_root["h.arm"].gotoAndPlay(2);
} else {
fired = false;
}
}
if (_root.timer.gameover == true) {
this._y = this._y - jump;
activated = false;
jump--;
}
}
Frame 430
stop();
Symbol 24 Button
on (release) {
_root.play();
}
Symbol 25 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 25 MovieClip Frame 2
gotoAndPlay (1);
Symbol 41 Button
on (press) {
gotoAndStop ("instruction");
}
Symbol 45 Button
on (press) {
stopAllSounds();
gotoAndPlay (69);
}
Symbol 50 Button
on (press) {
gotoAndStop ("insturctions");
}
Symbol 61 Button
on (press) {
gotoAndStop ("insturctionss");
}
Symbol 74 Button
on (press) {
gotoAndPlay (68);
}
Symbol 80 Button
on (press) {
play();
}
Symbol 84 Button
on (press) {
gotoAndStop ("game");
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 150 Button
on (rollOver) {
_root.desc.gotoAndStop(6);
}
on (press) {
if ((_root.money < 50) and (_root.gotcat == false)) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money < 35) and (_root.gotcat == true)) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money > 35) and (_root.gotcat == true)) {
_root.money = _root.money - 35;
_root.cats = _root.cats + 5;
_root.sounds.gotoAndStop(2);
_root.desc.gotoAndStop(1);
_root.desc.gotoAndStop(6);
}
if ((_root.money > 50) and (_root.gotcat == false)) {
_root.gotcat = true;
_root.cats = _root.cats + 5;
_root.money = _root.money - 50;
_root.sounds.gotoAndStop(2);
_root.desc.gotoAndStop(1);
_root.desc.gotoAndStop(6);
}
}
Symbol 154 MovieClip Frame 1
stop();
Symbol 157 Button
on (rollOver) {
_root.desc.gotoAndStop(3);
}
on (press) {
if ((_root.money < 15) and (_root.gotmag == false)) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money < 7) and (_root.gotmag == true)) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money >= 7) and (_root.gotmag == true)) {
_root.sounds.gotoAndStop(2);
_root.money = _root.money - 7;
_root.magammo = _root.magammo + 15;
_root.desc.gotoAndStop(1);
_root.desc.gotoAndStop(3);
}
if ((_root.actions.money >= 15) and (_root.gotmag == false)) {
_root.gotmag = true;
_root.magammo = _root.magammo + 15;
_root.sounds.gotoAndStop(2);
_root.money = _root.money - 15;
_root.actions.cash = _root.actions.cash - 15;
_root.desc.gotoAndStop(1);
_root.desc.gotoAndStop(3);
}
}
Symbol 171 Button
on (rollOver) {
_root.desc.gotoAndStop(5);
}
on (press) {
if (_root.money < 20) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if (_root.money >= 20) {
_root.money = _root.money - 20;
_root.sounds.gotoAndStop(2);
_root.molotovs = _root.molotovs + 10;
_root.gotmol = true;
_root.desc.gotoAndStop(1);
_root.desc.gotoAndStop(5);
}
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 178 Button
on (rollOver) {
_root.desc.gotoAndStop(4);
}
on (press) {
if ((_root.money < 12) and (_root.gotpaint == true)) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money < 30) and (_root.gotpaint == false)) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money >= 12) and (_root.gotpaint == true)) {
_root.sounds.gotoAndStop(2);
_root.money = _root.money - 12;
_root.actions.cash = _root.actions.cash - 15;
_root.paintammo = _root.paintammo + 30;
_root.desc.gotoAndStop(1);
_root.desc.gotoAndStop(4);
}
if ((_root.money >= 30) and (_root.gotpaint == false)) {
_root.money = _root.money - 30;
_root.actions.cash = _root.actions.cash - 30;
_root.gotpaint = true;
_root.paintammo = _root.paintammo + 30;
_root.sounds.gotoAndStop(2);
_root.desc.gotoAndStop(1);
_root.desc.gotoAndStop(4);
}
}
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 27
this.removeMovieClip();
Symbol 185 Button
on (rollOver) {
_root.desc.gotoAndStop(8);
}
on (rollOut) {
_root.desc.gotoAndStop(7);
}
on (press) {
if (_root.money < 85) {
_root.desc.gotoAndStop(15);
_root.sounds.gotoAndStop(3);
}
if (_root.money >= 85) {
_root.item = 2;
_root.money = _root.money - 85;
_root.sounds.gotoAndStop(2);
}
}
Symbol 189 Button
on (rollOut) {
_root.desc.gotoAndStop(7);
}
on (rollOver) {
_root.desc.gotoAndStop(9);
}
on (press) {
if (_root.money < 80) {
_root.desc.gotoAndStop(15);
_root.sounds.gotoAndStop(3);
}
if (_root.money >= 80) {
_root.item = 3;
_root.money = _root.money - 80;
_root.sounds.gotoAndStop(2);
}
}
Symbol 191 MovieClip Frame 1
stop();
Symbol 195 Button
on (rollOver) {
_root.desc.gotoAndStop(10);
}
on (rollOut) {
_root.desc.gotoAndStop(7);
}
on (press) {
if (_root.money < 100) {
_root.desc.gotoAndStop(15);
_root.sounds.gotoAndStop(3);
}
if (_root.money >= 100) {
_root.handicap = true;
_root.money = _root.money - 100;
_root.sounds.gotoAndStop(2);
}
}
Symbol 201 Button
on (rollOver) {
_root.desc.gotoAndStop(11);
}
on (rollOut) {
_root.desc.gotoAndStop(7);
}
on (press) {
if (_root.money < 90) {
_root.desc.gotoAndStop(15);
_root.sounds.gotoAndStop(3);
}
if (_root.money >= 90) {
_root.item = 4;
_root.money = _root.money - 90;
_root.sounds.gotoAndStop(2);
}
}
Symbol 206 Button
on (rollOver) {
_root.desc.gotoAndStop(12);
}
on (rollOut) {
_root.desc.gotoAndStop(1);
}
on (press) {
if ((_root.money < 60) and (_root.signlevel == 1)) {
_root.sounds.gotoAndPlay(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money < 60) and (_root.signlevel == 0)) {
_root.sounds.gotoAndPlay(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money >= 60) and (_root.signlevel >= 1)) {
_root.sounds.gotoAndStop(4);
_root.desc.gotoAndStop(16);
}
if ((_root.money >= 60) and (_root.signlevel == 0)) {
_root.signlevel = 1;
_root.defense = 3;
_root.deflimit = 6;
_root.money = _root.money - 60;
_root.desc.gotoAndStop(12);
_root.sounds.gotoAndStop(2);
}
}
Symbol 211 Button
on (rollOver) {
_root.desc.gotoAndStop(13);
}
on (rollOut) {
_root.desc.gotoAndStop(1);
}
on (press) {
if ((_root.money < 75) and (_root.signlevel == 0)) {
_root.sounds.gotoAndPlay(4);
_root.desc.gotoAndStop(19);
}
if ((_root.money >= 75) and (_root.signlevel == 0)) {
_root.sounds.gotoAndPlay(4);
_root.desc.gotoAndStop(19);
}
if ((_root.money < 75) and (_root.signlevel == 1)) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money >= 75) and (_root.signlevel >= 2)) {
_root.sounds.gotoAndStop(4);
_root.desc.gotoAndStop(16);
}
if ((_root.money >= 75) and (_root.signlevel == 1)) {
_root.signlevel = 2;
_root.defense = 5;
_root.deflimit = 8;
_root.money = _root.money - 75;
_root.desc.gotoAndStop(13);
_root.sounds.gotoAndStop(2);
}
}
Symbol 216 Button
on (rollOver) {
_root.desc.gotoAndStop(14);
}
on (rollOut) {
_root.desc.gotoAndStop(1);
}
on (press) {
if ((_root.money < 80) and (_root.signlevel < 2)) {
_root.sounds.gotoAndPlay(4);
_root.desc.gotoAndStop(19);
}
if ((_root.money >= 80) and (_root.signlevel < 2)) {
_root.sounds.gotoAndStop(4);
_root.desc.gotoAndStop(19);
}
if ((_root.money >= 80) and (_root.signlevel == 3)) {
_root.sounds.gotoAndStop(4);
_root.desc.gotoAndStop(16);
}
if ((_root.money <= 80) and (_root.signlevel == 3)) {
_root.sounds.gotoAndStop(4);
_root.desc.gotoAndStop(16);
}
if ((_root.money < 80) and (_root.signlevel == 2)) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money >= 80) and (_root.signlevel == 2)) {
_root.signlevel = 3;
_root.defense = 7;
_root.deflimit = 10;
_root.money = _root.money - 80;
_root.desc.gotoAndStop(14);
_root.sounds.gotoAndStop(2);
}
}
Symbol 221 Button
on (rollOver) {
_root.desc.gotoAndStop(17);
}
on (rollOut) {
_root.desc.gotoAndStop(1);
}
on (press) {
if (_root.money < 10) {
_root.sounds.gotoAndPlay(3);
_root.desc.gotoAndStop(15);
}
if ((_root.money >= 10) and (_root.hp < 600)) {
_root.money = _root.money - 10;
_root.hp = _root.hp + 50;
_root.sounds.gotoAndStop(2);
}
if ((_root.money > 10) and (_root.hp >= 600)) {
_root.sounds.gotoAndStop(4);
_root.desc.gotoAndStop(18);
}
if (_root.hp > 600) {
_root.hp = 600;
}
}
Symbol 226 Button
on (rollOver) {
_root.desc.gotoAndStop(20);
}
on (rollOut) {
_root.desc.gotoAndStop(1);
}
on (press) {
if (_root.money >= 80) {
_root.sounds.gotoAndStop(2);
_root.money = _root.money - 80;
_root.lives = _root.lives + 1;
}
if (_root.money < 80) {
_root.sounds.gotoAndStop(3);
_root.desc.gotoAndStop(15);
}
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 293 Button
on (press) {
_root["s.menu"].gotoAndStop(2);
_root.desc.gotoAndStop(7);
}
Symbol 297 Button
on (press) {
_root["s.menu"].gotoAndStop(3);
}
Symbol 301 Button
on (press) {
_root["s.menu"].gotoAndStop(1);
}
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 2
gotoAndStop (1);
Symbol 305 MovieClip Frame 3
gotoAndStop (1);
Symbol 312 Button
on (press) {
if (_root.level == 20) {
stopAllSounds();
}
_root.gotoAndStop("level " + _root.level);
}
Symbol 322 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Instance of Symbol 13 MovieClip [star] "star" in Symbol 342 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop (1);
}
Instance of Symbol 154 MovieClip in Symbol 342 MovieClip Frame 4
onClipEvent (enterFrame) {
gotoAndStop (2);
}
Instance of Symbol 175 MovieClip in Symbol 342 MovieClip Frame 6
onClipEvent (enterFrame) {
gotoAndStop (2);
}
Instance of Symbol 147 MovieClip in Symbol 342 MovieClip Frame 10
onClipEvent (enterFrame) {
gotoAndStop (2);
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
gotoAndStop (1);
Symbol 365 MovieClip Frame 3
gotoAndStop (1);
Symbol 365 MovieClip Frame 4
gotoAndStop (1);
Symbol 365 MovieClip Frame 5
gotoAndStop (1);
Symbol 365 MovieClip Frame 6
gotoAndStop (1);
Symbol 365 MovieClip Frame 7
gotoAndStop (1);
Symbol 365 MovieClip Frame 8
gotoAndStop (1);
Symbol 365 MovieClip Frame 9
gotoAndStop (1);
Symbol 365 MovieClip Frame 11
gotoAndStop (1);
Symbol 365 MovieClip Frame 12
gotoAndStop (1);
Symbol 383 Button
on (press) {
_root.timer.gameover = false;
_root.money = 50;
_root.level = 1;
_root.hp = 600;
_root.lives = 2;
_root.handicaped = false;
Mouse.show();
e = 200;
while (e < 250) {
removeMovieClip(_root["newenemy" + e]);
e++;
}
_root.gotoAndStop("shop");
}
Symbol 390 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
stop();
Instance of Symbol 154 MovieClip in Symbol 392 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(2);
}
Instance of Symbol 154 MovieClip in Symbol 392 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(2);
}
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
stop();
Symbol 421 MovieClip Frame 1
stop();
Symbol 506 Button
on (press) {
stopAllSounds();
gotoAndPlay (70);
}