Frame 1
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 5
stop();
Frame 6
stop();
stopAllSounds();
riff = new Sound();
riff.attachSound("menuTheme");
riff.start();
riff.onSoundComplete = function () {
riff.start();
};
Frame 7
textFields = "Hello my friends! I have a tale to share with you all!";
Frame 85
textFields = "So it was Valentines Day right, and I was just taking my girlfriend shopping";
Frame 175
textFields = "When we got to the Mall, she said she had a surprise for me";
Frame 247
textFields = "She got me the 4700 super carborator chainsaw I always wanted";
Frame 338
textFields = "A wierd Valentines Day gift, but nice none-the-less";
Frame 415
textFields = "All I got her was a box of chocolates, a flower, and the fucking neckless I stole from my neighbor.";
Frame 516
textFields = "Now normally this would be enough for me to fuck her";
Frame 591
textFields = "but out of nowhere an army of teddy bears just breaks into the mall,";
Frame 655
textFields = "Being led by some jackass who calls himself The TeddyNator...";
Frame 711
textFields = "";
Frame 727
textFields = "I'm the TeddyNator and I'm going to do something...something really bad";
Frame 847
textFields = "**SHOOOTS GUNS***";
Frame 856
textFields = "Take that Bitch!!!!";
Frame 894
textFields = "Shit! Who am I suppose to fuck now?!! You'll pay for this!";
Frame 1000
textFields = "and just as I was about to cut him up with my chainsaw";
Frame 1052
textFields = "that fucker shot me with some shrink gun and threw my ass in the Snowy Mountain Display";
Frame 1147
textFields = "but that idiot also shot some of his henchmen! One of them Dropped a gun on the highest peak!";
Frame 1245
textFields = "";
Frame 1256
stopAllSounds();
_root.riff.start();
_root.riff.onSoundComplete = function () {
_root.riff.start();
};
gotoAndPlay ("loadEngine");
Frame 1257
textFields = "After I shot myself with that stupid shrink gun of theirs I became my normal size again";
Frame 1354
textFields = "climbed out of the Mountain Display only to see that TeddyNator wasnt there,";
Frame 1441
textFields = "but he sure left a lot of his henchment behind!";
Frame 1498
_root.riff.start();
_root.riff.onSoundComplete = function () {
_root.riff.start();
};
gotoAndStop ("upgrade");
Frame 1499
textFields = "After dealing the final blow to the final henchmen at the mall";
Frame 1567
textFields = "I grabbed him by his neck and forced a candel up his ass,";
Frame 1637
textFields = "after that I remebered that I needed to ask him where the TeddyNator Hideout was";
Frame 1732
textFields = "You...you have to take I...I 35 south, take the the..the Evil exit 27";
Frame 1877
textFields = "take a right, go half a mile until you get to Teddy street,";
Frame 1969
textFields = "take a left and go .3 miles north, its the giant building shaped like my penis";
Frame 2105
textFields = "So I took I 35 south, took the evil exit 27, took a right, went half a mile to teddy st";
Frame 2252
textFields = "I almost went .4 miles north, but I backed up and took a left,";
Frame 2333
textFields = "turns out he lied to me, it was shaped like his friends penis";
Frame 2442
_root.riff.start();
_root.riff.onSoundComplete = function () {
_root.riff.start();
};
gotoAndStop ("upgrade");
Frame 2443
textFields = "So it came down to the final showdown, between me, and the Teddynator";
Frame 2522
textFields = "I was pissed cause he killed my fuck mate, and I had noone left to fuck";
Frame 2607
textFields = "which is pretty much the point of a fuck mate";
Frame 2656
textFields = "I had to teach this prick a lesson once and for all";
Frame 2756
textFields = "I'm your FATHA!";
Frame 2805
textFields = "What?";
Frame 2821
textFields = "I'm your fATHA!";
Frame 2868
textFields = "I dont know what the fuck you're saying!";
Frame 2906
textFields = "I'M YOUR FATHAAA!";
Frame 2963
textFields = "Jesus fucking christ! Take some speech lessons you fucking idiot!";
Frame 3044
_root.riff.start();
_root.riff.onSoundComplete = function () {
_root.riff.start();
};
gotoAndStop ("upgrade");
Frame 3045
stop();
_root.riff.start();
riff.onSoundComplete = function () {
riff.start();
};
Frame 3046
function functions() {
if (gamePause == false) {
_root.refreshStuff();
_root.controlCam();
_root.enemyAI();
_root.daveFunction();
}
}
function addScore() {
pheart.start();
score = score + 20;
}
function resetDave() {
dave._x = 206;
dave._y = 311;
camera._x = 300;
camera._y = 200;
}
function addScore2() {
redheart.start();
score = score + 50;
}
function refreshStuff() {
if (dave._x > pointToPass) {
nextFrame();
}
}
function daveFunction() {
if (Key.isDown(39)) {
_root.walkRight();
if ((dave._currentframe != 6) and (dave._currentframe != 7)) {
_root.moveRight();
}
} else if (Key.isDown(37)) {
_root.walkLeft();
if ((dave._currentframe != 6) and (dave._currentframe != 7)) {
_root.moveLeft();
}
}
if ((Key.isDown(83) or Key.isDown(68)) and (dave._currentframe <= 4)) {
dave.gotoAndStop(6);
}
if (!dave.hitTest(bg)) {
camera.gotoAndStop(2);
gamePause = true;
}
if ((Key.isDown(38) and (dave.jumping == false)) and (dave._currentframe != 8)) {
dave.jh = 45;
dave.gotoAndStop("jump");
dave.jumping = true;
}
if (Key.isDown(65) and (dave.jumping == false)) {
dave.gotoAndStop("saw");
}
jump();
}
function moveRight() {
if ((enemyLeft > 0) and (atStart == false)) {
startAttackTheme();
}
if ((!bg.collision.hitTest(dave._x + 30, dave._y - 10, true)) and (dave._currentframe != 8)) {
dave._x = dave._x + speed;
}
}
function moveLeft() {
if ((enemyLeft > 0) and (atStart == false)) {
startAttackTheme();
}
if ((!bg.collision.hitTest(dave._x - 30, dave._y - 10, true)) and (dave._currentframe != 8)) {
dave._x = dave._x - speed;
}
}
function walkRight() {
if (_root.dave._currentframe <= 4) {
dave.gotoAndPlay("run");
}
if (dave._currentframe != 8) {
dave._xscale = 100;
}
}
function walkLeft() {
if (_root.dave._currentframe <= 4) {
dave.gotoAndPlay("run");
}
if (dave._currentframe != 8) {
dave._xscale = -100;
}
}
function jump() {
if (dave.jumping == true) {
dave.jh = dave.jh - 4;
if (dave.jh <= -20) {
dave.jh = -15;
}
dave._y = dave._y - dave.jh;
}
if (_root.bg.collision.hitTest(dave._x, dave._y + 10, true)) {
dave.jumping = false;
dspd = 0;
dave.jh = 0;
tims = 0;
} else if (!_root.bg.collision.hitTest(dave._x, dave._y + 15, true)) {
if (dspd < 20) {
dspd = dspd + 2;
}
tims++;
if ((tims >= 25) and (dave.jumping == false)) {
dave.gotoAndStop("jump");
}
dave._y = dave._y + dspd;
}
if (bg.collision.hitTest(dave._x, dave._y + 3, true)) {
dave._y = dave._y - 5;
}
}
function controlCam() {
if (_root.dave._xscale > 0) {
distance = dave._x - (camera._x - camDistance);
if ((_root.camera._x < (_root.dave._x + camDistance)) and (!_root.camera.hitTest(_root.bg.camstop2))) {
_root.camera._x = _root.camera._x + (distance / 10);
}
} else if (_root.dave._xscale < 0) {
distance = (camera._x + camDistance) - dave._x;
if ((_root.camera._x > (_root.dave._x - camDistance)) and (!_root.camera.hitTest(_root.bg.camstop))) {
_root.camera._x = _root.camera._x - (distance / 10);
}
}
if (dave._y < (camera._y + (camreduction / 3))) {
camera._y = camera._y - (speed + 5);
} else if (camera._y < (dave._y - (camreduction * 1.5))) {
camera._y = camera._y + (((dave._y - 70) - camera._y) / 5);
}
}
function pauseEnemies() {
i = 1;
while (i < maxEnemy) {
this["enemy" + i].stop();
i++;
}
dave.dave.stop();
}
function animateEnemies() {
i = 1;
while (i < maxEnemy) {
if (this["enemy" + i].dead == false) {
this["enemy" + i].play();
}
i++;
}
dave.dave.play();
}
function getTarget() {
a = 400;
if (enemyLeft > 0) {
if (dave._xscale > 0) {
i3 = 1;
while (i3 < maxEnemy) {
i2 = a;
while (i2 > 40) {
if ((((this["enemy" + i3]._x - dave._x) < a) and ((this["enemy" + i3]._x - dave._x) > 0)) and (this["enemy" + i3].dead == false)) {
a = this["enemy" + i3]._x - dave._x;
starget = this["enemy" + i3];
}
i2 = i2 - 15;
}
i3++;
}
} else if (dave._xscale < 0) {
i3 = 1;
while (i3 < maxEnemy) {
i2 = a;
while (i2 > 40) {
if ((((dave._x - this["enemy" + i3]._x) < a) and ((dave._x - this["enemy" + i3]._x) > 0)) and (this["enemy" + i3].dead == false)) {
a = dave._x - this["enemy" + i3]._x;
starget = this["enemy" + i3];
}
i2 = i2 - 15;
}
i3++;
}
}
}
}
function pushEnemy() {
i4 = 1;
while (i4 < maxEnemy) {
if ((this["enemy" + i4].hit == true) and (!bg.collision.hitTest(this["enemy" + i4]._x + (this["enemy" + i4]._xscale / 1.5), this["enemy" + i4]._y - 40, true))) {
this["enemy" + i4]._x = this["enemy" + i4]._x + (this["enemy" + i4]._xscale / 2);
}
i4++;
}
}
function pushDave() {
if (dave._xscale > 0) {
moveLeft();
moveLeft();
moveLeft();
if (!_root.camera.hitTest(_root.bg.camstop)) {
camera._x = camera._x - (speed * 2);
}
} else {
moveRight();
moveRight();
moveRight();
if (!_root.camera.hitTest(_root.bg.camstop2)) {
camera._x = camera._x + (speed * 2);
}
}
}
function hitDave() {
if (health > 0) {
pushDave();
camera.blood.play();
health = health - enemyDamage;
dave.gotoAndStop("hurt");
if (dave.dave._currentframe < 18) {
dave.dave.gotoAndPlay("hit1");
playHit();
}
if (health <= 0) {
camera.gotoAndPlay("died");
}
} else if ((health <= 0) and (camera._currentframe == 1)) {
camera.gotoAndPlay("died");
}
}
function enemyAI() {
i = 1;
while (i < maxEnemy) {
if (bg.collision.hitTest(this["enemy" + i]._x, this["enemy" + i]._y + 10, true)) {
accel = 0;
this["enemy" + i]._y = this["enemy" + i]._y - 5;
} else if (!bg.collision.hitTest(this["enemy" + i]._x, this["enemy" + i]._y + 20, true)) {
if (accel < 20) {
accel++;
}
this["enemy" + i]._y = this["enemy" + i]._y + accel;
}
if (this["enemy" + i]._xscale == dave._xscale) {
if ((((this["enemy" + i].hit == false) and this["enemy" + i].hitTest(dave)) and (this["enemy" + i].dead == false)) and (attacking == true)) {
this["enemy" + i].gotoAndPlay("hit1");
this["enemy" + i].hit = true;
pushEnemy();
}
if (this["enemy" + i]._y > levelDepth) {
this["enemy" + i].gotoAndStop("dead");
}
if (((starget.hitTest(dave) and (starget.dead == false)) and (chainsawing == true)) and ((starget.dizzy == true) or (chainsawPower >= starget.cp))) {
starget.gotoAndPlay(dave.dave._currentframe + starget.frameDifference);
starget._x = dave._x + ((dave._xscale / 2) + (dave._xscale / 10));
starget._y = dave._y;
starget.hit = true;
} else if (((starget.dizzy == false) and (chainsawing == true)) and starget.hitTest(dave)) {
if (starget.hit == false) {
starget.gotoAndPlay("repell");
dave.gotoAndStop("saw");
dave.dave.gotoAndPlay("failed");
}
starget._x = dave._x + ((dave._xscale / 2) + (dave._xscale / 10));
starget._y = dave._y;
starget.hit = true;
}
}
if (Math.abs(this["enemy" + i]._x - dave._x) < enemyRange) {
if ((((Math.abs(this["enemy" + i]._x - dave._x) > 80) and (this["enemy" + i].dead == false)) and (this["enemy" + i].dizzy == false)) and (!bg.collision.hitTest(this["enemy" + i]._x - (this["enemy" + i]._xscale / 1.5), this["enemy" + i]._y - 40, true))) {
this["enemy" + i]._x = this["enemy" + i]._x - ((this["enemy" + i]._x - dave._x) / 65);
}
}
if (this["enemy" + i].hit == false) {
if (this["enemy" + i]._x < dave._x) {
this["enemy" + i]._xscale = -100;
} else {
this["enemy" + i]._xscale = 100;
}
}
i++;
}
}
function createEnemy(enemytype) {
i3 = 1;
while (i3 < maxEnemy) {
numEnemy++;
this["enemy" + i3]._xscale = 100;
this["enemy" + i3]._y = camera._y + 150;
this["enemy" + i3]._x = (camera._x - 500) + random(1000);
i3++;
}
}
function respawnEnemy() {
i3 = 1;
while (i3 < maxEnemy) {
if (this["enemy" + i3].dead == true) {
this["enemy" + i3].gotoAndPlay("respawn");
this["enemy" + i3]._x = respawnX;
this["enemy" + i3]._y = respawnY;
}
i3++;
}
}
function killedEnemies() {
i3 = 1;
while (i3 < maxEnemy) {
this["enemy" + i3].dead = true;
this["enemy" + i3].gotoAndStop("dead");
enemyLeft = 0;
i3++;
}
}
function killedEnemy() {
enemyLeft--;
score = score + (enemyDamage * 5);
if ((enemyLeft <= 0) and (atStart == true)) {
stopAttackTheme();
}
if (enemyLeft >= numEnemy) {
respawnEnemy();
}
}
function qualityCheck() {
if (enemyLeft <= 0) {
_quality = bestQuality;
} else {
_quality = "LOW";
}
}
function heal() {
health = health + (maxHealth * 0.25);
if (health > maxHealth) {
health = maxHealth;
}
heals.start();
}
function openWindow() {
camera.textfield.gotoAndStop("something");
}
function nextCode() {
if (convers < maxConvers) {
convers++;
openNextWindow();
} else {
convers = 0;
i = 0;
while (i <= maxConvers) {
(delete conversation) + i;
(delete person) + i;
i++;
}
}
}
function openNextWindow() {
openWindow();
if (convers == 0) {
camera.textfield.text = conversation0;
} else if (convers == 1) {
camera.textfield.text = conversation1;
} else if (convers == 2) {
camera.textfield.text = conversation2;
} else if (convers == 3) {
camera.textfield.text = conversation3;
} else if (convers == 4) {
camera.textfield.text = conversation4;
} else if (convers == 5) {
camera.textfield.text = conversation5;
} else if (convers == 6) {
camera.textfield.text = conversation6;
}
}
function chooseFleshSound() {
g = random(3);
if (g == 1) {
fleshrip.start();
} else {
fleshrip2.start();
}
}
function stopSaw() {
cs.stop();
cs2.stop();
}
function startAttackTheme() {
atStart = true;
beat.start();
atheme.start();
theme.setVolume(50);
atheme.onSoundComplete = function () {
atheme.start();
};
}
function stopAttackTheme() {
atStart = false;
atheme.stop();
theme.setVolume(100);
beat.start();
}
function playHit() {
g = random(3);
if (g == 1) {
_root.hit.start();
} else {
_root.hit2.start();
}
}
function hitMetal() {
hm.start();
}
var speed = 14;
var gamePause = false;
dave.jumping = true;
dave.jumping = false;
chainsawPower = 100;
points = 0;
maxHealth = 100;
hpointsRequired = 500;
sawpointsRequired = 1000;
bestQuality = "HIGH";
atStart = false;
level = 1;
score = 0;
_root.chainsawing = false;
convers = 0;
maxConvers = 3;
ld = 1;
maxEnemy = 4;
camDistance = 150;
var originalspeed = 14;
var speeddecrease = 5;
sp = speed - speeddecrease;
camreduction = 100;
var gothit = false;
var health = 100;
var difficulty = 1;
var enemyDamage = 5;
theme = new Sound(bg);
theme.attachSound("theme1");
atheme = new Sound(dave);
atheme.attachSound("attack1");
beat = new Sound();
beat.attachSound("beats");
heals = new Sound();
heals.attachSound("heal");
punch1 = new Sound();
punch1.attachSound("punch1");
punch2 = new Sound();
punch2.attachSound("punch2");
punch3 = new Sound();
punch3.attachSound("punch3");
hit = new Sound();
hit.attachSound("hit");
hit2 = new Sound();
hit2.attachSound("hit1");
hm = new Sound();
hm.attachSound("hitMetal");
cs = new Sound(dave.dave);
cs.attachSound("chainsaw");
cs2 = new Sound(camera);
cs2.attachSound("chainsaw2");
flesh = new Sound();
flesh.attachSound("flesh");
fleshrip = new Sound();
fleshrip.attachSound("fleshrip");
fleshrip2 = new Sound();
fleshrip2.attachSound("fleshrip2");
redheart = new Sound();
redheart.attachSound("redheart");
pheart = new Sound();
pheart.attachSound("purpleheart");
gotoAndStop (3048);
Frame 3047
stop();
Frame 3048
stop();
if (level == 1) {
levelTitle = "Snowy Mountains";
} else if (level == 2) {
levelTitle = "Snowy Mountains 2";
} else if (level == 3) {
levelTitle = "The Mall";
} else if (level == 4) {
levelTitle = "Ted'Nators Hideout";
} else if (level == 5) {
levelTitle = "Ted'Nators Hideout 2";
} else if (level == 6) {
levelTitle = "Final Battle";
}
Frame 3049
function chooseFleshSound() {
g = random(3);
if (g == 1) {
fleshrip.start();
} else {
fleshrip2.start();
}
}
function stopSaw() {
cs.stop();
cs2.stop();
}
function startAttackTheme() {
atStart = true;
beat.start();
atheme.start();
theme.setVolume(50);
atheme.onSoundComplete = function () {
atheme.start();
};
}
function stopAttackTheme() {
atStart = false;
atheme.stop();
theme.setVolume(100);
beat.start();
}
function playHit() {
g = random(3);
if (g == 1) {
_root.hit.start();
} else {
_root.hit2.start();
}
}
function hitMetal() {
hm.start();
}
stop();
theme = new Sound(bg);
theme.attachSound("theme1");
atheme = new Sound(dave);
atheme.attachSound("attack1");
beat = new Sound();
beat.attachSound("beats");
heals = new Sound();
heals.attachSound("heal");
punch1 = new Sound();
punch1.attachSound("punch1");
punch2 = new Sound();
punch2.attachSound("punch2");
punch3 = new Sound();
punch3.attachSound("punch3");
hit = new Sound();
hit.attachSound("hit");
hit2 = new Sound();
hit2.attachSound("hit1");
hm = new Sound();
hm.attachSound("hitMetal");
cs = new Sound(dave.dave);
cs.attachSound("chainsaw");
cs2 = new Sound(camera);
cs2.attachSound("chainsaw2");
flesh = new Sound();
flesh.attachSound("flesh");
fleshrip = new Sound();
fleshrip.attachSound("fleshrip");
fleshrip2 = new Sound();
fleshrip2.attachSound("fleshrip2");
redheart = new Sound();
redheart.attachSound("redheart");
pheart = new Sound();
pheart.attachSound("purpleheart");
coolRiff = new Sound();
coolRiff.attachSound("coolRiff");
level = 1;
theme.start();
theme.onSoundComplete = function () {
theme.start(24.05);
};
maxConvers = 3;
convers = 0;
conversation0 = "Your health is displayed on the upper left corner of the screen and your score is displayed on the upper right";
conversation1 = "Use the LEFT and RIGHT Arrow Keys to move";
conversation2 = "Use the S or D keys to punch and kick things, like the box in front of you, pressing S/D repeatedly will create combos";
conversation3 = "Use the UP arrow Key to Jump";
openNextWindow();
levelDepth = 2500;
numEnemy = 1;
enemyLeft = 0;
damage = 0;
enemyRange = 600;
pointToPass = dave._x + 1000;
fg._x = bg._x + 1090;
fg._y = bg._y - 180;
health = maxHealth;
points = score;
Instance of Symbol 472 MovieClip "camera" in Frame 3049
onClipEvent (load) {
_root.camera._y = _root.dave._y - _root.camreduction;
zoomSpeed = 4;
}
onClipEvent (enterFrame) {
_root.functions();
}
Frame 3050
function refreshStuff() {
if (enemyLeft <= 0) {
nextFrame();
}
}
stop();
maxConvers = 2;
convers = 0;
enemyLeft = 1;
enemy1._y = bg._y - 100;
enemy1._x = bg._x + 375;
respawnX = enemy1._x;
respawnY = enemy1._y;
conversation0 = "Use the S or D keys to attack the Enemy";
conversation1 = "Once the Enemy is knocked unconcious press the A key to use your chainsaw";
conversation2 = "You can also use your chainsaw to cut obstacles in your way";
openNextWindow();
Frame 3051
function refreshStuff() {
if (dave._x > pointToPass) {
nextFrame();
}
}
stop();
pointToPass = pointToPass + 1600;
enemyLeft = 0;
maxConvers = 0;
convers = 0;
conversation0 = "Press A to cut the metal bar with your saw!";
openNextWindow();
Frame 3052
pointToPass = pointToPass + 1000;
maxConvers = 0;
convers = 0;
conversation0 = "Use the S or D keys to knock the Bridge down";
openNextWindow();
stop();
Frame 3053
pointToPass = pointToPass + 1000;
enemyLeft = 1;
camera.textfield.gotoAndStop(1);
enemy1.gotoAndPlay("respawn");
enemy1._y = bg._y - 45;
enemy1._x = bg._x + 2327;
stop();
Frame 3054
pointToPass = pointToPass + 1000;
maxConvers = 0;
convers = 0;
conversation0 = "Press A to cut the rope with your chainsaw";
openNextWindow();
stop();
Frame 3055
function refreshStuff() {
if ((dave._x < pointToPass) and (dave._y > yToPass)) {
nextFrame();
}
}
stop();
pointToPass = pointToPass - 300;
yToPass = bg._y + 100;
bg.gotoAndStop(2);
camera.textfield.gotoAndStop(1);
enemy2.dead = false;
enemy2.health = 100;
enemy2.gotoAndPlay(1);
respawnX = bg._x + 2909;
respawnY = bg._y + 496;
enemy2._x = bg._x + 2909;
enemy2._y = bg._y + 496;
Frame 3056
stop();
pointToPass = pointToPass - 100000;
yToPass = bg._y + 100;
enemyLeft = 2;
numEnemy = 1;
Frame 3057
function refreshStuff() {
if ((dave._x > pointToPass) and (dave._y < yToPass)) {
nextFrame();
}
}
stop();
level = 2;
enemyRange = 800;
bg._x = 250;
bg._y = 340;
resetDave();
yToPass = bg._y + 1000;
levelDepth = 4000;
pointToPass = bg._x + 500;
enemyLeft = 0;
stopAttackTheme();
fg._x = bg._x + 2515;
fg._y = bg._y + 104;
health = maxHealth;
points = score;
theme.attachSound("theme3");
theme.start();
theme.onSoundComplete = function () {
theme.start();
};
Frame 3058
stop();
pointToPass = pointToPass + 2000;
enemyLeft = 1;
enemy2.gotoAndPlay("respawn");
enemy2._x = bg._x + 800;
enemy2._y = bg._y + 100;
Frame 3059
stop();
pointToPass = pointToPass + 1000;
yToPass = bg._y - 1400;
enemyLeft = 4;
numEnemy = 2;
respawnX = bg._x + 3300;
respawnY = bg._y + 310;
enemy3._x = bg._x + 3200;
enemy3._y = bg._y + 310;
enemy1._x = bg._x + 3400;
enemy1._y = bg._y + 310;
Frame 3060
function refreshStuff() {
if ((dave._x > pointToPass) and (dave._y > yToPass)) {
nextFrame();
}
}
stop();
pointToPass = pointToPass + 300;
yToPass = bg._y + 100;
numEnemy = 1;
enemyLeft = 2;
enemy1.dead = false;
enemy1.gotoAndPlay("respawn");
respawnX = bg._x + 4064;
respawnY = bg._y - 1770;
enemy1._x = bg._x + 4064;
enemy1._y = bg._y - 1770;
Frame 3061
function refreshStuff() {
if ((dave._x < pointToPass) and (dave._y < yToPass)) {
nextFrame();
}
}
stop();
bg.nextFrame();
pointToPass = bg._x + 7950;
yToPass = bg._y - 800;
enemyLeft = 2;
enemy1.dead = false;
enemy1.gotoAndPlay("respawn");
respawnX = bg._x + 5142;
respawnY = bg._y + 850;
enemy1._x = bg._x + 5142;
enemy1._y = bg._y + 850;
Frame 3062
stop();
pointToPass = pointToPass + 8000;
yToPass = bg._y - 2500;
enemyLeft = 1;
enemy1.dead = false;
enemy1.gotoAndPlay("respawn");
respawnX = bg._x + 7884;
respawnY = bg._y - 845;
enemy1._x = bg._x + 7884;
enemy1._y = bg._y - 845;
Frame 3063
function refreshStuff() {
if ((dave._x > pointToPass) and (enemyLeft <= 0)) {
nextFrame();
}
}
stop();
stop();
pointToPass = bg._x + 400;
enemyRange = 4500;
enemyLeft = 0;
resetDave();
bg._x = 26;
bg._y = dave._y;
fg._x = bg._x + 2371;
fg._y = bg._y + 181;
levelDepth = 3000;
health = maxHealth;
points = score;
maxConvers = 0;
convers = 0;
conversation0 = "Kill all 12 enemies to advance!";
openNextWindow();
level = 3;
atheme.attachSound("a");
theme.attachSound("fastaction");
theme.start();
theme.onSoundComplete = function () {
theme.start();
};
Frame 3064
stop();
pointToPass = bg._x + 3150;
enemyLeft = 3;
numEnemy = 2;
respawnX = bg._x + 1000;
respawnY = bg._y - 10;
enemy1._x = bg._x + 1000;
enemy1._y = bg._y - 10;
enemy2._x = bg._x + 1100;
enemy2._y = bg._y - 10;
Frame 3065
function refreshStuff() {
if (enemyLeft <= 0) {
nextFrame();
}
}
stop();
enemyLeft = 10;
numEnemy = 3;
respawnX = bg._x + 3450;
respawnY = bg._y + 375;
enemy1._x = bg._x + 3450;
enemy1._y = bg._y + 375;
enemy2._x = bg._x + 3550;
enemy2._y = bg._y + 375;
enemy3._x = bg._x + 3650;
enemy3._y = bg._y + 375;
Frame 3066
function refreshStuff() {
if (dave._x > pointToPass) {
nextFrame();
}
}
stop();
camera.gotoAndPlay("win");
pointToPass = bg._x + 30150;
Frame 3067
function refreshStuff() {
if (dave._x > pointToPass) {
nextFrame();
}
}
stop();
enemyLeft = 0;
enemyRange = 700;
resetDave();
bg._x = 26;
bg._y = 338;
fg._x = bg._x + 1631;
fg._y = bg._y - 279;
pointToPass = bg._x + 2400;
levelDepth = 2000;
health = maxHealth;
points = score;
level = 4;
atheme.attachSound("fastaction");
theme.attachSound("theme2");
theme.start();
theme.onSoundComplete = function () {
theme.start();
};
Frame 3068
function refreshStuff() {
if ((dave._x < pointToPass) and (dave._y > yToPass)) {
nextFrame();
}
}
stop();
pointToPass = pointToPass + 200;
yToPass = bg._y + 300;
coolRiff.start();
enemyLeft = 2;
numEnemy = 1;
respawnX = bg._x + 2700;
respawnY = bg._y + 121;
enemy1.gotoAndPlay("respawn");
enemy1._x = bg._x + 2700;
enemy1._y = bg._y + 121;
bg.collision.nextFrame();
Frame 3069
stop();
pointToPass = pointToPass - 20000;
yToPass = bg._y + 300;
enemyLeft = 3;
numEnemy = 1;
respawnX = bg._x + 2700;
respawnY = bg._y + 639;
enemy1.gotoAndPlay("respawn");
enemy1._x = bg._x + 2700;
enemy1._y = bg._y + 639;
Frame 3070
function refreshStuff() {
if ((dave._x > pointToPass) and (dave._y < yToPass)) {
nextFrame();
}
}
stop();
enemyLeft = 0;
enemyRange = 900;
resetDave();
bg._x = 100;
bg._y = 338;
fg._x = bg._x;
fg._y = bg._y;
pointToPass = bg._x + 3744;
yToPass = bg._y + 30;
levelDepth = 1000;
health = maxHealth;
level = 5;
points = score;
theme.attachSound("theme2");
theme.start();
theme.onSoundComplete = function () {
theme.start();
};
Frame 3071
function refreshStuff() {
if ((dave._x > pointToPass) and (dave._y < yToPass)) {
nextFrame();
}
}
stop();
enemyLeft = 3;
numEnemy = 1;
respawnX = bg._x + 4000;
respawnY = bg._y - 20;
enemy1.gotoAndPlay("respawn");
enemy1._x = bg._x + 4000;
enemy1._y = bg._y - 20;
pointToPass = bg._x + 2044;
yToPass = bg._y - 1532;
Frame 3072
function refreshStuff() {
if (((dave._x > pointToPass) and (dave._y < yToPass)) and (enemyLeft == 0)) {
nextFrame();
}
}
stop();
enemyLeft = 2;
numEnemy = 1;
respawnX = bg._x + 2700;
respawnY = bg._y - 1750;
enemy1.gotoAndPlay("respawn");
enemy1._x = bg._x + 2700;
enemy1._y = bg._y - 1750;
pointToPass = bg._x;
yToPass = bg._y;
Frame 3073
stop();
enemyLeft = 0;
bg.nextFrame();
pointToPass = bg._x + 20044;
yToPass = bg._y - 1632;
Frame 3074
function refreshStuff() {
if ((enemyLeft == 0) and (dave._x > pointToPass)) {
nextFrame();
}
}
stop();
enemyLeft = 1;
numEnemy = 1;
enemyRange = 1500;
resetDave();
bg._x = 100;
bg._y = 338;
fg._x = bg._x;
fg._y = bg._y;
enemy1._x = bg._x + 500;
enemy1._y = bg._y - 50;
enemy1.gotoAndPlay("respawn");
pointToPass = dave._x - 1000;
levelDepth = 3000;
health = maxHealth;
points = score;
theend = new Sound();
theend.attachSound("theEnd");
level = 6;
atheme.attachSound("a");
theme.attachSound("fastaction");
theme.start();
theme.onSoundComplete = function () {
theme.start();
};
Frame 3075
stop();
camera.gotoAndPlay("win");
pointToPass = dave._x + 10000;
Symbol 20 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 27 MovieClip Frame 81
_root.play();
_root.play();
Symbol 65 MovieClip Frame 75
_parent.nextFrame();
Symbol 70 MovieClip Frame 30
_parent.nextFrame();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 3
stop();
_root.gotoAndStop("menu");
Symbol 78 Button
on (release) {
stopAllSounds();
gotoAndPlay ("cutscene1");
}
Symbol 87 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 93 Button
on (release) {
getURL ("http://www.backbreakergames.com", "_blank");
}
Symbol 98 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local5 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local5);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local5;
_parent._yscale = 100 * _local4;
_root.camx = _x;
_root.camy = _y;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
stop();
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 293 MovieClip Frame 1
i = 0;
while (i < 25) {
duplicateMovieClip (blood, "bloods" + i, 100 + i);
this["bloods" + i]._x = -20 + random(40);
this["bloods" + i]._y = -10 + random(20);
this["bloods" + i]._xscale = 40 + random(60);
this["bloods" + i]._yscale = 50 + random(50);
this["bloods" + i]._rotation = -30 + random(40);
this["bloods" + i].gotoAndPlay(random(this["bloods" + i]._totalframes));
i++;
}
i = 0;
while (i < 12) {
duplicateMovieClip (chunks, "chunks" + i, 100 + i);
this["chunks" + i]._x = -20 + random(40);
this["chunks" + i]._y = -10 + random(20);
this["chunks" + i]._xscale = 40 + random(60);
this["chunks" + i]._yscale = 50 + random(50);
this["chunks" + i]._rotation = -30 + random(40);
this["chunks" + i].gotoAndPlay(random(this["chunks" + i]._totalframes));
i++;
}
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
if (_root.health == _root.maxHealth) {
prevFrame();
} else {
_root.heal();
}
Symbol 294 MovieClip Frame 10
stop();
Symbol 295 MovieClip Frame 1
collision._visible = false;
Instance of Symbol 294 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 295 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Symbol 306 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 313 Button
on (release) {
if (_root.score > _root.sawpointsRequired) {
_root.chainsawPower = _root.chainsawPower + 100;
_root.score = _root.score - _root.sawpointsRequired;
_root.sawpointsRequired = _root.sawpointsRequired * 2;
}
}
Symbol 316 Button
on (release) {
nextFrame();
}
Symbol 323 Button
on (release) {
if (_root.score > _root.hpointsRequired) {
_root.maxHealth = _root.maxHealth + 10;
_root.score = _root.score - _root.hpointsRequired;
_root.hpointsRequired = _root.hpointsRequired * 1.5;
}
}
Symbol 345 MovieClip Frame 1
stop();
gotoAndStop(_root.level);
Symbol 346 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("level" + level);
}
Symbol 351 Button
on (release) {
_root.prevFrame();
}
Symbol 355 MovieClip Frame 1
stop();
Instance of Symbol 273 MovieClip in Symbol 355 MovieClip Frame 1
onClipEvent (load) {
function playCheck() {
if (health <= 0) {
_parent.play();
} else {
health = health - 5;
}
}
health = 100;
}
onClipEvent (enterFrame) {
if ((_root.attacking == true) and this.hitTest(_root.dave)) {
playCheck();
}
}
Symbol 355 MovieClip Frame 10
stop();
Instance of Symbol 273 MovieClip in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
function moveThis() {
if (_root.dave._xscale > 0) {
if (_x < 250) {
this._x = this._x + 10;
}
} else if (_x > -250) {
this._x = this._x - 10;
}
}
}
onClipEvent (enterFrame) {
if ((_root.attacking == true) and this.hitTest(_root.dave)) {
moveThis();
}
}
Symbol 357 MovieClip Frame 1
stop();
Instance of Symbol 273 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.chainsawing == true) and this.hitTest(_root.dave)) {
_parent.play();
}
}
Symbol 357 MovieClip Frame 10
stop();
Symbol 358 MovieClip Frame 1
stop();
Instance of Symbol 273 MovieClip in Symbol 358 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.chainsawing == true) and this.hitTest(_root.dave)) {
_parent.nextFrame();
}
}
Symbol 358 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 1
stop();
if (health == undefined) {
health = 100;
}
Instance of Symbol 382 MovieClip in Symbol 383 MovieClip Frame 1
onClipEvent (load) {
function playCheck() {
_parent.play();
}
}
onClipEvent (enterFrame) {
if ((_root.attacking == true) and this.hitTest(_root.dave)) {
playCheck();
}
}
Symbol 383 MovieClip Frame 3
_root.hitMetal();
Symbol 383 MovieClip Frame 5
if (health <= 0) {
gotoAndPlay (6);
} else {
health = health - 20;
gotoAndStop (1);
}
Symbol 383 MovieClip Frame 15
stop();
_root.hitMetal();
_root.playHit();
Symbol 394 MovieClip Frame 1
i = 0;
while (i < 20) {
duplicateMovieClip (spark, "sparks" + i, 100 + i);
this["sparks" + i]._x = -20 + random(40);
this["sparks" + i]._y = -10 + random(20);
this["sparks" + i]._xscale = 40 + random(60);
this["sparks" + i]._yscale = 50 + random(50);
this["sparks" + i]._rotation = -30 + random(40);
this["sparks" + i].gotoAndPlay(random(this["sparks" + i]._totalframes));
i++;
}
Symbol 395 MovieClip Frame 1
stop();
Instance of Symbol 385 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.chainsawing == true) and this.hitTest(_root.dave)) {
_parent.play();
}
}
Symbol 395 MovieClip Frame 13
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
_root.hitMetal();
Instance of Symbol 400 MovieClip in Symbol 401 MovieClip Frame 1
onClipEvent (load) {
function moveThis() {
if (_root.dave._xscale > 0) {
if (_x < 250) {
this._x = this._x + 10;
}
} else if (_x > -250) {
this._x = this._x - 10;
}
}
}
onClipEvent (enterFrame) {
if ((_root.attacking == true) and this.hitTest(_root.dave)) {
moveThis();
this.play();
}
}
Symbol 408 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.chainsawing == true) and this.hitTest(_root.dave)) {
_parent.play();
}
}
Symbol 408 MovieClip Frame 2
_root.punch1.start();
Symbol 408 MovieClip Frame 10
stop();
_root.hm.start();
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
_parent.gotoAndStop(21);
}
}
Symbol 414 MovieClip Frame 20
gotoAndPlay (1);
Symbol 414 MovieClip Frame 21
stop();
_root.addScore();
Symbol 419 MovieClip Frame 1
collision._visible = false;
stop();
Instance of Symbol 294 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 416 MovieClip in Symbol 419 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave) and (_root.camera._currentframe == 1)) {
_root.camera.gotoAndPlay("win");
}
}
Symbol 419 MovieClip Frame 2
stop();
Symbol 421 MovieClip Frame 33
gotoAndPlay ("runrepeat");
Symbol 422 MovieClip Frame 5
_root.dave.jh = _root.dave.jh + 10;
Symbol 422 MovieClip Frame 20
stop();
Symbol 425 MovieClip Frame 1
key1 = false;
_root.punch1.start();
Instance of Symbol 424 MovieClip in Symbol 425 MovieClip Frame 3
onClipEvent (enterFrame) {
if (Key.isDown(83) and (_parent.key1 == false)) {
_parent.key2 = false;
_parent.key1 = true;
}
if (Key.isDown(68) and (_parent.key2 == false)) {
_parent.key1 = false;
_parent.key2 = true;
}
}
Symbol 425 MovieClip Frame 5
moveHim();
moveHim();
moveHim();
moveHim();
moveHim();
_root.attacking = true;
Symbol 425 MovieClip Frame 9
if (key2 == true) {
gotoAndPlay ("righthook2");
} else if (key1 == false) {
_parent.gotoAndStop("still");
}
key1 = false;
_root.punch2.start();
_root.attacking = false;
Symbol 425 MovieClip Frame 12
moveHim();
moveHim();
moveHim();
moveHim();
_root.attacking = true;
Symbol 425 MovieClip Frame 16
if (key2 == true) {
gotoAndPlay ("kick2");
} else if (key1 == false) {
_parent.gotoAndStop("still");
}
key1 = false;
_root.attacking = false;
_root.punch3.start();
Symbol 425 MovieClip Frame 20
moveHim();
moveHim();
moveHim();
_root.attacking = true;
Symbol 425 MovieClip Frame 23
_root.attacking = false;
Symbol 425 MovieClip Frame 26
_parent.gotoAndStop("still");
Symbol 425 MovieClip Frame 29
if (key2 == false) {
_parent.gotoAndStop("still");
}
key2 = false;
_root.punch1.start();
_root.punch2.start();
Symbol 425 MovieClip Frame 35
moveHim();
moveHim();
_root.attacking = true;
Symbol 425 MovieClip Frame 38
if (key1 == true) {
gotoAndPlay ("righthook2");
} else if (key2 == false) {
_parent.gotoAndStop("still");
}
key2 = false;
key1 = false;
_root.punch1.start();
_root.punch3.start();
_root.attacking = false;
Symbol 425 MovieClip Frame 41
moveHim();
moveHim();
Symbol 425 MovieClip Frame 42
_root.attacking = true;
Symbol 425 MovieClip Frame 45
_root.attacking = false;
Symbol 425 MovieClip Frame 48
_parent.gotoAndStop("still");
Symbol 434 MovieClip Frame 1
key1 = false;
Symbol 434 MovieClip Frame 2
_root.cs.start();
Symbol 434 MovieClip Frame 4
moveHim();
Symbol 434 MovieClip Frame 8
_root.chainsawing = true;
_root.getTarget();
Instance of Symbol 424 MovieClip in Symbol 434 MovieClip Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(65) and (_parent.key1 == false)) {
_parent.key2 = false;
_parent.key1 = true;
}
}
Symbol 434 MovieClip Frame 32
_root.chainsawing = false;
Symbol 434 MovieClip Frame 36
if (key1 == false) {
gotoAndPlay ("end");
}
Symbol 434 MovieClip Frame 38
moveHim();
moveHim();
_root.cs.start(1);
Symbol 434 MovieClip Frame 41
_root.chainsawing = true;
_root.getTarget();
Symbol 434 MovieClip Frame 50
_root.chainsawing = false;
Symbol 434 MovieClip Frame 57
_parent.gotoAndStop("still");
Symbol 434 MovieClip Frame 58
_root.stopSaw();
_root.cs2.start();
Symbol 434 MovieClip Frame 61
moveHim();
Symbol 434 MovieClip Frame 93
gotoAndPlay ("end");
Symbol 435 MovieClip Frame 1
if (_root.health > 0) {
anim = random(4);
gotoAndPlay("hit" + anim);
} else {
gotoAndPlay ("hit3");
}
_parent.hit = true;
Symbol 435 MovieClip Frame 6
_parent.hit = false;
Symbol 435 MovieClip Frame 10
_parent.gotoAndStop("still");
Symbol 435 MovieClip Frame 11
Symbol 435 MovieClip Frame 16
_parent.hit = false;
Symbol 435 MovieClip Frame 17
_parent.gotoAndStop("still");
Symbol 435 MovieClip Frame 23
_root.pushDave();
Symbol 435 MovieClip Frame 24
_root.pushDave();
Symbol 435 MovieClip Frame 25
_root.pushDave();
Symbol 435 MovieClip Frame 26
_root.pushDave();
Symbol 435 MovieClip Frame 28
_root.pushDave();
Symbol 435 MovieClip Frame 40
if (_root.health > 0) {
play();
} else {
stop();
}
Symbol 435 MovieClip Frame 60
_parent.hit = false;
Symbol 435 MovieClip Frame 63
_parent.gotoAndStop("still");
Symbol 436 MovieClip Frame 1
stop();
_root.stopSaw();
_root.attacking = false;
_root.chainsawing = false;
hit = false;
Symbol 436 MovieClip Frame 2
_root.attacking = false;
hit = false;
Symbol 436 MovieClip Frame 4
gotoAndStop ("still");
Symbol 436 MovieClip Frame 5
stop();
_root.attacking = false;
_root.chainsawing = false;
hit = false;
Instance of Symbol 422 MovieClip "dave" in Symbol 436 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.bg.collision.hitTest(_root.dave._x, _root.dave._y + 20, true)) {
_root.dave.gotoAndStop("still");
}
}
Symbol 436 MovieClip Frame 6
stop();
_root.stopSaw();
_root.chainsawing = false;
hit = false;
Instance of Symbol 425 MovieClip "dave" in Symbol 436 MovieClip Frame 6
onClipEvent (load) {
function moveHim() {
if (_root.dave._xscale > 0) {
_root.moveRight();
} else {
_root.moveLeft();
}
}
key1 = true;
if (Key.isDown(68)) {
key1 = false;
key2 = true;
this.gotoAndPlay("kick");
} else {
key2 = false;
}
}
Symbol 436 MovieClip Frame 7
stop();
hit = false;
Instance of Symbol 434 MovieClip "dave" in Symbol 436 MovieClip Frame 7
onClipEvent (load) {
function moveHim() {
if (_root.dave._xscale > 0) {
_root.moveRight();
} else {
_root.moveLeft();
}
}
}
Symbol 436 MovieClip Frame 8
stop();
_root.stopSaw();
_root.attacking = false;
_root.chainsawing = false;
Symbol 441 MovieClip Frame 1
stop();
Instance of Symbol 385 MovieClip in Symbol 441 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave) and (_root.chainsawing == true)) {
_parent.play();
}
}
Symbol 441 MovieClip Frame 24
stop();
Symbol 447 Button
on (release) {
gotoAndStop ("nothing");
_root.nextCode();
}
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 2
stop();
Symbol 457 Button
on (release, keyPress "q") {
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "HIGH";
}
}
Symbol 460 Button
on (release, keyPress "p") {
if (_root.gamePause == false) {
_root.gamePause = true;
_root.pauseEnemies();
gotoAndStop (2);
this.txt = "Resume";
} else {
_root.gamePause = false;
this.txt = "Pause";
gotoAndStop (1);
_root.animateEnemies();
}
}
Symbol 467 Button
on (release) {
stopAllSounds();
_root.score = _root.points;
_root.riff.start();
_root.riff.onSoundComplete = function () {
_root.riff.start();
};
_root.gamePause = false;
_root.gotoAndStop("levelStart");
}
Symbol 472 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local5 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local5);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local5;
_parent._yscale = 100 * _local4;
_root.camx = _x;
_root.camy = _y;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
stop();
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 472 MovieClip Frame 2
stop();
Symbol 472 MovieClip Frame 21
stop();
stopAllSounds();
if (_root.level == 1) {
_root.level = _root.level + 1;
_root.riff.start();
_root.riff.onSoundComplete = function () {
_root.riff.start();
};
_root.gotoAndStop("upgrade");
} else if (_root.level == 2) {
_root.level = _root.level + 1;
_root.gotoAndPlay("cutscene2");
} else if (_root.level == 3) {
_root.level = _root.level + 1;
_root.gotoAndPlay("cutscene3");
} else if (_root.level == 4) {
_root.level = _root.level + 1;
_root.riff.start();
_root.riff.onSoundComplete = function () {
_root.riff.start();
};
_root.gotoAndStop("upgrade");
} else if (_root.level == 5) {
_root.level = _root.level + 1;
_root.gotoAndPlay("cutscene4");
} else if (_root.level == 6) {
gotoAndPlay ("theEnd");
}
Symbol 472 MovieClip Frame 41
stop();
stopAllSounds();
_root.score = _root.points;
_root.riff.start();
_root.riff.onSoundComplete = function () {
_root.riff.start();
};
_root.gotoAndStop("levelStart");
Symbol 472 MovieClip Frame 61
_root.gotoAndStop("credits");
Symbol 477 MovieClip Frame 1
function addHits() {
if (hits < 4) {
hits++;
}
_root.playHit();
}
function moveHim() {
if (_xscale < 0) {
if (!_root.bg.collision.hitTest(_parent._x + 30, _parent._y - 10, true)) {
_x = (_x + _root.speed);
}
} else if (!_root.bg.collision.hitTest(_parent._x - 30, _parent._y - 10, true)) {
_x = (_x - _root.speed);
}
}
function hitDave() {
if (this.hitTest(_root.dave) and (_root.dave.hit == false)) {
_root.hitDave();
}
}
function attackCheck() {
anim = random(5);
if (anim == 1) {
gotoAndPlay ("attack");
} else {
gotoAndPlay (1);
}
}
if (hits == undefined) {
health = 100;
hits = 1;
}
cp = 200;
frameDifference = 84;
dead = false;
hit = false;
dizzy = false;
airAttackFrame = 400;
scales = 100;
Symbol 477 MovieClip Frame 28
if (Math.abs(this._x - _root.dave._x) < 100) {
gotoAndPlay ("attack");
} else {
gotoAndPlay ("repeat");
}
hit = false;
Symbol 477 MovieClip Frame 29
if (health > 0) {
anim = random(hits);
gotoAndPlay("hit" + anim);
health = health - 5;
} else if (dizzy == false) {
_root.addScore2();
gotoAndPlay ("dizzy");
}
Symbol 477 MovieClip Frame 30
addHits();
Symbol 477 MovieClip Frame 33
hit = false;
Symbol 477 MovieClip Frame 35
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 477 MovieClip Frame 38
addHits();
Symbol 477 MovieClip Frame 42
hit = false;
Symbol 477 MovieClip Frame 44
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 477 MovieClip Frame 45
_root.playHit();
Symbol 477 MovieClip Frame 48
hits = 1;
Symbol 477 MovieClip Frame 50
moveHim();
Symbol 477 MovieClip Frame 53
moveHim();
Symbol 477 MovieClip Frame 88
hit = false;
Symbol 477 MovieClip Frame 91
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 477 MovieClip Frame 92
this.swapDepths(_root.ds);
_root.flesh.start();
Symbol 477 MovieClip Frame 114
_root.chooseFleshSound();
Symbol 477 MovieClip Frame 120
this.swapDepths(_root.ds);
Symbol 477 MovieClip Frame 141
stop();
dead = true;
_root.killedEnemy();
Symbol 477 MovieClip Frame 142
dizzy = true;
hit = false;
Symbol 477 MovieClip Frame 173
gotoAndPlay ("dizzy");
Symbol 477 MovieClip Frame 220
hitDave();
moveHim();
moveHim();
_root.punch1.start();
Symbol 477 MovieClip Frame 227
hitDave();
moveHim();
moveHim();
_root.punch2.start();
Symbol 477 MovieClip Frame 237
hitDave();
moveHim();
moveHim();
_root.punch1.start();
_root.punch2.start();
_root.punch3.start();
Symbol 477 MovieClip Frame 245
gotoAndPlay (1);
Symbol 477 MovieClip Frame 263
dead = false;
health = 100;
gotoAndPlay (1);
Instance of Symbol 273 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 900;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
_root.dave._y = _root.dave._y - 5;
_root.camera._y = _root.camera._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 273 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 1100;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
_root.dave._y = _root.dave._y - 5;
_root.camera._y = _root.camera._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 273 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 700;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
_root.dave._y = _root.dave._y - 5;
_root.camera._y = _root.camera._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 355 MovieClip in Symbol 478 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x - 25, _root.dave._y + 8, true) and (_currentframe < 2)) {
this.play();
}
}
Instance of Symbol 413 MovieClip in Symbol 483 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
_parent.gotoAndStop(21);
}
}
Symbol 483 MovieClip Frame 20
gotoAndPlay (1);
Symbol 483 MovieClip Frame 21
stop();
_root.addScore2();
Symbol 487 MovieClip Frame 1
collision._visible = false;
stop();
Instance of Symbol 482 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 1100;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 5, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 482 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 700;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 5, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 383 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x - 75, _root.dave._y + 1) and (_currentframe < 7)) {
this.gotoAndPlay(7);
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 416 MovieClip in Symbol 487 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave) and (_root.camera._currentframe == 1)) {
_root.camera.gotoAndPlay("win");
}
}
Symbol 487 MovieClip Frame 2
stop();
Instance of Symbol 400 MovieClip in Symbol 487 MovieClip Frame 2
onClipEvent (load) {
function moveThis() {
if (_root.dave._xscale > 0) {
if (_x < m) {
this._x = this._x + 10;
}
} else if (_x > n) {
this._x = this._x - 10;
}
}
m = _x + 250;
n = _x - 250;
}
onClipEvent (enterFrame) {
if ((_root.attacking == true) and this.hitTest(_root.dave)) {
moveThis();
this.play();
}
}
Instance of Symbol 482 MovieClip in Symbol 487 MovieClip Frame 2
onClipEvent (load) {
ys = this._y;
maxY = this._y - 900;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 5, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 482 MovieClip in Symbol 487 MovieClip Frame 2
onClipEvent (load) {
ys = this._y;
maxY = this._y - 1100;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 5, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 487 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 383 MovieClip in Symbol 488 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x - 75, _root.dave._y + 1) and (_currentframe < 7)) {
this.gotoAndPlay(7);
}
}
Symbol 493 MovieClip Frame 1
function addHits() {
if (hits < 4) {
hits++;
}
_root.playHit();
}
function moveHim() {
if (_xscale < 0) {
if (!_root.bg.collision.hitTest(_parent._x + 30, _parent._y - 10, true)) {
_x = (_x + _root.speed);
}
} else if (!_root.bg.collision.hitTest(_parent._x - 30, _parent._y - 10, true)) {
_x = (_x - _root.speed);
}
}
function hitDave() {
if (this.hitTest(_root.dave) and (_root.dave.hit == false)) {
_root.hitDave();
}
}
function attackCheck() {
anim = random(10);
if (anim <= 3) {
gotoAndPlay ("attack");
} else {
gotoAndPlay (1);
}
}
if (hits == undefined) {
health = 175;
hits = 1;
}
cp = 300;
scales = 100;
frameDifference = 90;
dead = false;
hit = false;
dizzy = false;
airAttackFrame = 400;
Symbol 493 MovieClip Frame 28
if (Math.abs(this._x - _root.dave._x) < 100) {
gotoAndPlay ("attack");
} else {
gotoAndPlay ("repeat");
}
hit = false;
Symbol 493 MovieClip Frame 29
if (health > 0) {
anim = random(hits);
gotoAndPlay("hit" + anim);
health = health - 5;
} else if (dizzy == false) {
_root.addScore2();
gotoAndPlay ("dizzy");
}
Symbol 493 MovieClip Frame 30
addHits();
Symbol 493 MovieClip Frame 34
hit = false;
Symbol 493 MovieClip Frame 35
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 493 MovieClip Frame 38
addHits();
Symbol 493 MovieClip Frame 42
hit = false;
Symbol 493 MovieClip Frame 44
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 493 MovieClip Frame 45
addHits();
Symbol 493 MovieClip Frame 48
hits = 1;
Symbol 493 MovieClip Frame 52
moveHim();
Symbol 493 MovieClip Frame 55
moveHim();
Symbol 493 MovieClip Frame 94
hit = false;
Symbol 493 MovieClip Frame 97
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 493 MovieClip Frame 98
this.swapDepths(_root.ds);
Symbol 493 MovieClip Frame 121
_root.chooseFleshSound();
Symbol 493 MovieClip Frame 126
this.swapDepths(_root.ds);
Symbol 493 MovieClip Frame 147
stop();
dead = true;
_root.killedEnemy();
Symbol 493 MovieClip Frame 148
dizzy = true;
hit = false;
Symbol 493 MovieClip Frame 179
gotoAndPlay ("dizzy");
Symbol 493 MovieClip Frame 226
hitDave();
moveHim();
moveHim();
Symbol 493 MovieClip Frame 233
hitDave();
moveHim();
moveHim();
Symbol 493 MovieClip Frame 243
hitDave();
moveHim();
moveHim();
Symbol 493 MovieClip Frame 251
gotoAndPlay (1);
Symbol 493 MovieClip Frame 270
dead = false;
health = 175;
gotoAndPlay (1);
Symbol 494 MovieClip Frame 1
function addHits() {
if (hits < 4) {
hits++;
}
_root.playHit();
}
function moveHim() {
if (_xscale < 0) {
if (!_root.bg.collision.hitTest(_parent._x + 30, _parent._y - 10, true)) {
_x = (_x + _root.speed);
}
} else if (!_root.bg.collision.hitTest(_parent._x - 30, _parent._y - 10, true)) {
_x = (_x - _root.speed);
}
}
function hitDave() {
if (this.hitTest(_root.dave) and (_root.dave.hit == false)) {
_root.hitDave();
}
}
function attackCheck() {
anim = random(10);
if (anim <= 3) {
gotoAndPlay ("attack");
} else {
gotoAndPlay (1);
}
}
if (hits == undefined) {
health = 150;
hits = 1;
}
cp = 300;
scales = 100;
frameDifference = 84;
dead = false;
hit = false;
dizzy = false;
airAttackFrame = 400;
Symbol 494 MovieClip Frame 28
if (Math.abs(this._x - _root.dave._x) < 100) {
gotoAndPlay ("attack");
} else {
gotoAndPlay ("repeat");
}
hit = false;
Symbol 494 MovieClip Frame 29
if (health > 0) {
anim = random(hits);
gotoAndPlay("hit" + anim);
health = health - 5;
} else if (dizzy == false) {
_root.addScore2();
gotoAndPlay ("dizzy");
}
Symbol 494 MovieClip Frame 30
addHits();
Symbol 494 MovieClip Frame 33
hit = false;
Symbol 494 MovieClip Frame 35
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 494 MovieClip Frame 38
addHits();
Symbol 494 MovieClip Frame 42
hit = false;
Symbol 494 MovieClip Frame 44
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 494 MovieClip Frame 45
_root.playHit();
Symbol 494 MovieClip Frame 48
hits = 1;
Symbol 494 MovieClip Frame 50
moveHim();
Symbol 494 MovieClip Frame 53
moveHim();
Symbol 494 MovieClip Frame 88
hit = false;
Symbol 494 MovieClip Frame 91
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 494 MovieClip Frame 92
this.swapDepths(_root.ds);
_root.flesh.start();
Symbol 494 MovieClip Frame 114
_root.chooseFleshSound();
Symbol 494 MovieClip Frame 120
this.swapDepths(_root.ds);
Symbol 494 MovieClip Frame 141
stop();
dead = true;
_root.killedEnemy();
Symbol 494 MovieClip Frame 142
dizzy = true;
hit = false;
Symbol 494 MovieClip Frame 173
gotoAndPlay ("dizzy");
Symbol 494 MovieClip Frame 220
hitDave();
moveHim();
moveHim();
_root.punch1.start();
Symbol 494 MovieClip Frame 227
hitDave();
moveHim();
moveHim();
_root.punch2.start();
Symbol 494 MovieClip Frame 237
hitDave();
moveHim();
moveHim();
_root.punch1.start();
_root.punch2.start();
_root.punch3.start();
Symbol 494 MovieClip Frame 245
gotoAndPlay (1);
Symbol 494 MovieClip Frame 263
dead = false;
health = 150;
gotoAndPlay (1);
Symbol 522 MovieClip Frame 1
collision._visible = false;
Instance of Symbol 273 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
_root.dave._x = _root.dave._x + 6.41333333333333;
_root.dave._y = _root.dave._y + 2.57333333333333;
_root.camera._x = _root.camera._x + 6.41333333333333;
_root.camera._y = _root.camera._y + 2.57333333333333;
}
i = 1;
while (i < _root.maxEnemy) {
if (this.hitTest(_root["enemy" + i])) {
_root["enemy" + i]._x = _root["enemy" + i]._x + 6.41333333333333;
_root["enemy" + i]._y = _root["enemy" + i]._y + 2.57333333333333;
}
i++;
}
}
Instance of Symbol 512 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.camera)) {
play();
} else {
stop();
}
}
Instance of Symbol 294 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 522 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Symbol 525 MovieClip Frame 1
stop();
Instance of Symbol 273 MovieClip in Symbol 525 MovieClip Frame 1
onClipEvent (load) {
function moveThis() {
if (_root.dave._xscale > 0) {
if (_x < (_x + 250)) {
this._x = this._x + 10;
}
}
}
}
onClipEvent (enterFrame) {
if ((_root.attacking == true) and this.hitTest(_root.dave)) {
moveThis();
}
}
Instance of Symbol 273 MovieClip in Symbol 525 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
_root.dave.jh = 0;
}
}
Instance of Symbol 273 MovieClip in Symbol 525 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
_root.dave.jh = 0;
}
}
Instance of Symbol 273 MovieClip in Symbol 525 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
_root.dave.jh = 0;
}
}
Symbol 525 MovieClip Frame 2
stop();
Instance of Symbol 273 MovieClip in Symbol 525 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
_root.dave.jh = 0;
}
}
Instance of Symbol 273 MovieClip in Symbol 525 MovieClip Frame 2
onClipEvent (load) {
function moveThis() {
if (_root.dave._xscale > 0) {
if (_x < (_x + 135)) {
this._x = this._x + 10;
}
}
if (this._x >= m) {
_parent.nextFrame();
}
}
m = this._x + 135;
}
onClipEvent (enterFrame) {
if ((_root.attacking == true) and this.hitTest(_root.dave)) {
moveThis();
}
}
Symbol 525 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 10
stop();
Symbol 534 MovieClip Frame 1
collision._visible = false;
Instance of Symbol 400 MovieClip in Symbol 534 MovieClip Frame 1
onClipEvent (load) {
function moveThis() {
if (_root.dave._x < (this._x + _parent._x)) {
if (this._x < (this._x + 135)) {
this._x = this._x + 10;
}
}
if ((this._x >= m) and (_parent.teet._currentframe == 1)) {
_parent.teet.play();
this._visible = false;
}
}
m = this._x + 135;
}
onClipEvent (enterFrame) {
if ((_root.attacking == true) and this.hitTest(_root.dave)) {
moveThis();
this.play();
}
}
Instance of Symbol 416 MovieClip in Symbol 534 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave) and (_root.camera._currentframe == 1)) {
_root.camera.gotoAndPlay("win");
}
}
Instance of Symbol 294 MovieClip in Symbol 534 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 534 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 534 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Symbol 544 MovieClip Frame 1
function addHits() {
if (hits < 4) {
hits++;
}
_root.playHit();
}
function moveHim() {
if (_xscale < 0) {
if (!_root.bg.collision.hitTest(_parent._x + 30, _parent._y - 10, true)) {
_x = (_x + _root.speed);
}
} else if (!_root.bg.collision.hitTest(_parent._x - 30, _parent._y - 10, true)) {
_x = (_x - _root.speed);
}
}
function hitDave() {
if (this.hitTest(_root.dave) and (_root.dave.hit == false)) {
_root.hitDave();
}
}
function attackCheck() {
anim = random(10);
if (anim <= 6) {
gotoAndPlay ("attack");
} else {
gotoAndPlay (1);
}
}
if (hits == undefined) {
health = 200;
hits = 1;
}
scales = 100;
cp = 500;
frameDifference = 84;
dead = false;
hit = false;
dizzy = false;
airAttackFrame = 400;
Symbol 544 MovieClip Frame 28
if (Math.abs(this._x - _root.dave._x) < 100) {
gotoAndPlay ("attack");
} else {
gotoAndPlay ("repeat");
}
hit = false;
Symbol 544 MovieClip Frame 29
if (health > 0) {
anim = random(hits);
gotoAndPlay("hit" + anim);
health = health - 5;
} else if (dizzy == false) {
_root.addScore2();
gotoAndPlay ("dizzy");
}
Symbol 544 MovieClip Frame 30
addHits();
Symbol 544 MovieClip Frame 33
hit = false;
Symbol 544 MovieClip Frame 35
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 544 MovieClip Frame 38
addHits();
Symbol 544 MovieClip Frame 42
hit = false;
Symbol 544 MovieClip Frame 44
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 544 MovieClip Frame 45
_root.playHit();
Symbol 544 MovieClip Frame 48
hits = 1;
Symbol 544 MovieClip Frame 50
moveHim();
Symbol 544 MovieClip Frame 53
moveHim();
Symbol 544 MovieClip Frame 88
hit = false;
Symbol 544 MovieClip Frame 91
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 544 MovieClip Frame 92
this.swapDepths(_root.ds);
_root.flesh.start();
Symbol 544 MovieClip Frame 114
_root.chooseFleshSound();
Symbol 544 MovieClip Frame 120
this.swapDepths(_root.ds);
Symbol 544 MovieClip Frame 141
stop();
dead = true;
_root.killedEnemy();
Symbol 544 MovieClip Frame 142
dizzy = true;
hit = false;
Symbol 544 MovieClip Frame 173
gotoAndPlay ("dizzy");
Symbol 544 MovieClip Frame 220
hitDave();
moveHim();
moveHim();
_root.punch1.start();
Symbol 544 MovieClip Frame 227
hitDave();
moveHim();
moveHim();
_root.punch2.start();
Symbol 544 MovieClip Frame 237
hitDave();
moveHim();
moveHim();
_root.punch1.start();
_root.punch2.start();
_root.punch3.start();
Symbol 544 MovieClip Frame 245
gotoAndPlay (1);
Symbol 544 MovieClip Frame 263
dead = false;
health = 200;
gotoAndPlay (1);
Instance of Symbol 273 MovieClip in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 650;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
_root.dave._y = _root.dave._y - 5;
_root.camera._y = _root.camera._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 273 MovieClip in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
ys = this._x;
maxX = this._x - 1230;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._x > maxX) {
this._x = this._x - 5;
_root.dave._x = _root.dave._x - 5;
_root.camera._x = _root.camera._x - 5;
}
} else if (this._x < ys) {
this._x = this._x + 10;
}
}
Instance of Symbol 273 MovieClip in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 650;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
_root.dave._y = _root.dave._y - 5;
_root.camera._y = _root.camera._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 273 MovieClip in Symbol 545 MovieClip Frame 1
onClipEvent (load) {
ys = this._x;
maxX = this._x + 630;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._x < maxX) {
this._x = this._x + 5;
_root.dave._x = _root.dave._x + 5;
_root.camera._x = _root.camera._x + 5;
}
} else if (this._x > ys) {
this._x = this._x - 10;
}
}
Symbol 549 MovieClip Frame 1
collision._visible = false;
stop();
Instance of Symbol 548 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 650;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 548 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
ys = this._x;
maxX = this._x - 1230;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._x > maxX) {
this._x = this._x - 5;
}
} else if (this._x < ys) {
this._x = this._x + 10;
}
}
Instance of Symbol 548 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
ys = this._y;
maxY = this._y - 650;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._y > maxY) {
this._y = this._y - 5;
}
} else if (this._y < ys) {
this._y = this._y + 10;
}
}
Instance of Symbol 548 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (load) {
ys = this._x;
maxX = this._x + 630;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave._x, _root.dave._y + 10, true)) {
if (this._x < maxX) {
this._x = this._x + 5;
}
} else if (this._x > ys) {
this._x = this._x - 10;
}
}
Instance of Symbol 294 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Instance of Symbol 294 MovieClip in Symbol 549 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave)) {
this.play();
}
}
Symbol 549 MovieClip Frame 2
stop();
Instance of Symbol 416 MovieClip in Symbol 549 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dave) and (_root.camera._currentframe == 1)) {
_root.camera.gotoAndPlay("win");
}
}
Symbol 561 MovieClip Frame 1
function addHits() {
if (hits < 4) {
hits++;
}
_root.playHit();
}
function moveHim() {
if (_xscale < 0) {
if (!_root.bg.collision.hitTest(_parent._x + 30, _parent._y - 10, true)) {
_x = (_x + _root.speed);
}
} else if (!_root.bg.collision.hitTest(_parent._x - 30, _parent._y - 10, true)) {
_x = (_x - _root.speed);
}
}
function hitDave() {
if (this.hitTest(_root.dave) and (_root.dave.hit == false)) {
_root.hitDave();
}
}
function attackCheck() {
anim = random(10);
if (anim <= 7) {
gotoAndPlay ("attack");
} else {
gotoAndPlay (1);
}
}
if (hits == undefined) {
health = 300;
hits = 1;
}
cp = 700;
scales = 80;
airAttackFrame = 400;
frameDifference = 100;
dead = false;
hit = false;
dizzy = false;
Symbol 561 MovieClip Frame 29
if (Math.abs(this._x - _root.dave._x) < 100) {
gotoAndPlay ("attack");
} else {
gotoAndPlay ("repeat");
}
hit = false;
Symbol 561 MovieClip Frame 30
if (health > 0) {
anim = random(hits);
gotoAndPlay("hit" + anim);
health = health - 5;
} else if (dizzy == false) {
_root.theend.start();
gotoAndPlay ("dizzy");
_root.addScore2();
}
Symbol 561 MovieClip Frame 31
addHits();
Symbol 561 MovieClip Frame 34
hit = false;
Symbol 561 MovieClip Frame 36
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 561 MovieClip Frame 37
addHits();
Symbol 561 MovieClip Frame 43
hit = false;
Symbol 561 MovieClip Frame 46
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 561 MovieClip Frame 47
_root.playHit();
Symbol 561 MovieClip Frame 51
moveHim();
Symbol 561 MovieClip Frame 54
moveHim();
Symbol 561 MovieClip Frame 83
hit = false;
Symbol 561 MovieClip Frame 87
if (dizzy == true) {
gotoAndPlay ("dizzy");
} else {
attackCheck();
}
Symbol 561 MovieClip Frame 88
this.swapDepths(_root.ds);
_root.flesh.start();
Symbol 561 MovieClip Frame 110
_root.chooseFleshSound();
Symbol 561 MovieClip Frame 116
this.swapDepths(_root.ds);
Symbol 561 MovieClip Frame 137
stop();
dead = true;
_root.killedEnemy();
Symbol 561 MovieClip Frame 138
dizzy = true;
hit = false;
Symbol 561 MovieClip Frame 162
gotoAndPlay ("dizzy");
Symbol 561 MovieClip Frame 198
hitDave();
moveHim();
moveHim();
_root.punch1.start();
Symbol 561 MovieClip Frame 204
hitDave();
moveHim();
moveHim();
_root.punch2.start();
Symbol 561 MovieClip Frame 213
hitDave();
moveHim();
moveHim();
_root.punch1.start();
_root.punch3.start();
Symbol 561 MovieClip Frame 222
gotoAndPlay (1);
Symbol 561 MovieClip Frame 223
health = 400;
dead = false;