Combined Code
movieClip 2 {
}
movieClip 4 {
}
movieClip 6 {
}
movieClip 12 {
frame 6 {
stop();
}
}
movieClip 13 {
}
movieClip 19 {
frame 17 {
stop();
}
}
movieClip 20 {
frame 1 {
stop();
onEnterFrame = function () {
timer = 0;
};
}
frame 2 {
timer = 0;
onEnterFrame = function () {
++timer;
if (timer > 2) {
gotoAndStop(1);
}
};
}
frame 3 {
onEnterFrame = function () {
timer = 0;
};
}
instance skull of movieClip 13 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
movieClip 21 zombieS {
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 24;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(50) + 35;
bodyS = this._parent.body._y;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
frame 1 {
stop();
NewgroundsAPI.connectMovie(1912);
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
_root._quality = 'MEDIUM';
_root.lvl1TargetD = 30000;
_root.lvl1TargetB = 50000;
_root.lvl1TargetS = 75000;
_root.lvl1TargetG = 100000;
_root.lvl1TargetP = 150000;
_root.lvl2TargetD = 40000;
_root.lvl2TargetB = 70000;
_root.lvl2TargetS = 100000;
_root.lvl2TargetG = 125000;
_root.lvl2TargetP = 175000;
_root.lvl3TargetD = 30000;
_root.lvl3TargetB = 50000;
_root.lvl3TargetS = 75000;
_root.lvl3TargetG = 100000;
_root.lvl3TargetP = 150000;
_root.lvl4TargetD = 0;
_root.lvl4TargetB = 12000;
_root.lvl4TargetS = 70000;
_root.lvl4TargetG = 125000;
_root.lvl4TargetP = 175000;
_root.lvl5TargetD = 0;
_root.lvl5TargetB = 50000;
_root.lvl5TargetS = 100000;
_root.lvl5TargetG = 200000;
_root.lvl5TargetP = 250000;
_root.lvl6TargetD = 0;
_root.lvl6TargetB = 100000;
_root.lvl6TargetS = 300000;
_root.lvl6TargetG = 500000;
_root.lvl6TargetP = 750000;
_root.lvl7TargetD = 0;
_root.lvl7TargetB = 10000;
_root.lvl7TargetS = 20000;
_root.lvl7TargetG = 30000;
_root.lvl7TargetP = 50000;
_root.lvl8TargetD = 0;
_root.lvl8TargetB = 45000;
_root.lvl8TargetS = 60000;
_root.lvl8TargetG = 80000;
_root.lvl8TargetP = 100000;
_root.lvl9TargetD = 0;
_root.lvl9TargetB = 20000;
_root.lvl9TargetS = 45000;
_root.lvl9TargetG = 75000;
_root.lvl9TargetP = 100000;
_root.lvl10TargetD = 0;
_root.lvl10TargetB = 15000;
_root.lvl10TargetS = 25000;
_root.lvl10TargetG = 40000;
_root.lvl10TargetP = 50000;
var savefile = SharedObject.getLocal('EddGame');
if (savefile.data.StoryComplete == undefined) {
savefile.data.StoryComplete = false;
}
i = 1;
while (i <= 4) {
if (savefile.data['code' + i] == undefined) {
_root['code' + i] = 0;
savefile.data['code' + i] = 0;
} else {
_root['code' + i] = savefile.data['code' + i];
}
++i;
}
if (_root.code1 == 2) {
_root.serious = false;
} else {
_root.serious = true;
}
if (_root.code2 == 2) {
_root.Bing = true;
} else {
_root.Bing = false;
}
if (_root.code3 == 2) {
_root.unammo = true;
} else {
_root.unammo = false;
}
i = 1;
while (i <= 10) {
if (savefile.data['score' + i] == undefined) {
_root['score' + i] = 0;
} else {
_root['score' + i] = savefile.data['score' + i];
}
if (savefile.data['played' + i] == undefined) {
_root['played' + i] = 0;
} else {
_root['played' + i] = savefile.data['played' + i];
}
++i;
}
i = 1;
while (i <= 10) {
_root['lvl' + i].score = _root['score' + i];
++i;
}
_root.lvlSelect = 0;
_root.GamePlay = false;
}
movieClip 25 {
}
button 28 {
on (press) {
getURL('http://www.eddsworld.co.uk/', '_blank');
}
}
movieClip 33 {
}
movieClip 34 {
frame 10 {
gotoAndPlay(1);
}
}
movieClip 36 {
}
movieClip 38 {
}
movieClip 41 {
frame 100 {
}
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 50 {
}
movieClip 51 {
}
movieClip 56 {
}
button 65 {
on (press) {
_root.gotoAndPlay(5);
}
}
button 66 {
on (press) {
nextFrame();
}
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 71 {
}
movieClip 78 {
}
movieClip 89 {
frame 12 {
stop();
}
}
movieClip 92 {
}
movieClip 95 {
}
movieClip 96 {
}
movieClip 98 {
}
movieClip 109 {
}
button 114 {
on (press) {
getURL('http://www.eddsworld.co.uk/', '_blank');
}
}
movieClip 129 {
frame 15 {
stop();
}
}
movieClip 135 {
}
movieClip 147 {
}
movieClip 159 {
}
movieClip 171 {
}
movieClip 172 {
frame 1 {
_quality = 'MEDIUM';
}
frame 225 {
_quality = 'MEDIUM';
_root.gotoAndPlay(3);
}
}
movieClip 173 {
frame 1 {
stop();
}
instance of movieClip 41 {
onClipEvent (enterFrame) {
loaded = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
gotoAndStop(loaded);
if (loaded == 100) {
_parent.play();
}
}
}
frame 9 {
stop();
}
frame 15 {
stop();
}
}
// unknown tag 88 length 69
instance of movieClip 4 {
onClipEvent (release) {
getURL('http://www.psy-city.co.uk/', '_blank');
}
}
instance of movieClip 4 {
onClipEvent (release) {
getURL('http://www.eddsworld.co.uk/', '_blank');
}
}
movieClip 182 {
}
movieClip 191 {
}
movieClip 211 {
}
movieClip 212 edd1 {
frame 1 {
stop();
}
}
movieClip 214 {
}
movieClip 215 {
}
movieClip 219 {
}
movieClip 221 {
}
movieClip 222 edd2 {
frame 1 {
stop();
}
}
movieClip 239 {
frame 27 {
stop();
}
}
movieClip 240 CivMatt {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 0;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._y += MonDrop;
if (this._parent._y + MonDrop > 275) {
this._parent._y = 275;
MonAp = false;
MonDrop2 = MonDrop;
MonDrop = 0;
} else {
MonDrop += 5;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._y -= MonDrop;
MonDrop += 5;
if (MonDrop > MonDrop2) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 243 {
frame 1 {
stop();
}
}
movieClip 244 CivMatt2 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 28;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = 65;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.hat._alpha = 0;
this._parent.body._alpha = 0;
leave = false;
}
}
}
}
}
movieClip 246 {
}
movieClip 261 {
frame 27 {
stop();
}
}
movieClip 262 CivTom {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 0;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._y += MonDrop;
if (this._parent._y + MonDrop > 275) {
this._parent._y = 275;
MonAp = false;
MonDrop2 = MonDrop;
MonDrop = 0;
} else {
MonDrop += 5;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._y -= MonDrop;
MonDrop += 5;
if (MonDrop > MonDrop2) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 264 {
frame 1 {
stop();
}
}
movieClip 265 CivTom2 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 28;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = 65;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.hat._alpha = 0;
this._parent.body._alpha = 0;
leave = false;
}
}
}
}
}
movieClip 267 {
}
movieClip 281 {
frame 27 {
stop();
}
}
movieClip 282 CivTord {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 0;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._y += MonDrop;
if (this._parent._y + MonDrop > 275) {
this._parent._y = 275;
MonAp = false;
MonDrop2 = MonDrop;
MonDrop = 0;
} else {
MonDrop += 5;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._y -= MonDrop;
MonDrop += 5;
if (MonDrop > MonDrop2) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 284 {
frame 1 {
stop();
}
}
movieClip 285 CivTord2 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 28;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = 65;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.hat._alpha = 0;
this._parent.body._alpha = 0;
leave = false;
}
}
}
}
}
movieClip 290 blackout {
frame 1 {
stop();
}
frame 24 {
stop();
}
}
movieClip 297 blood {
frame 7 {
stop();
}
}
movieClip 305 countdown {
frame 105 {
stop();
}
}
movieClip 307 crosshair {
}
movieClip 311 {
}
// unknown tag 88 length 143
movieClip 324 {
}
movieClip 331 {
frame 1 {
stop();
}
}
movieClip 337 {
frame 1 {
stop();
}
}
movieClip 338 {
frame 1 {
stop();
}
}
movieClip 339 infobar1 {
instance eddface of movieClip 338 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 347 {
}
movieClip 353 infobar2 {
instance eddface of movieClip 338 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 356 {
}
movieClip 357 {
}
movieClip 360 {
}
movieClip 361 {
}
movieClip 364 {
}
movieClip 365 {
}
movieClip 368 {
}
movieClip 369 {
}
movieClip 372 {
}
movieClip 373 {
}
movieClip 376 {
}
movieClip 377 {
}
movieClip 380 {
}
movieClip 381 {
}
movieClip 382 Menu {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance of movieClip 357 {
onClipEvent (load) {
rotate = 1.57;
rotateC = (random(20) + 2) * 0.0174532925199433;
xPos = int((_root._xmouse - this._x) / -8);
yPos = int((_root._ymouse - this._y) / -6);
this.black._alpha = 0;
}
onClipEvent (enterFrame) {
this._xscale = 100 * Math.sin(rotate);
this.black._alpha = 100 - Math.sqrt(100 * Math.sin(rotate) * (100 * Math.sin(rotate)));
rotate += rotateC;
this._y += yPos;
this._rotation += xPos / 5;
this._x += xPos * 1.5;
yPos += 2;
}
}
instance of movieClip 361 {
onClipEvent (load) {
rotate = 1.57;
rotateC = (random(20) + 2) * 0.0174532925199433;
xPos = int((_root._xmouse - this._x) / -8);
yPos = int((_root._ymouse - this._y) / -6);
this.black._alpha = 0;
}
onClipEvent (enterFrame) {
this._xscale = 100 * Math.sin(rotate);
this.black._alpha = 100 - Math.sqrt(100 * Math.sin(rotate) * (100 * Math.sin(rotate)));
rotate += rotateC;
this._y += yPos;
this._rotation += xPos / 5;
this._x += xPos * 1.5;
yPos += 2;
}
}
instance of movieClip 365 {
onClipEvent (load) {
rotate = 1.57;
rotateC = (random(20) + 2) * 0.0174532925199433;
xPos = int((_root._xmouse - this._x) / -8);
yPos = int((_root._ymouse - this._y) / -6);
this.black._alpha = 0;
}
onClipEvent (enterFrame) {
this._xscale = 100 * Math.sin(rotate);
this.black._alpha = 100 - Math.sqrt(100 * Math.sin(rotate) * (100 * Math.sin(rotate)));
rotate += rotateC;
this._y += yPos;
this._rotation += xPos / 5;
this._x += xPos * 1.5;
yPos += 2;
}
}
instance of movieClip 369 {
onClipEvent (load) {
rotate = 1.57;
rotateC = (random(20) + 2) * 0.0174532925199433;
xPos = int((_root._xmouse - this._x) / -8);
yPos = int((_root._ymouse - this._y) / -6);
this.black._alpha = 0;
}
onClipEvent (enterFrame) {
this._xscale = 100 * Math.sin(rotate);
this.black._alpha = 100 - Math.sqrt(100 * Math.sin(rotate) * (100 * Math.sin(rotate)));
rotate += rotateC;
this._y += yPos;
this._rotation += xPos / 5;
this._x += xPos * 1.5;
yPos += 2;
}
}
instance of movieClip 373 {
onClipEvent (load) {
rotate = 1.57;
rotateC = (random(20) + 2) * 0.0174532925199433;
xPos = int((_root._xmouse - this._x) / -8);
yPos = int((_root._ymouse - this._y) / -6);
this.black._alpha = 0;
}
onClipEvent (enterFrame) {
this._xscale = 100 * Math.sin(rotate);
this.black._alpha = 100 - Math.sqrt(100 * Math.sin(rotate) * (100 * Math.sin(rotate)));
rotate += rotateC;
this._y += yPos;
this._rotation += xPos / 5;
this._x += xPos * 1.5;
yPos += 2;
}
}
instance of movieClip 377 {
onClipEvent (load) {
rotate = 1.57;
rotateC = (random(20) + 2) * 0.0174532925199433;
xPos = int((_root._xmouse - this._x) / -8);
yPos = int((_root._ymouse - this._y) / -6);
this.black._alpha = 0;
}
onClipEvent (enterFrame) {
this._xscale = 100 * Math.sin(rotate);
this.black._alpha = 100 - Math.sqrt(100 * Math.sin(rotate) * (100 * Math.sin(rotate)));
rotate += rotateC;
this._y += yPos;
this._rotation += xPos / 5;
this._x += xPos * 1.5;
yPos += 2;
}
}
instance of movieClip 381 {
onClipEvent (load) {
rotate = 1.57;
rotateC = (random(20) + 2) * 0.0174532925199433;
xPos = int((_root._xmouse - this._x) / -8);
yPos = int((_root._ymouse - this._y) / -6);
this.black._alpha = 0;
}
onClipEvent (enterFrame) {
this._xscale = 100 * Math.sin(rotate);
this.black._alpha = 100 - Math.sqrt(100 * Math.sin(rotate) * (100 * Math.sin(rotate)));
rotate += rotateC;
this._y += yPos;
this._rotation += xPos / 5;
this._x += xPos * 1.5;
yPos += 2;
}
}
}
movieClip 385 {
frame 1 {
stop();
}
}
movieClip 386 reload {
frame 1 {
stop();
}
instance of movieClip 385 {
onClipEvent (enterFrame) {
if (_root.serious == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
instance of movieClip 385 {
onClipEvent (enterFrame) {
if (_root.serious == false) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
}
movieClip 388 shotgun_hole {
}
movieClip 392 {
}
movieClip 399 {
frame 1 {
stop();
}
}
movieClip 400 target {
}
movieClip 403 {
}
movieClip 404 Nshoot1 {
}
movieClip 407 Yshoot1 {
}
movieClip 409 Wall {
}
movieClip 411 {
}
movieClip 413 {
}
movieClip 417 {
frame 11 {
stop();
}
}
movieClip 434 {
frame 17 {
stop();
}
}
movieClip 436 {
frame 4 {
stop();
}
}
movieClip 437 {
frame 1 {
stop();
}
}
movieClip 438 monsterL {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
MonRotate = random(4) + 15;
MonRotate2 = MonRotate;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._rotation += MonRotate;
this._parent._x += MonRotate;
if (MonRotate > 1) {
MonRotate -= 4;
} else {
MonRotate = 0;
MonAp = false;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._rotation -= MonRotate;
this._parent._x -= MonRotate;
MonRotate += 4;
if (MonRotate > MonRotate2) {
_root.bonus1 = false;
this._parent.removeMovieClip();
}
}
}
}
instance head of movieClip 437 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
movieClip 439 monsterR {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
MonRotate = random(4) + 15;
MonRotate2 = MonRotate;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._rotation -= MonRotate;
this._parent._x -= MonRotate;
if (MonRotate > 1) {
MonRotate -= 4;
} else {
MonRotate = 0;
MonAp = false;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._rotation += MonRotate;
this._parent._x += MonRotate;
MonRotate += 4;
if (MonRotate > MonRotate2) {
_root.bonus1 = false;
this._parent.removeMovieClip();
}
}
}
}
instance head of movieClip 437 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
movieClip 440 {
frame 11 {
stop();
}
}
movieClip 441 {
frame 21 {
stop();
}
}
movieClip 442 monsterstand1 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 0;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._y += MonDrop;
if (this._parent._y + MonDrop > 275) {
this._parent._y = 275;
MonAp = false;
MonDrop2 = MonDrop;
MonDrop = 0;
} else {
MonDrop += 5;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._y -= MonDrop;
MonDrop += 5;
if (MonDrop > MonDrop2) {
_root.bonus1 = false;
this._parent.removeMovieClip();
}
}
}
}
instance head of movieClip 437 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
movieClip 451 {
frame 11 {
stop();
}
}
movieClip 464 {
frame 22 {
stop();
}
}
movieClip 466 {
frame 5 {
stop();
}
}
movieClip 467 {
frame 1 {
stop();
}
}
movieClip 468 monsterSuper {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 0;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._y += MonDrop;
if (this._parent._y + MonDrop > 275) {
this._parent._y = 275;
MonAp = false;
MonDrop2 = MonDrop;
MonDrop = 0;
} else {
MonDrop += 5;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._y -= MonDrop;
MonDrop += 5;
if (MonDropMonDrop2) {
_root.bonus1 = false;
this._parent.removeMovieClip();
}
}
}
}
instance head of movieClip 467 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
movieClip 470 box1 {
}
movieClip 472 box2 {
}
movieClip 473 Nshoot2 {
}
movieClip 476 {
}
movieClip 477 Yshoot2 {
}
movieClip 479 oilcan {
}
movieClip 483 oilleak {
}
movieClip 485 2Wall1 {
}
movieClip 487 2Wall2 {
}
movieClip 489 {
}
movieClip 491 {
}
movieClip 497 {
frame 6 {
stop();
}
}
movieClip 507 {
frame 16 {
stop();
}
}
movieClip 508 {
frame 1 {
stop();
}
}
movieClip 509 boris {
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 7.7;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.boris._y += MonDrop;
this._parent.elevator._y += MonDrop;
this._parent.elevatorback._y += MonDrop * 0.8;
if (MonDrop <= 0) {
MonAp = false;
MonDrop = 0;
this._parent.elevator._y = 0;
this._parent.elevatorback._y = 0;
} else {
MonDrop -= 0.7;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.boris._y -= MonDrop;
this._parent.elevator._y -= MonDrop;
this._parent.elevatorback._y -= MonDrop * 0.8;
MonDrop -= 0.7;
if (MonDrop >= 8) {
this._parent.boris._alpha = 0;
this._parent.elevator._alpha = 0;
leave = false;
}
}
}
}
}
movieClip 511 {
}
movieClip 514 {
}
movieClip 525 {
frame 12 {
stop();
}
}
movieClip 526 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 529 {
frame 1 {
stop();
}
}
movieClip 530 soilder1 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 28;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = 65;
hatS = this._parent.hat._y;
bodyS = this._parent.body._y;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.hat._y -= MonDrop;
this._parent.hathit._y -= MonDrop;
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.hat._y += MonDrop;
this._parent.hathit._y -= MonDrop;
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.hat._alpha = 0;
this._parent.body._alpha = 0;
}
if (this._parent.hat._y > hatS) {
this._parent.hat.removeMovieClip();
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
instance hat of movieClip 529 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
}
movieClip 531 soilder2 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
MonRotate = random(4) + 15;
MonRotate2 = MonRotate;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._rotation += MonRotate;
this._parent._x += MonRotate;
if (MonRotate > 1) {
MonRotate -= 4;
} else {
MonRotate = 0;
MonAp = false;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._rotation -= MonRotate;
this._parent._x -= MonRotate;
MonRotate += 4;
if (MonRotate > MonRotate2) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
instance hat of movieClip 529 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
}
movieClip 532 soilder3 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
MonRotate = random(4) + 15;
MonRotate2 = MonRotate;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent._rotation -= MonRotate;
this._parent._x -= MonRotate;
if (MonRotate > 1) {
MonRotate -= 4;
} else {
MonRotate = 0;
MonAp = false;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent._rotation += MonRotate;
this._parent._x += MonRotate;
MonRotate += 4;
if (MonRotate > MonRotate2) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
instance hat of movieClip 529 {
onClipEvent (load) {
ymove = 15;
ranrotation = random(50) - 25;
xmove = 18;
}
onClipEvent (enterFrame) {
if (this._currentframe == 2) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180) - xmove * Math.sin(this._parent._rotation * Math.PI / 180) / 2;
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180) - xmove;
this._rotation += ranrotation;
}
}
}
}
movieClip 537 wallleft {
}
movieClip 540 flower {
}
movieClip 543 treeright {
}
movieClip 546 graves {
}
movieClip 558 infobar3 {
instance eddface of movieClip 338 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 566 infobar4 {
instance eddface of movieClip 338 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 578 {
}
movieClip 584 {
frame 1 {
stop();
}
}
movieClip 590 {
frame 1 {
stop();
}
}
movieClip 591 {
frame 1 {
stop();
}
}
movieClip 592 infobar5 {
instance eddface of movieClip 591 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 594 {
}
movieClip 597 {
frame 7 {
stop();
}
}
movieClip 598 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 600 {
}
movieClip 601 {
}
movieClip 602 edd3 {
frame 1 {
stop();
}
}
movieClip 608 {
}
movieClip 609 {
}
movieClip 613 {
}
movieClip 614 {
}
movieClip 615 edd5 {
frame 1 {
stop();
}
}
movieClip 619 {
}
movieClip 628 {
}
movieClip 629 {
frame 31 {
stop();
}
}
movieClip 631 {
frame 1 {
stop();
}
}
movieClip 632 {
}
movieClip 633 CivSoilder {
frame 1 {
stop();
}
instance of movieClip 632 {
onClipEvent (load) {
MonDrop = 16;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(15) + 60;
}
onClipEvent (enterFrame) {
if (this._parent.body.dieani._currentframe == 31) {
this._parent.removeMovieClip();
}
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
if (this._parent.body._currentframe == 1) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 16) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 637 {
}
movieClip 641 {
}
movieClip 642 {
}
movieClip 643 {
}
movieClip 656 {
frame 21 {
stop();
}
}
movieClip 657 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 658 axeman {
frame 1 {
stop();
}
instance of movieClip 632 {
onClipEvent (load) {
Wspeed = 4;
Wtime = 80;
Wtime2 = 0;
Wtime3 = -2;
}
onClipEvent (enterFrame) {
if (this._parent.body._currentframe == 1) {
this._parent.body._x -= Wspeed;
++Wtime2;
if (Wtime2 > Wtime && Wspeed > 0) {
Wspeed = -Wspeed;
this._parent.body._xscale = -200;
Wtime3 = Wtime2;
}
if (Wtime2 == Wtime3 * 2) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 662 Yshoot5 {
}
movieClip 664 Nshoot5 {
}
movieClip 665 {
frame 10 {
stop();
}
}
movieClip 667 {
}
movieClip 669 {
}
movieClip 676 {
frame 6 {
stop();
}
}
movieClip 677 {
}
movieClip 681 {
frame 17 {
stop();
}
}
movieClip 682 {
frame 1 {
stop();
onEnterFrame = function () {
timer = 0;
};
}
frame 2 {
timer = 0;
onEnterFrame = function () {
++timer;
if (timer > 2) {
gotoAndStop(1);
}
};
}
frame 3 {
onEnterFrame = function () {
timer = 0;
};
}
instance skull of movieClip 677 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
movieClip 683 zombieUL {
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 24;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(50) + 35;
bodyS = this._parent.body._y;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 686 {
frame 17 {
stop();
}
}
movieClip 687 {
frame 1 {
stop();
onEnterFrame = function () {
timer = 0;
};
}
frame 2 {
timer = 0;
onEnterFrame = function () {
++timer;
if (timer > 2) {
gotoAndStop(1);
}
};
}
frame 3 {
onEnterFrame = function () {
timer = 0;
};
}
instance skull of movieClip 677 {
onClipEvent (load) {
ymove = 15;
xmove = random(80) - 40;
ranrotation = random(50) - 25;
}
onClipEvent (enterFrame) {
ymove -= 2;
this._y -= ymove * Math.cos(this._parent._rotation * Math.PI / 180);
this._x -= ymove * Math.sin(this._parent._rotation * Math.PI / 180);
this._rotation -= ranrotation;
}
}
}
movieClip 688 zombieUR {
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 24;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(50) + 35;
bodyS = this._parent.body._y;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 690 Yshoot3 {
}
movieClip 691 Nshoot3 {
}
movieClip 693 {
}
movieClip 694 {
instance of movieClip 693 {
onClipEvent (load) {
randomok = random(4) - 2;
if (randomok <= 0) {
this._xscale = 20;
} else {
this._xscale = -20;
}
speed = (random(1000) + 400) / 200;
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posXdif = 0;
this.gotoAndPlay(random(9));
}
onClipEvent (enterFrame) {
this._x += (posXdif + Math.sin(posX1 * posX2) * posX3) / 8;
posX2 += posX4;
this._y += speed;
}
}
}
movieClip 695 glitter {
}
movieClip 696 CivMatt3 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 24;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(50) + 35;
bodyS = this._parent.body._y;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 697 CivTom3 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 24;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(50) + 35;
bodyS = this._parent.body._y;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 698 CivTord3 {
frame 1 {
stop();
}
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 24;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(50) + 35;
bodyS = this._parent.body._y;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 28) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 704 {
frame 9 {
stop();
}
frame 18 {
stop();
}
}
movieClip 715 {
frame 12 {
stop();
}
}
movieClip 716 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 717 zomsprite1 {
frame 1 {
stop();
}
instance of movieClip 632 {
onClipEvent (load) {
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(15) + 60;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body.ZomApp.play();
if (this._parent.body.ZomApp._currentframe == 9) {
MonAp = false;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
if (this._parent.body._currentframe == 1) {
this._parent.body.ZomApp.play();
if (this._parent.body.ZomApp._currentframe == 18) {
_root.bonus1 = false;
this._parent.removeMovieClip();
}
} else {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 720 {
}
movieClip 721 {
frame 1 {
stop();
}
}
movieClip 722 CivTeacher {
frame 1 {
stop();
}
instance of movieClip 632 {
onClipEvent (load) {
MonDrop = 16;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(15) + 60;
}
onClipEvent (enterFrame) {
if (this._parent.body.dieani._currentframe == 31) {
this._parent.removeMovieClip();
}
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
if (this._parent.body._currentframe == 1) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 16) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 726 {
}
movieClip 727 {
frame 1 {
stop();
}
}
movieClip 728 CivExplorer {
frame 1 {
stop();
}
instance of movieClip 632 {
onClipEvent (load) {
MonDrop = 16;
MonAp = true;
leave = false;
timer = 0;
LeaveTime = random(15) + 60;
}
onClipEvent (enterFrame) {
if (this._parent.body.dieani._currentframe == 31) {
this._parent.removeMovieClip();
}
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (_root.targetleave == true) {
if (this._parent.body._currentframe == 1) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
if (MonDrop >= 16) {
this._parent.body._alpha = 0;
}
if (this._parent.body._y > bodyS) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 736 infobar6 {
instance eddface of movieClip 338 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 739 {
}
movieClip 740 shotgun_hole8 {
}
movieClip 745 {
}
movieClip 747 {
}
movieClip 751 {
}
movieClip 760 {
}
movieClip 762 {
}
movieClip 770 {
}
movieClip 771 edd8 {
frame 1 {
stop();
}
}
movieClip 773 Yshoot8 {
}
movieClip 775 Nshoot8 {
}
movieClip 777 {
}
movieClip 779 {
}
movieClip 780 targetMC {
}
movieClip 781 Yshoot10 {
}
movieClip 782 Nshoot10 {
}
movieClip 794 infobar8 {
instance eddface of movieClip 338 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 797 {
}
movieClip 798 gunshop {
}
movieClip 801 {
}
movieClip 802 fences {
}
movieClip 808 {
}
movieClip 812 {
}
movieClip 816 {
}
movieClip 817 edd6 {
frame 1 {
stop();
}
}
movieClip 824 {
frame 3 {
stop();
}
}
movieClip 830 {
}
movieClip 831 {
frame 3 {
stop();
}
}
movieClip 832 {
frame 1 {
stop();
}
}
movieClip 833 GangA {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
TargetMove2 = this._parent.TargetMove;
MonAp = true;
bon1 = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._x -= this._parent.TargetMove / 2;
if (this._parent.TargetMove > 1) {
this._parent.TargetMove -= 2;
} else {
this._parent.body.gotoAndStop(2);
this._parent.TargetMove = 0;
MonAp = false;
}
} else {
if (this._parent.body._currentframe == 2) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
if (this._parent.body._currentframe == 3) {
if (this._parent.body.shot._currentframe == 34) {
bon1 = false;
leave = true;
}
}
if (leave == true) {
this._parent.body.gotoAndStop(4);
this._parent.body._x += this._parent.TargetMove / 2;
this._parent.TargetMove += 2;
if (this._parent.TargetMove > TargetMove2) {
if (bon1 == true) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 837 {
frame 3 {
stop();
}
}
movieClip 838 {
frame 1 {
stop();
}
}
movieClip 839 GangB {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
TargetMove2 = this._parent.TargetMove;
MonAp = true;
bon1 = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._x -= this._parent.TargetMove / 2;
if (this._parent.TargetMove > 1) {
this._parent.TargetMove -= 2;
} else {
this._parent.body.gotoAndStop(2);
this._parent.TargetMove = 0;
MonAp = false;
}
} else {
if (this._parent.body._currentframe == 2) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
if (this._parent.body._currentframe == 3) {
if (this._parent.body.shot._currentframe == 34) {
bon1 = false;
leave = true;
}
}
if (leave == true) {
this._parent.body.gotoAndStop(4);
this._parent.body._x += this._parent.TargetMove / 2;
this._parent.TargetMove += 2;
if (this._parent.TargetMove > TargetMove2) {
if (bon1 == true) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 842 {
frame 3 {
stop();
}
}
movieClip 843 {
frame 1 {
stop();
}
}
movieClip 844 GangC {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
TargetMove2 = this._parent.TargetMove;
MonAp = true;
bon1 = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._x -= this._parent.TargetMove / 2;
if (this._parent.TargetMove > 1) {
this._parent.TargetMove -= 2;
} else {
this._parent.body.gotoAndStop(2);
this._parent.TargetMove = 0;
MonAp = false;
}
} else {
if (this._parent.body._currentframe == 2) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
if (this._parent.body._currentframe == 3) {
if (this._parent.body.shot._currentframe == 34) {
bon1 = false;
leave = true;
}
}
if (leave == true) {
this._parent.body.gotoAndStop(4);
this._parent.body._x += this._parent.TargetMove / 2;
this._parent.TargetMove += 2;
if (this._parent.TargetMove > TargetMove2) {
if (bon1 == true) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 847 {
frame 3 {
stop();
}
}
movieClip 848 {
frame 1 {
stop();
}
}
movieClip 849 Lady {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
TargetMove2 = this._parent.TargetMove;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._x -= this._parent.TargetMove / 2;
if (this._parent.TargetMove > 1) {
this._parent.TargetMove -= 2;
} else {
this._parent.body.gotoAndStop(2);
this._parent.TargetMove = 0;
MonAp = false;
}
} else {
if (this._parent.body._currentframe == 2) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
if (this._parent.body._currentframe == 3) {
if (this._parent.body.shot._currentframe == 34) {
leave = true;
}
}
if (leave == true) {
this._parent.body.gotoAndStop(4);
this._parent.body._x += this._parent.TargetMove / 2;
this._parent.TargetMove += 2;
if (this._parent.TargetMove > TargetMove2) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 852 {
frame 3 {
stop();
}
}
movieClip 853 {
frame 1 {
stop();
}
}
movieClip 854 Police {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
TargetMove2 = this._parent.TargetMove;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._x -= this._parent.TargetMove / 2;
if (this._parent.TargetMove > 1) {
this._parent.TargetMove -= 2;
} else {
this._parent.body.gotoAndStop(2);
this._parent.TargetMove = 0;
MonAp = false;
}
} else {
if (this._parent.body._currentframe == 2) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
if (this._parent.body._currentframe == 3) {
if (this._parent.body.shot._currentframe == 34) {
leave = true;
}
}
if (leave == true) {
this._parent.body.gotoAndStop(4);
this._parent.body._x += this._parent.TargetMove / 2;
this._parent.TargetMove += 2;
if (this._parent.TargetMove > TargetMove2) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 857 {
frame 3 {
stop();
}
}
movieClip 858 {
frame 1 {
stop();
}
}
movieClip 859 Professor {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
TargetMove2 = this._parent.TargetMove;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._x -= this._parent.TargetMove / 2;
if (this._parent.TargetMove > 1) {
this._parent.TargetMove -= 2;
} else {
this._parent.body.gotoAndStop(2);
this._parent.TargetMove = 0;
MonAp = false;
}
} else {
if (this._parent.body._currentframe == 2) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
if (this._parent.body._currentframe == 3) {
if (this._parent.body.shot._currentframe == 34) {
leave = true;
}
}
if (leave == true) {
this._parent.body.gotoAndStop(4);
this._parent.body._x += this._parent.TargetMove / 2;
this._parent.TargetMove += 2;
if (this._parent.TargetMove > TargetMove2) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 861 Yshoot6 {
}
movieClip 863 Nshoot6 {
}
movieClip 869 {
}
movieClip 870 {
frame 3 {
stop();
}
}
movieClip 872 {
frame 1 {
stop();
}
}
movieClip 873 Dog {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
TargetMove2 = this._parent.TargetMove;
MonAp = true;
bon1 = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._x += this._parent.TargetMove / 2;
if (this._parent.TargetMove > 1) {
this._parent.TargetMove -= 2;
} else {
this._parent.body.gotoAndStop(2);
this._parent.TargetMove = 0;
MonAp = false;
}
} else {
if (this._parent.body._currentframe == 2) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
if (this._parent.body._currentframe == 3) {
if (this._parent.body.shot._currentframe == 34) {
bon1 = false;
leave = true;
}
}
if (leave == true) {
this._parent.body.gotoAndStop(4);
this._parent.body._x -= this._parent.TargetMove / 2;
this._parent.TargetMove += 2;
if (this._parent.TargetMove > TargetMove2) {
if (bon1 == true) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 875 MoneyBG {
}
movieClip 877 l3background {
}
movieClip 879 l3couch {
}
movieClip 881 l3lamp {
}
movieClip 942 {
}
movieClip 947 {
frame 11 {
stop();
}
}
movieClip 948 l3TV {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.TVswitch == true) {
this.gotoAndStop(2);
}
};
}
frame 2 {
stop();
onEnterFrame = function () {
stop();
};
}
}
movieClip 949 zombieR {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
MonRotate = random(4) + 15;
MonRotate2 = MonRotate;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._rotation += MonRotate;
this._parent.body._x += MonRotate;
if (MonRotate > 1) {
MonRotate -= 4;
} else {
MonRotate = 0;
MonAp = false;
}
} else {
if (_root.targetleave == true) {
++timer;
if (timer == LeaveTime) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._rotation -= MonRotate;
this._parent.body._x -= MonRotate;
MonRotate += 4;
if (MonRotate > MonRotate2) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 951 {
}
movieClip 954 {
frame 1 {
_root.scoreadd -= 25;
}
}
movieClip 955 {
frame 10 {
stop();
}
}
movieClip 956 {
frame 1 {
stop();
}
}
movieClip 957 press {
instance of movieClip 4 {
onClipEvent (load) {
MonDrop = 26;
MonAp = true;
leave = false;
timer = 0;
SnapTime = 20 + random(20);
photos = 0;
}
onClipEvent (enterFrame) {
if (this._parent.body._currentframe !== 3) {
if (this._parent.body.PFlash._currentframe == 7) {
this._parent.body.gotoAndStop(1);
}
if (MonAp == true) {
this._parent.body._y -= MonDrop;
if (MonDrop == 0) {
MonAp = false;
MonDrop = 0;
} else {
MonDrop -= 2;
}
} else {
if (leave == false) {
if (_root.targetleave == true) {
if (this._parent.body._currentframe == 1) {
++timer;
}
if (timer == SnapTime) {
this._parent.body.gotoAndStop(2);
++photos;
timer = 0;
}
}
if (photos >= 5) {
leave = true;
}
}
}
if (leave == true) {
this._parent.body._y += MonDrop;
MonDrop += 2;
}
if (this._parent.body._y > 500) {
_root.bonus1 = false;
if (_root.gametimer < 2200) {
_root.PressAppear();
}
this._parent.removeMovieClip();
}
}
if (this._parent.body.PDie._currentframe == 10) {
if (_root.gametimer < 2200) {
_root.PressAppear();
}
this._parent.removeMovieClip();
}
}
}
}
movieClip 958 zombieL {
instance of movieClip 4 {
onClipEvent (load) {
leave = false;
timer = 0;
LeaveTime = random(10) + 90;
MonRotate = random(4) + 15;
MonRotate2 = MonRotate;
MonAp = true;
}
onClipEvent (enterFrame) {
if (MonAp == true) {
this._parent.body._rotation -= MonRotate;
this._parent.body._x -= MonRotate;
if (MonRotate > 1) {
MonRotate -= 4;
} else {
MonRotate = 0;
MonAp = false;
}
} else {
if (_root.targetleave == true) {
if (this._parent.body._currentframe == 1) {
++timer;
}
if (timer == LeaveTime) {
leave = true;
}
}
}
if (this._parent.body._currentframe == 3) {
}
if (leave == true) {
this._parent.body._rotation += MonRotate;
this._parent.body._x += MonRotate;
MonRotate += 4;
if (MonRotate > MonRotate2) {
if (this._parent.body._currentframe == 1) {
_root.bonus1 = false;
}
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 960 stage {
}
movieClip 964 {
}
movieClip 967 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
movieClip 969 {
}
movieClip 971 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
movieClip 973 {
}
movieClip 975 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
movieClip 976 lights {
}
movieClip 994 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 1001 {
frame 1 {
stop();
}
frame 18 {
stop();
}
}
movieClip 1003 {
}
movieClip 1004 {
frame 18 {
stop();
}
}
movieClip 1005 mctom {
frame 1 {
stop();
}
}
movieClip 1007 Yshoot9 {
}
movieClip 1009 Nshoot9 {
}
movieClip 1016 {
}
movieClip 1020 {
frame 21 {
stop();
}
}
movieClip 1021 {
}
movieClip 1022 {
frame 1 {
stop();
}
}
movieClip 1023 MoneyPlane {
instance of movieClip 4 {
onClipEvent (load) {
this._parent.body.spin.gotoAndPlay(random(40) + 1);
flySpeed = (random(50) + 60 * (this._parent._xscale / 100)) / 10;
fallSpeed = 0;
}
onClipEvent (enterFrame) {
if (this._parent.body._currentframe == 1) {
this._parent._x -= flySpeed;
if (this._parent._x < -375) {
this._parent.removeMovieClip();
}
}
if (this._parent.body._currentframe == 2) {
this._parent.body.banner._x -= flySpeed;
this._parent.body.banner._y += fallSpeed;
fallSpeed += 1.5;
if (this._parent.body.banner._y > 550) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 1044 {
}
movieClip 1049 {
frame 16 {
stop();
}
}
movieClip 1050 {
frame 1 {
stop();
}
}
movieClip 1051 MoneyCoin {
instance of movieClip 4 {
onClipEvent (load) {
this._parent.body.spin.gotoAndPlay(random(40) + 1);
fallSpeed = random(5) + 7 * (this._parent._xscale / 100);
}
onClipEvent (enterFrame) {
if (this._parent.body._currentframe == 1) {
this._parent._y += fallSpeed;
if (this._parent._y > 450) {
_root.bonus1 = false;
this._parent.removeMovieClip();
}
}
if (this._parent.body._currentframe == 2) {
if (this._parent.body.destroy._currentframe == 16) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 1052 {
}
movieClip 1053 {
}
movieClip 1054 Edd9 {
frame 1 {
stop();
}
}
movieClip 1056 {
}
movieClip 1057 {
}
movieClip 1058 {
}
movieClip 1059 edd4 {
frame 1 {
stop();
}
}
movieClip 1061 Yshoot4 {
}
movieClip 1062 Nshoot4 {
}
movieClip 1067 {
}
movieClip 1069 {
}
movieClip 1070 {
frame 15 {
stop();
}
}
movieClip 1071 Rocket {
frame 1 {
stop();
}
}
movieClip 1086 {
frame 1 {
stop();
}
}
movieClip 1092 {
frame 1 {
stop();
}
}
movieClip 1093 {
frame 1 {
stop();
}
}
movieClip 1094 infobar9 {
instance eddface of movieClip 1093 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 1096 infobarC {
instance eddface of movieClip 338 {
onClipEvent (load) {
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
}
movieClip 1102 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1103 {
}
movieClip 1105 {
}
movieClip 1106 {
}
movieClip 1108 {
}
movieClip 1110 {
}
movieClip 1124 {
}
movieClip 1125 {
frame 21 {
stop();
}
}
movieClip 1126 {
frame 20 {
stop();
}
}
movieClip 1127 Monster {
frame 1 {
stop();
}
}
movieClip 1129 Yshoot11 {
}
movieClip 1131 Nshoot11 {
}
movieClip 1137 {
}
movieClip 1138 {
frame 16 {
stop();
}
}
movieClip 1139 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1140 colaY {
instance codelol of movieClip 4 {
onClipEvent (load) {
this._parent.FlySpeed = random(10) + 20;
AcrossSpeed = random(20) - 10;
RotateSpeed = random(40) - 20;
ScaleChange = true;
}
onClipEvent (enterFrame) {
if (this._parent.body._currentframe < 6) {
this._parent._y -= this._parent.FlySpeed;
this._parent._x += AcrossSpeed;
this._parent._rotation += RotateSpeed;
if (this._parent.FlySpeed > 0) {
this._parent.FlySpeed -= 1;
} else {
this._parent.FlySpeed -= 0.5;
}
if (this._parent.hitTest(_root.side1) && AcrossSpeed < 0) {
AcrossSpeed = -AcrossSpeed;
}
if (this._parent.hitTest(_root.side2) && AcrossSpeed > 0) {
AcrossSpeed = -AcrossSpeed;
}
if (this._parent._y > 500) {
_root.bonus1 = false;
this._parent.removeMovieClip();
}
}
if (this._parent.body._currentframe == 6) {
if (this._parent.body.boom._currentframe == 16) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 1146 {
frame 1 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1147 colaN {
instance codelol of movieClip 4 {
onClipEvent (load) {
this._parent.FlySpeed = random(10) + 20;
AcrossSpeed = random(20) - 10;
RotateSpeed = random(40) - 20;
ScaleChange = true;
}
onClipEvent (enterFrame) {
if (this._parent.dietbody._currentframe < 6) {
this._parent._y -= this._parent.FlySpeed;
this._parent._x += AcrossSpeed;
this._parent._rotation += RotateSpeed;
if (this._parent.FlySpeed > 0) {
this._parent.FlySpeed -= 1;
} else {
this._parent.FlySpeed -= 0.5;
}
if (this._parent.hitTest(_root.side1) && AcrossSpeed < 0) {
AcrossSpeed = -AcrossSpeed;
}
if (this._parent.hitTest(_root.side2) && AcrossSpeed > 0) {
AcrossSpeed = -AcrossSpeed;
}
if (this._parent._y > 500) {
this._parent.removeMovieClip();
}
}
if (this._parent.dietbody._currentframe == 6) {
if (this._parent.dietbody.boom._currentframe == 16) {
this._parent.removeMovieClip();
}
}
}
}
}
movieClip 1150 {
frame 1 {
stop();
}
}
movieClip 1163 {
}
movieClip 1164 {
}
movieClip 1172 {
frame 1 {
stop();
}
}
movieClip 1173 l4_background {
instance of movieClip 1150 {
onClipEvent (enterFrame) {
if (_root.lightning == true) {
this.gotoAndPlay(2);
}
if (this._currentframe > 1) {
_root.lightning = false;
}
}
}
instance of movieClip 1164 {
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.rain == true) {
this._alpha = 100;
}
}
}
instance of movieClip 1172 {
onClipEvent (enterFrame) {
if (_root.shake == true) {
this.gotoAndPlay(2);
}
if (this._currentframe > 1) {
_root.shake = false;
}
}
}
}
movieClip 1176 {
}
movieClip 1178 {
}
movieClip 1180 {
}
movieClip 1182 {
}
movieClip 1192 l4EddDie {
frame 30 {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
frame 35 {
stop();
}
}
movieClip 1194 {
}
movieClip 1196 {
}
movieClip 1198 {
}
movieClip 1207 l4BingDie {
frame 30 {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
frame 35 {
stop();
}
}
movieClip 1209 tarbelt {
}
button 1210 {
on (press) {
_root.shootan = true;
}
on (release) {
_root.shootan = false;
}
}
movieClip 1211 macsucks {
}
movieClip 1250 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
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;
}
}
movieClip 1289 {
frame 1 {
_quality = 'LOW';
_root.stop();
}
instance of movieClip 1250 {
onClipEvent (enterFrame) {
_root.subtitle._x = this._x - 3.6 * this._xscale;
_root.subtitle._y = this._y + 1.6 * this._yscale;
_root.subtitle._xscale = this._xscale;
_root.subtitle._yscale = this._yscale;
}
}
frame 286 {
_root.play();
}
}
movieClip 1312 {
frame 1 {
_root.stop();
_root._quality = 'MEDIUM';
}
frame 80 {
_root.play();
}
}
frame 5 {
_root.createEmptyMovieClip('BGM_container', _root.getNextHighestDepth());
var menu_sound = new Sound(BGM_container);
menu_sound.attachSound('IMonster');
_root.createEmptyMovieClip('BGM_containerB', _root.getNextHighestDepth());
var menu_soundB = new Sound(BGM_containerB);
menu_soundB.attachSound('IMonsterB');
menu_sound.setVolume(100);
menu_soundB.setVolume(100);
onEnterFrame = function () {
var v2 = new Sound();
v2.attachSound('silent');
v2.start(0, 1);
v2.setVolume(100);
_root.setVolume(100);
stop();
play();
_root.TitleMove = false;
};
}
frame 6 {
onEnterFrame = function () {
_root.setVolume(100);
menu_sound.setVolume(100);
menu_soundB.setVolume(0);
};
}
movieClip 1320 {
frame 15 {
stop();
}
}
instance edd of movieClip 1320 {
onClipEvent (load) {
_root.TitleMove = false;
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
}
onClipEvent (enterFrame) {
if (_root.TitleMove == false) {
this._x = 128.8 + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = 12.1 + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
}
}
movieClip 1327 {
frame 10 {
stop();
}
}
movieClip 1334 {
frame 10 {
stop();
}
}
movieClip 1335 {
frame 1 {
stop();
}
}
instance bang of movieClip 1335 {
onClipEvent (load) {
_root.TitleMove = false;
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.TitleMove == false) {
this._x = 35 + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = 84 + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
}
}
movieClip 1340 {
frame 10 {
stop();
}
}
instance boom of movieClip 1340 {
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
}
onClipEvent (enterFrame) {
if (_root.TitleMove == false) {
this._x = 269.1 + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = 79.40000000000001 + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
}
}
movieClip 1344 {
frame 3 {
stop();
}
}
instance splat of movieClip 1344 {
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
}
onClipEvent (enterFrame) {
if (_root.TitleMove == false) {
this._x = 37 + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = 165.7 + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
}
}
button 1355 {
on (release) {
_root.TitleMove = true;
_root.GoTo = 1;
}
}
frame 82 {
menu_sound.start(0, 9999);
menu_soundB.start(0, 9999);
onEnterFrame = function () {
menu_sound.setVolume(100);
menu_soundB.setVolume(0);
};
}
button 1356 {
on (release) {
_root.TitleMove = true;
_root.GoTo = 5;
}
}
button 1357 {
on (release) {
_root.TitleMove = true;
_root.GoTo = 2;
}
}
button 1358 {
on (release) {
_root.TitleMove = true;
_root.GoTo = 3;
}
}
button 1359 {
on (release) {
_root.TitleMove = true;
_root.GoTo = 4;
}
}
frame 88 {
stop();
_root.TitleMove = false;
tMove = 0;
_root.GoTo = 0;
onEnterFrame = function () {
if (_root.TitleMove == true) {
if (_root.GoTo == 2) {
menu_soundB.setVolume(tMove * 4);
}
if (_root.GoTo == 5 || _root.GoTo == 1) {
menu_sound.setVolume(100 - tMove * 4);
}
_root.edd._y -= tMove;
_root.bang._x -= tMove;
_root.boom._x += tMove;
_root.splat._y += tMove;
_root.but1._y += tMove / 2;
_root.but2._y += tMove / 3;
_root.but3._y += tMove / 3;
_root.but4._y += tMove / 3;
_root.but5._y += tMove / 2;
++tMove;
if (_root.glow._currentframe == 1) {
_root.glow.play();
}
}
if (_root.tMove == 25) {
if (_root.GoTo == 1) {
stopAllSounds();
gotoAndStop(99);
}
if (_root.GoTo == 2) {
gotoAndStop(114);
}
if (_root.GoTo == 3) {
gotoAndStop(90);
}
if (_root.GoTo == 4) {
gotoAndStop(91);
}
if (_root.GoTo == 5) {
stopAllSounds();
gotoAndStop(136);
}
}
};
}
movieClip 1360 {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
frame 89 {
stop();
_root.TitleMove = false;
tMove = -25;
_root.GoTo = 0;
onEnterFrame = function () {
if (tMove < 0) {
_root.but1._y += tMove / 2;
_root.but2._y += tMove / 3;
_root.but3._y += tMove / 3;
_root.but4._y += tMove / 3;
_root.but5._y += tMove / 2;
++tMove;
}
if (_root.TitleMove == true) {
if (_root.GoTo == 2) {
menu_soundB.setVolume(tMove * 4);
}
if (_root.GoTo == 5 || _root.GoTo == 1) {
menu_sound.setVolume(100 - tMove * 4);
}
_root.edd._y -= tMove;
_root.bang._x -= tMove;
_root.boom._x += tMove;
_root.splat._y += tMove;
_root.but1._y += tMove / 2;
_root.but2._y += tMove / 3;
_root.but3._y += tMove / 3;
_root.but4._y += tMove / 3;
_root.but5._y += tMove / 2;
++tMove;
if (_root.glow._currentframe == 1) {
_root.glow.play();
}
}
if (_root.tMove == 25) {
if (_root.GoTo == 1) {
stopAllSounds();
gotoAndStop(99);
}
if (_root.GoTo == 2) {
gotoAndStop(114);
}
if (_root.GoTo == 3) {
gotoAndStop(90);
}
if (_root.GoTo == 4) {
gotoAndStop(91);
}
if (_root.GoTo == 5) {
stopAllSounds();
gotoAndStop(136);
}
}
};
}
instance bang of movieClip 1335 {
onClipEvent (load) {
this.gotoAndPlay(1);
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
if (_root.Bing == false) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.TitleMove == false) {
this._x = 35 + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = 84 + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
}
}
instance boom of movieClip 1340 {
onClipEvent (load) {
this.gotoAndPlay(1);
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
}
onClipEvent (enterFrame) {
if (_root.TitleMove == false) {
this._x = 269.1 + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = 79.40000000000001 + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
}
}
instance splat of movieClip 1344 {
onClipEvent (load) {
this.gotoAndPlay(1);
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
}
onClipEvent (enterFrame) {
if (_root.TitleMove == false) {
this._x = 37 + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = 165.7 + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
}
}
button 1361 {
on (release) {
if (tMove == 0) {
_root.TitleMove = true;
_root.GoTo = 5;
}
}
}
button 1362 {
on (release) {
if (tMove == 0) {
_root.TitleMove = true;
_root.GoTo = 4;
}
}
}
button 1363 {
on (release) {
if (tMove == 0) {
_root.TitleMove = true;
_root.GoTo = 3;
}
}
}
button 1364 {
on (release) {
if (tMove == 0) {
_root.TitleMove = true;
_root.GoTo = 1;
}
}
}
button 1365 {
on (release) {
if (tMove == 0) {
_root.TitleMove = true;
_root.GoTo = 2;
}
}
}
instance edd of movieClip 1320 {
onClipEvent (load) {
this.gotoAndPlay(1);
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
}
onClipEvent (enterFrame) {
if (_root.TitleMove == false) {
this._x = 128.8 + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = 12.1 + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
}
}
frame 90 {
_root.fadeout._alpha = 100;
onEnterFrame = function () {
if (_root.fadeout._alpha > 0) {
_root.fadeout._alpha -= 4;
}
};
}
button 1367 {
on (release) {
gotoAndStop(89);
}
}
// unknown tag 88 length 69
// unknown tag 88 length 69
movieClip 1374 {
}
frame 91 {
_root.fadeout._alpha = 100;
_root.OptDelete = false;
_root.OptDelete2 = false;
_root.OptCodeEnter = false;
_root.OptStatEnter = false;
_root.OptMovieEnter = false;
_root.DelSweep = 20;
var savefile = SharedObject.getLocal('EddGame');
if (savefile.data.StoryComplete == undefined) {
savefile.data.StoryComplete = false;
}
if (savefile.data.StoryComplete == true) {
_root.MovButton._alpha = 100;
} else {
_root.MovButton._alpha = 50;
}
onEnterFrame = function () {
if (_root.OptCodeEnter == false && _root.OptStatEnter == false && _root.OptMovieEnter == false) {
if (_root.fadeout._alpha > 0) {
_root.fadeout._alpha -= 4;
}
}
if (_root._quality == 'LOW') {
_root.OptLow.gotoAndStop(2);
_root.OptMed.gotoAndStop(1);
_root.OptHigh.gotoAndStop(1);
} else {
if (_root._quality == 'MEDIUM') {
_root.OptLow.gotoAndStop(1);
_root.OptMed.gotoAndStop(2);
_root.OptHigh.gotoAndStop(1);
} else {
if (_root._quality == 'HIGH') {
_root.OptLow.gotoAndStop(1);
_root.OptMed.gotoAndStop(1);
_root.OptHigh.gotoAndStop(2);
} else {
_root.OptLow.gotoAndStop(1);
_root.OptMed.gotoAndStop(1);
_root.OptHigh.gotoAndStop(1);
}
}
}
if (_root.OptDelete == false && _root.OptDelete2 == false) {
_root.OptYes._x = -150;
_root.OptYes._y = 355;
_root.OptNo._x = -60;
_root.OptNo._y = 355;
}
if (_root.OptDelete == true) {
_root.OptNo._x += _root.DelSweep;
if (_root.DelSweep > 0) {
--_root.DelSweep;
}
_root.OptYes._x += _root.DelSweep;
}
if (_root.OptDelete2 == true) {
_root.OptDelete = false;
_root.OptNo._x -= _root.DelSweep;
if (_root.DelSweep < 20) {
++_root.DelSweep;
} else {
_root.OptDelete2 = false;
}
_root.OptYes._x -= _root.DelSweep;
}
if (_root.OptCodeEnter == true) {
if (_root.fadeout._alpha < 100) {
_root.fadeout._alpha += 4;
} else {
gotoAndStop(92);
}
}
if (_root.OptStatEnter == true) {
if (_root.fadeout._alpha < 100) {
_root.fadeout._alpha += 4;
} else {
gotoAndStop(93);
}
}
if (_root.OptMovieEnter == true) {
if (_root.fadeout._alpha < 100) {
_root.fadeout._alpha += 4;
} else {
gotoAndStop(94);
}
}
};
}
instance of movieClip 4 {
onClipEvent (release) {
getURL('http://www.psy-city.co.uk/', '_blank');
}
}
instance of movieClip 4 {
onClipEvent (release) {
getURL('http://www.eddsworld.co.uk/', '_blank');
}
}
movieClip 1381 {
frame 1 {
stop();
}
}
movieClip 1403 {
}
movieClip 1408 {
frame 1 {
stop();
}
}
movieClip 1410 {
}
movieClip 1411 {
frame 1 {
stop();
}
instance of movieClip 1381 {
onClipEvent (load) {
blinkTimer = 0;
timeBlink = random(140) + 140;
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
++blinkTimer;
if (blinkTimer >= timeBlink) {
this.play();
this._parent.eyeMask.play();
}
} else {
blinkTimer = 0;
timeBlink = random(140) + 140;
}
}
}
instance EyeR of movieClip 1410 {
onClipEvent (enterFrame) {
this._rotation = 180 * Math.atan2(_root.OptEdd._y + this._y - _root._ymouse, _root.OptEdd._x + this._x - _root._xmouse) / Math.PI;
}
}
instance EyeL of movieClip 1410 {
onClipEvent (enterFrame) {
this._rotation = 180 * Math.atan2(_root.OptEdd._y + this._y - _root._ymouse, _root.OptEdd._x + this._x - _root._xmouse) / Math.PI;
}
}
}
movieClip 1415 {
}
instance OptLow of movieClip 1415 {
onClipEvent (release) {
_root._quality = 'LOW';
}
}
movieClip 1417 {
}
instance OptMed of movieClip 1417 {
onClipEvent (release) {
_root._quality = 'MEDIUM';
}
}
movieClip 1419 {
}
instance OptHigh of movieClip 1419 {
onClipEvent (release) {
_root._quality = 'HIGH';
}
}
movieClip 1423 {
frame 1 {
stop();
}
}
instance OptSave of movieClip 1423 {
onClipEvent (release) {
if (this._currentframe == 1) {
_root.OptDelete = true;
this.gotoAndStop(2);
}
}
}
movieClip 1425 {
}
instance OptYes of movieClip 1425 {
onClipEvent (release) {
if (_root.DelSweep == 0) {
_root.OptSave.gotoAndStop(3);
var savefile = SharedObject.getLocal('EddGame');
savefile.clear();
i = 1;
while (i <= 4) {
_root['code' + i] = 0;
++i;
}
_root.serious = true;
_root.Bing = false;
_root.unammo = false;
_root.lvl2lock = true;
_root.lvl3lock = true;
_root.lvl4lock = true;
_root.OptDelete2 = true;
}
}
}
movieClip 1427 {
}
instance OptNo of movieClip 1427 {
onClipEvent (release) {
if (_root.DelSweep == 0) {
_root.OptSave.gotoAndStop(1);
_root.OptDelete2 = true;
}
}
}
instance OptCodes of movieClip 4 {
onClipEvent (release) {
_root.OptCodeEnter = true;
}
}
instance OptStats of movieClip 4 {
onClipEvent (release) {
_root.OptStatEnter = true;
}
}
movieClip 1431 {
}
instance OptMovies of movieClip 4 {
onClipEvent (release) {
if (savefile.data.StoryComplete == true) {
_root.OptMovieEnter = true;
}
}
}
frame 92 {
_root.CodeInput = '';
_root.fadeout._alpha = 100;
i = 1;
while (i <= 4) {
if (savefile.data['code' + i] == undefined) {
_root['code' + i] = 0;
savefile.data['code' + i] = 0;
} else {
_root['code' + i] = savefile.data['code' + i];
}
++i;
}
onEnterFrame = function () {
if (_root.fadeout._alpha > 0) {
_root.fadeout._alpha -= 4;
}
var v2 = SharedObject.getLocal('EddGame');
i = 1;
while (i <= 5) {
v2.data['code' + i] = _root['code' + i];
_root['Scode' + i].gotoAndStop(_root['code' + i] + 1);
++i;
}
};
}
movieClip 1437 {
frame 1 {
stop();
}
}
instance Scode1 of movieClip 1437 {
onClipEvent (release) {
if (this._currentframe == 2) {
_root.code1 = 2;
_root.serious = false;
}
if (this._currentframe == 3) {
_root.code1 = 1;
_root.serious = true;
}
}
}
movieClip 1439 {
frame 1 {
stop();
}
}
instance Scode2 of movieClip 1439 {
onClipEvent (release) {
if (this._currentframe == 2) {
_root.code2 = 2;
_root.Bing = true;
}
if (this._currentframe == 3) {
_root.code2 = 1;
_root.Bing = false;
}
}
}
movieClip 1441 {
frame 1 {
stop();
}
}
instance Scode3 of movieClip 1441 {
onClipEvent (release) {
if (this._currentframe == 2) {
_root.code3 = 2;
_root.unammo = true;
}
if (this._currentframe == 3) {
_root.code3 = 1;
_root.unammo = false;
}
}
}
movieClip 1443 {
frame 1 {
stop();
}
}
instance Scode4 of movieClip 1443 {
onClipEvent (release) {
if (this._currentframe == 2) {
_root.code4 = 2;
}
if (this._currentframe == 3) {
_root.code4 = 1;
}
}
}
instance SubmitCode of movieClip 4 {
onClipEvent (release) {
_root.CodeInput = _root.CodeInput.toLowerCase();
if (_root.CodeInput == 'whysoserious') {
if (_root.code1 == 0) {
_root.code1 = 1;
}
}
if (_root.CodeInput == 'chrisbingbong') {
if (_root.code2 == 0) {
_root.code2 = 1;
}
}
if (_root.CodeInput == 'telford') {
if (_root.code3 == 0) {
_root.code3 = 1;
}
}
if (_root.CodeInput == 'callumhowarth') {
if (_root.code4 == 0) {
_root.code4 = 1;
}
}
_root.CodeInput = '';
}
}
frame 93 {
stop();
i = 1;
while (i <= 10) {
if (savefile.data['score' + i] == undefined) {
_root['score' + i] = 0;
} else {
_root['score' + i] = savefile.data['score' + i];
}
if (savefile.data['played' + i] == undefined) {
_root['played' + i] = 0;
} else {
_root['played' + i] = savefile.data['played' + i];
}
++i;
}
i = 1;
while (i <= 10) {
_root['lvl' + i].score = _root['score' + i];
++i;
}
_root.fadeout._alpha = 100;
_root.BronTotal = 0;
_root.SilvTotal = 0;
_root.GoldTotal = 0;
_root.PlatTotal = 0;
_root.lvl1Unlocked = true;
_root.lvl2Unlocked = false;
_root.lvl3Unlocked = false;
_root.lvl4Unlocked = false;
_root.lvl5Unlocked = false;
_root.lvl6Unlocked = false;
_root.lvl7Unlocked = false;
_root.lvl8Unlocked = false;
_root.lvl9Unlocked = false;
_root.lvl10Unlocked = false;
_root.TlvlUnlocked = 1;
if (_root.score1 >= _root.lvl1TargetD) {
_root.lvl2Unlocked = true;
++_root.TlvlUnlocked;
}
if (_root.score2 >= _root.lvl2TargetD) {
_root.lvl3Unlocked = true;
++_root.TlvlUnlocked;
}
if (_root.score3 >= _root.lvl3TargetD) {
_root.lvl4Unlocked = true;
++_root.TlvlUnlocked;
}
if (_root.score1 >= _root.lvl1TargetB && _root.score2 >= _root.lvl2TargetB && _root.score3 >= _root.lvl3TargetB && _root.score4 >= _root.lvl4TargetB) {
_root.lvl5Unlocked = true;
++_root.TlvlUnlocked;
}
if (_root.score5 >= _root.lvl5TargetB) {
_root.lvl6Unlocked = true;
++_root.TlvlUnlocked;
}
if (_root.score1 >= _root.lvl1TargetS && _root.score2 >= _root.lvl2TargetS && _root.score3 >= _root.lvl3TargetS && _root.score4 >= _root.lvl4TargetS) {
_root.lvl7Unlocked = true;
++_root.TlvlUnlocked;
}
if (_root.score7 >= _root.lvl7TargetS) {
_root.lvl8Unlocked = true;
++_root.TlvlUnlocked;
}
i = 1;
_root.PlatTotal = 0;
_root.GoldTotal = 0;
_root.SilvTotal = 0;
_root.BronTotal = 0;
while (i <= 10) {
if (_root['score' + i] >= _root['lvl' + i + 'TargetP']) {
++_root.PlatTotal;
} else {
if (_root['score' + i] >= _root['lvl' + i + 'TargetG']) {
++_root.GoldTotal;
} else {
if (_root['score' + i] >= _root['lvl' + i + 'TargetS']) {
++_root.SilvTotal;
} else {
if (_root['score' + i] >= _root['lvl' + i + 'TargetB']) {
++_root.BronTotal;
}
}
}
}
++i;
}
i = 1;
if (_root.PlatTotal >= 5) {
_root.lvl9Unlocked = true;
++_root.TlvlUnlocked;
}
if (_root.PlatTotal >= 6) {
_root.lvl10Unlocked = true;
++_root.TlvlUnlocked;
}
if (_root.code4 > 1) {
_root.TlvlUnlocked = 10;
while (i <= 10) {
_root['lvl' + i + 'Unlocked'] = true;
++i;
}
i = 1;
}
if (savefile.data['played' + i] == undefined) {
_root['played' + i] = 0;
} else {
_root['played' + i] = savefile.data['played' + i];
}
_root.StatLow = _root.played1;
_root.StatLeast.gotoAndStop(i);
while (i <= 10) {
if (_root['lvl' + i + 'Unlocked'] == true) {
if (_root['played' + i] < _root.StatLow) {
_root.StatLow = _root['played' + i];
_root.StatLeast.gotoAndStop(i);
}
}
++i;
}
i = 1;
_root.StatHigh = _root.played1;
_root.StatMost.gotoAndStop(i);
while (i <= 10) {
if (_root['lvl' + i + 'Unlocked'] == true) {
if (_root['played' + i] > _root.StatHigh) {
_root.StatHigh = _root['played' + i];
_root.StatMost.gotoAndStop(i);
}
}
++i;
}
i = 1;
_root.StatB = _root.BronTotal;
_root.StatS = _root.SilvTotal;
_root.StatG = _root.GoldTotal;
_root.StatP = _root.PlatTotal;
_root.StatlvlUnlocked = _root.TlvlUnlocked + '/10';
onEnterFrame = function () {
if (_root.fadeout._alpha > 0) {
_root.fadeout._alpha -= 4;
}
};
}
button 1447 {
on (release) {
gotoAndStop(89);
}
}
movieClip 1459 {
}
movieClip 1461 {
}
movieClip 1462 {
}
movieClip 1485 {
}
movieClip 1487 {
}
frame 94 {
_root.fadeout._alpha = 100;
_root.movEnding = false;
_root.movOpening = false;
onEnterFrame = function () {
if (_root.fadeout._alpha > 0) {
_root.fadeout._alpha -= 4;
}
if (_root.movOpening == true) {
gotoAndStop(95);
}
if (_root.movEnding == true) {
gotoAndStop(97);
}
};
}
instance of movieClip 4 {
onClipEvent (release) {
_root.movOpening = true;
stopAllSounds();
}
}
instance of movieClip 4 {
onClipEvent (release) {
_root.movEnding = true;
stopAllSounds();
}
}
frame 95 {
onEnterFrame = function () {};
}
movieClip 1572 {
frame 1 {
_root.stop();
}
frame 767 {
_root.nextFrame();
}
}
frame 96 {
onEnterFrame = function () {
gotoAndPlay(5);
};
}
frame 97 {
onEnterFrame = function () {};
}
movieClip 1641 {
frame 515 {
_root.nextFrame();
}
}
frame 98 {
onEnterFrame = function () {
gotoAndPlay(5);
};
}
frame 99 {
onEnterFrame = function () {};
}
frame 100 {
stop();
play();
}
frame 101 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('Wall', 'wall1', 5000);
_root.attachMovie('Wall', 'wall2', 4999);
_root.attachMovie('blackout', 'blackout', 10005);
var music1_sound = new Sound();
music1_sound.attachSound('music1');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.wall1._x = 430;
_root.wall1._y = -20;
_root.wall2._x = 120;
_root.wall2._y = -20;
_root.wall2._xscale = -100;
_root.eddframe = 1;
_root.ammo = 6;
_root.totalammo = 120;
_root.ammomax = 6;
_root.buttondown = false;
stop();
HoleI = 1;
HoleI1 = 1;
HoleI2 = 1;
MonI = 1000;
MonI2 = 0;
HighI = 0;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 90;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot1', 'yshoot', 10007);
_root.attachMovie('Nshoot1', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score1 < _root.lvl1TargetD) {
_root.showtarget.targetyay = _root.lvl1TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score1 < _root.lvl1TargetB) {
_root.showtarget.targetyay = _root.lvl1TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score1 < _root.lvl1TargetS) {
_root.showtarget.targetyay = _root.lvl1TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score1 < _root.lvl1TargetG) {
_root.showtarget.targetyay = _root.lvl1TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl1TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar1', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd1', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music1_sound.start(0, 999);
music1_sound.setVolume(100);
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 2) {
MonsterLeft();
}
if (gametimer == 4) {
MonsterRight();
}
if (gametimer == 6) {
MonsterBack();
}
if (gametimer == 8) {
MonsterBack();
}
if (gametimer == 77) {
MonsterRight();
}
if (gametimer == 79) {
MonsterLeft();
}
if (gametimer == 81) {
MonsterRight();
}
if (gametimer == 83) {
MonsterBack();
}
if (gametimer == 152) {
Civtom();
}
if (gametimer == 154) {
MonsterBack();
}
if (gametimer == 156) {
MonsterBack();
}
if (gametimer == 158) {
MonsterBack();
}
if (gametimer == 227) {
MonsterLeft();
}
if (gametimer == 229) {
MonsterLeft();
}
if (gametimer == 231) {
MonsterRight();
}
if (gametimer == 233) {
MonsterRight();
}
if (gametimer == 290) {
MonsterLeft();
}
if (gametimer == 298) {
MonsterRight();
}
if (gametimer == 306) {
MonsterLeft();
}
if (gametimer == 314) {
MonsterRight();
}
if (gametimer == 370) {
MonsterBack();
}
if (gametimer == 372) {
MonsterBack();
}
if (gametimer == 374) {
MonsterLeft();
}
if (gametimer == 378) {
MonsterRight();
}
if (gametimer == 430) {
MonsterLeft();
}
if (gametimer == 438) {
MonsterRight();
}
if (gametimer == 446) {
MonsterLeft();
}
if (gametimer == 454) {
MonsterRight();
}
if (gametimer == 527) {
MonsterLeft();
}
if (gametimer == 529) {
MonsterRight();
}
if (gametimer == 531) {
Civtord();
}
if (gametimer == 533) {
MonsterLeft();
}
if (gametimer == 602) {
MonsterBack();
}
if (gametimer == 604) {
MonsterBack();
}
if (gametimer == 606) {
MonsterLeft();
}
if (gametimer == 608) {
MonsterRight();
}
if (gametimer == 677) {
MonsterBack();
}
if (gametimer == 679) {
MonsterBack();
}
if (gametimer == 681) {
MonsterBack();
}
if (gametimer == 683) {
MonsterBack();
}
if (gametimer == 752) {
MonsterLeft();
}
if (gametimer == 754) {
MonsterRight();
}
if (gametimer == 756) {
MonsterBack();
}
if (gametimer == 758) {
MonsterLeft();
}
if (gametimer == 842) {
MonsterLeft();
}
if (gametimer == 850) {
MonsterRight();
}
if (gametimer == 858) {
MonsterLeft();
}
if (gametimer == 866) {
MonsterRight();
}
if (gametimer == 922) {
MonsterBack();
}
if (gametimer == 924) {
MonsterBack();
}
if (gametimer == 926) {
MonsterLeft();
}
if (gametimer == 928) {
MonsterRight();
}
if (gametimer == 980) {
MonsterLeft();
}
if (gametimer == 988) {
MonsterRight();
}
if (gametimer == 996) {
MonsterLeft();
}
if (gametimer == 1004) {
MonsterRight();
}
if (gametimer == 1057) {
MonsterLeft();
}
if (gametimer == 1059) {
MonsterRight();
}
if (gametimer == 1061) {
MonsterBack();
}
if (gametimer == 1063) {
MonsterBack();
}
if (gametimer == 1132) {
MonsterBack();
}
if (gametimer == 1134) {
MonsterRight();
}
if (gametimer == 1136) {
MonsterBack();
}
if (gametimer == 1138) {
MonsterLeft();
}
if (gametimer == 1207) {
MonsterLeft();
}
if (gametimer == 1209) {
MonsterLeft();
}
if (gametimer == 1211) {
MonsterLeft();
}
if (gametimer == 1213) {
MonsterLeft();
}
if (gametimer == 1280) {
MonsterSuper();
}
if (gametimer == 1357) {
MonsterRight();
}
if (gametimer == 1359) {
MonsterLeft();
}
if (gametimer == 1361) {
MonsterRight();
}
if (gametimer == 1363) {
MonsterBack();
}
if (gametimer == 1432) {
MonsterBack();
}
if (gametimer == 1434) {
MonsterBack();
}
if (gametimer == 1436) {
MonsterBack();
}
if (gametimer == 1438) {
MonsterBack();
}
if (gametimer == 1507) {
MonsterLeft();
}
if (gametimer == 1509) {
MonsterLeft();
}
if (gametimer == 1511) {
MonsterRight();
}
if (gametimer == 1513) {
MonsterRight();
}
if (gametimer == 1574) {
MonsterLeft();
}
if (gametimer == 1582) {
MonsterRight();
}
if (gametimer == 1590) {
MonsterLeft();
}
if (gametimer == 1598) {
MonsterRight();
}
if (gametimer == 1650) {
MonsterBack();
}
if (gametimer == 1652) {
MonsterBack();
}
if (gametimer == 1654) {
MonsterLeft();
}
if (gametimer == 1658) {
MonsterRight();
}
if (gametimer == 1714) {
MonsterLeft();
}
if (gametimer == 1722) {
MonsterRight();
}
if (gametimer == 1730) {
MonsterLeft();
}
if (gametimer == 1738) {
MonsterRight();
}
if (gametimer == 1807) {
MonsterLeft();
}
if (gametimer == 1809) {
MonsterRight();
}
if (gametimer == 1811) {
MonsterBack();
}
if (gametimer == 1813) {
MonsterLeft();
}
if (gametimer == 1882) {
MonsterBack();
}
if (gametimer == 1884) {
MonsterBack();
}
if (gametimer == 1886) {
MonsterLeft();
}
if (gametimer == 1888) {
MonsterRight();
}
if (gametimer == 1957) {
Civmatt();
}
if (gametimer == 1959) {
MonsterBack();
}
if (gametimer == 1961) {
MonsterBack();
}
if (gametimer == 1963) {
MonsterBack();
}
if (gametimer == 2032) {
MonsterLeft();
}
if (gametimer == 2034) {
MonsterRight();
}
if (gametimer == 2036) {
MonsterBack();
}
if (gametimer == 2038) {
MonsterLeft();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
if (_root._xmouse > _root.wall2._x && _root._xmouse < _root.wall1._x) {
while (_root.MonHit == false) {
if (HighI > 0) {
MonsterHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
MonsterLeft = function () {
++MonI;
_root.attachMovie('monsterL', 'monster' + MonI, 3000 + MonI);
MonRotate = 17;
_root['monster' + MonI]._x = _root.wall2._x - 85;
_root['monster' + MonI]._y = 375 - random(225);
};
MonsterRight = function () {
++MonI;
_root.attachMovie('monsterR', 'monster' + MonI, 3000 + MonI);
MonRotate = 17;
_root['monster' + MonI]._x = _root.wall1._x + 90;
_root['monster' + MonI]._y = 400 - random(200);
};
MonsterBack = function () {
++MonI;
++MonI2;
_root.attachMovie('monsterstand1', 'monster' + MonI2, 2000 + MonI);
_root['monster' + MonI2]._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root['monster' + MonI2]._y = -90;
_root['monster' + MonI2]._xscale = 50;
_root['monster' + MonI2]._yscale = 50;
};
MonsterSuper = function () {
++MonI;
++MonI2;
_root.attachMovie('monsterSuper', 'monster999', 3500);
_root.monster999._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root.monster999._y = -150;
_root.monster999._xscale = 90;
_root.monster999._yscale = 90;
};
Civmatt = function () {
++MonI;
++MonI2;
_root.attachMovie('CivMatt', 'civillian' + MonI2, 2000 + MonI);
_root['civillian' + MonI2]._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root['civillian' + MonI2]._y = -90;
_root['civillian' + MonI2]._xscale = 40;
_root['civillian' + MonI2]._yscale = 40;
};
Civtom = function () {
++MonI;
++MonI2;
_root.attachMovie('CivTom', 'civillian' + MonI2, 2000 + MonI);
_root['civillian' + MonI2]._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root['civillian' + MonI2]._y = -90;
_root['civillian' + MonI2]._xscale = 40;
_root['civillian' + MonI2]._yscale = 40;
};
Civtord = function () {
++MonI;
++MonI2;
_root.attachMovie('CivTord', 'civillian' + MonI2, 2000 + MonI);
_root['civillian' + MonI2]._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root['civillian' + MonI2]._y = -90;
_root['civillian' + MonI2]._xscale = 40;
_root['civillian' + MonI2]._yscale = 40;
};
MonsterHit = function (HighI) {
if (HighI == 999) {
_root.Super = 4;
} else {
_root.Super = 1;
}
if (_root.ammo > -1) {
if (_root.HitCheck.hitTest(_root['monster' + HighI].hitHead)) {
_root['monster' + HighI].gotoAndStop(2);
_root.scoreadd += 200 * _root.multi * _root.Super;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['monster' + HighI].head)) {
_root['monster' + HighI].head.gotoAndStop(2);
_root.scoreadd += 300 * _root.multi * _root.Super;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['monster' + HighI].hitBody1) || _root.HitCheck.hitTest(_root['monster' + HighI].hitBody2)) {
_root['monster' + HighI].gotoAndStop(3);
_root.scoreadd += 100 * _root.multi * _root.Super;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
++_root.MonDead;
}
if (_root.HitCheck.hitTest(_root['civillian' + HighI])) {
_root['civillian' + HighI].gotoAndStop(2);
_root.scoreadd -= 400;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
}
}
};
BulletHole = function () {
if (_root._xmouse > _root.wall2._x && _root._xmouse < _root.wall1._x) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI2);
++HoleI2;
} else {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI1 + 5000);
++HoleI1;
}
if (_root._xmouse > _root.wall2._x - 14 && _root._xmouse <= _root.wall2._x) {
_root['hole' + HoleI]._x = _root.wall2._x - 14;
} else {
if (_root._xmouse >= _root.wall1._x && _root._xmouse < _root.wall1._x + 14) {
_root['hole' + HoleI]._x = _root.wall1._x + 14;
} else {
_root['hole' + HoleI]._x = _root._xmouse;
}
}
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
if (_root._xmouse > _root.wall2._x && _root._xmouse < _root.wall1._x) {
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
}
_root.multiadd = 0;
_root.multi = 1;
++HoleI;
_root.bonus2 = false;
};
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 6) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._x = 275;
_root.edd._y = 400;
_root.edd._rotation = 0;
if (_root.edd.reload._currentframe == 3) {
Ebullet_sound.start(0, 1);
Ebullet_sound.setVolume(100);
}
if (_root.edd.reload._currentframe == 8) {
++_root.ammo;
_root.infobar['bullet' + _root.ammo]._alpha = 100;
--_root.totalammo;
}
if (_root.edd.reload._currentframe < 12) {
if (_root.shootan == true) {
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
Ebullet_sound.stop('Ebullet_sound');
}
}
}
if (_root.edd.reload._currentframe == 11 && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.reload.gotoAndPlay(3);
Ebullet_sound.start(0, 1);
Ebullet_sound.setVolume(100);
}
if (_root.edd.reload._currentframe == 12) {
_root.eddframe = 2;
}
if (_root.edd.reload._currentframe == 20) {
_root.shootan = false;
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music1_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
_root.lvlSelect = 1;
if (_root.quit == false) {
gotoAndStop(102);
} else {
gotoAndStop(5);
}
_root.music1_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.wall1.removeMovieClip();
_root.wall2.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['monster' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
movieClip 1644 {
}
frame 102 {
stop();
_root.LS = false;
_root.fadeout._alpha = 0;
var savefile = SharedObject.getLocal('EddGame');
if (savefile.data['score' + _root.lvlSelect] == undefined) {
_root.highscore = 0;
_root.HScheck = 0;
} else {
_root.highscore = savefile.data['score' + _root.lvlSelect];
_root.HScheck = savefile.data['score' + _root.lvlSelect];
}
_root.LevelEnd.gotoAndStop(_root.lvlSelect);
_root.scoreend = 0;
_root.bonus = 1;
_root.newrecord = true;
if (_root.bonus1 == true) {
_root.bonus += 0.25;
_root.bon1.gotoAndStop(2);
}
if (_root.bonus2 == true) {
_root.bonus += 0.2;
_root.bon2.gotoAndStop(2);
}
if (_root.bonus3 == true) {
_root.bonus += 0.1;
_root.bon3.gotoAndStop(2);
}
if (_root.bonus4 == true) {
_root.bonus += 0.05;
_root.bon4.gotoAndStop(2);
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
_root.scoreadd = int(_root.scoreadd * _root.bonus);
_root.StoryCon._alpha = 50;
onEnterFrame = function () {
if (_root.scoreend >= _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.StoryCon._alpha = 100;
}
if (_root.LS == true) {
if (_root.fadeout._alpha >= 100) {
menu_sound.setVolume(100);
menu_soundB.setVolume(100);
gotoAndStop(114);
} else {
_root.fadeout._alpha += 4;
menu_sound.setVolume(_root.fadeout._alpha);
menu_soundB.setVolume(_root.fadeout._alpha);
}
}
var v2 = new Sound();
v2.attachSound('silent');
v2.start(0, 1);
v2.setVolume(100);
if (_root.quit == false) {
if (_root.messageFront._alpha < 100) {
_root.messageFront._alpha += 10;
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.messageFront.gotoAndStop(3);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(3);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.messageFront.gotoAndStop(4);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(4);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.messageFront.gotoAndStop(5);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(5);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.messageFront.gotoAndStop(6);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(6);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetP']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.messageFront.gotoAndStop(7);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(7);
}
}
if (_root.newrecord == true) {
if (_root.scoreend > _root.HScheck) {
_root.messageFront.gotoAndStop(2);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(2);
_root.newrecord = false;
}
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetD'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd >= _root.scoreend + 1000) {
_root.scoreend += 1000;
} else {
_root.scoreend = _root.scoreadd;
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.medal2.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.medal2.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.medal2.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.medal2.gotoAndStop(4);
} else {
_root.medal2.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd > _root.highscore) {
savefile.data['score' + _root.lvlSelect] = _root.scoreadd;
_root['score' + _root.lvlSelect] = _root.scoreadd;
}
if (_root.scoreend > _root.highscore) {
_root.highscore = _root.scoreend;
}
} else {
_root.scoreend = 'N/A';
}
};
}
movieClip 1647 {
}
button 1652 {
on (release) {
gotoAndStop(100);
}
}
button 1655 {
on (release) {
gotoAndPlay(6);
_root.setVolume(100);
}
}
movieClip 1658 {
frame 1 {
stop();
}
}
movieClip 1661 {
frame 1 {
stop();
}
}
movieClip 1664 {
frame 1 {
stop();
}
}
movieClip 1667 {
frame 1 {
stop();
}
}
movieClip 1674 {
frame 1 {
stop();
}
}
button 1678 {
on (release) {
if (_root.scoreend >= _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.nextFrame();
}
}
}
frame 103 {
stop();
play();
}
frame 104 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('2Wall1', 'Wall1', 4000);
_root.attachMovie('box2', 'box2', 5000);
_root.attachMovie('oilcan', 'oilcan', 6000);
_root.attachMovie('2Wall2', 'Wall2', 7000);
_root.attachMovie('box1', 'box1', 8000);
_root.attachMovie('blackout', 'blackout', 10005);
var music2_sound = new Sound();
music2_sound.attachSound('music2');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.Wall1._x = 373.4;
_root.Wall1._y = 89.2;
_root.box2._x = 359.6;
_root.box2._y = 229.4;
_root.oilcan._x = 250.9;
_root.oilcan._y = 211.8;
_root.Wall2._x = 0;
_root.Wall2._y = 0;
_root.box1._x = 62;
_root.box1._y = 332.1;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.eddframe = 1;
_root.ammo = 7;
_root.totalammo = 105;
_root.ammomax = 7;
_root.buttondown = false;
stop();
HoleI = 1;
HoleI1 = 1;
HoleI2 = 1;
MonI = 2000;
MonI1 = 2000;
MonI2 = 1500;
MonI3 = 1000;
MonI4 = 500;
MonI5 = 0;
HighI = 0;
OilI = 0;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 80;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot2', 'yshoot', 10007);
_root.attachMovie('Nshoot2', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score2 < _root.lvl2TargetD) {
_root.showtarget.targetyay = _root.lvl2TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score2 < _root.lvl2TargetB) {
_root.showtarget.targetyay = _root.lvl2TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score2 < _root.lvl2TargetS) {
_root.showtarget.targetyay = _root.lvl2TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score2 < _root.lvl2TargetG) {
_root.showtarget.targetyay = _root.lvl2TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl2TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar2', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd2', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music2_sound.start(0, 999);
music2_sound.setVolume(100);
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 3) {
SoilderLeft();
}
if (gametimer == 6) {
SoilderUp2();
}
if (gametimer == 9) {
SoilderRight1();
}
if (gametimer == 53) {
SoilderUp3();
}
if (gametimer == 56) {
SoilderRight2();
}
if (gametimer == 59) {
SoilderUp1();
}
if (gametimer == 103) {
SoilderLeft();
}
if (gametimer == 106) {
SoilderRight1();
}
if (gametimer == 109) {
SoilderRight1();
}
if (gametimer == 153) {
SoilderUp3();
}
if (gametimer == 156) {
SoilderLeft();
}
if (gametimer == 159) {
SoilderLeft();
}
if (gametimer == 203) {
SoilderRight2();
}
if (gametimer == 206) {
CivTom();
}
if (gametimer == 209) {
SoilderRight1();
}
if (gametimer == 253) {
SoilderLeft();
}
if (gametimer == 256) {
SoilderUp1();
}
if (gametimer == 259) {
SoilderRight1();
}
if (gametimer == 303) {
SoilderUp3();
}
if (gametimer == 306) {
SoilderRight2();
}
if (gametimer == 309) {
SoilderRight1();
}
if (gametimer == 353) {
SoilderLeft();
}
if (gametimer == 356) {
SoilderRight1();
}
if (gametimer == 359) {
SoilderRight1();
}
if (gametimer == 403) {
CivTord();
}
if (gametimer == 406) {
SoilderLeft();
}
if (gametimer == 409) {
SoilderRight1();
}
if (gametimer == 453) {
SoilderRight2();
}
if (gametimer == 456) {
SoilderLeft();
}
if (gametimer == 459) {
SoilderRight2();
}
if (gametimer == 503) {
SoilderUp1();
}
if (gametimer == 506) {
SoilderUp2();
}
if (gametimer == 509) {
SoilderUp3();
}
if (gametimer == 553) {
SoilderLeft();
}
if (gametimer == 556) {
SoilderRight2();
}
if (gametimer == 559) {
SoilderRight1();
}
if (gametimer == 603) {
SoilderLeft();
}
if (gametimer == 606) {
SoilderUp1();
}
if (gametimer == 609) {
SoilderRight1();
}
if (gametimer == 653) {
SoilderUp3();
}
if (gametimer == 656) {
SoilderLeft();
}
if (gametimer == 659) {
SoilderLeft();
}
if (gametimer == 703) {
SoilderRight2();
}
if (gametimer == 706) {
SoilderLeft();
}
if (gametimer == 709) {
SoilderRight1();
}
if (gametimer == 753) {
SoilderLeft();
}
if (gametimer == 756) {
SoilderUp1();
}
if (gametimer == 759) {
SoilderRight1();
}
if (gametimer == 803) {
SoilderUp3();
}
if (gametimer == 806) {
SoilderRight2();
}
if (gametimer == 809) {
SoilderRight1();
}
if (gametimer == 853) {
SoilderUp1();
}
if (gametimer == 856) {
SoilderRight2();
}
if (gametimer == 859) {
SoilderRight2();
}
if (gametimer == 903) {
SoilderUp3();
}
if (gametimer == 906) {
SoilderLeft();
}
if (gametimer == 909) {
SoilderRight1();
}
if (gametimer == 953) {
SoilderRight2();
}
if (gametimer == 956) {
SoilderRight1();
}
if (gametimer == 959) {
SoilderRight2();
}
if (gametimer == 1003) {
CivMatt();
}
if (gametimer == 1006) {
SoilderUp2();
}
if (gametimer == 1009) {
SoilderLeft();
}
if (gametimer == 1053) {
SoilderSuper();
}
if (gametimer == 1056) {
SoilderRight2();
}
if (gametimer == 1103) {
SoilderLeft();
}
if (gametimer == 1106) {
SoilderRight1();
}
if (gametimer == 1109) {
SoilderRight1();
}
if (gametimer == 1153) {
SoilderUp3();
}
if (gametimer == 1156) {
SoilderLeft();
}
if (gametimer == 1159) {
SoilderLeft();
}
if (gametimer == 1203) {
SoilderRight1();
}
if (gametimer == 1206) {
SoilderUp1();
}
if (gametimer == 1209) {
SoilderRight1();
}
if (gametimer == 1253) {
SoilderLeft();
}
if (gametimer == 1256) {
CivTom();
}
if (gametimer == 1259) {
SoilderRight1();
}
if (gametimer == 1303) {
SoilderUp3();
}
if (gametimer == 1306) {
SoilderRight2();
}
if (gametimer == 1309) {
SoilderRight1();
}
if (gametimer == 1353) {
SoilderLeft();
}
if (gametimer == 1356) {
SoilderRight2();
}
if (gametimer == 1359) {
SoilderRight1();
}
if (gametimer == 1403) {
CivTord();
}
if (gametimer == 1406) {
SoilderUp2();
}
if (gametimer == 1409) {
SoilderRight1();
}
if (gametimer == 1453) {
SoilderRight2();
}
if (gametimer == 1456) {
SoilderLeft();
}
if (gametimer == 1459) {
SoilderRight2();
}
if (gametimer == 1503) {
SoilderUp1();
}
if (gametimer == 1506) {
SoilderUp2();
}
if (gametimer == 1509) {
CivMatt();
}
if (gametimer == 1553) {
SoilderLeft();
}
if (gametimer == 1556) {
SoilderRight2();
}
if (gametimer == 1559) {
SoilderRight1();
}
if (gametimer == 1603) {
SoilderLeft();
}
if (gametimer == 1606) {
SoilderUp1();
}
if (gametimer == 1609) {
SoilderRight1();
}
if (gametimer == 1653) {
SoilderUp3();
}
if (gametimer == 1656) {
SoilderLeft();
}
if (gametimer == 1659) {
SoilderLeft();
}
if (gametimer == 1703) {
SoilderRight2();
}
if (gametimer == 1706) {
SoilderLeft();
}
if (gametimer == 1709) {
SoilderRight1();
}
if (gametimer == 1753) {
SoilderLeft();
}
if (gametimer == 1756) {
SoilderUp1();
}
if (gametimer == 1759) {
SoilderRight1();
}
if (gametimer == 1803) {
SoilderUp3();
}
if (gametimer == 1806) {
SoilderRight1();
}
if (gametimer == 1809) {
SoilderRight1();
}
if (gametimer == 1853) {
SoilderLeft();
}
if (gametimer == 1856) {
SoilderRight2();
}
if (gametimer == 1859) {
SoilderRight1();
}
if (gametimer == 1903) {
CivTom();
}
if (gametimer == 1906) {
CivMatt();
}
if (gametimer == 1909) {
CivTord();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
while (_root.MonHit == false) {
if (HighI > -1) {
SoilderHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
SoilderLeft = function () {
++MonI;
++MonI2;
_root.attachMovie('soilder2', 'soilder' + MonI2, 4500 + MonI);
_root['soilder' + MonI2]._x = 130;
_root['soilder' + MonI2]._y = 300;
_root['soilder' + MonI2]._xscale = 95;
_root['soilder' + MonI2]._yscale = 95;
};
SoilderRight1 = function () {
++MonI;
++MonI2;
_root.attachMovie('soilder3', 'soilder' + MonI2, 4500 + MonI);
_root['soilder' + MonI2]._x = 625;
_root['soilder' + MonI2]._y = 275;
_root['soilder' + MonI2]._xscale = 80;
_root['soilder' + MonI2]._yscale = 80;
};
SoilderRight2 = function () {
++MonI;
++MonI5;
_root.attachMovie('soilder3', 'soilder' + MonI5, 1500 + MonI);
_root['soilder' + MonI5]._x = 420;
_root['soilder' + MonI5]._y = 200;
_root['soilder' + MonI5]._xscale = 20;
_root['soilder' + MonI5]._yscale = 20;
};
SoilderUp1 = function () {
++MonI;
++MonI1;
_root.attachMovie('soilder1', 'soilder' + MonI1, 5500 + MonI);
_root['soilder' + MonI1]._x = 172;
_root['soilder' + MonI1]._y = 600;
};
SoilderUp2 = function () {
++MonI;
++MonI4;
_root.attachMovie('soilder1', 'soilder' + MonI4, 2500 + MonI);
_root['soilder' + MonI4]._x = 380;
_root['soilder' + MonI4]._y = 310;
_root['soilder' + MonI4]._xscale = 30;
_root['soilder' + MonI4]._yscale = 30;
};
SoilderUp3 = function () {
++MonI;
++MonI3;
_root.attachMovie('soilder1', 'soilder' + MonI3, 3500 + MonI);
_root['soilder' + MonI3]._x = 266;
_root['soilder' + MonI3]._y = 265;
_root['soilder' + MonI3]._xscale = 18;
_root['soilder' + MonI3]._yscale = 18;
};
SoilderSuper = function () {
++MonI;
_root.attachMovie('boris', 'soilder1', 3500);
_root.soilder1._x = 329.1;
_root.soilder1._y = 190.8;
};
CivMatt = function () {
++MonI;
++MonI3;
_root.attachMovie('CivMatt2', 'civillian' + MonI3, 3500 + MonI);
_root['civillian' + MonI3]._x = 266;
_root['civillian' + MonI3]._y = 265;
_root['civillian' + MonI3]._xscale = 18;
_root['civillian' + MonI3]._yscale = 18;
};
CivTom = function () {
++MonI;
++MonI4;
_root.attachMovie('CivTom2', 'civillian' + MonI4, 2500 + MonI);
_root['civillian' + MonI4]._x = 380;
_root['civillian' + MonI4]._y = 310;
_root['civillian' + MonI4]._xscale = 30;
_root['civillian' + MonI4]._yscale = 30;
};
CivTord = function () {
++MonI;
++MonI1;
_root.attachMovie('CivTord2', 'civillian' + MonI1, 5500 + MonI);
_root['civillian' + MonI1]._x = 172;
_root['civillian' + MonI1]._y = 600;
};
SoilderHit = function (HighI) {
if (_root.ammo > -1) {
if (HighI > 2000) {
_root.DepHit = '_root.box1';
} else {
if (HighI > 1500) {
_root.DepHit = '_root.Wall2';
} else {
if (HighI > 1000) {
_root.DepHit = '_root.oilcan.hitarea';
} else {
if (HighI > 500) {
_root.DepHit = '_root.box2';
} else {
if (HighI > 0) {
_root.DepHit = '_root.Wall1';
}
}
}
}
}
if (!_root.HitCheck.hitTest(_root.DepHit)) {
if (_root.HitCheck.hitTest(_root['soilder' + HighI].hathit) && _root['soilder' + HighI].hat._currentframe == 1) {
_root['soilder' + HighI].hat.gotoAndStop(2);
_root.scoreadd += 50 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
} else {
if (_root.HitCheck.hitTest(_root['soilder' + HighI].body)) {
_root['soilder' + HighI].body.gotoAndStop(2);
_root['soilder' + HighI].hat.gotoAndStop(2);
_root.attachMovie('blood', 'blood', 9999);
_root.blood._x = _root._xmouse;
_root.blood._y = _root._ymouse;
_root.blood._xscale = _root['soilder' + HighI]._xscale;
_root.blood._yscale = _root['soilder' + HighI]._yscale;
_root.scoreadd += 250 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
}
if (_root.HitCheck.hitTest(_root['civillian' + HighI].body)) {
_root['civillian' + HighI].body.gotoAndStop(2);
_root.scoreadd -= 400;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['soilder' + HighI].boris) && _root['soilder' + HighI].boris._currentframe == 1) {
_root['soilder' + HighI].boris.gotoAndStop(2);
_root.scoreadd += 500 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['soilder' + HighI].boris) && _root['soilder' + HighI].boris._currentframe == 2 && _root['soilder' + HighI].boris.freeze._currentframe == 6) {
_root['soilder' + HighI].boris.gotoAndStop(3);
_root.scoreadd += 600 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
}
if (_root.HitCheck.hitTest(_root['soilder' + HighI].hat) && _root['soilder' + HighI].hat._currentframe == 2) {
_root.hitmon = true;
_root.MonHit = true;
}
}
};
BulletHole = function () {
_root.bonus2 = false;
if (_root.HitCheck.hitTest(_root.box1)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 8000);
_root['hole' + HoleI]._xscale = 110;
_root['hole' + HoleI]._yscale = 110;
} else {
if (_root.HitCheck.hitTest(_root.box2)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 5000);
_root['hole' + HoleI]._xscale = 60;
_root['hole' + HoleI]._yscale = 60;
} else {
if (_root.HitCheck.hitTest(_root.oilcan.hitarea)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 6000);
if (OilI < 4) {
_root.attachMovie('oilleak', 'oilleak' + OilI, OilI + 6495);
_root['oilleak' + OilI]._y = _root._ymouse;
_root['oilleak' + OilI]._x = _root._xmouse;
_root['oilleak' + OilI]._xscale = (_root._xmouse - 250.9) * 6.3 - 100;
_root['oilleak' + OilI]._yscale = 250 - (_root._ymouse - 211.8) * 4;
_root['oilleak' + OilI]._x = _root._xmouse;
_root.bonus2 = true;
}
_root['hole' + HoleI]._xscale = 20;
_root['hole' + HoleI]._yscale = 20;
++OilI;
} else {
if (_root._ymouse - _root._xmouse + 108.3 < 0 && _root._ymouse < 177.8 && _root._xmouse < 281.4 || _root._ymouse + _root._xmouse / 1.55 - 396 < 0 && _root._ymouse < 177.8 && _root._xmouse > 373.6 || _root._ymouse < 177.8 && _root._xmouse < 373.6 && _root._xmouse > 281.4) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
_root['hole' + HoleI]._xscale = 85 - _root._ymouse / 2.96;
_root['hole' + HoleI]._yscale = 85 - _root._ymouse / 2.96;
} else {
if (_root._ymouse + _root._xmouse - 511 > 0 && _root._ymouse > 226.8 && _root._xmouse < 281.4 || _root._ymouse - _root._xmouse / 1.6 - 17 > 0 && _root._ymouse > 226.8 && _root._xmouse > 373.6 || _root._ymouse > 226.8 && _root._xmouse < 373.6 && _root._xmouse > 281.4) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
_root['hole' + HoleI]._xscale = _root._ymouse / 3.6 - 38;
_root['hole' + HoleI]._yscale = _root._ymouse / 3.6 - 38;
} else {
if (_root._xmouse < 281.4) {
if (_root._xmouse < 184.9) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 7000);
} else {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
}
_root['hole' + HoleI]._xscale = 100 - _root._xmouse / 3.75;
_root['hole' + HoleI]._yscale = 100 - _root._xmouse / 3.75;
} else {
if (_root._xmouse > 491.3) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 4000);
_root['hole' + HoleI]._xscale = 40;
_root['hole' + HoleI]._yscale = 40;
} else {
if (_root._xmouse > 373.6) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 4000);
_root['hole' + HoleI]._xscale = 25 + _root._xmouse / 4.75 - 75;
_root['hole' + HoleI]._yscale = 25 + _root._xmouse / 4.75 - 75;
} else {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
_root['hole' + HoleI]._xscale = 25;
_root['hole' + HoleI]._yscale = 25;
}
}
}
}
}
}
}
}
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
if (_root._xmouse > _root.wall2._x && _root._xmouse < _root.wall1._x) {
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
}
_root.multiadd = 0;
_root.multi = 1;
++HoleI;
};
if (_root.score < _root.scoreadd) {
_root.score += 25;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 6) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.edd.reload._currentframe == 16) {
if (_root.totalammo - _root.ammomax > 0) {
_root.totalammo -= _root.ammomax - _root.ammo;
_root.ammo += _root.ammomax - _root.ammo;
} else {
_root.ammo = _root.totalammo + _root.ammo;
_root.totalammo = 0;
}
if (_root.ammo >= 1) {
_root.infobar.bullet1._alpha = 100;
}
if (_root.ammo >= 2) {
_root.infobar.bullet2._alpha = 100;
}
if (_root.ammo >= 3) {
_root.infobar.bullet3._alpha = 100;
}
if (_root.ammo >= 4) {
_root.infobar.bullet4._alpha = 100;
}
if (_root.ammo >= 5) {
_root.infobar.bullet5._alpha = 100;
}
if (_root.ammo >= 6) {
_root.infobar.bullet6._alpha = 100;
}
if (_root.ammo >= 7) {
_root.infobar.bullet7._alpha = 100;
}
}
if (_root.edd.reload._currentframe == 23) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music2_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
_root.lvlSelect = 2;
if (_root.quit == false) {
gotoAndStop(105);
} else {
gotoAndStop(5);
}
_root.music2_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.Wall1.removeMovieClip();
_root.Wall2.removeMovieClip();
_root.box1.removeMovieClip();
_root.box2.removeMovieClip();
_root.oilcan.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
_root.oilleak0.removeMovieClip();
_root.oilleak1.removeMovieClip();
_root.oilleak2.removeMovieClip();
_root.oilleak3.removeMovieClip();
_root.oilleak4.removeMovieClip();
while (MonI > 0) {
_root['soilder' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
movieClip 1680 {
}
frame 105 {
stop();
_root.LS = false;
_root.fadeout._alpha = 0;
var savefile = SharedObject.getLocal('EddGame');
if (savefile.data['score' + _root.lvlSelect] == undefined) {
_root.highscore = 0;
_root.HScheck = 0;
} else {
_root.highscore = savefile.data['score' + _root.lvlSelect];
_root.HScheck = savefile.data['score' + _root.lvlSelect];
}
_root.LevelEnd.gotoAndStop(_root.lvlSelect);
_root.scoreend = 0;
_root.bonus = 1;
_root.newrecord = true;
if (_root.bonus1 == true) {
_root.bonus += 0.25;
_root.bon1.gotoAndStop(2);
}
if (_root.bonus2 == true) {
_root.bonus += 0.2;
_root.bon2.gotoAndStop(2);
}
if (_root.bonus3 == true) {
_root.bonus += 0.1;
_root.bon3.gotoAndStop(2);
}
if (_root.bonus4 == true) {
_root.bonus += 0.05;
_root.bon4.gotoAndStop(2);
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
_root.scoreadd = int(_root.scoreadd * _root.bonus);
_root.StoryCon._alpha = 50;
onEnterFrame = function () {
if (_root.scoreend >= _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.StoryCon._alpha = 100;
}
if (_root.LS == true) {
if (_root.fadeout._alpha >= 100) {
menu_sound.setVolume(100);
menu_soundB.setVolume(100);
gotoAndStop(114);
} else {
_root.fadeout._alpha += 4;
menu_sound.setVolume(_root.fadeout._alpha);
menu_soundB.setVolume(_root.fadeout._alpha);
}
}
var v2 = new Sound();
v2.attachSound('silent');
v2.start(0, 1);
v2.setVolume(100);
if (_root.quit == false) {
if (_root.messageFront._alpha < 100) {
_root.messageFront._alpha += 10;
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.messageFront.gotoAndStop(3);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(3);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.messageFront.gotoAndStop(4);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(4);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.messageFront.gotoAndStop(5);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(5);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.messageFront.gotoAndStop(6);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(6);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetP']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.messageFront.gotoAndStop(7);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(7);
}
}
if (_root.newrecord == true) {
if (_root.scoreend > _root.HScheck) {
_root.messageFront.gotoAndStop(2);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(2);
_root.newrecord = false;
}
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetD'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd >= _root.scoreend + 1000) {
_root.scoreend += 1000;
} else {
_root.scoreend = _root.scoreadd;
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.medal2.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.medal2.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.medal2.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.medal2.gotoAndStop(4);
} else {
_root.medal2.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd > _root.highscore) {
savefile.data['score' + _root.lvlSelect] = _root.scoreadd;
_root['score' + _root.lvlSelect] = _root.scoreadd;
}
if (_root.scoreend > _root.highscore) {
_root.highscore = _root.scoreend;
}
} else {
_root.scoreend = 'N/A';
}
};
}
button 1684 {
on (release) {
gotoAndStop(103);
}
}
frame 106 {
stop();
play();
}
frame 107 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('l3background', 'house', 3000);
_root.attachMovie('l3lamp', 'lamp', 4000);
_root.attachMovie('l3TV', 'TV', 5000);
_root.attachMovie('l3couch', 'couch', 6000);
_root.attachMovie('blackout', 'blackout', 10005);
var music2_sound = new Sound();
music2_sound.attachSound('music3');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.house._x = 0;
_root.house._y = 0;
_root.lamp._x = 255.7;
_root.lamp._y = 93.40000000000001;
_root.TV._x = 372.9;
_root.TV._y = 223.1;
_root.couch._x = -16.6;
_root.couch._y = 225.9;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.eddframe = 1;
_root.ammo = 12;
_root.totalammo = 84;
_root.ammomax = 12;
_root.buttondown = false;
stop();
HoleI = 1;
MonI = 2000;
MonI1 = 2000;
MonI2 = 1500;
MonI3 = 1000;
MonI4 = 500;
MonI5 = 0;
HighI = 0;
_root.ShootLeft == true;
_root.ShootCheck == true;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 70;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
_root.TVswitchNo = 0;
_root.TVswitch = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot3', 'yshoot', 10007);
_root.attachMovie('Nshoot3', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score3 < _root.lvl3TargetD) {
_root.showtarget.targetyay = _root.lvl3TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score3 < _root.lvl3TargetB) {
_root.showtarget.targetyay = _root.lvl3TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score3 < _root.lvl3TargetS) {
_root.showtarget.targetyay = _root.lvl3TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score3 < _root.lvl3TargetG) {
_root.showtarget.targetyay = _root.lvl3TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl3TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar3', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd3', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 81) {
music2_sound.start(0, 999);
music2_sound.setVolume(100);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 3) {
ZombieWindow();
}
if (gametimer == 6) {
ZombieDoor();
}
if (gametimer == 9) {
ZombieWindow();
}
if (gametimer == 53) {
ZombieTV();
}
if (gametimer == 56) {
ZombieLampL();
}
if (gametimer == 59) {
ZombieCouch();
}
if (gametimer == 103) {
ZombieWindow();
}
if (gametimer == 106) {
ZombieCouch();
}
if (gametimer == 109) {
ZombieLampR();
}
if (gametimer == 153) {
ZombieDoor();
}
if (gametimer == 156) {
ZombieCouch();
}
if (gametimer == 159) {
ZombieCouch();
}
if (gametimer == 203) {
ZombieTV();
}
if (gametimer == 206) {
ZombieWindow();
}
if (gametimer == 209) {
ZombieWindow();
}
if (gametimer == 253) {
ZombieWindow();
}
if (gametimer == 256) {
ZombieTV();
}
if (gametimer == 259) {
ZombieTV();
}
if (gametimer == 303) {
ZombieLampL();
}
if (gametimer == 306) {
ZombieLampL();
}
if (gametimer == 309) {
ZombieDoor();
}
if (gametimer == 353) {
CivMatt();
}
if (gametimer == 356) {
ZombieCouch();
}
if (gametimer == 359) {
ZombieWindow();
}
if (gametimer == 403) {
ZombieTV();
}
if (gametimer == 406) {
ZombieLampR();
}
if (gametimer == 409) {
ZombieDoor();
}
if (gametimer == 453) {
ZombieTV();
}
if (gametimer == 456) {
ZombieDoor();
}
if (gametimer == 459) {
ZombieDoor();
}
if (gametimer == 503) {
ZombieLampL();
}
if (gametimer == 506) {
ZombieLampL();
}
if (gametimer == 509) {
ZombieCouch();
}
if (gametimer == 553) {
ZombieWindow();
}
if (gametimer == 556) {
ZombieDoor();
}
if (gametimer == 559) {
ZombieWindow();
}
if (gametimer == 603) {
CivTord();
}
if (gametimer == 606) {
ZombieTV();
}
if (gametimer == 609) {
ZombieLampR();
}
if (gametimer == 653) {
ZombieDoor();
}
if (gametimer == 656) {
ZombieCouch();
}
if (gametimer == 659) {
ZombieWindow();
}
if (gametimer == 703) {
ZombieTV();
}
if (gametimer == 706) {
ZombieWindow();
}
if (gametimer == 709) {
ZombieLampL();
}
if (gametimer == 753) {
ZombieTV();
}
if (gametimer == 756) {
ZombieWindow();
}
if (gametimer == 759) {
ZombieWindow();
}
if (gametimer == 803) {
ZombieLampR();
}
if (gametimer == 806) {
ZombieCouch();
}
if (gametimer == 809) {
ZombieLampR();
}
if (gametimer == 853) {
ZombieTV();
}
if (gametimer == 856) {
ZombieTV();
}
if (gametimer == 859) {
ZombieDoor();
}
if (gametimer == 903) {
ZombieWindow();
}
if (gametimer == 906) {
ZombieWindow();
}
if (gametimer == 909) {
ZombieWindow();
}
if (gametimer == 953) {
ZombieDoor();
}
if (gametimer == 956) {
ZombieSuper();
}
if (gametimer == 959) {
ZombieWindow();
}
if (gametimer == 1003) {
ZombieTV();
}
if (gametimer == 1006) {
ZombieWindow();
}
if (gametimer == 1009) {
ZombieLampL();
}
if (gametimer == 1053) {
ZombieDoor();
}
if (gametimer == 1056) {
CivTom();
}
if (gametimer == 1059) {
ZombieLampL();
}
if (gametimer == 1103) {
ZombieTV();
}
if (gametimer == 1106) {
ZombieDoor();
}
if (gametimer == 1109) {
ZombieLampR();
}
if (gametimer == 1153) {
ZombieLampL();
}
if (gametimer == 1156) {
ZombieLampL();
}
if (gametimer == 1159) {
ZombieLampL();
}
if (gametimer == 1203) {
ZombieCouch();
}
if (gametimer == 1206) {
ZombieWindow();
}
if (gametimer == 1209) {
ZombieCouch();
}
if (gametimer == 1253) {
ZombieWindow();
}
if (gametimer == 1256) {
ZombieWindow();
}
if (gametimer == 1259) {
ZombieDoor();
}
if (gametimer == 1303) {
ZombieTV();
}
if (gametimer == 1306) {
ZombieTV();
}
if (gametimer == 1309) {
ZombieCouch();
}
if (gametimer == 1353) {
ZombieDoor();
}
if (gametimer == 1356) {
ZombieTV();
}
if (gametimer == 1359) {
ZombieTV();
}
if (gametimer == 1403) {
ZombieCouch();
}
if (gametimer == 1406) {
ZombieCouch();
}
if (gametimer == 1409) {
ZombieWindow();
}
if (gametimer == 1453) {
ZombieLampL();
}
if (gametimer == 1456) {
ZombieLampR();
}
if (gametimer == 1459) {
ZombieCouch();
}
if (gametimer == 1503) {
ZombieWindow();
}
if (gametimer == 1506) {
ZombieWindow();
}
if (gametimer == 1509) {
ZombieDoor();
}
if (gametimer == 1553) {
ZombieCouch();
}
if (gametimer == 1556) {
ZombieCouch();
}
if (gametimer == 1559) {
CivTord();
}
if (gametimer == 1603) {
ZombieWindow();
}
if (gametimer == 1606) {
ZombieLampL();
}
if (gametimer == 1609) {
ZombieTV();
}
if (gametimer == 1653) {
ZombieLampR();
}
if (gametimer == 1656) {
ZombieCouch();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
while (_root.MonHit == false) {
if (HighI > -1) {
ZombieHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
ZombieWindow = function () {
++MonI;
++MonI5;
_root.attachMovie('zombieUL', 'zombie' + MonI5, 500 + MonI);
_root['zombie' + MonI5]._x = random(105) + 120;
_root['zombie' + MonI5]._y = random(20) + 410;
_root['zombie' + MonI5]._rotation = random(20) - 10;
};
ZombieDoor = function () {
++MonI;
++MonI5;
_root.attachMovie('zombieUR', 'zombie' + MonI5, 500 + MonI);
_root['zombie' + MonI5]._x = random(50) + 375;
_root['zombie' + MonI5]._y = random(20) + 420;
_root['zombie' + MonI5]._rotation = random(20) - 10;
};
ZombieLampL = function () {
++MonI;
++MonI4;
_root.attachMovie('zombieL', 'zombie' + MonI4, 1500 + MonI);
_root['zombie' + MonI4]._x = 350;
_root['zombie' + MonI4]._y = 280;
};
ZombieLampR = function () {
++MonI;
++MonI3;
_root.attachMovie('zombieR', 'zombie' + MonI3, 1500 + MonI);
_root['zombie' + MonI3]._x = 230;
_root['zombie' + MonI3]._y = 280;
};
ZombieCouch = function () {
++MonI;
++MonI1;
_root.attachMovie('zombieUL', 'zombie' + MonI1, 3500 + MonI);
_root['zombie' + MonI1]._x = random(60) + 56;
_root['zombie' + MonI1]._y = random(20) + 450;
_root['zombie' + MonI1]._rotation = random(20) - 10;
};
ZombieTV = function () {
++MonI;
++MonI2;
_root.attachMovie('zombieUR', 'zombie' + MonI2, 2500 + MonI);
_root['zombie' + MonI2]._x = random(15) + 467;
_root['zombie' + MonI2]._y = random(20) + 410;
_root['zombie' + MonI2]._rotation = random(20) - 10;
};
ZombieSuper = function () {
++MonI;
++MonI1;
_root.attachMovie('zombieS', 'zombie' + MonI1, 3500 + MonI);
_root['zombie' + MonI1]._x = random(60) + 56;
_root['zombie' + MonI1]._y = random(20) + 500;
_root['zombie' + MonI1]._rotation = random(20) - 10;
_root['zombie' + MonI1]._xscale = 130;
_root['zombie' + MonI1]._yscale = 130;
};
CivMatt = function () {
++MonI;
++MonI1;
_root.attachMovie('CivMatt3', 'civillian' + MonI1, 3500 + MonI);
_root['civillian' + MonI1]._x = random(60) + 56;
_root['civillian' + MonI1]._y = random(20) + 450;
_root['civillian' + MonI1]._rotation = random(20) - 10;
};
CivTom = function () {
++MonI;
++MonI1;
_root.attachMovie('CivTom3', 'civillian' + MonI1, 3500 + MonI);
_root['civillian' + MonI1]._x = random(60) + 56;
_root['civillian' + MonI1]._y = random(20) + 450;
_root['civillian' + MonI1]._rotation = random(20) - 10;
};
CivTord = function () {
++MonI;
++MonI2;
_root.attachMovie('CivTord3', 'civillian' + MonI2, 2500 + MonI);
_root['civillian' + MonI2]._x = random(15) + 467;
_root['civillian' + MonI2]._y = random(20) + 410;
_root['civillian' + MonI2]._rotation = random(20) - 10;
};
ZombieHit = function (HighI) {
if (_root.ammo > -1) {
if (HighI > 2000) {
_root.DepHit = '_root.CouchHT1';
_root.DepHit2 = '_root.CouchHT2';
} else {
if (HighI > 1500) {
_root.DepHit = '_root.TV';
} else {
if (HighI > 1000) {
_root.DepHit = '_root.LampRHT';
} else {
if (HighI > 500) {
_root.DepHit = '_root.LampLHT';
} else {
if (HighI > 0) {
_root.DepHit = '_root.Wall1';
}
}
}
}
}
if (!_root.HitCheck.hitTest(_root.DepHit) && !_root.HitCheck.hitTest(_root.DepHit2)) {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body.skull) && _root['zombie' + HighI].body._currentframe == 3 && _root['zombie' + HighI].body.skull._currentframe == 1) {
_root['zombie' + HighI].body.skull.gotoAndStop(2);
_root.scoreadd += 100 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
} else {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body.head) && _root['zombie' + HighI].body._currentframe == 1) {
_root['zombie' + HighI].body.gotoAndStop(3);
_root.scoreadd += 250 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
} else {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body.Shead) && _root['zombie' + HighI].body._currentframe == 1) {
_root['zombie' + HighI].body.gotoAndStop(3);
_root.scoreadd += 750 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
} else {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body) && !_root.HitCheck.hitTest(_root['zombie' + HighI].body.head) && _root['zombie' + HighI].body._currentframe == 1) {
_root['zombie' + HighI].body.gotoAndStop(2);
_root.scoreadd += 10 * _root.multi;
_root.hitmon = true;
_root.MonHit = true;
}
}
}
}
if (_root.HitCheck.hitTest(_root['civillian' + HighI].body)) {
_root['civillian' + HighI].body.gotoAndStop(2);
_root.scoreadd -= 400;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['zombie' + HighI].boris) && _root['zombie' + HighI].boris._currentframe == 1) {
_root['zombie' + HighI].boris.gotoAndStop(2);
_root.scoreadd += 500 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['zombie' + HighI].boris) && _root['zombie' + HighI].boris._currentframe == 2 && _root['zombie' + HighI].boris.freeze._currentframe == 6) {
_root['zombie' + HighI].boris.gotoAndStop(3);
_root.scoreadd += 600 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
}
}
};
BulletHole = function () {
_root.bonus2 = false;
if (_root.HitCheck.hitTest(_root.TVHT1) || _root.HitCheck.hitTest(_root.TVHT2)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 5000);
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
if (_root.HitCheck.hitTest(_root.TVHT1)) {
++_root.TVswitchNo;
if (_root.TVswitchNo == 3) {
_root.TVswitch = true;
}
}
} else {
if (_root.HitCheck.hitTest(_root.CouchHT1) || _root.HitCheck.hitTest(_root.CouchHT2)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 6000);
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
} else {
if (!_root.HitCheck.hitTest(_root.WindowHT) && !_root.HitCheck.hitTest(_root.DoorHT)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 3000);
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
}
}
}
_root.multiadd = 0;
_root.multi = 1;
++HoleI;
};
if (_root.score < _root.scoreadd) {
_root.score += 25;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.ShootCheck = true;
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
if (_root.ShootLeft == true) {
_root.edd.shoot.gotoAndStop(2);
} else {
_root.edd.shoot.gotoAndStop(1);
}
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot.pistol._currentframe == 7) {
if (_root.ShootCheck == true) {
if (_root.ShootLeft == true) {
_root.ShootLeft = false;
_root.ShootCheck = false;
} else {
_root.ShootLeft = true;
_root.ShootCheck = false;
}
}
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.edd.reload._currentframe == 14) {
if (_root.totalammo - _root.ammomax > 0) {
_root.totalammo -= _root.ammomax - _root.ammo;
_root.ammo += _root.ammomax - _root.ammo;
} else {
_root.ammo = _root.totalammo + _root.ammo;
_root.totalammo = 0;
}
if (_root.ammo >= 1) {
_root.infobar.bullet1._alpha = 100;
}
if (_root.ammo >= 2) {
_root.infobar.bullet2._alpha = 100;
}
if (_root.ammo >= 3) {
_root.infobar.bullet3._alpha = 100;
}
if (_root.ammo >= 4) {
_root.infobar.bullet4._alpha = 100;
}
if (_root.ammo >= 5) {
_root.infobar.bullet5._alpha = 100;
}
if (_root.ammo >= 6) {
_root.infobar.bullet6._alpha = 100;
}
if (_root.ammo >= 7) {
_root.infobar.bullet7._alpha = 100;
}
if (_root.ammo >= 8) {
_root.infobar.bullet8._alpha = 100;
}
if (_root.ammo >= 9) {
_root.infobar.bullet9._alpha = 100;
}
if (_root.ammo >= 10) {
_root.infobar.bullet10._alpha = 100;
}
if (_root.ammo >= 11) {
_root.infobar.bullet11._alpha = 100;
}
if (_root.ammo >= 12) {
_root.infobar.bullet12._alpha = 100;
}
}
if (_root.edd.reload._currentframe == 27) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music2_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
_root.lvlSelect = 3;
if (_root.quit == false) {
gotoAndStop(108);
} else {
gotoAndStop(5);
}
_root.music2_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.house.removeMovieClip();
_root.lamp.removeMovieClip();
_root.TV.removeMovieClip();
_root.couch.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['zombie' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
frame 108 {
stop();
_root.LS = false;
_root.fadeout._alpha = 0;
var savefile = SharedObject.getLocal('EddGame');
if (savefile.data['score' + _root.lvlSelect] == undefined) {
_root.highscore = 0;
_root.HScheck = 0;
} else {
_root.highscore = savefile.data['score' + _root.lvlSelect];
_root.HScheck = savefile.data['score' + _root.lvlSelect];
}
_root.LevelEnd.gotoAndStop(_root.lvlSelect);
_root.scoreend = 0;
_root.bonus = 1;
_root.newrecord = true;
if (_root.bonus1 == true) {
_root.bonus += 0.25;
_root.bon1.gotoAndStop(2);
}
if (_root.bonus2 == true) {
_root.bonus += 0.2;
_root.bon2.gotoAndStop(2);
}
if (_root.bonus3 == true) {
_root.bonus += 0.1;
_root.bon3.gotoAndStop(2);
}
if (_root.bonus4 == true) {
_root.bonus += 0.05;
_root.bon4.gotoAndStop(2);
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
_root.scoreadd = int(_root.scoreadd * _root.bonus);
_root.StoryCon._alpha = 50;
onEnterFrame = function () {
if (_root.scoreend >= _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.StoryCon._alpha = 100;
}
if (_root.LS == true) {
if (_root.fadeout._alpha >= 100) {
menu_sound.setVolume(100);
menu_soundB.setVolume(100);
gotoAndStop(114);
} else {
_root.fadeout._alpha += 4;
menu_sound.setVolume(_root.fadeout._alpha);
menu_soundB.setVolume(_root.fadeout._alpha);
}
}
var v2 = new Sound();
v2.attachSound('silent');
v2.start(0, 1);
v2.setVolume(100);
if (_root.quit == false) {
if (_root.messageFront._alpha < 100) {
_root.messageFront._alpha += 10;
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.messageFront.gotoAndStop(3);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(3);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.messageFront.gotoAndStop(4);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(4);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.messageFront.gotoAndStop(5);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(5);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.messageFront.gotoAndStop(6);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(6);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetP']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.messageFront.gotoAndStop(7);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(7);
}
}
if (_root.newrecord == true) {
if (_root.scoreend > _root.HScheck) {
_root.messageFront.gotoAndStop(2);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(2);
_root.newrecord = false;
}
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetD'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd >= _root.scoreend + 1000) {
_root.scoreend += 1000;
} else {
_root.scoreend = _root.scoreadd;
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.medal2.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.medal2.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.medal2.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.medal2.gotoAndStop(4);
} else {
_root.medal2.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd > _root.highscore) {
savefile.data['score' + _root.lvlSelect] = _root.scoreadd;
_root['score' + _root.lvlSelect] = _root.scoreadd;
}
if (_root.scoreend > _root.highscore) {
_root.highscore = _root.scoreend;
}
} else {
_root.scoreend = 'N/A';
}
};
}
button 1690 {
on (release) {
gotoAndStop(106);
}
}
frame 109 {
stop();
play();
}
frame 110 {
_root.attachMovie('Menu', 'menuS', 9998);
_root.attachMovie('Monster', 'Monster', 3000);
_root.attachMovie('l4_background', 'l4BG', 1000);
_root.attachMovie('blackout', 'blackout', 10005);
var music2_sound = new Sound();
music2_sound.attachSound('music4');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
var Rshoot_sound = new Sound();
Rshoot_sound.attachSound('Rshoot');
var Rexplode_sound = new Sound();
Rexplode_sound.attachSound('Rexplode');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.l4BG._x = -545;
_root.l4BG._y = -125;
_root.Monster._x = 265;
_root.Monster._y = 350;
_root.eddframe = 1;
_root.buttondown = false;
_root.ammo = 1;
stop();
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 80;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
_root.Rocketshoot = false;
_root.aimY = 0;
_root.aimX = 0;
_root.monEyeLhit = false;
_root.monEyeRhit = false;
_root.MonRebound = 6;
_root.monhittimes = 1;
_root.monstermove = 0;
_root.monmoveT = 0;
_root.monstopmiddle = false;
_root.mondirection = 0;
_root.MonsterSmash = false;
_root.rain = false;
onEnterFrame = function () {
_root.monscale = _root.Monster._xscale;
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot4', 'yshoot', 10007);
_root.attachMovie('Nshoot4', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score4 < _root.lvl4TargetD) {
_root.showtarget.targetyay = _root.lvl4TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score4 < _root.lvl4TargetB) {
_root.showtarget.targetyay = _root.lvl4TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score4 < _root.lvl4TargetS) {
_root.showtarget.targetyay = _root.lvl4TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score4 < _root.lvl4TargetG) {
_root.showtarget.targetyay = _root.lvl4TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl4TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar4', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd4', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 56) {
_root.attachMovie('Rocket', 'Rocket', 9999);
Rshoot_sound.start(0, 1);
_root.edd.gotoAndStop(2);
_root.Rocket._x = _root.edd._x + _root.edd.shoot.rocketAP._x * Math.cos(_root.edd._rotation * Math.PI / 180) + _root.edd.shoot.rocketAP._y * Math.sin(_root.edd._rotation * Math.PI / 180);
_root.Rocket._y = _root.edd._y - _root.edd.shoot.rocketAP._y * Math.cos(_root.edd._rotation * Math.PI / 180) + _root.edd.shoot.rocketAP._x * Math.sin(_root.edd._rotation * Math.PI / 180);
_root.aimY = _root._ymouse;
_root.aimX = _root._xmouse;
_root.Rocketshoot = true;
}
if (_root.Rocketshoot == true) {
_root.Rocket._x -= (_root.Rocket._x - _root.aimX) / 6;
_root.Rocket._y -= (_root.Rocket._y - _root.aimY) / 6;
_root.Rocket._xscale -= 4;
_root.Rocket._yscale = _root.Rocket._xscale;
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.Rocket.gotoAndStop(2);
_root.Rocketshoot = false;
Rexplode_sound.start(0, 1);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music2_sound.start(0, 999);
music2_sound.setVolume(100);
_root.monmoveT = random(50) + 50;
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.MonsterSmash == false) {
if (_root.gamestart == true) {
if (_root.Monster._currentframe < 8) {
++gametimer;
}
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
RocketShoot();
};
RocketShoot = function () {
_root.attachMovie('Rocket', 'Rocket', 3500);
Rshoot_sound.start(0, 1);
_root.Rocket._x = _root.edd._x + _root.edd.shoot.rocketAP._x * Math.cos(_root.edd._rotation * Math.PI / 180) + _root.edd.shoot.rocketAP._y * Math.sin(_root.edd._rotation * Math.PI / 180);
_root.Rocket._y = _root.edd._y - _root.edd.shoot.rocketAP._y * Math.cos(_root.edd._rotation * Math.PI / 180) + _root.edd.shoot.rocketAP._x * Math.sin(_root.edd._rotation * Math.PI / 180);
_root.aimY = _root._ymouse;
_root.aimX = _root._xmouse;
_root.Rocketshoot = true;
};
if (_root.Rocketshoot == true) {
_root.Rocket._x -= (_root.Rocket._x - _root.aimX) / 6;
_root.Rocket._y -= (_root.Rocket._y - _root.aimY) / 6;
_root.Rocket._xscale -= 4;
_root.Rocket._yscale = _root.Rocket._xscale;
if (_root.Rocket._xscale == 20) {
MonsterHit();
if (_root.hitmon == false) {
BulletHole();
}
}
}
_root.Monster._yscale = _root.Monster._xscale;
if (_root.Monster._currentframe == 1) {
if (_root.Monster._xscale < 250) {
if (_root.Monster.mon._currentframe == 11 || _root.Monster.mon._currentframe == 23) {
_root.shake = true;
}
_root.monstermove += 1 * _root.monhittimes;
_root.Monster._xscale += 0.1 * _root.monhittimes;
_root.MonRebound = 4;
if (_root.monstermove > _root.monmoveT) {
if (_root.Monster._x > 450) {
_root.Monster.gotoAndStop(2);
_root.monstopmiddle = true;
} else {
if (_root.Monster._x < 150) {
_root.Monster.gotoAndStop(3);
_root.monstopmiddle = true;
} else {
_root.mondirection = random(100) + 1;
if (_root.mondirection <= 50) {
_root.Monster.gotoAndStop(3);
} else {
_root.Monster.gotoAndStop(2);
}
}
}
}
} else {
_root.Monster.gotoAndStop(9);
_root.MonsterSmash = true;
}
}
if (_root.Monster._currentframe == 2) {
if (_root.Monster.mon._currentframe == 1) {
_root.shake = true;
}
_root.Monster._x -= 4 * _root.monhittimes;
if (_root.Monster._x < 150 || _root.monstopmiddle == true && _root.Monster._x < 265) {
_root.Monster.gotoAndStop(1);
_root.monstermove = 0;
_root.monmoveT = random(50) + 50;
_root.monstopmiddle = false;
}
}
if (_root.Monster._currentframe == 3) {
if (_root.Monster.mon._currentframe == 1) {
_root.shake = true;
}
_root.Monster._x += 4 * _root.monhittimes;
if (_root.Monster._x > 450 || _root.monstopmiddle == true && _root.Monster._x > 265) {
_root.Monster.gotoAndStop(1);
_root.monstermove = 0;
_root.monmoveT = random(50) + 50;
_root.monstopmiddle = false;
}
}
if (_root.Monster._currentframe == 6) {
if (_root.Monster.mon._currentframe == 77) {
_root.monEyeLhit = false;
_root.monEyeRhit = false;
}
if (_root.Monster.mon._currentframe == 86) {
_root.Monster.gotoAndStop(1);
}
}
if (_root.Monster._currentframe == 4) {
if (_root.Monster.mon._currentframe == 1) {
_root.lightning = true;
}
_root.Monster._xscale -= _root.MonRebound;
if (MonRebound > 0) {
--_root.MonRebound;
}
if (_root.Monster.mon._currentframe == 20) {
if (_root.monEyeLhit == true && _root.monEyeRhit == true) {
_root.Monster.gotoAndStop(6);
} else {
_root.Monster.gotoAndStop(1);
}
}
}
if (_root.Monster._currentframe == 5) {
if (_root.Monster.mon._currentframe == 1) {
_root.lightning = true;
}
_root.Monster._xscale -= _root.MonRebound;
if (MonRebound > 0) {
--_root.MonRebound;
}
if (_root.Monster.mon._currentframe == 20) {
if (_root.monEyeLhit == true && _root.monEyeRhit == true) {
_root.Monster.gotoAndStop(6);
} else {
_root.Monster.gotoAndStop(1);
_root.Monster.mon.gotoAndPlay(14);
}
}
}
if (_root.Monster._currentframe == 7) {
_root.rain = true;
if (_root.Monster.mon._currentframe == 1) {
_root.lightning = true;
}
_root.Monster._xscale -= _root.MonRebound;
if (MonRebound > 0) {
--_root.MonRebound;
}
if (_root.Monster.mon._currentframe == 20) {
_root.Monster.gotoAndStop(1);
}
}
if (_root.Monster._currentframe == 8) {
if (_root.Monster.mon._currentframe == 1) {
_root.lightning = true;
}
if (_root.Monster.mon._currentframe == 20) {
_root.shake = true;
}
if (_root.Monster.mon._currentframe == 21) {
if (_root.infobar.timer > 0) {
gametimer += 24;
_root.scoreadd += 2000;
}
}
}
if (_root.monEyeLhit == true) {
_root.Monster.mon.EyeL.gotoAndStop(2);
} else {
_root.Monster.mon.EyeL.gotoAndStop(1);
}
if (_root.monEyeRhit == true) {
_root.Monster.mon.EyeR.gotoAndStop(2);
} else {
_root.Monster.mon.EyeR.gotoAndStop(1);
}
MonsterHit = function () {
_root.Rocket.gotoAndStop(2);
Rexplode_sound.start(0, 1);
if (_root.Rocket.rockethit.hitTest(_root.Monster.mon.EyeL) && _root.Monster.mon.EyeL._currentframe == 1) {
_root.monEyeLhit = true;
_root.Monster.mon.EyeL.gotoAndStop(2);
_root.Monster.gotoAndStop(5);
_root.scoreadd += 1000;
}
if (_root.Rocket.rockethit.hitTest(_root.Monster.mon.EyeR) && _root.Monster.mon.EyeR._currentframe == 1) {
_root.monEyeRhit = true;
_root.Monster.mon.EyeR.gotoAndStop(2);
_root.Monster.gotoAndStop(4);
_root.scoreadd += 1000;
}
if (_root.Rocket.rockethit.hitTest(_root.Monster.mon.tonhit)) {
_root.scoreadd += 2000;
if (_root.monhittimes == 3) {
_root.Monster.gotoAndStop(8);
} else {
_root.monEyeRhit = false;
_root.monEyeLhit = false;
_root.Monster.gotoAndStop(7);
}
++_root.monhittimes;
}
_root.Rocketshoot = false;
_root.hitmon = true;
};
BulletHole = function () {
_root.bonus2 = false;
++HoleI;
};
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo == 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 25) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
if (_root.edd.reload._currentframe == 23) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
_root.crosshair.removeMovieClip();
if (_root.Monster.mon._currentframe < 19) {
_root.l4BG._x += (300 - _root.Monster._x) / 12;
_root.l4BG._y += (450 - _root.Monster._y) / 12;
_root.l4BG._xscale += (200 - _root.Monster._xscale) / 12;
_root.l4BG._yscale = _root.l4BG._xscale;
_root.Monster._x += (300 - _root.Monster._x) / 6;
_root.Monster._y += (450 - _root.Monster._y) / 6;
_root.Monster._xscale += (200 - _root.Monster._xscale) / 6;
_root.Monster._yscale = _root.Monster._xscale;
_root.edd._y += (900 - _root.edd._y) / 6;
}
if (_root.Monster.mon._currentframe == 19) {
if (_root.Bing == false) {
_root.attachMovie('l4EddDie', 'MonSmash', 9999);
} else {
_root.attachMovie('l4BingDie', 'MonSmash', 9999);
}
_root.MonSmash._x = 0;
_root.MonSmash._y = 0;
_root.MonSmash.play();
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music2_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
_root.lvlSelect = 4;
if (_root.quit == true && _root.MonsterCRUSH == false) {
gotoAndStop(5);
} else {
gotoAndStop(111);
}
_root.music2_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.MonSmash.removeMovieClip();
_root.l4BG.removeMovieClip();
_root.blackout.removeMovieClip();
_root.Monster.removeMovieClip();
_root.Rocket.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
Mouse.show();
}
}
};
}
frame 111 {
stop();
_root.LS = false;
_root.fadeout._alpha = 0;
var savefile = SharedObject.getLocal('EddGame');
if (savefile.data['score' + _root.lvlSelect] == undefined) {
_root.highscore = 0;
_root.HScheck = 0;
} else {
_root.highscore = savefile.data['score' + _root.lvlSelect];
_root.HScheck = savefile.data['score' + _root.lvlSelect];
}
_root.LevelEnd.gotoAndStop(_root.lvlSelect);
_root.scoreend = 0;
_root.bonus = 1;
_root.newrecord = true;
if (_root.bonus1 == true) {
_root.bonus += 0.25;
_root.bon1.gotoAndStop(2);
}
if (_root.bonus2 == true) {
_root.bonus += 0.2;
_root.bon2.gotoAndStop(2);
}
if (_root.bonus3 == true) {
_root.bonus += 0.1;
_root.bon3.gotoAndStop(2);
}
if (_root.bonus4 == true) {
_root.bonus += 0.05;
_root.bon4.gotoAndStop(2);
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
_root.scoreadd = int(_root.scoreadd * _root.bonus);
_root.StoryCon._alpha = 50;
onEnterFrame = function () {
if (_root.scoreend >= _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.StoryCon._alpha = 100;
}
if (_root.LS == true) {
if (_root.fadeout._alpha >= 100) {
menu_sound.setVolume(100);
menu_soundB.setVolume(100);
gotoAndStop(114);
} else {
_root.fadeout._alpha += 4;
menu_sound.setVolume(_root.fadeout._alpha);
menu_soundB.setVolume(_root.fadeout._alpha);
}
}
var v2 = new Sound();
v2.attachSound('silent');
v2.start(0, 1);
v2.setVolume(100);
if (_root.quit == false) {
if (_root.messageFront._alpha < 100) {
_root.messageFront._alpha += 10;
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.messageFront.gotoAndStop(3);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(3);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.messageFront.gotoAndStop(4);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(4);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.messageFront.gotoAndStop(5);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(5);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.messageFront.gotoAndStop(6);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(6);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetP']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.messageFront.gotoAndStop(7);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(7);
}
}
if (_root.newrecord == true) {
if (_root.scoreend > _root.HScheck) {
_root.messageFront.gotoAndStop(2);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(2);
_root.newrecord = false;
}
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetD'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd >= _root.scoreend + 1000) {
_root.scoreend += 1000;
} else {
_root.scoreend = _root.scoreadd;
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.medal2.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.medal2.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.medal2.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.medal2.gotoAndStop(4);
} else {
_root.medal2.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd > _root.highscore) {
savefile.data['score' + _root.lvlSelect] = _root.scoreadd;
_root['score' + _root.lvlSelect] = _root.scoreadd;
}
if (_root.scoreend > _root.highscore) {
_root.highscore = _root.scoreend;
}
} else {
_root.scoreend = 'N/A';
}
};
}
button 1695 {
on (release) {
gotoAndStop(109);
}
}
frame 112 {
var savefile = SharedObject.getLocal('EddGame');
savefile.data.StoryComplete = true;
onEnterFrame = function () {};
}
frame 113 {
onEnterFrame = function () {
gotoAndPlay(5);
};
}
frame 114 {
stop();
_root.GameBack = true;
_root.GameStart = false;
_root.lvlSelect = 0;
onEnterFrame = function () {
_root.playedlol = _root.played1 + ' ' + _root.played2 + ' ' + _root.played3 + ' ' + _root.played4 + ' ' + _root.played5 + ' ' + _root.played6 + ' ' + _root.played7 + ' ' + _root.played8 + ' ' + _root.played9 + ' ' + _root.played10;
mouseT1 = _root._xmouse;
mouseT2 = _root._xmouse - (_root._xmouse - 250) * 2;
GameReset = function () {
_root.Bback._x = 4;
_root.Bback._y = 403;
yMove = 0;
i = 1;
var v2 = SharedObject.getLocal('EddGame');
while (i <= 10) {
_root['MouseOn' + i] = false;
_root['lvl' + i + 'Xdif'] = 0;
_root['lvl' + i + 'Ydif'] = 0;
if (v2.data['score' + i] == undefined) {
_root['score' + i] = 0;
} else {
_root['score' + i] = v2.data['score' + i];
}
_root['lvl' + i].gotoAndPlay(1);
_root['lvl' + i]._rotation = 0;
_root['lvl' + i + 'X'] = -400;
_root['lvl' + i + 'Y'] = -400;
++i;
}
_root.highscore = 0;
_root.targetyay = 0;
_root.titlemove = 32;
_root.lvlTitles._x = 325;
_root.lvlTitles._y = 450;
_root.lvlInfo._x = 570;
_root.lvlInfo._y = 50;
_root.comment1 = 'Destroy as many demons as possible in the time limit!';
_root.comment2 = 'Shoot as many Commies as you can in the time limit!';
_root.comment3 = 'Protect your home from zombie invasion!';
_root.comment4 = 'Stop the Behemoth of Terror before all is lost!';
_root.comment5 = 'Rescue the neighbors in Level 1 Zombie Panic';
_root.comment6 = 'Do you have what it takes to be an agent? Test your skills, in Hogan\'s Alley!';
_root.comment7 = 'Money is what I want, get as much coins as you can in the time limit!';
_root.comment8 = 'MC Tom is here to drop a bomb! Stop the press from taking photos!';
_root.comment9 = 'Quench your thirst by shooting as much Cola cans as you can!';
_root.comment10 = 'How good is your shooting? Find out in this shooting gallery!';
i = 1;
_root.lvlNumber = 1;
_root.lvlOrder = 1;
_root.lvlOrderDone = false;
_root.lvlSelect = 0;
_root.GameBack = false;
_root.GamePlay = false;
_root.GameStart = false;
_root.lvlUnlock = 0;
_root.lvl1Unlocked = true;
_root.lvl2Unlocked = false;
_root.lvl3Unlocked = false;
_root.lvl4Unlocked = false;
_root.lvl5Unlocked = false;
_root.lvl6Unlocked = false;
_root.lvl7Unlocked = false;
_root.lvl8Unlocked = false;
_root.lvl9Unlocked = false;
_root.lvl10Unlocked = false;
if (_root.score1 >= _root.lvl1TargetD) {
_root.lvl2Unlocked = true;
}
if (_root.score2 >= _root.lvl2TargetD) {
_root.lvl3Unlocked = true;
}
if (_root.score3 >= _root.lvl3TargetD) {
_root.lvl4Unlocked = true;
}
if (_root.score1 >= _root.lvl1TargetB && _root.score2 >= _root.lvl2TargetB && _root.score3 >= _root.lvl3TargetB && _root.score4 >= _root.lvl4TargetB) {
_root.lvl5Unlocked = true;
}
if (_root.score5 >= _root.lvl5TargetB) {
_root.lvl6Unlocked = true;
}
if (_root.score1 >= _root.lvl1TargetS && _root.score2 >= _root.lvl2TargetS && _root.score3 >= _root.lvl3TargetS && _root.score4 >= _root.lvl4TargetS) {
_root.lvl7Unlocked = true;
}
if (_root.score7 >= _root.lvl7TargetS) {
_root.lvl8Unlocked = true;
}
i = 1;
_root.PlatTotal = 0;
while (i <= 10) {
if (_root['score' + i] >= _root['lvl' + i + 'TargetP']) {
++_root.PlatTotal;
}
++i;
}
i = 1;
if (_root.PlatTotal >= 5) {
_root.lvl9Unlocked = true;
}
if (_root.PlatTotal >= 6) {
_root.lvl10Unlocked = true;
}
if (_root.code4 > 1) {
while (i <= 10) {
_root['lvl' + i + 'Unlocked'] = true;
++i;
}
i = 1;
}
unlockcheck = 1;
while (unlockcheck <= 10) {
if (_root['lvl' + unlockcheck + 'Unlocked'] == true) {
++_root.lvlUnlock;
}
++unlockcheck;
}
if (_root.lvlUnlock == 1) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 260;
_root['lvl' + _root.lvlNumber + 'Y'] = 210;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 100;
}
if (_root.lvlUnlock == 2) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 150;
_root['lvl' + _root.lvlNumber + 'Y'] = 120;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 400;
_root['lvl' + _root.lvlNumber + 'Y'] = 300;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 100;
}
if (_root.lvlUnlock == 3) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 130;
_root['lvl' + _root.lvlNumber + 'Y'] = 90;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 410;
_root['lvl' + _root.lvlNumber + 'Y'] = 90;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root['lvl' + _root.lvlNumber + 'X'] = 270;
_root['lvl' + _root.lvlNumber + 'Y'] = 330;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 100;
}
if (_root.lvlUnlock == 4) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 130;
_root['lvl' + _root.lvlNumber + 'Y'] = 90;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 410;
_root['lvl' + _root.lvlNumber + 'Y'] = 90;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root['lvl' + _root.lvlNumber + 'X'] = 130;
_root['lvl' + _root.lvlNumber + 'Y'] = 330;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 4) {
_root['lvl' + _root.lvlNumber + 'X'] = 410;
_root['lvl' + _root.lvlNumber + 'Y'] = 330;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 100;
}
if (_root.lvlUnlock == 5) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 90;
_root['lvl' + _root.lvlNumber + 'Y'] = 105;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 270;
_root['lvl' + _root.lvlNumber + 'Y'] = 105;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root['lvl' + _root.lvlNumber + 'X'] = 450;
_root['lvl' + _root.lvlNumber + 'Y'] = 105;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 4) {
_root['lvl' + _root.lvlNumber + 'X'] = 180;
_root['lvl' + _root.lvlNumber + 'Y'] = 270;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 5) {
_root['lvl' + _root.lvlNumber + 'X'] = 365;
_root['lvl' + _root.lvlNumber + 'Y'] = 270;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 75;
}
if (_root.lvlUnlock == 6) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 95;
_root['lvl' + _root.lvlNumber + 'Y'] = 80;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 270;
_root['lvl' + _root.lvlNumber + 'Y'] = 130;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root['lvl' + _root.lvlNumber + 'X'] = 450;
_root['lvl' + _root.lvlNumber + 'Y'] = 80;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 4) {
_root['lvl' + _root.lvlNumber + 'X'] = 95;
_root['lvl' + _root.lvlNumber + 'Y'] = 330;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 5) {
_root['lvl' + _root.lvlNumber + 'X'] = 270;
_root['lvl' + _root.lvlNumber + 'Y'] = 280;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 6) {
_root['lvl' + _root.lvlNumber + 'X'] = 450;
_root['lvl' + _root.lvlNumber + 'Y'] = 330;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 75;
}
if (_root.lvlUnlock == 7) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 195;
_root['lvl' + _root.lvlNumber + 'Y'] = 80;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 375;
_root['lvl' + _root.lvlNumber + 'Y'] = 80;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root['lvl' + _root.lvlNumber + 'X'] = 100;
_root['lvl' + _root.lvlNumber + 'Y'] = 220;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 4) {
_root['lvl' + _root.lvlNumber + 'X'] = 280;
_root['lvl' + _root.lvlNumber + 'Y'] = 220;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 5) {
_root['lvl' + _root.lvlNumber + 'X'] = 450;
_root['lvl' + _root.lvlNumber + 'Y'] = 220;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 6) {
_root['lvl' + _root.lvlNumber + 'X'] = 195;
_root['lvl' + _root.lvlNumber + 'Y'] = 365;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 7) {
_root['lvl' + _root.lvlNumber + 'X'] = 375;
_root['lvl' + _root.lvlNumber + 'Y'] = 365;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 75;
}
if (_root.lvlUnlock == 8) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 100;
_root['lvl' + _root.lvlNumber + 'Y'] = 80;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 280;
_root['lvl' + _root.lvlNumber + 'Y'] = 80;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root['lvl' + _root.lvlNumber + 'X'] = 460;
_root['lvl' + _root.lvlNumber + 'Y'] = 80;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 4) {
_root['lvl' + _root.lvlNumber + 'X'] = 100;
_root['lvl' + _root.lvlNumber + 'Y'] = 220;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 5) {
_root['lvl' + _root.lvlNumber + 'X'] = 280;
_root['lvl' + _root.lvlNumber + 'Y'] = 220;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 6) {
_root['lvl' + _root.lvlNumber + 'X'] = 450;
_root['lvl' + _root.lvlNumber + 'Y'] = 220;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 7) {
_root['lvl' + _root.lvlNumber + 'X'] = 195;
_root['lvl' + _root.lvlNumber + 'Y'] = 365;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 8) {
_root['lvl' + _root.lvlNumber + 'X'] = 375;
_root['lvl' + _root.lvlNumber + 'Y'] = 365;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 75;
}
if (_root.lvlUnlock == 9) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 80;
_root['lvl' + _root.lvlNumber + 'Y'] = 70;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 205;
_root['lvl' + _root.lvlNumber + 'Y'] = 150;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root['lvl' + _root.lvlNumber + 'X'] = 345;
_root['lvl' + _root.lvlNumber + 'Y'] = 150;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 4) {
_root['lvl' + _root.lvlNumber + 'X'] = 470;
_root['lvl' + _root.lvlNumber + 'Y'] = 70;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 5) {
_root['lvl' + _root.lvlNumber + 'X'] = 80;
_root['lvl' + _root.lvlNumber + 'Y'] = 310;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 6) {
_root['lvl' + _root.lvlNumber + 'X'] = 270;
_root['lvl' + _root.lvlNumber + 'Y'] = 260;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 7) {
_root['lvl' + _root.lvlNumber + 'X'] = 470;
_root['lvl' + _root.lvlNumber + 'Y'] = 310;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 8) {
_root['lvl' + _root.lvlNumber + 'X'] = 205;
_root['lvl' + _root.lvlNumber + 'Y'] = 390;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 9) {
_root['lvl' + _root.lvlNumber + 'X'] = 345;
_root['lvl' + _root.lvlNumber + 'Y'] = 390;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 60;
}
if (_root.lvlUnlock == 10) {
while (i <= _root.lvlUnlock) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root['lvl' + _root.lvlNumber + 'X'] = 85;
_root['lvl' + _root.lvlNumber + 'Y'] = 85;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root['lvl' + _root.lvlNumber + 'X'] = 280;
_root['lvl' + _root.lvlNumber + 'Y'] = 65;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root['lvl' + _root.lvlNumber + 'X'] = 470;
_root['lvl' + _root.lvlNumber + 'Y'] = 85;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 4) {
_root['lvl' + _root.lvlNumber + 'X'] = 75;
_root['lvl' + _root.lvlNumber + 'Y'] = 210;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 5) {
_root['lvl' + _root.lvlNumber + 'X'] = 215;
_root['lvl' + _root.lvlNumber + 'Y'] = 175;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 6) {
_root['lvl' + _root.lvlNumber + 'X'] = 340;
_root['lvl' + _root.lvlNumber + 'Y'] = 260;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 7) {
_root['lvl' + _root.lvlNumber + 'X'] = 480;
_root['lvl' + _root.lvlNumber + 'Y'] = 210;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 8) {
_root['lvl' + _root.lvlNumber + 'X'] = 85;
_root['lvl' + _root.lvlNumber + 'Y'] = 345;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 9) {
_root['lvl' + _root.lvlNumber + 'X'] = 280;
_root['lvl' + _root.lvlNumber + 'Y'] = 370;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 10) {
_root['lvl' + _root.lvlNumber + 'X'] = 470;
_root['lvl' + _root.lvlNumber + 'Y'] = 345;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlocked'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 60;
}
};
if (_root.MouseOn1 == false && _root.MouseOn2 == false && _root.MouseOn3 == false && _root.MouseOn4 == false && _root.MouseOn5 == false && _root.MouseOn6 == false && _root.MouseOn7 == false && _root.MouseOn8 == false && _root.MouseOn9 == false && _root.MouseOn10 == false) {
i = 1;
while (i <= 10) {
_root['lvl' + i + 'Xdif'] = 0;
_root['lvl' + i + 'Ydif'] = 0;
++i;
}
}
i = 1;
while (i <= 10) {
if (_root['MouseOn' + i] == true) {
_root['lvl' + i + 'Xdif'] = 0;
_root['lvl' + i + 'Ydif'] = 0;
i2 = 1;
while (i2 <= 10) {
if (i != i2) {
_root['lvl' + i2 + 'Xdif'] = (_root['lvl' + i2 + 'X'] - _root['lvl' + i + 'X']) / 10;
_root['lvl' + i2 + 'Ydif'] = (_root['lvl' + i2 + 'Y'] - _root['lvl' + i + 'Y']) / 10;
}
++i2;
}
}
++i;
}
if (_root.GamePlay == false) {
i = 1;
while (i <= 10) {
_root['lvl' + i + 'xMove'] = Math.cos(Math.atan2(225 - _root['lvl' + i]._y, 275 - _root['lvl' + i]._x));
_root['lvl' + i + 'yMove'] = Math.sin(Math.atan2(225 - _root['lvl' + i]._y, 275 - _root['lvl' + i]._x));
++i;
}
}
if (_root.GamePlay == true) {
if (_root.lvlSelect > 0) {
_root.lvlBack._y -= _root.titlemove / 5;
_root.lvlPlay._y -= _root.titlemove / 5;
_root.lvlTitles._y -= _root.titlemove;
_root.lvlInfo._x -= _root.titlemove;
if (_root.titlemove > 0) {
--_root.titlemove;
}
}
_root.lvlInfo.highscore = _root['score' + _root.lvlSelect];
_root.lvlInfo.lvlComment.text = _root['comment' + _root.lvlSelect];
_root.lvlInfo.lvlComment.wordWrap = true;
if (_root['score' + _root.lvlSelect] < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.lvlInfo.medal1.gotoAndStop(1);
_root.lvlInfo.medal2.gotoAndStop(1);
_root.lvlInfo.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
} else {
if (_root['score' + _root.lvlSelect] < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.lvlInfo.medal1.gotoAndStop(1);
_root.lvlInfo.medal2.gotoAndStop(2);
_root.lvlInfo.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
} else {
if (_root['score' + _root.lvlSelect] < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.lvlInfo.medal1.gotoAndStop(2);
_root.lvlInfo.medal2.gotoAndStop(3);
_root.lvlInfo.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
} else {
if (_root['score' + _root.lvlSelect] < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.lvlInfo.medal1.gotoAndStop(3);
_root.lvlInfo.medal2.gotoAndStop(4);
_root.lvlInfo.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
} else {
if (_root['score' + _root.lvlSelect] < _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.lvlInfo.medal1.gotoAndStop(4);
_root.lvlInfo.medal2.gotoAndStop(5);
_root.lvlInfo.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
} else {
_root.lvlInfo.medal1.gotoAndStop(5);
_root.lvlInfo.medal2.gotoAndStop(5);
_root.lvlInfo.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
}
}
}
}
}
i = 1;
while (i <= 10) {
if (_root.lvlSelect != i) {
_root['lvl' + i]._y -= yMove * _root['lvl' + i + 'yMove'];
_root['lvl' + i]._x -= yMove * _root['lvl' + i + 'xMove'];
}
++i;
}
_root['lvl' + _root.lvlSelect]._x -= (_root['lvl' + _root.lvlSelect]._x - 135) / 7;
_root['lvl' + _root.lvlSelect]._y -= (_root['lvl' + _root.lvlSelect]._y - 110) / 7;
_root['lvl' + _root.lvlSelect]._xscale -= (_root['lvl' + _root.lvlSelect]._xscale - 120) / 7;
_root['lvl' + _root.lvlSelect]._yscale -= (_root['lvl' + _root.lvlSelect]._yscale - 120) / 7;
_root['lvl' + _root.lvlSelect]._rotation -= (_root['lvl' + _root.lvlSelect]._rotation + 10) / 7;
_root.Bback._y += yMove / 2;
++yMove;
}
if (_root.GameStart == false) {
if (_root.GameBack == false) {
if (_root.circleCover._alpha > 3) {
_root.circleCover._alpha -= 3;
} else {
_root.circleCover._alpha = 0;
}
}
}
if (_root.GameStart == true) {
if (_root.circleCover._alpha < 97) {
_root.circleCover._alpha += 3;
} else {
_root.circleCover._alpha = 100;
}
if (yMove == 33) {
if (_root.lvlSelect == 0) {
gotoAndStop(89);
}
if (_root.lvlSelect > 0) {
stopAllSounds();
menu_sound.setVolume(100);
menu_soundB.setVolume(100);
}
}
if (_root.lvlSelect > 0) {
menu_sound.setVolume(100 - yMove * 3);
}
menu_soundB.setVolume(100 - yMove * 3);
}
if (_root.GameBack == true) {
_root.lvlBack._y += _root.titlemove / 5;
_root.lvlPlay._y += _root.titlemove / 5;
_root.lvlTitles._y += _root.titlemove;
_root.lvlInfo._x += _root.titlemove;
if (_root.titlemove < 32) {
if (_root.lvlSelect > 0) {
menu_sound.setVolume(100 - _root.titlemove * 3);
menu_soundB.setVolume(100 - _root.titlemove * 3);
}
if (_root.lvlSelect > 0) {
_root.circleCover._alpha += 3.3;
}
++_root.titlemove;
} else {
if (_root.lvlSelect == 0) {
GameReset();
} else {
_root.circleCover._alpha = 100;
stopAllSounds();
menu_sound.setVolume(100);
menu_soundB.setVolume(100);
}
if (_root.lvlSelect == 1) {
gotoAndStop(115);
}
if (_root.lvlSelect == 2) {
gotoAndStop(117);
}
if (_root.lvlSelect == 3) {
gotoAndStop(119);
}
if (_root.lvlSelect == 4) {
gotoAndStop(121);
}
if (_root.lvlSelect == 5) {
gotoAndStop(123);
}
if (_root.lvlSelect == 6) {
gotoAndStop(125);
}
if (_root.lvlSelect == 7) {
gotoAndStop(127);
}
if (_root.lvlSelect == 8) {
gotoAndStop(129);
}
if (_root.lvlSelect == 9) {
gotoAndStop(131);
}
if (_root.lvlSelect == 10) {
gotoAndStop(133);
}
if (_root.lvlSelect != 0) {
_root['played' + _root.lvlSelect] += 0.5;
}
}
}
};
}
movieClip 1702 {
}
movieClip 1705 {
}
movieClip 1707 {
frame 13 {
stop();
}
}
instance lvl1 of movieClip 1707 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 1;
}
onClipEvent (rollOver) {
_root.MouseOn1 = true;
}
onClipEvent (rollOut) {
_root.MouseOn1 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn1 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl1X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl1Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn1 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn1 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl1Xdif != posXdif || _root.lvl1Ydif != posYdif) {
posXdif += (_root.lvl1Xdif - posXdif) / 8;
posYdif += (_root.lvl1Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1710 {
}
movieClip 1711 {
frame 15 {
stop();
}
}
instance lvl2 of movieClip 1711 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 2;
}
onClipEvent (rollOver) {
_root.MouseOn2 = true;
}
onClipEvent (rollOut) {
_root.MouseOn2 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn2 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl2X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl2Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn2 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn2 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl2Xdif != posXdif || _root.lvl2Ydif != posYdif) {
posXdif += (_root.lvl2Xdif - posXdif) / 8;
posYdif += (_root.lvl2Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1714 {
}
movieClip 1715 {
frame 17 {
stop();
}
}
instance lvl3 of movieClip 1715 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 3;
}
onClipEvent (rollOver) {
_root.MouseOn3 = true;
}
onClipEvent (rollOut) {
_root.MouseOn3 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn3 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl3X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl3Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn3 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn3 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl3Xdif != posXdif || _root.lvl3Ydif != posYdif) {
posXdif += (_root.lvl3Xdif - posXdif) / 8;
posYdif += (_root.lvl3Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1718 {
}
movieClip 1719 {
frame 19 {
stop();
}
}
instance lvl4 of movieClip 1719 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 4;
}
onClipEvent (rollOver) {
_root.MouseOn4 = true;
}
onClipEvent (rollOut) {
_root.MouseOn4 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn4 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl4X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl4Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn4 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn4 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl4Xdif != posXdif || _root.lvl4Ydif != posYdif) {
posXdif += (_root.lvl4Xdif - posXdif) / 8;
posYdif += (_root.lvl4Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1722 {
}
movieClip 1723 {
frame 21 {
stop();
}
}
instance lvl5 of movieClip 1723 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 5;
}
onClipEvent (rollOver) {
_root.MouseOn5 = true;
}
onClipEvent (rollOut) {
_root.MouseOn5 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn5 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl5X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl5Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn5 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn5 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl5Xdif != posXdif || _root.lvl5Ydif != posYdif) {
posXdif += (_root.lvl5Xdif - posXdif) / 8;
posYdif += (_root.lvl5Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
button 1724 {
on (release) {
_root.GamePlay = true;
_root.GameStart = true;
_root.lvlSelect = 0;
}
}
movieClip 1727 {
}
movieClip 1728 {
frame 27 {
stop();
}
}
instance lvl8 of movieClip 1728 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 8;
}
onClipEvent (rollOver) {
_root.MouseOn8 = true;
}
onClipEvent (rollOut) {
_root.MouseOn8 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn8 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl8X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl8Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn8 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn8 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl8Xdif != posXdif || _root.lvl8Ydif != posYdif) {
posXdif += (_root.lvl8Xdif - posXdif) / 8;
posYdif += (_root.lvl8Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1731 {
}
movieClip 1732 {
frame 29 {
stop();
}
}
instance lvl9 of movieClip 1732 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 9;
}
onClipEvent (rollOver) {
_root.MouseOn9 = true;
}
onClipEvent (rollOut) {
_root.MouseOn9 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn9 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl9X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl9Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn9 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn9 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl9Xdif != posXdif || _root.lvl9Ydif != posYdif) {
posXdif += (_root.lvl9Xdif - posXdif) / 8;
posYdif += (_root.lvl9Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1735 {
}
movieClip 1736 {
frame 31 {
stop();
}
}
instance lvl10 of movieClip 1736 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 10;
}
onClipEvent (rollOver) {
_root.MouseOn10 = true;
}
onClipEvent (rollOut) {
_root.MouseOn10 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn10 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl10X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl10Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn10 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn10 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl10Xdif != posXdif || _root.lvl10Ydif != posYdif) {
posXdif += (_root.lvl10Xdif - posXdif) / 8;
posYdif += (_root.lvl10Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1739 {
}
movieClip 1740 {
frame 23 {
stop();
}
}
instance lvl6 of movieClip 1740 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 6;
}
onClipEvent (rollOver) {
_root.MouseOn6 = true;
}
onClipEvent (rollOut) {
_root.MouseOn6 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn6 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl6X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl6Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn6 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn6 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl6Xdif != posXdif || _root.lvl6Ydif != posYdif) {
posXdif += (_root.lvl6Xdif - posXdif) / 8;
posYdif += (_root.lvl6Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1743 {
}
movieClip 1744 {
frame 25 {
stop();
}
}
instance lvl7 of movieClip 1744 {
onClipEvent (release) {
_root.GamePlay = true;
_root.lvlSelect = 7;
}
onClipEvent (rollOver) {
_root.MouseOn7 = true;
}
onClipEvent (rollOut) {
_root.MouseOn7 = false;
}
onClipEvent (load) {
posX1 = (random(4) + 1) / 100;
posX2 = random(360);
posX3 = (random(130) + 1) / 10;
posX4 = random(150) / 100;
posY1 = (random(4) + 1) / 100;
posY2 = random(360);
posY3 = (random(90) + 1) / 10;
posY4 = random(150) / 100;
posXdif = 0;
posYdif = 0;
_root.MouseOn7 = false;
}
onClipEvent (enterFrame) {
if (_root.GameBack == false) {
if (_root.GamePlay == false) {
this._x = _root.lvl7X + posXdif + Math.sin(posX1 * posX2) * posX3;
posX2 += posX4;
this._y = _root.lvl7Y + posYdif + Math.cos(posY1 * posY2) * posY3;
posY2 += posY4;
this.level1._x = -60 + Math.sin(posX1 * posX2) * posX3 / 2;
this.level1._y = 45 + Math.cos(posY1 * posY2) * posY3 / 2;
}
if (_root.MouseOn7 == true) {
if (this._xscale != _root.lvlScale * 1.15 || this._yscale != _root.lvlScale * 1.15) {
this._xscale += (_root.lvlScale * 1.15 - this._xscale) / 8;
this._yscale += (_root.lvlScale * 1.15 - this._yscale) / 8;
}
}
if (_root.MouseOn7 == false) {
if (this._xscale != _root.lvlScale || this._yscale != _root.lvlScale) {
this._xscale += (_root.lvlScale - this._xscale) / 8;
this._yscale += (_root.lvlScale - this._yscale) / 8;
}
}
if (_root.lvl7Xdif != posXdif || _root.lvl7Ydif != posYdif) {
posXdif += (_root.lvl7Xdif - posXdif) / 8;
posYdif += (_root.lvl7Ydif - posYdif) / 8;
}
} else {
if (this._currentframe > 1) {
this.gotoAndStop(this._currentframe - 1);
}
}
}
}
movieClip 1746 {
}
movieClip 1750 {
}
button 1751 {
on (release) {
if (_root.titlemove == 0) {
_root.GamePlay = false;
_root.lvlSelect = 0;
_root.GameBack = true;
}
}
}
button 1753 {
on (release) {
if (_root.titlemove == 0) {
_root.GamePlay = false;
_root.GameBack = true;
}
}
}
frame 115 {
stop();
play();
}
frame 116 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('Wall', 'wall1', 5000);
_root.attachMovie('Wall', 'wall2', 4999);
_root.attachMovie('blackout', 'blackout', 10005);
var music1_sound = new Sound();
music1_sound.attachSound('music1');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.wall1._x = 430;
_root.wall1._y = -20;
_root.wall2._x = 120;
_root.wall2._y = -20;
_root.wall2._xscale = -100;
_root.eddframe = 1;
_root.ammo = 6;
_root.totalammo = 120;
_root.ammomax = 6;
_root.buttondown = false;
stop();
HoleI = 1;
HoleI1 = 1;
HoleI2 = 1;
MonI = 1000;
MonI2 = 0;
HighI = 0;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 90;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot1', 'yshoot', 10007);
_root.attachMovie('Nshoot1', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score1 < _root.lvl1TargetD) {
_root.showtarget.targetyay = _root.lvl1TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score1 < _root.lvl1TargetB) {
_root.showtarget.targetyay = _root.lvl1TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score1 < _root.lvl1TargetS) {
_root.showtarget.targetyay = _root.lvl1TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score1 < _root.lvl1TargetG) {
_root.showtarget.targetyay = _root.lvl1TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl1TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar1', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd1', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music1_sound.start(0, 999);
music1_sound.setVolume(100);
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 2) {
MonsterLeft();
}
if (gametimer == 4) {
MonsterRight();
}
if (gametimer == 6) {
MonsterBack();
}
if (gametimer == 8) {
MonsterBack();
}
if (gametimer == 77) {
MonsterRight();
}
if (gametimer == 79) {
MonsterLeft();
}
if (gametimer == 81) {
MonsterRight();
}
if (gametimer == 83) {
MonsterBack();
}
if (gametimer == 152) {
Civtom();
}
if (gametimer == 154) {
MonsterBack();
}
if (gametimer == 156) {
MonsterBack();
}
if (gametimer == 158) {
MonsterBack();
}
if (gametimer == 227) {
MonsterLeft();
}
if (gametimer == 229) {
MonsterLeft();
}
if (gametimer == 231) {
MonsterRight();
}
if (gametimer == 233) {
MonsterRight();
}
if (gametimer == 290) {
MonsterLeft();
}
if (gametimer == 298) {
MonsterRight();
}
if (gametimer == 306) {
MonsterLeft();
}
if (gametimer == 314) {
MonsterRight();
}
if (gametimer == 370) {
MonsterBack();
}
if (gametimer == 372) {
MonsterBack();
}
if (gametimer == 374) {
MonsterLeft();
}
if (gametimer == 378) {
MonsterRight();
}
if (gametimer == 430) {
MonsterLeft();
}
if (gametimer == 438) {
MonsterRight();
}
if (gametimer == 446) {
MonsterLeft();
}
if (gametimer == 454) {
MonsterRight();
}
if (gametimer == 527) {
MonsterLeft();
}
if (gametimer == 529) {
MonsterRight();
}
if (gametimer == 531) {
Civtord();
}
if (gametimer == 533) {
MonsterLeft();
}
if (gametimer == 602) {
MonsterBack();
}
if (gametimer == 604) {
MonsterBack();
}
if (gametimer == 606) {
MonsterLeft();
}
if (gametimer == 608) {
MonsterRight();
}
if (gametimer == 677) {
MonsterBack();
}
if (gametimer == 679) {
MonsterBack();
}
if (gametimer == 681) {
MonsterBack();
}
if (gametimer == 683) {
MonsterBack();
}
if (gametimer == 752) {
MonsterLeft();
}
if (gametimer == 754) {
MonsterRight();
}
if (gametimer == 756) {
MonsterBack();
}
if (gametimer == 758) {
MonsterLeft();
}
if (gametimer == 842) {
MonsterLeft();
}
if (gametimer == 850) {
MonsterRight();
}
if (gametimer == 858) {
MonsterLeft();
}
if (gametimer == 866) {
MonsterRight();
}
if (gametimer == 922) {
MonsterBack();
}
if (gametimer == 924) {
MonsterBack();
}
if (gametimer == 926) {
MonsterLeft();
}
if (gametimer == 928) {
MonsterRight();
}
if (gametimer == 980) {
MonsterLeft();
}
if (gametimer == 988) {
MonsterRight();
}
if (gametimer == 996) {
MonsterLeft();
}
if (gametimer == 1004) {
MonsterRight();
}
if (gametimer == 1057) {
MonsterLeft();
}
if (gametimer == 1059) {
MonsterRight();
}
if (gametimer == 1061) {
MonsterBack();
}
if (gametimer == 1063) {
MonsterBack();
}
if (gametimer == 1132) {
MonsterBack();
}
if (gametimer == 1134) {
MonsterRight();
}
if (gametimer == 1136) {
MonsterBack();
}
if (gametimer == 1138) {
MonsterLeft();
}
if (gametimer == 1207) {
MonsterLeft();
}
if (gametimer == 1209) {
MonsterLeft();
}
if (gametimer == 1211) {
MonsterLeft();
}
if (gametimer == 1213) {
MonsterLeft();
}
if (gametimer == 1280) {
MonsterSuper();
}
if (gametimer == 1357) {
MonsterRight();
}
if (gametimer == 1359) {
MonsterLeft();
}
if (gametimer == 1361) {
MonsterRight();
}
if (gametimer == 1363) {
MonsterBack();
}
if (gametimer == 1432) {
MonsterBack();
}
if (gametimer == 1434) {
MonsterBack();
}
if (gametimer == 1436) {
MonsterBack();
}
if (gametimer == 1438) {
MonsterBack();
}
if (gametimer == 1507) {
MonsterLeft();
}
if (gametimer == 1509) {
MonsterLeft();
}
if (gametimer == 1511) {
MonsterRight();
}
if (gametimer == 1513) {
MonsterRight();
}
if (gametimer == 1574) {
MonsterLeft();
}
if (gametimer == 1582) {
MonsterRight();
}
if (gametimer == 1590) {
MonsterLeft();
}
if (gametimer == 1598) {
MonsterRight();
}
if (gametimer == 1650) {
MonsterBack();
}
if (gametimer == 1652) {
MonsterBack();
}
if (gametimer == 1654) {
MonsterLeft();
}
if (gametimer == 1658) {
MonsterRight();
}
if (gametimer == 1714) {
MonsterLeft();
}
if (gametimer == 1722) {
MonsterRight();
}
if (gametimer == 1730) {
MonsterLeft();
}
if (gametimer == 1738) {
MonsterRight();
}
if (gametimer == 1807) {
MonsterLeft();
}
if (gametimer == 1809) {
MonsterRight();
}
if (gametimer == 1811) {
MonsterBack();
}
if (gametimer == 1813) {
MonsterLeft();
}
if (gametimer == 1882) {
MonsterBack();
}
if (gametimer == 1884) {
MonsterBack();
}
if (gametimer == 1886) {
MonsterLeft();
}
if (gametimer == 1888) {
MonsterRight();
}
if (gametimer == 1957) {
Civmatt();
}
if (gametimer == 1959) {
MonsterBack();
}
if (gametimer == 1961) {
MonsterBack();
}
if (gametimer == 1963) {
MonsterBack();
}
if (gametimer == 2032) {
MonsterLeft();
}
if (gametimer == 2034) {
MonsterRight();
}
if (gametimer == 2036) {
MonsterBack();
}
if (gametimer == 2038) {
MonsterLeft();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
if (_root._xmouse > _root.wall2._x && _root._xmouse < _root.wall1._x) {
while (_root.MonHit == false) {
if (HighI > 0) {
MonsterHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
MonsterLeft = function () {
++MonI;
_root.attachMovie('monsterL', 'monster' + MonI, 3000 + MonI);
MonRotate = 17;
_root['monster' + MonI]._x = _root.wall2._x - 85;
_root['monster' + MonI]._y = 375 - random(225);
};
MonsterRight = function () {
++MonI;
_root.attachMovie('monsterR', 'monster' + MonI, 3000 + MonI);
MonRotate = 17;
_root['monster' + MonI]._x = _root.wall1._x + 90;
_root['monster' + MonI]._y = 400 - random(200);
};
MonsterBack = function () {
++MonI;
++MonI2;
_root.attachMovie('monsterstand1', 'monster' + MonI2, 2000 + MonI);
_root['monster' + MonI2]._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root['monster' + MonI2]._y = -90;
_root['monster' + MonI2]._xscale = 50;
_root['monster' + MonI2]._yscale = 50;
};
MonsterSuper = function () {
++MonI;
++MonI2;
_root.attachMovie('monsterSuper', 'monster999', 3500);
_root.monster999._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root.monster999._y = -150;
_root.monster999._xscale = 90;
_root.monster999._yscale = 90;
};
Civmatt = function () {
++MonI;
++MonI2;
_root.attachMovie('CivMatt', 'civillian' + MonI2, 2000 + MonI);
_root['civillian' + MonI2]._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root['civillian' + MonI2]._y = -90;
_root['civillian' + MonI2]._xscale = 40;
_root['civillian' + MonI2]._yscale = 40;
};
Civtom = function () {
++MonI;
++MonI2;
_root.attachMovie('CivTom', 'civillian' + MonI2, 2000 + MonI);
_root['civillian' + MonI2]._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root['civillian' + MonI2]._y = -90;
_root['civillian' + MonI2]._xscale = 40;
_root['civillian' + MonI2]._yscale = 40;
};
Civtord = function () {
++MonI;
++MonI2;
_root.attachMovie('CivTord', 'civillian' + MonI2, 2000 + MonI);
_root['civillian' + MonI2]._x = _root.wall2._x + 20 + random(_root.wall1._x - _root.wall2._x - 40);
_root['civillian' + MonI2]._y = -90;
_root['civillian' + MonI2]._xscale = 40;
_root['civillian' + MonI2]._yscale = 40;
};
MonsterHit = function (HighI) {
if (HighI == 999) {
_root.Super = 4;
} else {
_root.Super = 1;
}
if (_root.ammo > -1) {
if (_root.HitCheck.hitTest(_root['monster' + HighI].hitHead)) {
_root['monster' + HighI].gotoAndStop(2);
_root.scoreadd += 200 * _root.multi * _root.Super;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['monster' + HighI].head)) {
_root['monster' + HighI].head.gotoAndStop(2);
_root.scoreadd += 300 * _root.multi * _root.Super;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['monster' + HighI].hitBody1) || _root.HitCheck.hitTest(_root['monster' + HighI].hitBody2)) {
_root['monster' + HighI].gotoAndStop(3);
_root.scoreadd += 100 * _root.multi * _root.Super;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
++_root.MonDead;
}
if (_root.HitCheck.hitTest(_root['civillian' + HighI])) {
_root['civillian' + HighI].gotoAndStop(2);
_root.scoreadd -= 400;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
}
}
};
BulletHole = function () {
if (_root._xmouse > _root.wall2._x && _root._xmouse < _root.wall1._x) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI2);
++HoleI2;
} else {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI1 + 5000);
++HoleI1;
}
if (_root._xmouse > _root.wall2._x - 14 && _root._xmouse <= _root.wall2._x) {
_root['hole' + HoleI]._x = _root.wall2._x - 14;
} else {
if (_root._xmouse >= _root.wall1._x && _root._xmouse < _root.wall1._x + 14) {
_root['hole' + HoleI]._x = _root.wall1._x + 14;
} else {
_root['hole' + HoleI]._x = _root._xmouse;
}
}
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
if (_root._xmouse > _root.wall2._x && _root._xmouse < _root.wall1._x) {
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
}
_root.multiadd = 0;
_root.multi = 1;
++HoleI;
_root.bonus2 = false;
};
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 6) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._x = 275;
_root.edd._y = 400;
_root.edd._rotation = 0;
if (_root.edd.reload._currentframe == 3) {
Ebullet_sound.start(0, 1);
Ebullet_sound.setVolume(100);
}
if (_root.edd.reload._currentframe == 8) {
++_root.ammo;
_root.infobar['bullet' + _root.ammo]._alpha = 100;
--_root.totalammo;
}
if (_root.edd.reload._currentframe < 12) {
if (_root.shootan == true) {
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
Ebullet_sound.stop('Ebullet_sound');
}
}
}
if (_root.edd.reload._currentframe == 11 && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.reload.gotoAndPlay(3);
Ebullet_sound.start(0, 1);
Ebullet_sound.setVolume(100);
}
if (_root.edd.reload._currentframe == 12) {
_root.eddframe = 2;
}
if (_root.edd.reload._currentframe == 20) {
_root.shootan = false;
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music1_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music1_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.wall1.removeMovieClip();
_root.wall2.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['monster' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
frame 117 {
stop();
play();
}
frame 118 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('2Wall1', 'Wall1', 4000);
_root.attachMovie('box2', 'box2', 5000);
_root.attachMovie('oilcan', 'oilcan', 6000);
_root.attachMovie('2Wall2', 'Wall2', 7000);
_root.attachMovie('box1', 'box1', 8000);
_root.attachMovie('blackout', 'blackout', 10005);
var music2_sound = new Sound();
music2_sound.attachSound('music2');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.Wall1._x = 373.4;
_root.Wall1._y = 89.2;
_root.box2._x = 359.6;
_root.box2._y = 229.4;
_root.oilcan._x = 250.9;
_root.oilcan._y = 211.8;
_root.Wall2._x = 0;
_root.Wall2._y = 0;
_root.box1._x = 62;
_root.box1._y = 332.1;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.eddframe = 1;
_root.ammo = 7;
_root.totalammo = 105;
_root.ammomax = 7;
_root.buttondown = false;
stop();
HoleI = 1;
HoleI1 = 1;
HoleI2 = 1;
MonI = 2000;
MonI1 = 2000;
MonI2 = 1500;
MonI3 = 1000;
MonI4 = 500;
MonI5 = 0;
HighI = 0;
OilI = 0;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 80;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot2', 'yshoot', 10007);
_root.attachMovie('Nshoot2', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score2 < _root.lvl2TargetD) {
_root.showtarget.targetyay = _root.lvl2TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score2 < _root.lvl2TargetB) {
_root.showtarget.targetyay = _root.lvl2TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score2 < _root.lvl2TargetS) {
_root.showtarget.targetyay = _root.lvl2TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score2 < _root.lvl2TargetG) {
_root.showtarget.targetyay = _root.lvl2TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl2TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar2', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd2', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music2_sound.start(0, 999);
music2_sound.setVolume(100);
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 3) {
SoilderLeft();
}
if (gametimer == 6) {
SoilderUp2();
}
if (gametimer == 9) {
SoilderRight1();
}
if (gametimer == 53) {
SoilderUp3();
}
if (gametimer == 56) {
SoilderRight2();
}
if (gametimer == 59) {
SoilderUp1();
}
if (gametimer == 103) {
SoilderLeft();
}
if (gametimer == 106) {
SoilderRight1();
}
if (gametimer == 109) {
SoilderRight1();
}
if (gametimer == 153) {
SoilderUp3();
}
if (gametimer == 156) {
SoilderLeft();
}
if (gametimer == 159) {
SoilderLeft();
}
if (gametimer == 203) {
SoilderRight2();
}
if (gametimer == 206) {
CivTom();
}
if (gametimer == 209) {
SoilderRight1();
}
if (gametimer == 253) {
SoilderLeft();
}
if (gametimer == 256) {
SoilderUp1();
}
if (gametimer == 259) {
SoilderRight1();
}
if (gametimer == 303) {
SoilderUp3();
}
if (gametimer == 306) {
SoilderRight2();
}
if (gametimer == 309) {
SoilderRight1();
}
if (gametimer == 353) {
SoilderLeft();
}
if (gametimer == 356) {
SoilderRight1();
}
if (gametimer == 359) {
SoilderRight1();
}
if (gametimer == 403) {
CivTord();
}
if (gametimer == 406) {
SoilderLeft();
}
if (gametimer == 409) {
SoilderRight1();
}
if (gametimer == 453) {
SoilderRight2();
}
if (gametimer == 456) {
SoilderLeft();
}
if (gametimer == 459) {
SoilderRight2();
}
if (gametimer == 503) {
SoilderUp1();
}
if (gametimer == 506) {
SoilderUp2();
}
if (gametimer == 509) {
SoilderUp3();
}
if (gametimer == 553) {
SoilderLeft();
}
if (gametimer == 556) {
SoilderRight2();
}
if (gametimer == 559) {
SoilderRight1();
}
if (gametimer == 603) {
SoilderLeft();
}
if (gametimer == 606) {
SoilderUp1();
}
if (gametimer == 609) {
SoilderRight1();
}
if (gametimer == 653) {
SoilderUp3();
}
if (gametimer == 656) {
SoilderLeft();
}
if (gametimer == 659) {
SoilderLeft();
}
if (gametimer == 703) {
SoilderRight2();
}
if (gametimer == 706) {
SoilderLeft();
}
if (gametimer == 709) {
SoilderRight1();
}
if (gametimer == 753) {
SoilderLeft();
}
if (gametimer == 756) {
SoilderUp1();
}
if (gametimer == 759) {
SoilderRight1();
}
if (gametimer == 803) {
SoilderUp3();
}
if (gametimer == 806) {
SoilderRight2();
}
if (gametimer == 809) {
SoilderRight1();
}
if (gametimer == 853) {
SoilderUp1();
}
if (gametimer == 856) {
SoilderRight2();
}
if (gametimer == 859) {
SoilderRight2();
}
if (gametimer == 903) {
SoilderUp3();
}
if (gametimer == 906) {
SoilderLeft();
}
if (gametimer == 909) {
SoilderRight1();
}
if (gametimer == 953) {
SoilderRight2();
}
if (gametimer == 956) {
SoilderRight1();
}
if (gametimer == 959) {
SoilderRight2();
}
if (gametimer == 1003) {
CivMatt();
}
if (gametimer == 1006) {
SoilderUp2();
}
if (gametimer == 1009) {
SoilderLeft();
}
if (gametimer == 1053) {
SoilderSuper();
}
if (gametimer == 1056) {
SoilderRight2();
}
if (gametimer == 1103) {
SoilderLeft();
}
if (gametimer == 1106) {
SoilderRight1();
}
if (gametimer == 1109) {
SoilderRight1();
}
if (gametimer == 1153) {
SoilderUp3();
}
if (gametimer == 1156) {
SoilderLeft();
}
if (gametimer == 1159) {
SoilderLeft();
}
if (gametimer == 1203) {
SoilderRight1();
}
if (gametimer == 1206) {
SoilderUp1();
}
if (gametimer == 1209) {
SoilderRight1();
}
if (gametimer == 1253) {
SoilderLeft();
}
if (gametimer == 1256) {
CivTom();
}
if (gametimer == 1259) {
SoilderRight1();
}
if (gametimer == 1303) {
SoilderUp3();
}
if (gametimer == 1306) {
SoilderRight2();
}
if (gametimer == 1309) {
SoilderRight1();
}
if (gametimer == 1353) {
SoilderLeft();
}
if (gametimer == 1356) {
SoilderRight2();
}
if (gametimer == 1359) {
SoilderRight1();
}
if (gametimer == 1403) {
CivTord();
}
if (gametimer == 1406) {
SoilderUp2();
}
if (gametimer == 1409) {
SoilderRight1();
}
if (gametimer == 1453) {
SoilderRight2();
}
if (gametimer == 1456) {
SoilderLeft();
}
if (gametimer == 1459) {
SoilderRight2();
}
if (gametimer == 1503) {
SoilderUp1();
}
if (gametimer == 1506) {
SoilderUp2();
}
if (gametimer == 1509) {
CivMatt();
}
if (gametimer == 1553) {
SoilderLeft();
}
if (gametimer == 1556) {
SoilderRight2();
}
if (gametimer == 1559) {
SoilderRight1();
}
if (gametimer == 1603) {
SoilderLeft();
}
if (gametimer == 1606) {
SoilderUp1();
}
if (gametimer == 1609) {
SoilderRight1();
}
if (gametimer == 1653) {
SoilderUp3();
}
if (gametimer == 1656) {
SoilderLeft();
}
if (gametimer == 1659) {
SoilderLeft();
}
if (gametimer == 1703) {
SoilderRight2();
}
if (gametimer == 1706) {
SoilderLeft();
}
if (gametimer == 1709) {
SoilderRight1();
}
if (gametimer == 1753) {
SoilderLeft();
}
if (gametimer == 1756) {
SoilderUp1();
}
if (gametimer == 1759) {
SoilderRight1();
}
if (gametimer == 1803) {
SoilderUp3();
}
if (gametimer == 1806) {
SoilderRight1();
}
if (gametimer == 1809) {
SoilderRight1();
}
if (gametimer == 1853) {
SoilderLeft();
}
if (gametimer == 1856) {
SoilderRight2();
}
if (gametimer == 1859) {
SoilderRight1();
}
if (gametimer == 1903) {
CivTom();
}
if (gametimer == 1906) {
CivMatt();
}
if (gametimer == 1909) {
CivTord();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
while (_root.MonHit == false) {
if (HighI > -1) {
SoilderHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
SoilderLeft = function () {
++MonI;
++MonI2;
_root.attachMovie('soilder2', 'soilder' + MonI2, 4500 + MonI);
_root['soilder' + MonI2]._x = 130;
_root['soilder' + MonI2]._y = 300;
_root['soilder' + MonI2]._xscale = 95;
_root['soilder' + MonI2]._yscale = 95;
};
SoilderRight1 = function () {
++MonI;
++MonI2;
_root.attachMovie('soilder3', 'soilder' + MonI2, 4500 + MonI);
_root['soilder' + MonI2]._x = 625;
_root['soilder' + MonI2]._y = 275;
_root['soilder' + MonI2]._xscale = 80;
_root['soilder' + MonI2]._yscale = 80;
};
SoilderRight2 = function () {
++MonI;
++MonI5;
_root.attachMovie('soilder3', 'soilder' + MonI5, 1500 + MonI);
_root['soilder' + MonI5]._x = 420;
_root['soilder' + MonI5]._y = 200;
_root['soilder' + MonI5]._xscale = 20;
_root['soilder' + MonI5]._yscale = 20;
};
SoilderUp1 = function () {
++MonI;
++MonI1;
_root.attachMovie('soilder1', 'soilder' + MonI1, 5500 + MonI);
_root['soilder' + MonI1]._x = 172;
_root['soilder' + MonI1]._y = 600;
};
SoilderUp2 = function () {
++MonI;
++MonI4;
_root.attachMovie('soilder1', 'soilder' + MonI4, 2500 + MonI);
_root['soilder' + MonI4]._x = 380;
_root['soilder' + MonI4]._y = 310;
_root['soilder' + MonI4]._xscale = 30;
_root['soilder' + MonI4]._yscale = 30;
};
SoilderUp3 = function () {
++MonI;
++MonI3;
_root.attachMovie('soilder1', 'soilder' + MonI3, 3500 + MonI);
_root['soilder' + MonI3]._x = 266;
_root['soilder' + MonI3]._y = 265;
_root['soilder' + MonI3]._xscale = 18;
_root['soilder' + MonI3]._yscale = 18;
};
SoilderSuper = function () {
++MonI;
_root.attachMovie('boris', 'soilder1', 3500);
_root.soilder1._x = 329.1;
_root.soilder1._y = 190.8;
};
CivMatt = function () {
++MonI;
++MonI3;
_root.attachMovie('CivMatt2', 'civillian' + MonI3, 3500 + MonI);
_root['civillian' + MonI3]._x = 266;
_root['civillian' + MonI3]._y = 265;
_root['civillian' + MonI3]._xscale = 18;
_root['civillian' + MonI3]._yscale = 18;
};
CivTom = function () {
++MonI;
++MonI4;
_root.attachMovie('CivTom2', 'civillian' + MonI4, 2500 + MonI);
_root['civillian' + MonI4]._x = 380;
_root['civillian' + MonI4]._y = 310;
_root['civillian' + MonI4]._xscale = 30;
_root['civillian' + MonI4]._yscale = 30;
};
CivTord = function () {
++MonI;
++MonI1;
_root.attachMovie('CivTord2', 'civillian' + MonI1, 5500 + MonI);
_root['civillian' + MonI1]._x = 172;
_root['civillian' + MonI1]._y = 600;
};
SoilderHit = function (HighI) {
if (_root.ammo > -1) {
if (HighI > 2000) {
_root.DepHit = '_root.box1';
} else {
if (HighI > 1500) {
_root.DepHit = '_root.Wall2';
} else {
if (HighI > 1000) {
_root.DepHit = '_root.oilcan.hitarea';
} else {
if (HighI > 500) {
_root.DepHit = '_root.box2';
} else {
if (HighI > 0) {
_root.DepHit = '_root.Wall1';
}
}
}
}
}
if (!_root.HitCheck.hitTest(_root.DepHit)) {
if (_root.HitCheck.hitTest(_root['soilder' + HighI].hathit) && _root['soilder' + HighI].hat._currentframe == 1) {
_root['soilder' + HighI].hat.gotoAndStop(2);
_root.scoreadd += 50 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
} else {
if (_root.HitCheck.hitTest(_root['soilder' + HighI].body)) {
_root['soilder' + HighI].body.gotoAndStop(2);
_root['soilder' + HighI].hat.gotoAndStop(2);
_root.attachMovie('blood', 'blood', 9999);
_root.blood._x = _root._xmouse;
_root.blood._y = _root._ymouse;
_root.blood._xscale = _root['soilder' + HighI]._xscale;
_root.blood._yscale = _root['soilder' + HighI]._yscale;
_root.scoreadd += 250 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
}
if (_root.HitCheck.hitTest(_root['civillian' + HighI].body)) {
_root['civillian' + HighI].body.gotoAndStop(2);
_root.scoreadd -= 400;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['soilder' + HighI].boris) && _root['soilder' + HighI].boris._currentframe == 1) {
_root['soilder' + HighI].boris.gotoAndStop(2);
_root.scoreadd += 500 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['soilder' + HighI].boris) && _root['soilder' + HighI].boris._currentframe == 2 && _root['soilder' + HighI].boris.freeze._currentframe == 6) {
_root['soilder' + HighI].boris.gotoAndStop(3);
_root.scoreadd += 600 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
}
if (_root.HitCheck.hitTest(_root['soilder' + HighI].hat) && _root['soilder' + HighI].hat._currentframe == 2) {
_root.hitmon = true;
_root.MonHit = true;
}
}
};
BulletHole = function () {
_root.bonus2 = false;
if (_root.HitCheck.hitTest(_root.box1)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 8000);
_root['hole' + HoleI]._xscale = 110;
_root['hole' + HoleI]._yscale = 110;
} else {
if (_root.HitCheck.hitTest(_root.box2)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 5000);
_root['hole' + HoleI]._xscale = 60;
_root['hole' + HoleI]._yscale = 60;
} else {
if (_root.HitCheck.hitTest(_root.oilcan.hitarea)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 6000);
if (OilI < 4) {
_root.attachMovie('oilleak', 'oilleak' + OilI, OilI + 6495);
_root['oilleak' + OilI]._y = _root._ymouse;
_root['oilleak' + OilI]._x = _root._xmouse;
_root['oilleak' + OilI]._xscale = (_root._xmouse - 250.9) * 6.3 - 100;
_root['oilleak' + OilI]._yscale = 250 - (_root._ymouse - 211.8) * 4;
_root['oilleak' + OilI]._x = _root._xmouse;
_root.bonus2 = true;
}
_root['hole' + HoleI]._xscale = 20;
_root['hole' + HoleI]._yscale = 20;
++OilI;
} else {
if (_root._ymouse - _root._xmouse + 108.3 < 0 && _root._ymouse < 177.8 && _root._xmouse < 281.4 || _root._ymouse + _root._xmouse / 1.55 - 396 < 0 && _root._ymouse < 177.8 && _root._xmouse > 373.6 || _root._ymouse < 177.8 && _root._xmouse < 373.6 && _root._xmouse > 281.4) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
_root['hole' + HoleI]._xscale = 85 - _root._ymouse / 2.96;
_root['hole' + HoleI]._yscale = 85 - _root._ymouse / 2.96;
} else {
if (_root._ymouse + _root._xmouse - 511 > 0 && _root._ymouse > 226.8 && _root._xmouse < 281.4 || _root._ymouse - _root._xmouse / 1.6 - 17 > 0 && _root._ymouse > 226.8 && _root._xmouse > 373.6 || _root._ymouse > 226.8 && _root._xmouse < 373.6 && _root._xmouse > 281.4) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
_root['hole' + HoleI]._xscale = _root._ymouse / 3.6 - 38;
_root['hole' + HoleI]._yscale = _root._ymouse / 3.6 - 38;
} else {
if (_root._xmouse < 281.4) {
if (_root._xmouse < 184.9) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 7000);
} else {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
}
_root['hole' + HoleI]._xscale = 100 - _root._xmouse / 3.75;
_root['hole' + HoleI]._yscale = 100 - _root._xmouse / 3.75;
} else {
if (_root._xmouse > 491.3) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 4000);
_root['hole' + HoleI]._xscale = 40;
_root['hole' + HoleI]._yscale = 40;
} else {
if (_root._xmouse > 373.6) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 4000);
_root['hole' + HoleI]._xscale = 25 + _root._xmouse / 4.75 - 75;
_root['hole' + HoleI]._yscale = 25 + _root._xmouse / 4.75 - 75;
} else {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
_root['hole' + HoleI]._xscale = 25;
_root['hole' + HoleI]._yscale = 25;
}
}
}
}
}
}
}
}
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
if (_root._xmouse > _root.wall2._x && _root._xmouse < _root.wall1._x) {
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
}
_root.multiadd = 0;
_root.multi = 1;
++HoleI;
};
if (_root.score < _root.scoreadd) {
_root.score += 25;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 6) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.edd.reload._currentframe == 16) {
if (_root.totalammo - _root.ammomax > 0) {
_root.totalammo -= _root.ammomax - _root.ammo;
_root.ammo += _root.ammomax - _root.ammo;
} else {
_root.ammo = _root.totalammo + _root.ammo;
_root.totalammo = 0;
}
if (_root.ammo >= 1) {
_root.infobar.bullet1._alpha = 100;
}
if (_root.ammo >= 2) {
_root.infobar.bullet2._alpha = 100;
}
if (_root.ammo >= 3) {
_root.infobar.bullet3._alpha = 100;
}
if (_root.ammo >= 4) {
_root.infobar.bullet4._alpha = 100;
}
if (_root.ammo >= 5) {
_root.infobar.bullet5._alpha = 100;
}
if (_root.ammo >= 6) {
_root.infobar.bullet6._alpha = 100;
}
if (_root.ammo >= 7) {
_root.infobar.bullet7._alpha = 100;
}
}
if (_root.edd.reload._currentframe == 23) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music2_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music2_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.Wall1.removeMovieClip();
_root.Wall2.removeMovieClip();
_root.box1.removeMovieClip();
_root.box2.removeMovieClip();
_root.oilcan.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
_root.oilleak0.removeMovieClip();
_root.oilleak1.removeMovieClip();
_root.oilleak2.removeMovieClip();
_root.oilleak3.removeMovieClip();
_root.oilleak4.removeMovieClip();
while (MonI > 0) {
_root['soilder' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
frame 119 {
stop();
play();
}
frame 120 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('l3background', 'house', 3000);
_root.attachMovie('l3lamp', 'lamp', 4000);
_root.attachMovie('l3TV', 'TV', 5000);
_root.attachMovie('l3couch', 'couch', 6000);
_root.attachMovie('blackout', 'blackout', 10005);
var music2_sound = new Sound();
music2_sound.attachSound('music3');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.house._x = 0;
_root.house._y = 0;
_root.lamp._x = 255.7;
_root.lamp._y = 93.40000000000001;
_root.TV._x = 372.9;
_root.TV._y = 223.1;
_root.couch._x = -16.6;
_root.couch._y = 225.9;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.eddframe = 1;
_root.ammo = 12;
_root.totalammo = 84;
_root.ammomax = 12;
_root.buttondown = false;
stop();
HoleI = 1;
MonI = 2000;
MonI1 = 2000;
MonI2 = 1500;
MonI3 = 1000;
MonI4 = 500;
MonI5 = 0;
HighI = 0;
_root.ShootLeft == true;
_root.ShootCheck == true;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 70;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
_root.TVswitchNo = 0;
_root.TVswitch = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot3', 'yshoot', 10007);
_root.attachMovie('Nshoot3', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score3 < _root.lvl3TargetD) {
_root.showtarget.targetyay = _root.lvl3TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score3 < _root.lvl3TargetB) {
_root.showtarget.targetyay = _root.lvl3TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score3 < _root.lvl3TargetS) {
_root.showtarget.targetyay = _root.lvl3TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score3 < _root.lvl3TargetG) {
_root.showtarget.targetyay = _root.lvl3TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl3TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar3', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd3', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 81) {
music2_sound.start(0, 999);
music2_sound.setVolume(100);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 3) {
ZombieWindow();
}
if (gametimer == 6) {
ZombieDoor();
}
if (gametimer == 9) {
ZombieWindow();
}
if (gametimer == 53) {
ZombieTV();
}
if (gametimer == 56) {
ZombieLampL();
}
if (gametimer == 59) {
ZombieCouch();
}
if (gametimer == 103) {
ZombieWindow();
}
if (gametimer == 106) {
ZombieCouch();
}
if (gametimer == 109) {
ZombieLampR();
}
if (gametimer == 153) {
ZombieDoor();
}
if (gametimer == 156) {
ZombieCouch();
}
if (gametimer == 159) {
ZombieCouch();
}
if (gametimer == 203) {
ZombieTV();
}
if (gametimer == 206) {
ZombieWindow();
}
if (gametimer == 209) {
ZombieWindow();
}
if (gametimer == 253) {
ZombieWindow();
}
if (gametimer == 256) {
ZombieTV();
}
if (gametimer == 259) {
ZombieTV();
}
if (gametimer == 303) {
ZombieLampL();
}
if (gametimer == 306) {
ZombieLampL();
}
if (gametimer == 309) {
ZombieDoor();
}
if (gametimer == 353) {
CivMatt();
}
if (gametimer == 356) {
ZombieCouch();
}
if (gametimer == 359) {
ZombieWindow();
}
if (gametimer == 403) {
ZombieTV();
}
if (gametimer == 406) {
ZombieLampR();
}
if (gametimer == 409) {
ZombieDoor();
}
if (gametimer == 453) {
ZombieTV();
}
if (gametimer == 456) {
ZombieDoor();
}
if (gametimer == 459) {
ZombieDoor();
}
if (gametimer == 503) {
ZombieLampL();
}
if (gametimer == 506) {
ZombieLampL();
}
if (gametimer == 509) {
ZombieCouch();
}
if (gametimer == 553) {
ZombieWindow();
}
if (gametimer == 556) {
ZombieDoor();
}
if (gametimer == 559) {
ZombieWindow();
}
if (gametimer == 603) {
CivTord();
}
if (gametimer == 606) {
ZombieTV();
}
if (gametimer == 609) {
ZombieLampR();
}
if (gametimer == 653) {
ZombieDoor();
}
if (gametimer == 656) {
ZombieCouch();
}
if (gametimer == 659) {
ZombieWindow();
}
if (gametimer == 703) {
ZombieTV();
}
if (gametimer == 706) {
ZombieWindow();
}
if (gametimer == 709) {
ZombieLampL();
}
if (gametimer == 753) {
ZombieTV();
}
if (gametimer == 756) {
ZombieWindow();
}
if (gametimer == 759) {
ZombieWindow();
}
if (gametimer == 803) {
ZombieLampR();
}
if (gametimer == 806) {
ZombieCouch();
}
if (gametimer == 809) {
ZombieLampR();
}
if (gametimer == 853) {
ZombieTV();
}
if (gametimer == 856) {
ZombieTV();
}
if (gametimer == 859) {
ZombieDoor();
}
if (gametimer == 903) {
ZombieWindow();
}
if (gametimer == 906) {
ZombieWindow();
}
if (gametimer == 909) {
ZombieWindow();
}
if (gametimer == 953) {
ZombieDoor();
}
if (gametimer == 956) {
ZombieSuper();
}
if (gametimer == 959) {
ZombieWindow();
}
if (gametimer == 1003) {
ZombieTV();
}
if (gametimer == 1006) {
ZombieWindow();
}
if (gametimer == 1009) {
ZombieLampL();
}
if (gametimer == 1053) {
ZombieDoor();
}
if (gametimer == 1056) {
CivTom();
}
if (gametimer == 1059) {
ZombieLampL();
}
if (gametimer == 1103) {
ZombieTV();
}
if (gametimer == 1106) {
ZombieDoor();
}
if (gametimer == 1109) {
ZombieLampR();
}
if (gametimer == 1153) {
ZombieLampL();
}
if (gametimer == 1156) {
ZombieLampL();
}
if (gametimer == 1159) {
ZombieLampL();
}
if (gametimer == 1203) {
ZombieCouch();
}
if (gametimer == 1206) {
ZombieWindow();
}
if (gametimer == 1209) {
ZombieCouch();
}
if (gametimer == 1253) {
ZombieWindow();
}
if (gametimer == 1256) {
ZombieWindow();
}
if (gametimer == 1259) {
ZombieDoor();
}
if (gametimer == 1303) {
ZombieTV();
}
if (gametimer == 1306) {
ZombieTV();
}
if (gametimer == 1309) {
ZombieCouch();
}
if (gametimer == 1353) {
ZombieDoor();
}
if (gametimer == 1356) {
ZombieTV();
}
if (gametimer == 1359) {
ZombieTV();
}
if (gametimer == 1403) {
ZombieCouch();
}
if (gametimer == 1406) {
ZombieCouch();
}
if (gametimer == 1409) {
ZombieWindow();
}
if (gametimer == 1453) {
ZombieLampL();
}
if (gametimer == 1456) {
ZombieLampR();
}
if (gametimer == 1459) {
ZombieCouch();
}
if (gametimer == 1503) {
ZombieWindow();
}
if (gametimer == 1506) {
ZombieWindow();
}
if (gametimer == 1509) {
ZombieDoor();
}
if (gametimer == 1553) {
ZombieCouch();
}
if (gametimer == 1556) {
ZombieCouch();
}
if (gametimer == 1559) {
CivTord();
}
if (gametimer == 1603) {
ZombieWindow();
}
if (gametimer == 1606) {
ZombieLampL();
}
if (gametimer == 1609) {
ZombieTV();
}
if (gametimer == 1653) {
ZombieLampR();
}
if (gametimer == 1656) {
ZombieCouch();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
while (_root.MonHit == false) {
if (HighI > -1) {
ZombieHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
ZombieWindow = function () {
++MonI;
++MonI5;
_root.attachMovie('zombieUL', 'zombie' + MonI5, 500 + MonI);
_root['zombie' + MonI5]._x = random(105) + 120;
_root['zombie' + MonI5]._y = random(20) + 410;
_root['zombie' + MonI5]._rotation = random(20) - 10;
};
ZombieDoor = function () {
++MonI;
++MonI5;
_root.attachMovie('zombieUR', 'zombie' + MonI5, 500 + MonI);
_root['zombie' + MonI5]._x = random(50) + 375;
_root['zombie' + MonI5]._y = random(20) + 420;
_root['zombie' + MonI5]._rotation = random(20) - 10;
};
ZombieLampL = function () {
++MonI;
++MonI4;
_root.attachMovie('zombieL', 'zombie' + MonI4, 1500 + MonI);
_root['zombie' + MonI4]._x = 350;
_root['zombie' + MonI4]._y = 280;
};
ZombieLampR = function () {
++MonI;
++MonI3;
_root.attachMovie('zombieR', 'zombie' + MonI3, 1500 + MonI);
_root['zombie' + MonI3]._x = 230;
_root['zombie' + MonI3]._y = 280;
};
ZombieCouch = function () {
++MonI;
++MonI1;
_root.attachMovie('zombieUL', 'zombie' + MonI1, 3500 + MonI);
_root['zombie' + MonI1]._x = random(60) + 56;
_root['zombie' + MonI1]._y = random(20) + 450;
_root['zombie' + MonI1]._rotation = random(20) - 10;
};
ZombieTV = function () {
++MonI;
++MonI2;
_root.attachMovie('zombieUR', 'zombie' + MonI2, 2500 + MonI);
_root['zombie' + MonI2]._x = random(15) + 467;
_root['zombie' + MonI2]._y = random(20) + 410;
_root['zombie' + MonI2]._rotation = random(20) - 10;
};
ZombieSuper = function () {
++MonI;
++MonI1;
_root.attachMovie('zombieS', 'zombie' + MonI1, 3500 + MonI);
_root['zombie' + MonI1]._x = random(60) + 56;
_root['zombie' + MonI1]._y = random(20) + 500;
_root['zombie' + MonI1]._rotation = random(20) - 10;
_root['zombie' + MonI1]._xscale = 130;
_root['zombie' + MonI1]._yscale = 130;
};
CivMatt = function () {
++MonI;
++MonI1;
_root.attachMovie('CivMatt3', 'civillian' + MonI1, 3500 + MonI);
_root['civillian' + MonI1]._x = random(60) + 56;
_root['civillian' + MonI1]._y = random(20) + 450;
_root['civillian' + MonI1]._rotation = random(20) - 10;
};
CivTom = function () {
++MonI;
++MonI1;
_root.attachMovie('CivTom3', 'civillian' + MonI1, 3500 + MonI);
_root['civillian' + MonI1]._x = random(60) + 56;
_root['civillian' + MonI1]._y = random(20) + 450;
_root['civillian' + MonI1]._rotation = random(20) - 10;
};
CivTord = function () {
++MonI;
++MonI2;
_root.attachMovie('CivTord3', 'civillian' + MonI2, 2500 + MonI);
_root['civillian' + MonI2]._x = random(15) + 467;
_root['civillian' + MonI2]._y = random(20) + 410;
_root['civillian' + MonI2]._rotation = random(20) - 10;
};
ZombieHit = function (HighI) {
if (_root.ammo > -1) {
if (HighI > 2000) {
_root.DepHit = '_root.CouchHT1';
_root.DepHit2 = '_root.CouchHT2';
} else {
if (HighI > 1500) {
_root.DepHit = '_root.TV';
} else {
if (HighI > 1000) {
_root.DepHit = '_root.LampRHT';
} else {
if (HighI > 500) {
_root.DepHit = '_root.LampLHT';
} else {
if (HighI > 0) {
_root.DepHit = '_root.Wall1';
}
}
}
}
}
if (!_root.HitCheck.hitTest(_root.DepHit) && !_root.HitCheck.hitTest(_root.DepHit2)) {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body.skull) && _root['zombie' + HighI].body._currentframe == 3 && _root['zombie' + HighI].body.skull._currentframe == 1) {
_root['zombie' + HighI].body.skull.gotoAndStop(2);
_root.scoreadd += 100 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
} else {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body.head) && _root['zombie' + HighI].body._currentframe == 1) {
_root['zombie' + HighI].body.gotoAndStop(3);
_root.scoreadd += 250 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
} else {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body.Shead) && _root['zombie' + HighI].body._currentframe == 1) {
_root['zombie' + HighI].body.gotoAndStop(3);
_root.scoreadd += 750 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
} else {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body) && !_root.HitCheck.hitTest(_root['zombie' + HighI].body.head) && _root['zombie' + HighI].body._currentframe == 1) {
_root['zombie' + HighI].body.gotoAndStop(2);
_root.scoreadd += 10 * _root.multi;
_root.hitmon = true;
_root.MonHit = true;
}
}
}
}
if (_root.HitCheck.hitTest(_root['civillian' + HighI].body)) {
_root['civillian' + HighI].body.gotoAndStop(2);
_root.scoreadd -= 400;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['zombie' + HighI].boris) && _root['zombie' + HighI].boris._currentframe == 1) {
_root['zombie' + HighI].boris.gotoAndStop(2);
_root.scoreadd += 500 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['zombie' + HighI].boris) && _root['zombie' + HighI].boris._currentframe == 2 && _root['zombie' + HighI].boris.freeze._currentframe == 6) {
_root['zombie' + HighI].boris.gotoAndStop(3);
_root.scoreadd += 600 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
}
}
};
BulletHole = function () {
_root.bonus2 = false;
if (_root.HitCheck.hitTest(_root.TVHT1) || _root.HitCheck.hitTest(_root.TVHT2)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 5000);
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
if (_root.HitCheck.hitTest(_root.TVHT1)) {
++_root.TVswitchNo;
if (_root.TVswitchNo == 3) {
_root.TVswitch = true;
}
}
} else {
if (_root.HitCheck.hitTest(_root.CouchHT1) || _root.HitCheck.hitTest(_root.CouchHT2)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 6000);
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
} else {
if (!_root.HitCheck.hitTest(_root.WindowHT) && !_root.HitCheck.hitTest(_root.DoorHT)) {
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 3000);
_root['hole' + HoleI]._xscale = 50;
_root['hole' + HoleI]._yscale = 50;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
}
}
}
_root.multiadd = 0;
_root.multi = 1;
++HoleI;
};
if (_root.score < _root.scoreadd) {
_root.score += 25;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.ShootCheck = true;
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
if (_root.ShootLeft == true) {
_root.edd.shoot.gotoAndStop(2);
} else {
_root.edd.shoot.gotoAndStop(1);
}
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot.pistol._currentframe == 7) {
if (_root.ShootCheck == true) {
if (_root.ShootLeft == true) {
_root.ShootLeft = false;
_root.ShootCheck = false;
} else {
_root.ShootLeft = true;
_root.ShootCheck = false;
}
}
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.edd.reload._currentframe == 14) {
if (_root.totalammo - _root.ammomax > 0) {
_root.totalammo -= _root.ammomax - _root.ammo;
_root.ammo += _root.ammomax - _root.ammo;
} else {
_root.ammo = _root.totalammo + _root.ammo;
_root.totalammo = 0;
}
if (_root.ammo >= 1) {
_root.infobar.bullet1._alpha = 100;
}
if (_root.ammo >= 2) {
_root.infobar.bullet2._alpha = 100;
}
if (_root.ammo >= 3) {
_root.infobar.bullet3._alpha = 100;
}
if (_root.ammo >= 4) {
_root.infobar.bullet4._alpha = 100;
}
if (_root.ammo >= 5) {
_root.infobar.bullet5._alpha = 100;
}
if (_root.ammo >= 6) {
_root.infobar.bullet6._alpha = 100;
}
if (_root.ammo >= 7) {
_root.infobar.bullet7._alpha = 100;
}
if (_root.ammo >= 8) {
_root.infobar.bullet8._alpha = 100;
}
if (_root.ammo >= 9) {
_root.infobar.bullet9._alpha = 100;
}
if (_root.ammo >= 10) {
_root.infobar.bullet10._alpha = 100;
}
if (_root.ammo >= 11) {
_root.infobar.bullet11._alpha = 100;
}
if (_root.ammo >= 12) {
_root.infobar.bullet12._alpha = 100;
}
}
if (_root.edd.reload._currentframe == 27) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music2_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music2_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.house.removeMovieClip();
_root.lamp.removeMovieClip();
_root.TV.removeMovieClip();
_root.couch.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['zombie' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
frame 121 {
stop();
play();
}
frame 122 {
_root.attachMovie('Menu', 'menuS', 9998);
_root.attachMovie('Monster', 'Monster', 3000);
_root.attachMovie('l4_background', 'l4BG', 1000);
_root.attachMovie('blackout', 'blackout', 10005);
var music2_sound = new Sound();
music2_sound.attachSound('music4');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
var Rshoot_sound = new Sound();
Rshoot_sound.attachSound('Rshoot');
var Rexplode_sound = new Sound();
Rexplode_sound.attachSound('Rexplode');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.l4BG._x = -545;
_root.l4BG._y = -125;
_root.Monster._x = 265;
_root.Monster._y = 350;
_root.eddframe = 1;
_root.buttondown = false;
_root.ammo = 1;
stop();
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 80;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
_root.Rocketshoot = false;
_root.aimY = 0;
_root.aimX = 0;
_root.monEyeLhit = false;
_root.monEyeRhit = false;
_root.MonRebound = 6;
_root.monhittimes = 1;
_root.monstermove = 0;
_root.monmoveT = 0;
_root.monstopmiddle = false;
_root.mondirection = 0;
_root.MonsterSmash = false;
_root.rain = false;
onEnterFrame = function () {
_root.monscale = _root.Monster._xscale;
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot4', 'yshoot', 10007);
_root.attachMovie('Nshoot4', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score4 < _root.lvl4TargetD) {
_root.showtarget.targetyay = _root.lvl4TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score4 < _root.lvl4TargetB) {
_root.showtarget.targetyay = _root.lvl4TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score4 < _root.lvl4TargetS) {
_root.showtarget.targetyay = _root.lvl4TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score4 < _root.lvl4TargetG) {
_root.showtarget.targetyay = _root.lvl4TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl4TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar4', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd4', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 56) {
_root.attachMovie('Rocket', 'Rocket', 9999);
Rshoot_sound.start(0, 1);
_root.edd.gotoAndStop(2);
_root.Rocket._x = _root.edd._x + _root.edd.shoot.rocketAP._x * Math.cos(_root.edd._rotation * Math.PI / 180) + _root.edd.shoot.rocketAP._y * Math.sin(_root.edd._rotation * Math.PI / 180);
_root.Rocket._y = _root.edd._y - _root.edd.shoot.rocketAP._y * Math.cos(_root.edd._rotation * Math.PI / 180) + _root.edd.shoot.rocketAP._x * Math.sin(_root.edd._rotation * Math.PI / 180);
_root.aimY = _root._ymouse;
_root.aimX = _root._xmouse;
_root.Rocketshoot = true;
}
if (_root.Rocketshoot == true) {
_root.Rocket._x -= (_root.Rocket._x - _root.aimX) / 6;
_root.Rocket._y -= (_root.Rocket._y - _root.aimY) / 6;
_root.Rocket._xscale -= 4;
_root.Rocket._yscale = _root.Rocket._xscale;
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.Rocket.gotoAndStop(2);
_root.Rocketshoot = false;
Rexplode_sound.start(0, 1);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music2_sound.start(0, 999);
music2_sound.setVolume(100);
_root.monmoveT = random(50) + 50;
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.MonsterSmash == false) {
if (_root.gamestart == true) {
if (_root.Monster._currentframe < 8) {
++gametimer;
}
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
RocketShoot();
};
RocketShoot = function () {
_root.attachMovie('Rocket', 'Rocket', 3500);
Rshoot_sound.start(0, 1);
_root.Rocket._x = _root.edd._x + _root.edd.shoot.rocketAP._x * Math.cos(_root.edd._rotation * Math.PI / 180) + _root.edd.shoot.rocketAP._y * Math.sin(_root.edd._rotation * Math.PI / 180);
_root.Rocket._y = _root.edd._y - _root.edd.shoot.rocketAP._y * Math.cos(_root.edd._rotation * Math.PI / 180) + _root.edd.shoot.rocketAP._x * Math.sin(_root.edd._rotation * Math.PI / 180);
_root.aimY = _root._ymouse;
_root.aimX = _root._xmouse;
_root.Rocketshoot = true;
};
if (_root.Rocketshoot == true) {
_root.Rocket._x -= (_root.Rocket._x - _root.aimX) / 6;
_root.Rocket._y -= (_root.Rocket._y - _root.aimY) / 6;
_root.Rocket._xscale -= 4;
_root.Rocket._yscale = _root.Rocket._xscale;
if (_root.Rocket._xscale == 20) {
MonsterHit();
if (_root.hitmon == false) {
BulletHole();
}
}
}
_root.Monster._yscale = _root.Monster._xscale;
if (_root.Monster._currentframe == 1) {
if (_root.Monster._xscale < 250) {
if (_root.Monster.mon._currentframe == 11 || _root.Monster.mon._currentframe == 23) {
_root.shake = true;
}
_root.monstermove += 1 * _root.monhittimes;
_root.Monster._xscale += 0.1 * _root.monhittimes;
_root.MonRebound = 4;
if (_root.monstermove > _root.monmoveT) {
if (_root.Monster._x > 450) {
_root.Monster.gotoAndStop(2);
_root.monstopmiddle = true;
} else {
if (_root.Monster._x < 150) {
_root.Monster.gotoAndStop(3);
_root.monstopmiddle = true;
} else {
_root.mondirection = random(100) + 1;
if (_root.mondirection <= 50) {
_root.Monster.gotoAndStop(3);
} else {
_root.Monster.gotoAndStop(2);
}
}
}
}
} else {
_root.Monster.gotoAndStop(9);
_root.MonsterSmash = true;
}
}
if (_root.Monster._currentframe == 2) {
if (_root.Monster.mon._currentframe == 1) {
_root.shake = true;
}
_root.Monster._x -= 4 * _root.monhittimes;
if (_root.Monster._x < 150 || _root.monstopmiddle == true && _root.Monster._x < 265) {
_root.Monster.gotoAndStop(1);
_root.monstermove = 0;
_root.monmoveT = random(50) + 50;
_root.monstopmiddle = false;
}
}
if (_root.Monster._currentframe == 3) {
if (_root.Monster.mon._currentframe == 1) {
_root.shake = true;
}
_root.Monster._x += 4 * _root.monhittimes;
if (_root.Monster._x > 450 || _root.monstopmiddle == true && _root.Monster._x > 265) {
_root.Monster.gotoAndStop(1);
_root.monstermove = 0;
_root.monmoveT = random(50) + 50;
_root.monstopmiddle = false;
}
}
if (_root.Monster._currentframe == 6) {
if (_root.Monster.mon._currentframe == 77) {
_root.monEyeLhit = false;
_root.monEyeRhit = false;
}
if (_root.Monster.mon._currentframe == 86) {
_root.Monster.gotoAndStop(1);
}
}
if (_root.Monster._currentframe == 4) {
if (_root.Monster.mon._currentframe == 1) {
_root.lightning = true;
}
_root.Monster._xscale -= _root.MonRebound;
if (MonRebound > 0) {
--_root.MonRebound;
}
if (_root.Monster.mon._currentframe == 20) {
if (_root.monEyeLhit == true && _root.monEyeRhit == true) {
_root.Monster.gotoAndStop(6);
} else {
_root.Monster.gotoAndStop(1);
}
}
}
if (_root.Monster._currentframe == 5) {
if (_root.Monster.mon._currentframe == 1) {
_root.lightning = true;
}
_root.Monster._xscale -= _root.MonRebound;
if (MonRebound > 0) {
--_root.MonRebound;
}
if (_root.Monster.mon._currentframe == 20) {
if (_root.monEyeLhit == true && _root.monEyeRhit == true) {
_root.Monster.gotoAndStop(6);
} else {
_root.Monster.gotoAndStop(1);
_root.Monster.mon.gotoAndPlay(14);
}
}
}
if (_root.Monster._currentframe == 7) {
_root.rain = true;
if (_root.Monster.mon._currentframe == 1) {
_root.lightning = true;
}
_root.Monster._xscale -= _root.MonRebound;
if (MonRebound > 0) {
--_root.MonRebound;
}
if (_root.Monster.mon._currentframe == 20) {
_root.Monster.gotoAndStop(1);
}
}
if (_root.Monster._currentframe == 8) {
if (_root.Monster.mon._currentframe == 1) {
_root.lightning = true;
}
if (_root.Monster.mon._currentframe == 20) {
_root.shake = true;
}
if (_root.Monster.mon._currentframe == 21) {
if (_root.infobar.timer > 0) {
gametimer += 24;
_root.scoreadd += 2000;
}
}
}
if (_root.monEyeLhit == true) {
_root.Monster.mon.EyeL.gotoAndStop(2);
} else {
_root.Monster.mon.EyeL.gotoAndStop(1);
}
if (_root.monEyeRhit == true) {
_root.Monster.mon.EyeR.gotoAndStop(2);
} else {
_root.Monster.mon.EyeR.gotoAndStop(1);
}
MonsterHit = function () {
_root.Rocket.gotoAndStop(2);
Rexplode_sound.start(0, 1);
if (_root.Rocket.rockethit.hitTest(_root.Monster.mon.EyeL) && _root.Monster.mon.EyeL._currentframe == 1) {
_root.monEyeLhit = true;
_root.Monster.mon.EyeL.gotoAndStop(2);
_root.Monster.gotoAndStop(5);
_root.scoreadd += 1000;
}
if (_root.Rocket.rockethit.hitTest(_root.Monster.mon.EyeR) && _root.Monster.mon.EyeR._currentframe == 1) {
_root.monEyeRhit = true;
_root.Monster.mon.EyeR.gotoAndStop(2);
_root.Monster.gotoAndStop(4);
_root.scoreadd += 1000;
}
if (_root.Rocket.rockethit.hitTest(_root.Monster.mon.tonhit)) {
_root.scoreadd += 2000;
if (_root.monhittimes == 3) {
_root.Monster.gotoAndStop(8);
} else {
_root.monEyeRhit = false;
_root.monEyeLhit = false;
_root.Monster.gotoAndStop(7);
}
++_root.monhittimes;
}
_root.Rocketshoot = false;
_root.hitmon = true;
};
BulletHole = function () {
_root.bonus2 = false;
++HoleI;
};
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo == 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 25) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
if (_root.edd.reload._currentframe == 23) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
_root.crosshair.removeMovieClip();
if (_root.Monster.mon._currentframe < 19) {
_root.l4BG._x += (300 - _root.Monster._x) / 12;
_root.l4BG._y += (450 - _root.Monster._y) / 12;
_root.l4BG._xscale += (200 - _root.Monster._xscale) / 12;
_root.l4BG._yscale = _root.l4BG._xscale;
_root.Monster._x += (300 - _root.Monster._x) / 6;
_root.Monster._y += (450 - _root.Monster._y) / 6;
_root.Monster._xscale += (200 - _root.Monster._xscale) / 6;
_root.Monster._yscale = _root.Monster._xscale;
_root.edd._y += (900 - _root.edd._y) / 6;
}
if (_root.Monster.mon._currentframe == 19) {
if (_root.Bing == false) {
_root.attachMovie('l4EddDie', 'MonSmash', 9999);
} else {
_root.attachMovie('l4BingDie', 'MonSmash', 9999);
}
_root.MonSmash._x = 0;
_root.MonSmash._y = 0;
_root.MonSmash.play();
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music2_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music2_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.MonSmash.removeMovieClip();
_root.l4BG.removeMovieClip();
_root.blackout.removeMovieClip();
_root.Monster.removeMovieClip();
_root.Rocket.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
Mouse.show();
}
}
};
}
frame 123 {
stop();
play();
}
frame 124 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('flower', 'flowerbed1', 3000);
_root.attachMovie('flower', 'flowerbed2', 4000);
_root.attachMovie('wallleft', 'wallleft', 5000);
_root.attachMovie('treeright', 'treeright', 6000);
_root.attachMovie('graves', 'graves', 7000);
_root.attachMovie('blackout', 'blackout', 10005);
var music5_sound = new Sound();
music5_sound.attachSound('music5');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.flowerbed1._x = 170;
_root.flowerbed1._y = 32;
_root.flowerbed2._x = 362;
_root.flowerbed2._y = 64;
_root.wallleft._x = 0;
_root.wallleft._y = 90;
_root.treeright._x = 396;
_root.treeright._y = 200;
_root.graves._x = 0;
_root.graves._y = 306;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.eddframe = 1;
_root.ammo = 10;
_root.totalammo = 150;
_root.ammomax = 10;
_root.buttondown = false;
stop();
MonDead = 0;
MonHead = 0;
HoleI = 1;
MonI = 2000;
MonI1 = 2000;
MonI2 = 1500;
MonI3 = 1000;
MonI4 = 500;
MonI5 = 0;
HighI = 0;
ZomGraveNum = 0;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 130;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.bonus5 = false;
_root.quit = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot5', 'yshoot', 10007);
_root.attachMovie('Nshoot5', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score5 < _root.lvl5TargetD) {
_root.showtarget.targetyay = _root.lvl5TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score5 < _root.lvl5TargetB) {
_root.showtarget.targetyay = _root.lvl5TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score5 < _root.lvl5TargetS) {
_root.showtarget.targetyay = _root.lvl5TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score5 < _root.lvl5TargetG) {
_root.showtarget.targetyay = _root.lvl5TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl5TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar5', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd5', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music5_sound.start(0, 999);
music5_sound.setVolume(100);
gametimer = 0;
_root.gamestart = true;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 3) {
ZombieFb2();
}
if (gametimer == 5) {
ZombieFb1();
}
if (gametimer == 7) {
ZombieGr(2);
}
if (gametimer == 9) {
ZombieTr();
}
if (gametimer == 71) {
ZombieWl();
}
if (gametimer == 73) {
ZombieFb1();
}
if (gametimer == 75) {
ZombieGr(4);
}
if (gametimer == 77) {
ZombieGr(1);
}
if (gametimer == 141) {
ZombieWl();
}
if (gametimer == 143) {
ZombieFb1();
}
if (gametimer == 145) {
ZombieGr(4);
}
if (gametimer == 147) {
ZombieGr(1);
}
if (gametimer == 211) {
ZombieFb2();
}
if (gametimer == 213) {
ZombieGr(2);
}
if (gametimer == 215) {
CivTeacher();
}
if (gametimer == 217) {
ZombieTr();
}
if (gametimer == 281) {
ZombieWl();
}
if (gametimer == 283) {
ZombieFb2();
}
if (gametimer == 285) {
ZombieFb2();
}
if (gametimer == 287) {
ZombieWl();
}
if (gametimer == 351) {
ZombieGr(1);
}
if (gametimer == 353) {
ZombieGr(2);
}
if (gametimer == 355) {
ZombieGr(3);
}
if (gametimer == 357) {
ZombieGr(4);
}
if (gametimer == 421) {
CivSoilder();
}
if (gametimer == 423) {
ZombieFb2();
}
if (gametimer == 425) {
ZombieWl(4);
}
if (gametimer == 427) {
ZombieWl();
}
if (gametimer == 491) {
ZombieTr();
}
if (gametimer == 493) {
ZombieTr();
}
if (gametimer == 495) {
ZombieFb1();
}
if (gametimer == 497) {
ZombieFb1();
}
if (gametimer == 561) {
ZombieGr(2);
}
if (gametimer == 563) {
ZombieFb2();
}
if (gametimer == 565) {
ZombieGr(3);
}
if (gametimer == 567) {
ZombieTr();
}
if (gametimer == 631) {
ZombieWl();
}
if (gametimer == 633) {
CivExplorer();
}
if (gametimer == 635) {
ZombieGr(4);
}
if (gametimer == 637) {
ZombieGr(1);
}
if (gametimer == 701) {
ZombieTr();
}
if (gametimer == 703) {
ZombieFb2();
}
if (gametimer == 705) {
ZombieFb2();
}
if (gametimer == 707) {
ZombieWl();
}
if (gametimer == 771) {
ZombieWl();
}
if (gametimer == 773) {
ZombieWl();
}
if (gametimer == 775) {
ZombieGr(3);
}
if (gametimer == 777) {
ZombieFb1();
}
if (gametimer == 841) {
ZombieWl();
}
if (gametimer == 843) {
ZombieSuper();
}
if (gametimer == 845) {
ZombieGr(1);
}
if (gametimer == 847) {
ZombieTr();
}
if (gametimer == 911) {
ZombieFb1();
}
if (gametimer == 913) {
ZombieFb1();
}
if (gametimer == 915) {
ZombieFb2();
}
if (gametimer == 917) {
ZombieFb2();
}
if (gametimer == 981) {
ZombieWl();
}
if (gametimer == 983) {
ZombieFb1();
}
if (gametimer == 985) {
ZombieGr(2);
}
if (gametimer == 987) {
ZombieGr(1);
}
if (gametimer == 1051) {
ZombieTr();
}
if (gametimer == 1053) {
ZombieTr();
}
if (gametimer == 1055) {
ZombieGr(4);
}
if (gametimer == 1057) {
ZombieTr();
}
if (gametimer == 1121) {
ZombieWl();
}
if (gametimer == 1123) {
CivTeacher();
}
if (gametimer == 1125) {
ZombieFb1();
}
if (gametimer == 1127) {
ZombieFb2();
}
if (gametimer == 1191) {
ZombieWl();
}
if (gametimer == 1193) {
ZombieFb1();
}
if (gametimer == 1195) {
ZombieGr(3);
}
if (gametimer == 1197) {
ZombieGr(1);
}
if (gametimer == 1261) {
ZombieTr();
}
if (gametimer == 1263) {
ZombieTr();
}
if (gametimer == 1265) {
ZombieTr();
}
if (gametimer == 1267) {
ZombieGr(2);
}
if (gametimer == 1331) {
CivSoilder();
}
if (gametimer == 1333) {
ZombieWl();
}
if (gametimer == 1335) {
ZombieWl();
}
if (gametimer == 1337) {
ZombieSuper();
}
if (gametimer == 1401) {
ZombieTr();
}
if (gametimer == 1403) {
ZombieFb1();
}
if (gametimer == 1405) {
ZombieFb2();
}
if (gametimer == 1407) {
ZombieFb2();
}
if (gametimer == 1471) {
ZombieTr();
}
if (gametimer == 1473) {
CivExplorer();
}
if (gametimer == 1475) {
ZombieGr(1);
}
if (gametimer == 1477) {
ZombieGr(2);
}
if (gametimer == 1541) {
ZombieWl();
}
if (gametimer == 1543) {
ZombieFb2();
}
if (gametimer == 1545) {
ZombieFb2();
}
if (gametimer == 1547) {
ZombieFb1();
}
if (gametimer == 1611) {
ZombieTr();
}
if (gametimer == 1613) {
ZombieSuper();
}
if (gametimer == 1615) {
ZombieGr(4);
}
if (gametimer == 1617) {
ZombieGr(1);
}
if (gametimer == 1681) {
ZombieWl();
}
if (gametimer == 1683) {
ZombieWl();
}
if (gametimer == 1685) {
ZombieTr();
}
if (gametimer == 1687) {
ZombieTr();
}
if (gametimer == 1751) {
ZombieGr(3);
}
if (gametimer == 1753) {
ZombieGr(2);
}
if (gametimer == 1755) {
ZombieGr(4);
}
if (gametimer == 1757) {
ZombieGr(1);
}
if (gametimer == 1821) {
ZombieFb1();
}
if (gametimer == 1823) {
ZombieFb1();
}
if (gametimer == 1825) {
ZombieFb2();
}
if (gametimer == 1827) {
ZombieFb2();
}
if (gametimer == 1891) {
ZombieTr();
}
if (gametimer == 1893) {
ZombieSuper();
}
if (gametimer == 1895) {
ZombieWl();
}
if (gametimer == 1897) {
ZombieTr();
}
if (gametimer == 1961) {
ZombieWl();
}
if (gametimer == 1963) {
CivSoilder();
}
if (gametimer == 1965) {
ZombieGr(4);
}
if (gametimer == 1967) {
ZombieGr(1);
}
if (gametimer == 2031) {
ZombieTr();
}
if (gametimer == 2033) {
ZombieFb2();
}
if (gametimer == 2035) {
ZombieGr(2);
}
if (gametimer == 2037) {
ZombieFb2();
}
if (gametimer == 2101) {
ZombieWl();
}
if (gametimer == 2103) {
ZombieWl();
}
if (gametimer == 2105) {
ZombieTr();
}
if (gametimer == 2107) {
ZombieTr();
}
if (gametimer == 2171) {
ZombieFb2();
}
if (gametimer == 2173) {
ZombieFb2();
}
if (gametimer == 2175) {
CivTeacher();
}
if (gametimer == 2177) {
ZombieTr();
}
if (gametimer == 2241) {
ZombieWl();
}
if (gametimer == 2243) {
ZombieFb1();
}
if (gametimer == 2245) {
ZombieGr(2);
}
if (gametimer == 2247) {
ZombieGr(3);
}
if (gametimer == 2311) {
ZombieFb2();
}
if (gametimer == 2313) {
ZombieFb1();
}
if (gametimer == 2315) {
ZombieFb2();
}
if (gametimer == 2317) {
ZombieFb1();
}
if (gametimer == 2381) {
ZombieWl();
}
if (gametimer == 2383) {
ZombieFb2();
}
if (gametimer == 2385) {
ZombieFb2();
}
if (gametimer == 2387) {
ZombieTr();
}
if (gametimer == 2451) {
ZombieWl();
}
if (gametimer == 2453) {
ZombieTr();
}
if (gametimer == 2455) {
ZombieGr(1);
}
if (gametimer == 2457) {
ZombieTr(1);
}
if (gametimer == 2521) {
ZombieGr(4);
}
if (gametimer == 2523) {
ZombieFb2();
}
if (gametimer == 2525) {
ZombieTr();
}
if (gametimer == 2527) {
CivExplorer();
}
if (gametimer == 2591) {
ZombieWl();
}
if (gametimer == 2593) {
ZombieTr();
}
if (gametimer == 2595) {
ZombieTr();
}
if (gametimer == 2597) {
ZombieGr(1);
}
if (gametimer == 2661) {
ZombieWl();
}
if (gametimer == 2663) {
ZombieFb2();
}
if (gametimer == 2665) {
ZombieFb2();
}
if (gametimer == 2667) {
ZombieFb1();
}
if (gametimer == 2731) {
ZombieGr(1);
}
if (gametimer == 2733) {
ZombieGr(3);
}
if (gametimer == 2735) {
ZombieGr(4);
}
if (gametimer == 2737) {
ZombieGr(2);
}
if (gametimer == 2801) {
ZombieSuper();
}
if (gametimer == 2803) {
ZombieFb1();
}
if (gametimer == 2805) {
ZombieFb2();
}
if (gametimer == 2807) {
ZombieTr();
}
if (gametimer == 2871) {
ZombieTr();
}
if (gametimer == 2873) {
ZombieWl();
}
if (gametimer == 2875) {
ZombieGr(2);
}
if (gametimer == 2877) {
ZombieTr();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
while (_root.MonHit == false) {
if (HighI > -1) {
ZombieHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
ZombieFb1 = function () {
++MonI;
++MonI5;
_root.attachMovie('zomsprite1', 'zombie' + MonI5, 500 + MonI);
_root['zombie' + MonI5]._x = 196 + random(30) * 2;
_root['zombie' + MonI5]._y = 86;
};
ZombieFb2 = function () {
++MonI;
++MonI4;
_root.attachMovie('zomsprite1', 'zombie' + MonI4, 1500 + MonI);
_root['zombie' + MonI4]._x = 388 + random(30) * 2;
_root['zombie' + MonI4]._y = 96;
};
ZombieWl = function () {
++MonI;
++MonI3;
_root.attachMovie('zomsprite1', 'zombie' + MonI3, 2500 + MonI);
_root['zombie' + MonI3]._x = 24 + random(39) * 2;
_root['zombie' + MonI3]._y = 100;
};
ZombieTr = function () {
++MonI;
++MonI2;
_root.attachMovie('zomsprite1', 'zombie' + MonI2, 3500 + MonI);
_root['zombie' + MonI2]._x = 436 + random(44) * 2;
_root['zombie' + MonI2]._y = 230;
};
ZombieGr = function (ZomGraveNum) {
if (ZomGraveNum == 0) {
ZomGraveNum = random(4) + 1;
}
++MonI;
++MonI1;
_root.attachMovie('zomsprite1', 'zombie' + MonI1, 5500 + MonI);
if (ZomGraveNum == 1) {
_root['zombie' + MonI1]._x = 42;
}
if (ZomGraveNum == 2) {
_root['zombie' + MonI1]._x = 92;
}
if (ZomGraveNum == 3) {
_root['zombie' + MonI1]._x = 302;
}
if (ZomGraveNum == 4) {
_root['zombie' + MonI1]._x = 350;
}
_root['zombie' + MonI1]._y = 370;
};
ZombieSuper = function () {
++MonI;
++MonI2;
_root.attachMovie('axeman', 'zombie' + MonI2, 500 + MonI);
_root['zombie' + MonI2]._x = 466;
_root['zombie' + MonI2]._y = 270;
};
CivSoilder = function () {
++MonI;
++MonI3;
_root.attachMovie('CivSoilder', 'civillian' + MonI3, 2500 + MonI);
_root['civillian' + MonI3]._x = 32 + random(30) * 2;
_root['civillian' + MonI3]._y = 96;
};
CivTeacher = function () {
++MonI;
++MonI2;
_root.attachMovie('CivTeacher', 'civillian' + MonI2, 3500 + MonI);
_root['civillian' + MonI2]._x = 460 + random(25) * 2;
_root['civillian' + MonI2]._y = 230;
};
CivExplorer = function () {
++MonI;
++MonI4;
_root.attachMovie('CivExplorer', 'civillian' + MonI4, 1500 + MonI);
_root['civillian' + MonI4]._x = 390 + random(27) * 2;
_root['civillian' + MonI4]._y = 84;
};
ZombieHit = function (HighI) {
if (_root.ammo > -1) {
if (HighI > 1500) {
_root.DepHit = '_root.treeright';
} else {
if (HighI > 1000) {
_root.DepHit = '_root.wallleft';
} else {
if (HighI > 500) {
_root.DepHit = '_root.flowerbed2';
} else {
if (HighI > 0) {
_root.DepHit = '_root.flowerbed1';
}
}
}
}
if (!_root.HitCheck.hitTest(_root.DepHit)) {
if (_root.HitCheck.hitTest(_root['zombie' + HighI].body) && _root['zombie' + HighI].body._currentframe == 1) {
_root['zombie' + HighI].body.gotoAndStop(2);
_root['zombie' + HighI].hat.gotoAndStop(2);
_root.scoreadd += 250 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['civillian' + HighI].body)) {
_root['civillian' + HighI].body.gotoAndStop(2);
_root.scoreadd -= 400;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['zombie' + HighI].boris) && _root['zombie' + HighI].boris._currentframe == 1) {
_root['zombie' + HighI].boris.gotoAndStop(2);
_root.scoreadd += 500 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['zombie' + HighI].boris) && _root['zombie' + HighI].boris._currentframe == 2 && _root['zombie' + HighI].boris.freeze._currentframe == 6) {
_root['zombie' + HighI].boris.gotoAndStop(3);
_root.scoreadd += 600 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
}
if (_root.HitCheck.hitTest(_root['zombie' + HighI].hat) && _root['zombie' + HighI].hat._currentframe == 2) {
_root.hitmon = true;
_root.MonHit = true;
}
}
};
BulletHole = function () {
_root.bonus2 = false;
_root.multiadd = 0;
_root.multi = 1;
};
if (_root.score < _root.scoreadd) {
_root.score += 25;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus5 = true;
}
if (_root.edd._currentframe == 1) {
_root.ShootCheck = true;
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.bonus5 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82) && !Key.isDown(65) && !Key.isDown(66) && !Key.isDown(67) && !Key.isDown(68) && !Key.isDown(69) && !Key.isDown(70)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
if (_root.buttondown == false) {
if (Key.isDown(65)) {
CivSoilder();
_root.buttondown = true;
}
if (Key.isDown(66)) {
ZombieFb2();
_root.buttondown = true;
}
if (Key.isDown(67)) {
ZombieWl();
_root.buttondown = true;
}
if (Key.isDown(68)) {
ZombieTr();
_root.buttondown = true;
}
if (Key.isDown(69)) {
ZombieGr(0);
_root.buttondown = true;
}
if (Key.isDown(70)) {
ZombieSuper();
_root.buttondown = true;
}
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 8) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.edd.reload._currentframe == 12) {
if (_root.totalammo - _root.ammomax > 0) {
_root.totalammo -= _root.ammomax - _root.ammo;
_root.ammo += _root.ammomax - _root.ammo;
} else {
_root.ammo = _root.totalammo + _root.ammo;
_root.totalammo = 0;
}
if (_root.ammo >= 1) {
_root.infobar.bullet1._alpha = 100;
}
if (_root.ammo >= 2) {
_root.infobar.bullet2._alpha = 100;
}
if (_root.ammo >= 3) {
_root.infobar.bullet3._alpha = 100;
}
if (_root.ammo >= 4) {
_root.infobar.bullet4._alpha = 100;
}
if (_root.ammo >= 5) {
_root.infobar.bullet5._alpha = 100;
}
if (_root.ammo >= 6) {
_root.infobar.bullet6._alpha = 100;
}
if (_root.ammo >= 7) {
_root.infobar.bullet7._alpha = 100;
}
if (_root.ammo >= 8) {
_root.infobar.bullet8._alpha = 100;
}
if (_root.ammo >= 9) {
_root.infobar.bullet9._alpha = 100;
}
if (_root.ammo >= 10) {
_root.infobar.bullet10._alpha = 100;
}
}
if (_root.edd.reload._currentframe == 19) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music5_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music5_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.flowerbed1.removeMovieClip();
_root.flowerbed2.removeMovieClip();
_root.wallleft.removeMovieClip();
_root.treeright.removeMovieClip();
_root.graves.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['zombie' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
frame 125 {
stop();
play();
}
frame 126 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('floor', 'floorMC', 7000);
_root.attachMovie('gunshop', 'gunshop', 5000);
_root.attachMovie('fences', 'fences', 3000);
_root.attachMovie('blackout', 'blackout', 10005);
var music1_sound = new Sound();
music1_sound.attachSound('music6');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
var HAshoot_sound = new Sound();
HAshoot_sound.attachSound('HAshoot');
var HAright_sound = new Sound();
HAright_sound.attachSound('HAright');
var HAwrong_sound = new Sound();
HAwrong_sound.attachSound('HAwrong');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.floorMC._x = 0;
_root.floorMC._y = 385;
_root.gunshop._x = -76;
_root.gunshop._y = -35;
_root.fences._x = 259;
_root.fences._y = 81;
_root.eddframe = 1;
_root.ammo = 9;
_root.ammomax = 9;
_root.buttondown = false;
stop();
MonI = 1;
HighI = 1;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 90;
_root.gamestart = false;
_root.GameOver = false;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot6', 'yshoot', 10007);
_root.attachMovie('Nshoot6', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score6 < _root.lvl6TargetD) {
_root.showtarget.targetyay = _root.lvl6TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score6 < _root.lvl6TargetB) {
_root.showtarget.targetyay = _root.lvl6TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score6 < _root.lvl6TargetS) {
_root.showtarget.targetyay = _root.lvl6TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score6 < _root.lvl6TargetG) {
_root.showtarget.targetyay = _root.lvl6TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl6TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar6', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd6', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
HAshoot_sound.start(0, 1);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music1_sound.start(0, 999);
music1_sound.setVolume(100);
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 3) {
FenceBottom('GangA');
}
if (gametimer == 6) {
FenceTop('GangB');
}
if (gametimer == 9) {
GunShopBottom('GangC');
}
if (gametimer == 53) {
FenceTop('GangB');
}
if (gametimer == 56) {
GunShopTop('GangA');
}
if (gametimer == 59) {
FenceTop('GangC');
}
if (gametimer == 103) {
FenceBottom('GangB');
}
if (gametimer == 106) {
GunShopBottom('GangA');
}
if (gametimer == 109) {
GunShopBottom('Lady');
}
if (gametimer == 153) {
FenceTop('GangA');
}
if (gametimer == 156) {
FenceBottom('GangB');
}
if (gametimer == 159) {
FenceBottom('GangA');
}
if (gametimer == 203) {
GunShopTop('GangC');
}
if (gametimer == 206) {
FenceBottom('GangB');
}
if (gametimer == 209) {
GunShopBottom('GangB');
}
if (gametimer == 253) {
FenceBottom('GangA');
}
if (gametimer == 256) {
FenceTop('Police');
}
if (gametimer == 259) {
GunShopBottom('GangC');
}
if (gametimer == 303) {
FenceTop('GangA');
}
if (gametimer == 306) {
GunShopTop('Lady');
}
if (gametimer == 309) {
GunShopBottom('GangB');
}
if (gametimer == 353) {
FenceBottom('GangC');
}
if (gametimer == 356) {
GunShopBottom('GangA');
}
if (gametimer == 359) {
GunShopBottom('GangC');
}
if (gametimer == 403) {
GunShopBottom('Professor');
}
if (gametimer == 406) {
FenceBottom('GangA');
}
if (gametimer == 409) {
GunShopBottom('GangB');
}
if (gametimer == 453) {
GunShopTop('GangA');
}
if (gametimer == 456) {
FenceBottom('GangB');
}
if (gametimer == 459) {
GunShopTop('GangC');
}
if (gametimer == 503) {
FenceTop('GangC');
}
if (gametimer == 506) {
FenceTop('GangB');
}
if (gametimer == 509) {
FenceTop('GangA');
}
if (gametimer == 553) {
FenceBottom('Police');
}
if (gametimer == 556) {
GunShopTop('GangC');
}
if (gametimer == 559) {
GunShopBottom('GangB');
}
if (gametimer == 603) {
FenceBottom('GangC');
}
if (gametimer == 606) {
FenceTop('GangB');
}
if (gametimer == 609) {
GunShopBottom('Police');
}
if (gametimer == 653) {
FenceTop('GangB');
}
if (gametimer == 656) {
FenceBottom('GangA');
}
if (gametimer == 659) {
FenceBottom('GangC');
}
if (gametimer == 703) {
GunShopTop('GangB');
}
if (gametimer == 706) {
FenceBottom('GangC');
}
if (gametimer == 709) {
GunShopBottom('GangA');
}
if (gametimer == 753) {
FenceBottom('Lady');
}
if (gametimer == 756) {
FenceTop('GangB');
}
if (gametimer == 759) {
GunShopBottom('GangC');
}
if (gametimer == 803) {
FenceTop('GangB');
}
if (gametimer == 806) {
GunShopTop('GangA');
}
if (gametimer == 809) {
GunShopBottom('GangC');
}
if (gametimer == 853) {
FenceTop('GangB');
}
if (gametimer == 856) {
GunShopTop('GangA');
}
if (gametimer == 859) {
GunShopTop('GangA');
}
if (gametimer == 903) {
FenceTop('Professor');
}
if (gametimer == 906) {
FenceBottom('GangB');
}
if (gametimer == 909) {
GunShopBottom('GangA');
}
if (gametimer == 953) {
GunShopTop('GangB');
}
if (gametimer == 956) {
GunShopBottom('GangC');
}
if (gametimer == 959) {
FenceTop('GangB');
}
if (gametimer == 1003) {
GunShopTop('Lady');
}
if (gametimer == 1006) {
FenceTop('Professor');
}
if (gametimer == 1009) {
FenceBottom('Police');
}
if (gametimer == 1053) {
GunShopTop('GangB');
}
if (gametimer == 1056) {
FenceTop('GangA');
}
if (gametimer == 1059) {
FenceBottom('GangC');
}
if (gametimer == 1103) {
FenceBottom('GangC');
}
if (gametimer == 1106) {
GunShopBottom('GangB');
}
if (gametimer == 1109) {
GunShopBottom('GangA');
}
if (gametimer == 1153) {
FenceTop('GangA');
}
if (gametimer == 1156) {
FenceBottom('GangC');
}
if (gametimer == 1159) {
FenceBottom('GangB');
}
if (gametimer == 1203) {
GunShopBottom('GangA');
}
if (gametimer == 1206) {
FenceTop('Lady');
}
if (gametimer == 1209) {
GunShopBottom('GangA');
}
if (gametimer == 1253) {
FenceBottom('GangB');
}
if (gametimer == 1256) {
FenceBottom('GangC');
}
if (gametimer == 1259) {
GunShopBottom('GangA');
}
if (gametimer == 1303) {
FenceTop('GangA');
}
if (gametimer == 1306) {
GunShopTop('GangB');
}
if (gametimer == 1309) {
GunShopBottom('GangA');
}
if (gametimer == 1353) {
FenceBottom('GangC');
}
if (gametimer == 1356) {
GunShopTop('GangA');
}
if (gametimer == 1359) {
GunShopBottom('GangB');
}
if (gametimer == 1403) {
GunShopBottom('GangA');
}
if (gametimer == 1406) {
FenceTop('GangB');
}
if (gametimer == 1409) {
GunShopBottom('GangA');
}
if (gametimer == 1453) {
GunShopTop('Professor');
}
if (gametimer == 1456) {
FenceBottom('GangB');
}
if (gametimer == 1459) {
DuckHuntDog();
}
if (gametimer == 1503) {
FenceTop('GangA');
}
if (gametimer == 1506) {
FenceTop('GangC');
}
if (gametimer == 1509) {
GunShopTop('GangB');
}
if (gametimer == 1553) {
FenceBottom('GangA');
}
if (gametimer == 1556) {
GunShopTop('Police');
}
if (gametimer == 1559) {
GunShopBottom('GangA');
}
if (gametimer == 1603) {
FenceBottom('Police');
}
if (gametimer == 1606) {
FenceTop('GangC');
}
if (gametimer == 1609) {
GunShopBottom('GangB');
}
if (gametimer == 1653) {
FenceTop('GangA');
}
if (gametimer == 1656) {
FenceBottom('Professor');
}
if (gametimer == 1659) {
FenceBottom('GangB');
}
if (gametimer == 1703) {
GunShopTop('GangC');
}
if (gametimer == 1706) {
FenceBottom('GangA');
}
if (gametimer == 1709) {
GunShopBottom('Lady');
}
if (gametimer == 1753) {
FenceBottom('GangB');
}
if (gametimer == 1756) {
FenceTop('GangA');
}
if (gametimer == 1759) {
GunShopBottom('Lady');
}
if (gametimer == 1803) {
FenceTop('GangA');
}
if (gametimer == 1806) {
GunShopBottom('Police');
}
if (gametimer == 1809) {
GunShopBottom('GangB');
}
if (gametimer == 1853) {
FenceBottom('GangA');
}
if (gametimer == 1856) {
GunShopTop('GangC');
}
if (gametimer == 1859) {
GunShopBottom('GangA');
}
if (gametimer == 1903) {
FenceBottom('GangC');
}
if (gametimer == 1906) {
GunShopTop('GangB');
}
if (gametimer == 1909) {
GunShopBottom('GangA');
}
if (gametimer == 1953) {
GunShopBottom('GangA');
}
if (gametimer == 1956) {
FenceTop('Lady');
}
if (gametimer == 1959) {
GunShopBottom('GangA');
}
if (gametimer == 2003) {
FenceBottom('GangB');
}
if (gametimer == 2006) {
FenceBottom('GangC');
}
if (gametimer == 2009) {
GunShopBottom('GangA');
}
if (gametimer == 2053) {
FenceTop('GangA');
}
if (gametimer == 2056) {
GunShopTop('GangB');
}
if (gametimer == 2059) {
GunShopBottom('GangA');
}
if (gametimer == 2103) {
FenceBottom('GangC');
}
if (gametimer == 2106) {
GunShopTop('GangA');
}
if (gametimer == 2109) {
GunShopBottom('GangB');
}
Shoot = function () {
HAshoot_sound.start(0, 1);
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
while (_root.MonHit == false) {
if (HighI > 0) {
TargetHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
FenceBottom = function (TargetMC) {
++MonI;
_root.attachMovie(TargetMC, 'target' + MonI, 2000 + MonI);
_root['target' + MonI].TargetMove = random(10) + 11;
_root['target' + MonI]._x = 456;
_root['target' + MonI]._y = 385;
_root['target' + MonI]._xscale = 200;
_root['target' + MonI]._yscale = 200;
};
FenceTop = function (TargetMC) {
++MonI;
_root.attachMovie(TargetMC, 'target' + MonI, 2000 + MonI);
_root['target' + MonI].TargetMove = random(20) + 11;
_root['target' + MonI]._x = 507;
_root['target' + MonI]._y = 209;
_root['target' + MonI]._xscale = 200;
_root['target' + MonI]._yscale = 200;
};
GunShopBottom = function (TargetMC) {
++MonI;
_root.attachMovie(TargetMC, 'target' + MonI, 4000 + MonI);
_root['target' + MonI].TargetMove = random(8) + 11;
_root['target' + MonI]._x = 175;
_root['target' + MonI]._y = 395;
_root['target' + MonI]._xscale = 250;
_root['target' + MonI]._yscale = 250;
};
GunShopTop = function (TargetMC) {
++MonI;
_root.attachMovie(TargetMC, 'target' + MonI, 4000 + MonI);
_root['target' + MonI].TargetMove = random(3) + 11;
_root['target' + MonI]._x = 154;
_root['target' + MonI]._y = 170;
_root['target' + MonI]._xscale = 250;
_root['target' + MonI]._yscale = 250;
};
DuckHuntDog = function () {
++MonI;
_root.attachMovie('Dog', 'target' + MonI, 4000 + MonI);
_root['target' + MonI].TargetMove = 12;
_root['target' + MonI]._x = 210;
_root['target' + MonI]._y = 170;
_root['target' + MonI]._xscale = 250;
_root['target' + MonI]._yscale = 250;
};
TargetHit = function (HighI) {
if (_root.ammo > -1) {
if (_root.HitCheck.hitTest(_root['target' + HighI].body.gang.GangA)) {
_root['target' + HighI].body.gotoAndStop(3);
_root.scoreadd += 500 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
HAright_sound.start(0, 1);
}
if (_root.HitCheck.hitTest(_root['target' + HighI].body.gang.GangB)) {
_root['target' + HighI].body.gotoAndStop(3);
_root.scoreadd += 1000 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
HAright_sound.start(0, 1);
}
if (_root.HitCheck.hitTest(_root['target' + HighI].body.gang.GangC)) {
_root['target' + HighI].body.gotoAndStop(3);
_root.scoreadd += 2000 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
HAright_sound.start(0, 1);
}
if (_root.HitCheck.hitTest(_root['target' + HighI].body.gang.Dog)) {
_root['target' + HighI].body.gotoAndStop(3);
_root.scoreadd += 2500 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
HAright_sound.start(0, 1);
}
if (_root.HitCheck.hitTest(_root['target' + HighI].body.civ.Civ)) {
_root['target' + HighI].body.gotoAndStop(3);
_root.scoreadd -= 1000;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
HAwrong_sound.start(0, 1);
}
}
};
BulletHole = function () {
_root.bonus2 = false;
_root.multiadd = 0;
_root.multi = 1;
};
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 8) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.score = Math.round(_root.score);
_root.infobar.ammo = _root.ammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.edd.reload._currentframe == 8) {
HAshoot_sound.start(0, 1);
_root.ammo = _root.ammomax;
}
if (_root.edd.reload._currentframe == 19) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music1_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music1_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.floorMC.removeMovieClip();
_root.gunshop.removeMovieClip();
_root.fences.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['target' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
Mouse.show();
}
}
};
}
movieClip 1756 floor {
}
frame 127 {
stop();
play();
}
frame 128 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('MoneyBG', 'moneyBG', 2000);
_root.attachMovie('blackout', 'blackout', 10005);
var music1_sound = new Sound();
music1_sound.attachSound('music9');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
var shoot_sound = new Sound();
shoot_sound.attachSound('MoneyShot');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.moneyBG._x = 0;
_root.moneyBG._y = 0;
_root.eddframe = 1;
_root.ammo = 6;
_root.totalammo = 120;
_root.ammomax = 6;
_root.buttondown = false;
stop();
MonDead = 0;
MonHead = 0;
HoleI = 1;
HoleI1 = 1;
HoleI2 = 1;
MonI = 1000;
MonI2 = 0;
HighI = 0;
PlaneI = 1;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 90;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot9', 'yshoot', 10007);
_root.attachMovie('Nshoot9', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score9 < _root.lvl9TargetD) {
_root.showtarget.targetyay = _root.lvl9TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score9 < _root.lvl9TargetB) {
_root.showtarget.targetyay = _root.lvl9TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score9 < _root.lvl9TargetS) {
_root.showtarget.targetyay = _root.lvl9TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score9 < _root.lvl9TargetG) {
_root.showtarget.targetyay = _root.lvl9TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl9TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar9', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd9', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
shoot_sound.start(0, 1);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music1_sound.start(0, 999);
music1_sound.setVolume(100);
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (_root.gametimer / 10 == int(_root.gametimer / 10) && !_root.infobar.timer < 4) {
CoinSpawn();
}
if (_root.gametimer / 123 == int(_root.gametimer / 123) && !_root.infobar.timer == 0) {
PlaneSpawn();
}
Shoot = function () {
shoot_sound.start(0, 1);
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
HighI = MonI;
while (_root.MonHit == false) {
if (HighI > 0) {
CoinHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
CoinSpawn = function () {
++MonI;
_root.attachMovie('MoneyCoin', 'coin' + MonI, 3000 + MonI);
_root['coin' + MonI]._x = random(500) + 25;
_root['coin' + MonI]._xscale = random(100) + 51;
_root['coin' + MonI]._yscale = _root['coin' + MonI]._xscale;
_root['coin' + MonI]._y = -50 - _root['coin' + MonI]._xscale;
};
PlaneSpawn = function () {
_root.mondirection = random(100) + 1;
if (_root.mondirection <= 50) {
_root.attachMovie('MoneyPlane', 'plane' + PlaneI, 1500 + PlaneI);
_root['plane' + PlaneI]._xscale = 110 - random(20);
_root['plane' + PlaneI]._y = random(46) + 15;
} else {
_root.attachMovie('MoneyPlane', 'plane' + PlaneI, 2500 + PlaneI);
_root['plane' + PlaneI]._xscale = 210 - random(20);
_root['plane' + PlaneI]._y = random(250) + 15;
}
_root['plane' + PlaneI]._yscale = _root['plane' + PlaneI]._xscale;
_root['plane' + PlaneI]._x = 555;
++PlaneI;
};
CoinHit = function (HighI) {
if (_root.ammo > -1) {
if (_root.HitCheck.hitTest(_root['coin' + HighI].body)) {
_root['coin' + HighI].body.gotoAndStop(2);
_root.scoreadd += 100 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
if (_root.HitCheck.hitTest(_root['plane' + HighI].body.plane)) {
_root['plane' + HighI].body.gotoAndStop(2);
_root.scoreadd -= 500;
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
}
}
};
BulletHole = function () {
_root.multiadd = 0;
_root.multi = 1;
_root.bonus2 = false;
};
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.bonus5 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 7) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._x = 275;
_root.edd._y = 400;
_root.edd._rotation = 0;
if (_root.edd.reload._currentframe == 10) {
if (_root.totalammo - _root.ammomax > 0) {
_root.totalammo -= _root.ammomax - _root.ammo;
_root.ammo += _root.ammomax - _root.ammo;
} else {
_root.ammo = _root.totalammo + _root.ammo;
_root.totalammo = 0;
}
if (_root.ammo >= 1) {
_root.infobar.bullet1._alpha = 100;
}
if (_root.ammo >= 2) {
_root.infobar.bullet2._alpha = 100;
}
if (_root.ammo >= 3) {
_root.infobar.bullet3._alpha = 100;
}
if (_root.ammo >= 4) {
_root.infobar.bullet4._alpha = 100;
}
if (_root.ammo >= 5) {
_root.infobar.bullet5._alpha = 100;
}
if (_root.ammo >= 6) {
_root.infobar.bullet6._alpha = 100;
}
}
if (_root.edd.reload._currentframe == 20) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music1_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music1_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.moneyBG.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['plane' + MonI].removeMovieClip();
_root['coin' + MonI].removeMovieClip();
--MonI;
}
Mouse.show();
}
}
};
}
frame 129 {
stop();
play();
}
frame 130 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('mctom', 'MCTom', 8000);
_root.attachMovie('stage', 'stage1', 4999);
_root.attachMovie('lights', 'lights', 4998);
_root.attachMovie('blackout', 'blackout', 10005);
var music1_sound = new Sound();
music1_sound.attachSound('music8');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.MCTom._x = 230;
_root.MCTom._y = 135;
_root.stage1._x = -1;
_root.stage1._y = 250;
_root.lights._x = -17.9;
_root.lights._y = -28.4;
_root.eddframe = 1;
_root.ammo = 1;
_root.totalammo = 120;
_root.ammomax = 1;
_root.buttondown = false;
stop();
HoleI = 1;
HoleI1 = 1;
HoleI2 = 1;
MonI = 0;
HighI = 0;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 100;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
MCDframe = 0;
MCDarm = 0;
MCDmic = 0;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 9;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot8', 'yshoot', 10007);
_root.attachMovie('Nshoot8', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score8 < _root.lvl8TargetD) {
_root.showtarget.targetyay = _root.lvl8TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score8 < _root.lvl8TargetB) {
_root.showtarget.targetyay = _root.lvl8TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score8 < _root.lvl8TargetS) {
_root.showtarget.targetyay = _root.lvl8TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score8 < _root.lvl18TargetG) {
_root.showtarget.targetyay = _root.lvl8TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl8TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar8', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd8', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 67) {
_root.edd.gotoAndStop(4);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music1_sound.start(0, 999);
music1_sound.setVolume(100);
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 2) {
PressAppear();
}
if (gametimer == 8) {
PressAppear();
}
if (gametimer == 800) {
PressAppear();
}
if (gametimer == 1255) {
PressAppear();
}
if (gametimer == 1711) {
PressAppear();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
TomHit();
while (_root.MonHit == false) {
if (HighI > 0) {
PressHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
PressAppear = function () {
++MonI;
_root.attachMovie('press', 'press' + MonI, 4000 + MonI);
_root['press' + MonI]._x = random(475) + 5;
_root['press' + MonI]._y = 250 + (_root['press' + MonI]._x - 275) * (_root['press' + MonI]._x - 275) / 2875 + random(700) / 100;
_root['press' + MonI]._rotation = -20 + _root['press' + MonI]._x / 13.75;
};
TomHit = function () {
if (_root.ammo > -1) {
if (_root.HitCheck.hitTest(_root.MCTom.mcrap.hitTom2) || _root.HitCheck.hitTest(_root.MCTom.mcrap.hitTom3)) {
if (_root.MCTom.mcrap.mcarm._currentframe == 1) {
_root.MCTom.mcrap.mcarm.play();
_root.scoreadd -= 500;
_root.multiadd = 0;
_root.multi = 1;
_root.MonHit = true;
_root.hitmon = true;
}
}
if (_root.HitCheck.hitTest(_root.MCTom.mcrap.hitTom4)) {
if (_root.MCTom.mcrap.mcmic._currentframe == 1) {
_root.MCTom.mcrap.mcmic.play();
_root.scoreadd -= 500;
_root.multiadd = 0;
_root.multi = 1;
_root.MonHit = true;
_root.hitmon = true;
}
}
if (_root.HitCheck.hitTest(_root.MCTom.mcrap.hitTom1)) {
MCDframe = int((21 - Math.sqrt((_root.MCTom.mcrap._currentframe - 20) * (_root.MCTom.mcrap._currentframe - 20))) / 2);
MCDarm = _root.MCTom.mcrap.mcarm._currentframe;
MCDmic = _root.MCTom.mcrap.mcmic._currentframe;
_root.MCTom.gotoAndStop(2);
_root.MCTom.mcdie.gotoAndPlay(MCDframe);
_root.MCTom.mcdie.mcarm.gotoAndPlay(MCDarm);
_root.MCTom.mcdie.mcmic.gotoAndPlay(MCDmic);
_root.scoreadd = 0;
_root.MonHit = true;
_root.hitmon = true;
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
};
PressHit = function (HighI) {
if (_root.ammo > -1) {
if (_root.HitCheck.hitTest(_root['press' + HighI].body) && _root['press' + HighI].body._currentframe !== 3 && _root._ymouse < 250 + (_root._xmouse - 275) * (_root._xmouse - 275) / 2875) {
_root['press' + HighI].body.gotoAndStop(3);
_root.scoreadd += 200 * _root.multi;
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
}
}
};
BulletHole = function () {
i = 1;
while (i <= 5) {
if (_root.HitCheck.hitTest(_root.lights['light' + i].Lsource) && _root.lights['light' + i]._currentframe == 1) {
_root.lights['light' + i].play();
}
++i;
}
if (_root.HitCheck.hitTest(_root.stage1)) {
if (_root._ymouse > 250 + (_root._xmouse - 275) * (_root._xmouse - 275) / 2875) {
_root.attachMovie('shotgun_hole8', 'hole' + HoleI, 5000 + HoleI + (_root._ymouse - 250) * 10);
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._xscale = 60;
_root['hole' + HoleI]._yscale = 60 + (_root._ymouse - 250) / 10;
_root['hole' + HoleI].HDart._rotation = random(60) - 30;
_root['hole' + HoleI]._alpha = 100;
++HoleI;
}
}
_root.multiadd = 0;
_root.multi = 1;
_root.bonus2 = false;
};
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 9;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
_root.edd.gotoAndStop(4);
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
if (_root.edd._currentframe == 4) {
if (_root.edd.blow._currentframe == 5) {
Shoot();
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 9;
if (_root.edd.shoot._currentframe == 6) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
if (_root.edd.reload._currentframe == 11) {
++_root.ammo;
_root.infobar['bullet' + _root.ammo]._alpha = 100;
--_root.totalammo;
}
if (_root.edd.reload._currentframe == 15) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
if (_root.edd._currentframe == 2) {
if (_root.edd.shoot._currentframe == 6) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music1_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music1_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.stage1.removeMovieClip();
_root.MCTom.removeMovieClip();
_root.lights.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['press' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
frame 131 {
stop();
play();
}
frame 132 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('blackout', 'blackout', 10005);
var music2_sound = new Sound();
music2_sound.attachSound('music7');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
var colahit_sound = new Sound();
colahit_sound.attachSound('gunhitcola');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.multiadd = 0;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.eddframe = 1;
_root.ammo = 7;
_root.totalammo = 108;
_root.ammomax = 7;
_root.buttondown = false;
stop();
HoleI = 1;
HoleI1 = 1;
HoleI2 = 1;
MonI = 0;
HighI = 0;
_root.targetleave = true;
_root.MonHit = false;
gametimer = 0;
_root.lvltime = 60;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = true;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
onEnterFrame = function () {
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
music2_sound.start(0, 999);
music2_sound.setVolume(100);
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot11', 'yshoot', 10007);
_root.attachMovie('Nshoot11', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score11 < _root.lvl11TargetD) {
_root.showtarget.targetyay = _root.lvl11TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score11 < _root.lvl11TargetB) {
_root.showtarget.targetyay = _root.lvl11TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score11 < _root.lvl11TargetS) {
_root.showtarget.targetyay = _root.lvl11TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score11 < _root.lvl11TargetG) {
_root.showtarget.targetyay = _root.lvl11TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl11TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar2', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd2', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
if (gametimer == 2) {
NormalCola();
}
if (gametimer == 102) {
NormalCola();
}
if (gametimer == 202) {
NormalCola();
}
if (gametimer == 206) {
NormalCola();
}
if (gametimer == 210) {
DietCola();
}
if (gametimer == 302) {
NormalCola();
}
if (gametimer == 306) {
DietCola();
}
if (gametimer == 402) {
NormalCola();
}
if (gametimer == 406) {
NormalCola();
}
if (gametimer == 502) {
NormalCola();
}
if (gametimer == 506) {
DietCola();
}
if (gametimer == 510) {
DietCola();
}
if (gametimer == 602) {
NormalCola();
}
if (gametimer == 702) {
NormalCola();
}
if (gametimer == 706) {
NormalCola();
}
if (gametimer == 802) {
NormalCola();
}
if (gametimer == 806) {
DietCola();
}
if (gametimer == 810) {
NormalCola();
}
if (gametimer == 902) {
NormalCola();
}
if (gametimer == 906) {
DietCola();
}
if (gametimer == 1002) {
NormalCola();
}
if (gametimer == 1006) {
DietCola();
}
if (gametimer == 1010) {
NormalCola();
}
if (gametimer == 1102) {
NormalCola();
}
if (gametimer == 1106) {
NormalCola();
}
if (gametimer == 1110) {
DietCola();
}
if (gametimer == 1114) {
DietCola();
}
if (gametimer == 1202) {
DietCola();
}
if (gametimer == 1206) {
NormalCola();
}
if (gametimer == 1210) {
DietCola();
}
if (gametimer == 1214) {
NormalCola();
}
if (gametimer == 1302) {
NormalCola();
}
if (gametimer == 1306) {
NormalCola();
}
if (gametimer == 1310) {
DietCola();
}
if (gametimer == 1314) {
NormalCola();
}
if (gametimer == 1402) {
DietCola();
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
while (_root.MonHit == false) {
if (HighI > -1) {
CanHit(HighI);
--HighI;
} else {
_root.MonHit = true;
}
}
if (_root.hitmon == false) {
BulletHole();
}
};
NormalCola = function () {
++MonI;
_root.attachMovie('colaY', 'can' + MonI, 4500 + MonI);
_root['can' + MonI]._x = random(450) + 51;
_root['can' + MonI]._y = 475;
};
DietCola = function () {
++MonI;
_root.attachMovie('colaN', 'can' + MonI, 4500 + MonI);
_root['can' + MonI]._x = random(450) + 51;
_root['can' + MonI]._y = 475;
};
CanHit = function (HighI) {
if (_root.ammo > -1) {
if (_root.HitCheck.hitTest(_root['can' + HighI].body) && _root['can' + HighI].body._currentframe < 6) {
_root['can' + HighI].body.gotoAndStop(_root['can' + HighI].body._currentframe + 1);
if (_root['can' + HighI].body._currentframe == 6) {
_root.scoreadd += 300 * _root.multi;
} else {
_root.scoreadd += 100 * _root.multi;
colahit_sound.start(0, 1);
}
++_root.multiadd;
_root.hitmon = true;
_root.MonHit = true;
_root['can' + HighI].FlySpeed = 15;
}
if (_root.HitCheck.hitTest(_root['can' + HighI].dietbody) && _root['can' + HighI].dietbody._currentframe < 6) {
_root['can' + HighI].dietbody.gotoAndStop(_root['can' + HighI].dietbody._currentframe + 1);
_root.scoreadd -= 400;
if (_root['can' + HighI].dietbody._currentframe < 6) {
colahit_sound.start(0, 1);
}
_root.multiadd = 0;
_root.multi = 1;
_root.hitmon = true;
_root.MonHit = true;
_root['can' + HighI].FlySpeed = 15;
}
}
};
BulletHole = function () {
_root.bonus2 = false;
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 3000);
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._xscale = 80;
_root['hole' + HoleI]._yscale = 80;
_root.multiadd = 0;
_root.multi = 1;
++HoleI;
};
if (_root.score < _root.scoreadd) {
_root.score += 25;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multiadd == 10 && _root.multi < 5) {
++_root.multi;
_root.multiadd = 0;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
if (Key.isDown(65)) {
NormalCola();
}
if (Key.isDown(83)) {
DietCola();
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 6) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - 2.5;
_root.HitCheck._y = _root._ymouse - 2.5;
if (_root.edd._currentframe == 3) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.edd.reload._currentframe == 16) {
if (_root.totalammo - _root.ammomax > 0) {
_root.totalammo -= _root.ammomax - _root.ammo;
_root.ammo += _root.ammomax - _root.ammo;
} else {
_root.ammo = _root.totalammo + _root.ammo;
_root.totalammo = 0;
}
if (_root.ammo >= 1) {
_root.infobar.bullet1._alpha = 100;
}
if (_root.ammo >= 2) {
_root.infobar.bullet2._alpha = 100;
}
if (_root.ammo >= 3) {
_root.infobar.bullet3._alpha = 100;
}
if (_root.ammo >= 4) {
_root.infobar.bullet4._alpha = 100;
}
if (_root.ammo >= 5) {
_root.infobar.bullet5._alpha = 100;
}
if (_root.ammo >= 6) {
_root.infobar.bullet6._alpha = 100;
}
if (_root.ammo >= 7) {
_root.infobar.bullet7._alpha = 100;
}
}
if (_root.edd.reload._currentframe == 23) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music2_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music2_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['can' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
frame 133 {
stop();
play();
}
frame 134 {
_root.attachMovie('Menu', 'menuS', 9999);
_root.attachMovie('tarbelt', 'TarBelt', 3999);
_root.attachMovie('targetMC', 'targetMC', 4000);
_root.attachMovie('blackout', 'blackout', 10005);
var music2_sound = new Sound();
music2_sound.attachSound('music10');
var start1_sound = new Sound();
start1_sound.attachSound('start1');
var start2_sound = new Sound();
start2_sound.attachSound('start2');
var a321_sound = new Sound();
a321_sound.attachSound('321');
var GO_sound = new Sound();
GO_sound.attachSound('GO');
var Ebullet_sound = new Sound();
Ebullet_sound.attachSound('enterbullet');
var noammo_sound = new Sound();
noammo_sound.attachSound('noammo');
var timertick_sound = new Sound();
timertick_sound.attachSound('timertick');
_root.shootan = false;
_root.InfoUp = 30;
_root.EddUp = 75;
_root.score = 0;
_root.scoreadd = 0;
_root.multi = 1;
_root.targetMC._x = 275;
_root.targetMC._y = 65;
_root.TarBelt._x = 275;
_root.TarBelt._y = -2;
_root.infobar._x = 0;
_root.infobar._y = 400;
_root.edd._x = 275;
_root.edd._y = 400;
_root.eddframe = 1;
_root.ammo = 7;
_root.totalammo = 105;
_root.ammomax = 7;
_root.buttondown = false;
stop();
HoleI = 1;
HoleI1 = 1;
HoleI2 = 1;
_root.targetMCmove = 0;
_root.targetMCrotate = 0;
_root.targetleave = true;
_root.MonHit = false;
_root.tarMChit = false;
_root.tarscore = 0;
gametimer = 0;
_root.lvltime = 50;
_root.gamestart = false;
_root.GameOver = false;
_root.Super = 1;
_root.targetmove = false;
_root.timermovev = 10;
_root.bonus1 = false;
_root.bonus2 = true;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = false;
onEnterFrame = function () {
_root.HitCheck._xscale = _root.targetMC._xscale / 10;
_root.HitCheck._yscale = _root.targetMC._yscale / 10;
_root.targetMC._xscale = 150 - _root.targetMC._y / 1.3;
_root.targetMC._yscale = 150 - _root.targetMC._y / 1.3;
if (_root.GameOver == false) {
if (_root.gamestart == false) {
_root.infobar.timer = _root.lvltime;
_root.infobar.timerback = _root.infobar.timer;
_root.edd._y = 400 + _root._ymouse / 8 + EddUp * 2;
_root.edd._rotation = (_root._xmouse - 275) / 15;
++gametimer;
if (_root.gametimer == 16) {
_root.attachMovie('countdown', 'countdown', 10003);
_root.countdown._x = 234;
_root.countdown._y = 143.85;
}
if (_root.gametimer == 24) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('target', 'showtarget', 10004);
_root.showtarget._x = 112.5;
_root.showtarget._y = -55;
_root.attachMovie('Yshoot10', 'yshoot', 10007);
_root.attachMovie('Nshoot10', 'nshoot', 10008);
_root.yshoot._x = 0;
_root.yshoot._y = 200;
_root.nshoot._x = 550;
_root.nshoot._y = 200;
_root.targetmove = true;
if (_root.score10 < _root.lvl10TargetD) {
_root.showtarget.targetyay = _root.lvl10TargetD;
_root.showtarget.medal.gotoAndStop(1);
} else {
if (_root.score10 < _root.lvl10TargetB) {
_root.showtarget.targetyay = _root.lvl10TargetB;
_root.showtarget.medal.gotoAndStop(2);
} else {
if (_root.score10 < _root.lvl10TargetS) {
_root.showtarget.targetyay = _root.lvl10TargetS;
_root.showtarget.medal.gotoAndStop(3);
} else {
if (_root.score10 < _root.lvl10TargetG) {
_root.showtarget.targetyay = _root.lvl10TargetG;
_root.showtarget.medal.gotoAndStop(4);
} else {
_root.showtarget.targetyay = _root.lvl10TargetP;
_root.showtarget.medal.gotoAndStop(5);
}
}
}
}
_root.attachMovie('infobar2', 'infobar', 10001);
_root.infobar._x = 0;
_root.infobar._y = 460;
}
if (_root.gametimer == 34) {
if (_root.serious == true) {
start1_sound.start(0, 1);
start1_sound.setVolume(100);
}
}
if (_root.gametimer == 48) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.attachMovie('edd2', 'edd', 10000);
_root.edd._x = 275;
_root.edd._y = 550;
_root.attachMovie('crosshair', 'crosshair', 10002);
Mouse.hide();
_root.attachMovie('macsucks', 'macsucks', 10006);
}
if (_root.gametimer == 72) {
if (_root.serious == false) {
a321_sound.start(0, 1);
a321_sound.setVolume(100);
}
_root.menuS.gotoAndStop(2);
_root.edd.gotoAndStop(2);
}
if (_root.gametimer == 91) {
if (_root.serious == true) {
start2_sound.start(0, 1);
start2_sound.setVolume(100);
}
}
if (_root.gametimer == 96) {
_root.attachMovie('reload', 'reload', 10004);
_root.reload._x = 135;
_root.reload._y = 103.85;
if (_root.serious == false) {
GO_sound.start(0, 1);
}
music2_sound.start(0, 999);
music2_sound.setVolume(100);
_root.gamestart = true;
gametimer = 0;
}
}
if (_root.gamestart == true) {
if (_root.ammo == 0 && _root.totalammo == 0 && _root.targetMC._y <= 0) {
_root.GameOver = true;
gametimer = 0;
}
if (_root.targetMC._y <= 50) {
_root.multi = 1;
} else {
if (_root.targetMC._y <= 90) {
_root.multi = 2;
} else {
if (_root.targetMC._y <= 120) {
_root.multi = 3;
} else {
if (_root.targetMC._y <= 150) {
_root.multi = 4;
} else {
_root.multi = 5;
}
}
}
}
_root.tarrotate = _root.targetMC._rotation;
++gametimer;
_root.infobar.timer = _root.lvltime - int(gametimer / 24);
_root.infobar.timerback = _root.infobar.timer;
if (_root.infobar.timer <= 10) {
if (_root.lvltime - int(gametimer / 24) == _root.lvltime - gametimer / 24) {
timertick_sound.start(0, 1);
}
}
if (_root.infobar.timer == 0) {
_root.GameOver = true;
gametimer = 0;
}
_root.targetMC._x = _root.TarBelt._x;
if (_root.targetMCmove < 1) {
_root.targetMCmove += 0.25;
}
if (_root.targetMC._y > -5 || _root.targetMCmove < 0 && _root.targetMC._y <= -5) {
_root.targetMC._y -= _root.targetMCmove;
}
if (_root.targetMC._y > 165) {
_root.targetMCmove = 1;
}
_root.targetMC._rotation += _root.targetMCrotate;
if (_root.targetMC._rotation > 70 || _root.targetMC._rotation < -70) {
_root.targetMCrotate = -_root.targetMCrotate / 2;
}
if (_root.targetMC._rotation < 1 && _root.targetMC._rotation > -1 && _root.targetMCrotate < 1 && _root.targetMCrotate > -1) {
_root.targetMC._rotation = 0;
_root.targetMCrotate = 0;
} else {
if (_root.targetMC._rotation > 0) {
if (_root.targetMCrotate >= 0) {
_root.targetMCrotate -= 1;
} else {
_root.targetMCrotate -= 0.5;
}
} else {
if (_root.targetMC._rotation < 0) {
if (_root.targetMCrotate >= 0) {
_root.targetMCrotate += 0.5;
} else {
_root.targetMCrotate += 1;
}
}
}
}
Shoot = function () {
_root.edd.gotoAndStop(2);
_root.eddframe = 2;
_root.infobar['bullet' + _root.ammo]._alpha = 0;
if (_root.unammo == false) {
--_root.ammo;
}
HighI = MonI;
_root.tarMChit = false;
_root.hitmon = false;
SoilderHit();
if (_root.hitmon == false) {
BulletHole();
}
};
SoilderHit = function () {
TarHit();
if (_root.tarMChit == true) {
_root.targetMC.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI + 8000);
_root.targetMC['hole' + HoleI]._x = ((_root._xmouse - _root.targetMC._x) * 100 / _root.targetMC._xscale) * Math.cos(_root.targetMC._rotation * Math.PI / 180) + ((_root._ymouse - _root.targetMC._y) * 100 / _root.targetMC._yscale) * Math.sin(_root.targetMC._rotation * Math.PI / 180);
_root.targetMC['hole' + HoleI]._y = ((_root._ymouse - _root.targetMC._y) * 100 / _root.targetMC._yscale) * Math.cos(_root.targetMC._rotation * Math.PI / 180) - ((_root._xmouse - _root.targetMC._x) * 100 / _root.targetMC._xscale) * Math.sin(_root.targetMC._rotation * Math.PI / 180);
_root.targetMC['hole' + HoleI]._xscale = 40;
_root.targetMC['hole' + HoleI]._yscale = 40;
_root.tartest = _root._xmouse - _root.tarTLx;
_root.targetMCrotate += _root.targetMC['hole' + HoleI]._x / 6;
_root.targetMCmove = -2;
_root.scoreadd += _root.tarscore * _root.multi;
_root.hitmon = true;
_root.MonHit = true;
++HoleI;
}
};
TarHit = function () {
if (_root.HitCheck.hitTest(_root.targetMC)) {
i = 1;
while (i < 40) {
if (_root.HitCheck.hitTest(_root.targetMC['tarhit' + i])) {
if (i == 1) {
_root.tarscore = 100;
} else {
if (i <= 6) {
_root.tarscore = 90;
} else {
if (i <= 13) {
_root.tarscore = 80;
} else {
if (i <= 20) {
_root.tarscore = 70;
} else {
if (i <= 28) {
_root.tarscore = 60;
} else {
_root.tarscore = 50;
}
}
}
}
}
_root.tarMChit = true;
}
++i;
}
}
};
BulletHole = function () {
_root.bonus2 = false;
_root.attachMovie('shotgun_hole', 'hole' + HoleI, HoleI);
if (_root._ymouse > 338) {
_root['hole' + HoleI]._xscale = 70;
} else {
if (_root._xmouse >= 256.9 && _root._xmouse <= 294.4 && _root._ymouse >= 167.9 && _root._ymouse <= 195.9) {
_root['hole' + HoleI]._xscale = 10;
} else {
if (_root._xmouse < 256.9 && _root._ymouse - _root._xmouse * 0.73 + 21.15 > 0 && _root._ymouse + _root._xmouse * 0.75 - 387.95 < 0) {
_root['hole' + HoleI]._xscale = 50 - _root._xmouse / 6.42;
} else {
if (_root._xmouse > 294.4 && _root._ymouse + _root._xmouse * 0.75 - 389.55 > 0 && _root._ymouse - _root._xmouse * 0.74 + 21.2 < 0) {
_root['hole' + HoleI]._xscale = 10 + (_root._xmouse - 294.4) / 6.39;
} else {
if (_root._ymouse < 167.9) {
_root['hole' + HoleI]._xscale = 50 - _root._ymouse / 4.2;
} else {
if (_root._ymouse > 195.9) {
_root['hole' + HoleI]._xscale = 10 + (_root._ymouse - 195.9) / 3.8;
}
}
}
}
}
}
_root['hole' + HoleI]._yscale = _root['hole' + HoleI]._xscale;
_root['hole' + HoleI]._y = _root._ymouse;
_root['hole' + HoleI]._x = _root._xmouse;
_root['hole' + HoleI]._rotation = random(360);
_root['hole' + HoleI]._alpha = 100;
_root.multiadd = 0;
_root.multi = 1;
++HoleI;
};
if (_root.score < _root.scoreadd) {
_root.score += 25;
}
if (_root.score > _root.scoreadd || _root.score < _root.scoreadd) {
_root.score += (_root.scoreadd - _root.score) / 2;
}
if (_root.multi == 5) {
_root.bonus4 = true;
}
if (_root.edd._currentframe == 1) {
_root.hitmon = false;
_root.MonHit = false;
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.buttondown == false) {
if (_root.shootan == true) {
if (_root._ymouse > 400) {
if (_root.HitCheck.hitTest(_root.infobar.eddface.charface)) {
_root.eddframe = 5;
_root.hitmon = true;
}
if (_root.HitCheck.hitTest(_root.infobar.back)) {
_root.GameOver = true;
_root.gametimer = 0;
_root.bonus1 = false;
_root.bonus2 = false;
_root.bonus3 = false;
_root.bonus4 = false;
_root.quit = true;
}
}
if (_root.ammo == 0) {
noammo_sound.start(0, 1);
_root.reload.gotoAndPlay(2);
}
if (_root.ammo > 0 && _root._ymouse <= 400) {
Shoot();
}
}
if (Key.isDown(82) && _root.ammo < _root.ammomax && _root.totalammo > 0) {
_root.edd.gotoAndStop(3);
_root.eddframe = 3;
}
}
}
}
if (_root.shootan == false && !Key.isDown(82)) {
_root.buttondown = false;
}
if (_root.shootan == true) {
_root.buttondown = true;
}
if (Key.isDown(82)) {
_root.buttondown = true;
}
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
if (_root.edd._currentframe == 2) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 20;
if (_root.edd.shoot._currentframe == 6) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
_root.infobar.combo = _root.multi;
_root.infobar.comboback = _root.infobar.combo;
_root.infobar.score = Math.round(_root.score);
_root.infobar.scoreback = _root.infobar.score;
_root.infobar.totalammo = _root.totalammo;
_root.infobar.totalammo2 = _root.totalammo;
_root.infobar.eddface.charface.gotoAndStop(_root.eddframe);
_root.HitCheck._x = _root._xmouse - _root.HitCheck._xscale / 4;
_root.HitCheck._y = _root._ymouse - _root.HitCheck._yscale / 4;
if (_root.edd._currentframe == 3) {
_root.edd._y = 400 + _root._ymouse / 8;
_root.edd._rotation = (_root._xmouse - 275) / 15;
if (_root.edd.reload._currentframe == 16) {
if (_root.totalammo - _root.ammomax > 0) {
_root.totalammo -= _root.ammomax - _root.ammo;
_root.ammo += _root.ammomax - _root.ammo;
} else {
_root.ammo = _root.totalammo + _root.ammo;
_root.totalammo = 0;
}
if (_root.ammo >= 1) {
_root.infobar.bullet1._alpha = 100;
}
if (_root.ammo >= 2) {
_root.infobar.bullet2._alpha = 100;
}
if (_root.ammo >= 3) {
_root.infobar.bullet3._alpha = 100;
}
if (_root.ammo >= 4) {
_root.infobar.bullet4._alpha = 100;
}
if (_root.ammo >= 5) {
_root.infobar.bullet5._alpha = 100;
}
if (_root.ammo >= 6) {
_root.infobar.bullet6._alpha = 100;
}
if (_root.ammo >= 7) {
_root.infobar.bullet7._alpha = 100;
}
}
if (_root.edd.reload._currentframe == 23) {
_root.edd.gotoAndStop(1);
_root.eddframe = 1;
}
}
if (_root.targetmove == true) {
_root.showtarget._y += _root.timermovev;
_root.yshoot._x += _root.timermovev * 3.2;
_root.nshoot._x -= _root.timermovev * 3.2;
if (_root.gametimer < 62) {
if (_root.timermovev > 0) {
--_root.timermovev;
}
} else {
--_root.timermovev;
}
}
if (_root.gametimer >= 24) {
if (_root.InfoUp > 0) {
_root.infobar._y -= InfoUp;
_root.InfoUp -= 10;
}
}
if (_root.gametimer >= 48) {
if (_root.EddUp > 0) {
_root.EddUp -= _root.EddUp / 5;
}
}
} else {
++gametimer;
if (_root.blackout._currentframe == 1) {
_root.blackout.play();
}
_root.music2_sound.setVolume(100 - gametimer * 4);
if (_root.blackout._currentframe == 24) {
if (_root.quit == false) {
if (_root.ammo == 0 && _root.totalammo == 0) {
_root.bonus3 = true;
}
}
gotoAndStop(135);
_root.music2_sound.stop();
_root.menuS.removeMovieClip();
_root.macsucks.removeMovieClip();
_root.edd.removeMovieClip();
_root.blackout.removeMovieClip();
_root.targetMC.removeMovieClip();
_root.TarBelt.removeMovieClip();
_root.countdown.removeMovieClip();
_root.reload.removeMovieClip();
_root.infobar.removeMovieClip();
_root.crosshair.removeMovieClip();
_root.yshoot.removeMovieClip();
_root.nshoot.removeMovieClip();
while (MonI > 0) {
_root['soilder' + MonI].removeMovieClip();
_root['civillian' + MonI].removeMovieClip();
--MonI;
}
while (HoleI > 0) {
_root['hole' + HoleI].removeMovieClip();
--HoleI;
}
Mouse.show();
}
}
};
}
movieClip 1762 {
}
frame 135 {
stop();
i = 1;
while (i <= 10) {
_root['lvl' + i + 'Unlock'] = false;
++i;
}
i = 1;
_root.ButtonGo = false;
_root.LS = false;
_root.lvlUnlockCheck = false;
_root.UnCheck = true;
_root.lvlsUnlocked = 0;
_root.fadeout._alpha = 0;
var savefile = SharedObject.getLocal('EddGame');
if (savefile.data['score' + _root.lvlSelect] == undefined) {
_root.highscore = 0;
_root.HScheck = 0;
} else {
_root.highscore = savefile.data['score' + _root.lvlSelect];
_root.HScheck = savefile.data['score' + _root.lvlSelect];
}
savefile.data['played' + _root.lvlSelect] = _root['played' + _root.lvlSelect];
_root.LevelEnd.gotoAndStop(_root.lvlSelect);
_root.scoreend = 0;
_root.bonus = 1;
_root.newrecord = true;
if (_root.bonus1 == true) {
_root.bonus += 0.25;
_root.bon1.gotoAndStop(2);
}
if (_root.bonus2 == true) {
_root.bonus += 0.2;
_root.bon2.gotoAndStop(2);
}
if (_root.bonus3 == true) {
_root.bonus += 0.1;
_root.bon3.gotoAndStop(2);
}
if (_root.bonus4 == true) {
_root.bonus += 0.05;
_root.bon4.gotoAndStop(2);
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
_root.scoreadd = int(_root.scoreadd * _root.bonus);
onEnterFrame = function () {
if (_root.LS == true) {
if (_root.fadeout._alpha >= 100) {
menu_sound.setVolume(100);
menu_soundB.setVolume(100);
gotoAndStop(114);
} else {
_root.fadeout._alpha += 4;
menu_sound.setVolume(_root.fadeout._alpha);
menu_soundB.setVolume(menu_sound.getVolume());
}
}
var v2 = new Sound();
v2.attachSound('silent');
v2.start(0, 1);
v2.setVolume(100);
if (_root.quit == false) {
if (_root.messageFront._alpha < 100) {
_root.messageFront._alpha += 10;
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.messageFront.gotoAndStop(3);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(3);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.messageFront.gotoAndStop(4);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(4);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.messageFront.gotoAndStop(5);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(5);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.messageFront.gotoAndStop(6);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(6);
}
}
if (_root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetP']) {
if (_root.scoreend == _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.messageFront.gotoAndStop(7);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(7);
}
}
if (_root.newrecord == true) {
if (_root.scoreend > _root.HScheck) {
_root.messageFront.gotoAndStop(2);
_root.messageFront._alpha = 0;
_root.messageBack.gotoAndStop(2);
_root.newrecord = false;
}
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetD'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetD']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetD'];
_root.medal.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetB'];
_root.medal.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetS'];
_root.medal.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG'] && _root.HScheck < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetG'];
_root.medal.gotoAndStop(4);
} else {
_root.targetyay = _root['lvl' + _root.lvlSelect + 'TargetP'];
_root.medal.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd >= _root.scoreend + 1000) {
_root.scoreend += 1000;
} else {
_root.scoreend = _root.scoreadd;
_root.lvlUnlockCheck = true;
}
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetB']) {
_root.medal2.gotoAndStop(1);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetS']) {
_root.medal2.gotoAndStop(2);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetG']) {
_root.medal2.gotoAndStop(3);
} else {
if (_root.scoreend < _root['lvl' + _root.lvlSelect + 'TargetP']) {
_root.medal2.gotoAndStop(4);
} else {
_root.medal2.gotoAndStop(5);
}
}
}
}
if (_root.scoreadd > _root.highscore) {
savefile.data['score' + _root.lvlSelect] = _root.scoreadd;
_root['score' + _root.lvlSelect] = _root.scoreadd;
}
if (_root.scoreend > _root.highscore) {
_root.highscore = _root.scoreend;
}
} else {
_root.ButtonGo = true;
_root.scoreend = 'N/A';
}
if (_root.lvlUnlockCheck == true && _root.UnCheck == true) {
if (_root.lvl2Unlocked == false) {
if (_root.score1 >= _root.lvl1TargetD) {
_root.lvl2Unlock = true;
++_root.lvlsUnlocked;
}
}
if (_root.lvl3Unlocked == false) {
if (_root.score2 >= _root.lvl2TargetD) {
_root.lvl3Unlock = true;
++_root.lvlsUnlocked;
}
}
if (_root.lvl4Unlocked == false) {
if (_root.score3 >= _root.lvl3TargetD) {
_root.lvl4Unlock = true;
++_root.lvlsUnlocked;
}
}
if (_root.lvl5Unlocked == false) {
if (_root.score1 >= _root.lvl1TargetB && _root.score2 >= _root.lvl2TargetB && _root.score3 >= _root.lvl3TargetB && _root.score4 >= _root.lvl4TargetB) {
_root.lvl5Unlock = true;
++_root.lvlsUnlocked;
}
}
if (_root.lvl6Unlocked == false) {
if (_root.score5 >= _root.lvl5TargetB) {
_root.lvl6Unlock = true;
++_root.lvlsUnlocked;
}
}
if (_root.lvl7Unlocked == false) {
if (_root.score1 >= _root.lvl1TargetS && _root.score2 >= _root.lvl2TargetS && _root.score3 >= _root.lvl3TargetS && _root.score4 >= _root.lvl4TargetS) {
_root.lvl7Unlock = true;
++_root.lvlsUnlocked;
}
}
if (_root.lvl8Unlocked == false) {
if (_root.score7 >= _root.lvl7TargetS) {
_root.lvl8Unlock = true;
++_root.lvlsUnlocked;
}
}
i = 1;
_root.PlatTotal = 0;
while (i <= 10) {
if (_root['score' + i] >= _root['lvl' + i + 'TargetP']) {
++_root.PlatTotal;
}
++i;
}
i = 1;
if (_root.lvl9Unlocked == false) {
if (_root.PlatTotal >= 5) {
_root.lvl9Unlock = true;
++_root.lvlsUnlocked;
}
}
if (_root.lvl10Unlocked == false) {
if (_root.PlatTotal >= 6) {
_root.lvl10Unlock = true;
++_root.lvlsUnlocked;
}
}
if (_root.lvlsUnlocked > 0) {
_root.unlockscreen.play();
} else {
_root.ButtonGo = true;
}
_root.lvlUnlockCheck = false;
_root.UnCheck = false;
}
};
}
button 1766 {
on (release) {
if (_root.ButtonGo == true) {
_root['played' + _root.lvlSelect] += 1;
if (_root.lvlSelect == 1) {
gotoAndStop(115);
}
if (_root.lvlSelect == 2) {
gotoAndStop(117);
}
if (_root.lvlSelect == 3) {
gotoAndStop(119);
}
if (_root.lvlSelect == 4) {
gotoAndStop(121);
}
if (_root.lvlSelect == 5) {
gotoAndStop(123);
}
if (_root.lvlSelect == 6) {
gotoAndStop(125);
}
if (_root.lvlSelect == 7) {
gotoAndStop(127);
}
if (_root.lvlSelect == 8) {
gotoAndStop(129);
}
if (_root.lvlSelect == 9) {
gotoAndStop(131);
}
if (_root.lvlSelect == 10) {
gotoAndStop(133);
}
}
}
}
button 1767 {
on (release) {
if (_root.ButtonGo == true) {
gotoAndPlay(6);
_root.setVolume(100);
}
}
}
button 1771 {
on (release) {
if (_root.ButtonGo == true) {
_root.createEmptyMovieClip('BGM_container', _root.getNextHighestDepth());
var menu_sound = new Sound(BGM_container);
menu_sound.attachSound('IMonster');
_root.createEmptyMovieClip('BGM_containerB', _root.getNextHighestDepth());
var menu_soundB = new Sound(BGM_containerB);
menu_soundB.attachSound('IMonsterB');
_root.LS = true;
_root.setVolume(100);
menu_sound.start(0, 9999);
menu_soundB.start(0, 9999);
menu_sound.setVolume(0);
menu_soundB.setVolume(0);
}
}
}
movieClip 1777 {
frame 1 {
stop();
}
frame 16 {
var unlock_sound = new Sound();
unlock_sound.attachSound('UNLOCKGET');
unlock_sound.start(0, 1);
unlock_sound.setVolume(100);
}
frame 23 {
i = 1;
while (i <= 10) {
_root.unlockscreen['lvl' + i]._x = -400;
_root.unlockscreen['lvl' + i]._y = -400;
++i;
}
i = 1;
_root.lvlNumber = 1;
_root.lvlOrder = 1;
_root.lvlOrderDone = false;
if (_root.lvlsUnlocked == 1) {
while (i <= _root.lvlsUnlocked) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlock'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 275;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 285;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlock'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 100;
}
if (_root.lvlsUnlocked == 2) {
while (i <= _root.lvlsUnlocked) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlock'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 150;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 285;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 410;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 285;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlock'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 100;
}
if (_root.lvlsUnlocked == 3) {
while (i <= _root.lvlsUnlocked) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlock'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 110;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 250;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 450;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 250;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 280;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 365;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlock'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 100;
}
if (_root.lvlsUnlocked == 4) {
while (i <= _root.lvlsUnlocked) {
_root.lvlOrderDone = true;
if (_root['lvl' + _root.lvlNumber + 'Unlock'] == true) {
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 1) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 110;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 250;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 2) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 450;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 250;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 3) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 280;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 250;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
if (_root.lvlOrderDone == true) {
if (_root.lvlOrder == 4) {
_root.unlockscreen['lvl' + _root.lvlNumber]._x = 280;
_root.unlockscreen['lvl' + _root.lvlNumber]._y = 365;
++_root.lvlOrder;
_root.lvlOrderDone = false;
}
}
}
if (_root['lvl' + _root.lvlNumber + 'Unlock'] == false) {
if (_root.lvlOrderDone == true) {
_root['lvl' + _root.lvlNumber + 'X'] = -400;
_root['lvl' + _root.lvlNumber + 'Y'] = -400;
_root.lvlOrderDone = true;
--i;
}
}
++i;
++_root.lvlNumber;
}
_root.lvlScale = 100;
}
}
frame 81 {
onEnterFrame = function () {
i = 1;
while (i <= 10) {
if (_root.unlockscreen['lvl' + i]._currentframe > 1) {
_root.unlockscreen['lvl' + i].gotoAndStop(_root.unlockscreen['lvl' + i]._currentframe - 1);
}
++i;
}
};
}
frame 95 {
onEnterFrame = function () {};
}
frame 96 {
stop();
_root.ButtonGo = true;
}
}
frame 136 {
stop();
play();
}
frame 137 {
stop();
}
movieClip 1827 {
}
movieClip 1830 {
frame 1577 {
_root.play();
}
}
button 1831 {
on (release) {
nextFrame();
}
}
frame 138 {
onEnterFrame = function () {
gotoAndPlay(5);
};
}