Combined Code
frame 1 {
stop();
stopAllSounds();
landing = new Sound(this);
landing.attachSound('landing');
coinsound = new Sound(this);
coinsound.attachSound('coinsound');
woosh = new Sound(this);
woosh.attachSound('woosh');
swishH = new Sound(this);
swishH.attachSound('swishH');
swishL = new Sound(this);
swishL.attachSound('swishL');
swishSH = new Sound(this);
swishSH.attachSound('swishSH');
swishSL = new Sound(this);
swishSL.attachSound('swishSL');
chop1 = new Sound(this);
chop1.attachSound('chop1');
chop2 = new Sound(this);
chop2.attachSound('chop2');
chop3 = new Sound(this);
chop3.attachSound('chop3');
gunshot = new Sound(this);
gunshot.attachSound('gunshot');
biff1 = new Sound(this);
biff1.attachSound('biff1');
explosion1 = new Sound(this);
explosion1.attachSound('explosion1');
gunfire = new Sound(this);
gunfire.attachSound('gunfire');
puff = new Sound(this);
puff.attachSound('puff');
hellspike = new Sound(this);
hellspike.attachSound('hellspike');
ignite = new Sound(this);
ignite.attachSound('ignite');
growl1 = new Sound(this);
growl1.attachSound('growl1');
growl2 = new Sound(this);
growl2.attachSound('growl2');
growl3 = new Sound(this);
growl3.attachSound('growl3');
reverseboom = new Sound(this);
reverseboom.attachSound('reverseboom');
rockslam1 = new Sound(this);
rockslam1.attachSound('rockslam1');
rockslam2 = new Sound(this);
rockslam2.attachSound('rockslam2');
lightning = new Sound(this);
lightning.attachSound('lightning');
lightningS = new Sound(this);
lightningS.attachSound('lightningS');
gunshotbig = new Sound(this);
gunshotbig.attachSound('gunshotbig');
guncock = new Sound(this);
guncock.attachSound('guncock');
chomp = new Sound(this);
chomp.attachSound('chomp');
smash = new Sound(this);
smash.attachSound('smash');
smashbig = new Sound(this);
smashbig.attachSound('smashbig');
Rwhirring = new Sound(this);
Rwhirring.attachSound('Rwhirring');
Rwarning = new Sound(this);
Rwarning.attachSound('Rwarning');
rubble = new Sound(this);
rubble.attachSound('rubble');
Rinitiatecountdown = new Sound(this);
Rinitiatecountdown.attachSound('Rinitiatecountdown');
Rcountdown = new Sound(this);
Rcountdown.attachSound('Rcountdown');
Rexecute = new Sound(this);
Rexecute.attachSound('Rexecute');
Ralert = new Sound(this);
Ralert.attachSound('Ralert');
gunshotbig = new Sound(this);
gunshotbig.attachSound('gunshotbig');
roar = new Sound(this);
roar.attachSound('roar');
steam = new Sound(this);
steam.attachSound('steam');
kaching = new Sound(this);
kaching.attachSound('kaching');
shing1 = new Sound(this);
shing1.attachSound('shing1');
shing2 = new Sound(this);
shing2.attachSound('shing2');
scifibeam = new Sound(this);
scifibeam.attachSound('scifibeam');
uproot = new Sound(this);
uproot.attachSound('uproot');
energywoosh = new Sound(this);
energywoosh.attachSound('energywoosh');
gunshotHUGE = new Sound(this);
gunshotHUGE.attachSound('gunshotHUGE');
camera = new Sound(this);
camera.attachSound('camera');
beam = new Sound(this);
beam.attachSound('beam');
godzilla = new Sound(this);
godzilla.attachSound('godzilla');
fire = new Sound(this);
fire.attachSound('fire');
death = new Sound(this);
death.attachSound('death');
DEVIL = new Sound(this);
DEVIL.attachSound('DEVIL');
shred = new Sound(this);
shred.attachSound('shred');
}
movieClip 56 {
frame 1 {
_visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.COMPLETED == true) {
_visible = true;
}
}
}
movieClip 82 {
}
movieClip 90 {
}
movieClip 92 {
frame 1 {
_visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.COMPLETED == true) {
_visible = true;
}
}
}
movieClip 102 {
frame 1 {
stop();
if (_root.COW) {
gotoAndStop(2);
}
}
}
movieClip 109 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
}
}
movieClip 135 {
}
movieClip 137 {
frame 1 {
if (_root.guy.nosword == true) {
_visible = false;
}
onEnterFrame = function () {
if (_root.guy.nosword == true) {
_visible = false;
} else {
_visible = true;
}
};
}
frame 1 {
if (_root.guy.nosword == 'axe') {
gotoAndStop('axe');
} else {
if (_root.guy.nosword == false) {
gotoAndStop(_root.guy.SWORDCHARGE);
}
}
onEnterFrame = function () {
if (_root.guy.nosword == 'axe') {
gotoAndStop('axe');
} else {
if (_root.guy.nosword == false) {
gotoAndStop(_root.guy.SWORDCHARGE);
}
}
};
}
frame 66 {
F = _currentframe - 1;
gotoAndPlay(F);
}
}
movieClip 139 {
}
movieClip 142 {
frame 1 {
stop();
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.COMPLETED == true && savefile.data.DIFFICULTY == 'MEDIUM') {
gotoAndStop(2);
}
}
}
movieClip 145 {
frame 1 {
_visible = false;
}
}
movieClip 152 {
}
button 153 {
on (release) {
getURL('http://www.maxgames.com/', '_blank');
}
}
button 154 {
on (release) {
getURL('http://www.Tombrien.co.uk/', '_blank');
}
}
button 155 {
on (release) {
_root.play();
}
}
movieClip 157 {
frame 1 {
stop();
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.05) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.1) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.15) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.2) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.25) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.3) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.35) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.4) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.45) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.5) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.55) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.6) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.65) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.7) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.75) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.8) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.85) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.9) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 0.95) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 1) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
if (_root.getBytesLoaded() >= _root.getBytesTotal() * 0.7) {
_parent.gotoAndStop(2);
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.getBytesLoaded() / _root.getBytesTotal() >= 1) {
_visible = true;
_height = HEIGHT;
_y = Y;
}
}
}
}
movieClip 170 {
frame 1 {
_root.shred.start(0, 1);
}
frame 1 {
_root.stop();
}
frame 170 {
_root.play();
}
}
button 171 {
on (release) {
getURL('http://www.maxgames.com/', '_blank');
}
}
frame 3 {
stop();
stopAllSounds();
R = Math.random();
WELCOMED = false;
QUALITY = 'LOW';
SLOT1 = 'NOTHING';
SLOT2 = 'NOTHING';
SLOT3 = 'NOTHING';
SLOT4 = 'NOTHING';
SLOT5 = 'NOTHING';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.MONEY != undefined) {
money = savefile.data.MONEY;
if (savefile.data.WELCOMED == true) {
WELCOMED = true;
_root.SLOT1 = savefile.data.SLOT1;
_root.SLOT2 = savefile.data.SLOT2;
_root.SLOT3 = savefile.data.SLOT3;
}
if (savefile.data.doneshoptutorial == true) {
doneshoptutorial = true;
}
}
DIFFICULTY = 'MEDIUM';
MUSICMUTE = false;
onEnterFrame = function () {
if (!_root.PAUSE) {
_root.line._alpha *= 0.5;
if (_alpha <= 10) {
_root.line.removeMovieClip();
}
if (enemycount >= enemymax - 1) {
enemycount -= 18;
}
}
};
}
movieClip 220 {
}
button 236 {
on (release) {
_parent.play();
_parent.CONTINUE = false;
_root.money = 0;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.WELCOMED = false;
savefile.data.doneshoptutorial = false;
savefile.data.MONEY = 0;
savefile.data.NOTE = false;
savefile.data.WRATH = false;
savefile.data.GLUTTONY = false;
savefile.data.SLOTH = false;
savefile.data.LUST = false;
savefile.data.GREED = false;
savefile.data.ENVY = false;
savefile.data.PRIDE = false;
_root.4-hit combobought = false;
_root.point blankbought = false;
_root.more healthbought = false;
_root.even more healthbought = false;
_root.sharp edgesbought = false;
_root.autofirebought = false;
_root.combokingbought = false;
_root.charge itbought = false;
_root.fundraiserbought = false;
_root.dev logbought = false;
savefile.data.fourhitcombo = false;
savefile.data.pointblank = false;
savefile.data.morehealth = false;
savefile.data.evenmorehealth = false;
savefile.data.sharpedges = false;
savefile.data.autofire = false;
savefile.data.comboking = false;
savefile.data.chargeit = false;
savefile.data.fundraiser = false;
savefile.data.devlog = false;
}
}
button 239 {
on (release) {
_parent.play();
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.DIFFICULTY == 'HARD') {
_root.DIFFICULTY = 'HARD';
_root.money = savefile.data.MONEY;
}
_parent.CONTINUE = true;
_root.doneshoptutorial = true;
}
}
button 240 {
on (release) {
_parent.play();
_parent.CONTINUE = false;
_root.DIFFICULTY = 'HARD';
_root.money = false;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.DIFFICULTY = 'HARD';
savefile.data.COMPLETED = true;
savefile.data.WELCOMED = false;
savefile.data.doneshoptutorial = false;
savefile.data.MONEY = 0;
savefile.data.NOTE = false;
savefile.data.WRATH = false;
savefile.data.GLUTTONY = false;
savefile.data.SLOTH = false;
savefile.data.LUST = false;
savefile.data.GREED = false;
savefile.data.ENVY = false;
savefile.data.PRIDE = false;
_root.4-hit combobought = false;
_root.point blankbought = false;
_root.more healthbought = false;
_root.even more healthbought = false;
_root.sharp edgesbought = false;
_root.autofirebought = false;
_root.combokingbought = false;
_root.charge itbought = false;
_root.fundraiserbought = false;
_root.dev logbought = false;
savefile.data.fourhitcombo = false;
savefile.data.pointblank = false;
savefile.data.morehealth = false;
savefile.data.evenmorehealth = false;
savefile.data.sharpedges = false;
savefile.data.autofire = false;
savefile.data.comboking = false;
savefile.data.chargeit = false;
savefile.data.fundraiser = false;
savefile.data.devlog = false;
}
}
movieClip 243 {
}
button 249 {
on (release) {
getURL('http://www.maxgames.com/game/legend-of-johnny.html', '_blank');
}
}
movieClip 250 {
instance of movieClip 243 {
onClipEvent (load) {
SIN = 0;
ROTATION = 45;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
SIN += 50;
_x = _x - Math.cos(ROTATION * 0.0174532925199433) * Math.sin(SIN) * 5;
_y = _y - Math.sin(ROTATION * 0.0174532925199433) * Math.sin(SIN) * 5;
_x = _x + Math.sin(SIN) * 5;
ROTATION += 45;
}
}
}
movieClip 254 {
frame 12 {
_root._y -= 5;
_root.rubble.start(0, 1);
_root.biff1.start(0, 1);
_root.lightningS.start(0, 1);
}
frame 13 {
_root._y += 10;
}
frame 14 {
_root._y -= 8;
}
frame 15 {
_root._y += 6;
}
frame 16 {
_root._y -= 4;
}
frame 17 {
_root._y += 2;
}
frame 21 {
_root.shing2.start(0, 1);
}
frame 25 {
_root.shing1.start(0, 1);
}
frame 37 {
_root.ignite.start(0, 1);
_root.fire.start(0, 99);
}
frame 43 {
stop();
}
instance of movieClip 250 {
onClipEvent (load) {
gotoAndStop(1);
if (_root.COMPLETED == true) {
gotoAndStop(3);
}
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.COMPLETED == true) {
gotoAndStop(3);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
if (_root.money == undefined) {
var urlString = _root._url;
if (urlString.indexOf('farm.maxgames.com') == -1) {
gotoAndStop(4);
} else {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 250 {
onClipEvent (load) {
gotoAndStop(3);
}
}
frame 54 {
stopAllSounds();
_root.stopAllSounds();
}
frame 55 {
if (CONTINUE) {
_root.gotoAndStop('pub');
} else {
_root.gotoAndStop('INTRO');
}
}
}
movieClip 256 {
frame 1 {
_visible = false;
var copyrightNotice = 'Copyright (c) 2006-2007 Sockpuppet Pty Ltd. All Rights Reserved. http://www.reanimator.net';
var reanimator = new flash.geom.Transform(this);
var camera = new flash.geom.Transform(this._parent);
var w = Stage.width;
var h = Stage.height;
this.onEnterFrame = function () {
this._parent.filters = this.filters;
var stageMatrix = reanimator.matrix;
camera.colorTransform = reanimator.colorTransform;
stageMatrix.invert();
stageMatrix.translate(w * 0.5, h * 0.5);
camera.matrix = stageMatrix;
with (_root.HUD) {
_x = _root.cam._x - 300 * _root.cam._xscale / 100;
_y = _root.cam._y - 170 * _root.cam._xscale / 100;
_xscale = _root.cam._xscale;
_yscale = _xscale;
}
if (_root.BOSSbar != null) {
with (_root.BOSSbar) {
_x = _root.cam._x - 300 * _root.cam._xscale / 100;
_y = _root.cam._y - 170 * _root.cam._xscale / 100;
_xscale = _root.cam._xscale;
_yscale = _xscale;
}
}
};
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
movieClip 261 {
}
movieClip 264 {
}
movieClip 279 {
frame 1 {
stop();
i = 0;
while (i < 5) {
if (_root['SLOT' + i] == 'more health' && _root['SLOT' + i] == 'even more health') {
gotoAndStop('greenBIGGER');
} else {
if (_root['SLOT' + i] == 'more health' || _root['SLOT' + i] == 'even more health') {
gotoAndStop('greenBIG');
}
}
++i;
}
onEnterFrame = function () {
if (_currentframe == 1 && _root.guy.health < _root.guy.MAXhealth) {
gotoAndStop('yellow');
}
if (_currentframe == 4 && _root.guy.health < _root.guy.MAXhealth) {
gotoAndStop('yellowBIG');
}
if (_currentframe == 7 && _root.guy.health < _root.guy.MAXhealth) {
gotoAndStop('yellowBIGGER');
}
};
}
instance of movieClip 264 {
onClipEvent (enterFrame) {
if (_root.DIFFICULTY == 'HARD') {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 102 {
onClipEvent (enterFrame) {
if (_root.DIFFICULTY == 'HARD') {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 102 {
onClipEvent (enterFrame) {
if (_root.LIVES >= 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 102 {
onClipEvent (enterFrame) {
if (_root.LIVES >= 2) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 102 {
onClipEvent (enterFrame) {
if (_root.LIVES >= 3) {
_visible = true;
} else {
_visible = false;
}
if (_root.DIFFICULTY == 'HARD') {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (_root.guy.health / _root.guy.healthMAX) * X;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _width;
}
onClipEvent (enterFrame) {
_width = X * (_root.guy.health / _root.guy.healthMAX);
}
}
instance of movieClip 264 {
onClipEvent (enterFrame) {
if (_root.MEDIUM == 'HARD') {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (_root.guy.health / _root.guy.healthMAX) * X;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _width;
}
onClipEvent (enterFrame) {
_width = X * (_root.guy.health / _root.guy.healthMAX);
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (_root.guy.health / _root.guy.healthMAX) * X;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _width;
}
onClipEvent (enterFrame) {
_width = X * (_root.guy.health / _root.guy.healthMAX);
}
}
}
movieClip 290 {
frame 1 {
stop();
onEnterFrame = function () {
if (NUMBER >= 5) {
if (_root.guy.COMBO > oldCOMBO) {
if (_root.guy.COMBO == 5) {
_root.guy.health += 20;
if (_root.guy.health > _root.guy.healthMAX) {
_root.guy.health = _root.guy.healthMAX;
}
}
gotoAndPlay(2);
}
oldCOMBO = _root.guy.COMBO;
}
};
}
}
movieClip 291 {
}
movieClip 292 {
instance of movieClip 261 {
onClipEvent (load) {
elasticness = 0.7;
quickness = 0.5;
OLDXSPEED = 0;
TARGET = -8;
TARGET2 = _y;
fallspeed = 0;
SECONDS = 0;
MONEY = _root.money;
}
onClipEvent (enterFrame) {
CASH = Math.round(_root.money);
if (MONEY != _root.money) {
SECONDS = 100;
}
if (SECONDS > 0) {
--SECONDS;
_y = _y + XSPEED;
XDISTANCE = TARGET - _y;
XSPEED = OLDXSPEED * elasticness + XDISTANCE * quickness;
ROTATION += XSPEED;
OLDXSPEED = XSPEED;
_y = CENTREY + Math.sin(ROTATION * 0.0174532925199433) * DISTANCE;
fallspeed = 0.5;
} else {
if (_y < TARGET2) {
_y = _y + fallspeed;
++fallspeed;
}
}
if (_y > TARGET2) {
_y = TARGET2;
}
if (_y == TARGET2) {
_visible = false;
} else {
_visible = true;
}
MONEY = _root.money;
}
}
instance of movieClip 290 {
onClipEvent (load) {
if (!_root.combokingequipped) {
this.swapDepths(999);
this.removeMovieClip();
}
X = _x;
_x = _x - 150;
elasticness = 0.5;
quickness = 0.7;
OLDXSPEED = 0;
NUMBER = 4;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.COMBO == 4) {
POSITION = X;
seconds = 35;
} else {
--seconds;
if (seconds <= 0) {
POSITION = X - 160;
}
}
XDISTANCE = POSITION - _x;
XSPEED = OLDXSPEED * elasticness + XDISTANCE * quickness;
_x = _x + XSPEED;
OLDXSPEED = XSPEED;
}
}
instance of movieClip 290 {
onClipEvent (load) {
if (!_root.combokingequipped) {
this.swapDepths(999);
this.removeMovieClip();
}
X = _x;
_x = _x - 150;
elasticness = 0.5;
quickness = 0.7;
OLDXSPEED = 0;
NUMBER = 2;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.COMBO == 2) {
POSITION = X;
seconds = 25;
} else {
--seconds;
if (seconds <= 0) {
POSITION = X - 160;
}
}
XDISTANCE = POSITION - _x;
XSPEED = OLDXSPEED * elasticness + XDISTANCE * quickness;
_x = _x + XSPEED;
OLDXSPEED = XSPEED;
}
}
instance of movieClip 290 {
onClipEvent (load) {
if (!_root.combokingequipped) {
this.swapDepths(999);
this.removeMovieClip();
}
X = _x;
_x = _x - 150;
elasticness = 0.5;
quickness = 0.7;
OLDXSPEED = 0;
NUMBER = 3;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.COMBO == 3) {
POSITION = X;
seconds = 30;
} else {
--seconds;
if (seconds <= 0) {
POSITION = X - 160;
}
}
XDISTANCE = POSITION - _x;
XSPEED = OLDXSPEED * elasticness + XDISTANCE * quickness;
_x = _x + XSPEED;
OLDXSPEED = XSPEED;
}
}
instance of movieClip 290 {
onClipEvent (load) {
if (!_root.combokingequipped) {
this.swapDepths(999);
this.removeMovieClip();
}
X = _x;
_x = _x - 150;
elasticness = 0.5;
quickness = 0.7;
OLDXSPEED = 0;
NUMBER = 5;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_root.guy.COMBO >= 5) {
POSITION = X;
seconds = 40;
NUMBER = _root.guy.COMBO;
} else {
--seconds;
if (seconds <= 0) {
POSITION = X - 160;
}
}
XDISTANCE = POSITION - _x;
XSPEED = OLDXSPEED * elasticness + XDISTANCE * quickness;
_x = _x + XSPEED;
OLDXSPEED = XSPEED;
}
}
instance of movieClip 291 {
onClipEvent (enterFrame) {
if (Key.isDown(78) && Key.isDown(79)) {
_root.NOLOGO = true;
}
if (_root.NOLOGO) {
_xscale = 0;
_yscale = 0;
}
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
_visible = false;
}
}
frame 5 {
stop();
}
movieClip 296 {
frame 1 {
var urlString = _root._url;
if (urlString.indexOf('farm.maxgames.com') == -1) {
_root.gotoAndStop('level 1');
} else {
stop();
this.loadMovie('http://farm.maxgames.com/johnny-intro.swf', this);
}
}
}
instance of movieClip 296 {
onClipEvent (enterFrame) {
if (_height >= 2000) {
_root.gotoAndStop('level 1');
}
}
}
button 302 {
on (press) {
_root.gotoAndStop('level 1');
}
}
frame 7 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 90;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 308 {
}
movieClip 316 {
}
movieClip 318 {
instance of movieClip 316 {
onClipEvent (load) {
_x = _x + Math.random() * 100;
}
onClipEvent (enterFrame) {
_x = _x - 0.5;
if (_x <= -400) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 318 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _xscale;
}
}
movieClip 320 {
}
instance docks of movieClip 320 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) / 2;
_y = _y - (OLDY - _root.cam._y) / 2;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
if (_x + _width / 2 > _root.barrier._x) {
_x = _root.barrier._x - _width / 2;
}
if (_y > originY) {
_y = originY;
}
}
}
}
movieClip 322 {
}
movieClip 324 {
}
movieClip 326 {
}
movieClip 327 {
}
movieClip 329 {
}
movieClip 333 {
frame 1 {
onEnterFrame = function () {
FRAME = Math.round(_parent.MAXhealth - _parent.health) + 1;
gotoAndPlay(FRAME);
};
}
}
movieClip 334 {
}
movieClip 337 {
frame 1 {
onEnterFrame = function () {
FRAME = Math.round(_parent.impact);
gotoAndPlay(FRAME);
};
}
}
movieClip 339 {
}
movieClip 345 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
}
frame 2 {
if (_root.DIFFICULTY == 'MEDIUM') {
if (_root.guy._x > _parent._x - 100 || _parent.seconds > 0 || _parent.wait > 0) {
gotoAndPlay(1);
}
} else {
if (_root.guy._x > _parent._x - 100 || _parent.onscreen == false) {
gotoAndPlay(1);
}
}
}
frame 3 {
_parent.wait = 50;
}
frame 41 {
_root.cam._y -= 10;
_root.rockslam1.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -20;
_root.guy.health -= 20;
if (_root.guy._x < _parent._parent._x + _parent._x + _x) {
_root.guy._xscale = 100;
}
if (_root.guy._x > _parent._parent._x + _parent._x + _x) {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.1;
}
}
}
frame 42 {
_root.cam._y += 18;
}
frame 43 {
_root.cam._y -= 16;
}
frame 44 {
_root.cam._y += 14;
}
frame 45 {
_root.cam._y -= 12;
}
frame 46 {
_root.cam._y += 10;
}
frame 47 {
_root.cam._y -= 8;
}
frame 48 {
_root.cam._y += 6;
}
frame 49 {
_root.cam._y -= 4;
}
frame 50 {
_root.cam._y += 2;
}
}
movieClip 347 {
}
movieClip 359 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
}
frame 2 {
if (_root.DIFFICULTY == 'MEDIUM') {
if (_root.guy._x < _parent._x + 100 || _parent.seconds > 0 || _parent.wait > 0) {
gotoAndPlay(1);
}
} else {
if (_root.guy._x < _parent._x + 100) {
gotoAndPlay(1);
}
}
}
frame 3 {
_parent.wait = 50;
}
frame 33 {
_root.cam._y -= 10;
_root.rockslam2.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_parent._parent._x -= _parent._parent.xspeed;
_parent._parent.xspeed = 0;
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
if (_root.guy._x < _parent._parent._x + _parent._x + _x) {
_root.guy._xscale = 100;
}
if (_root.guy._x > _parent._parent._x + _parent._x + _x) {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
frame 34 {
_root.cam._y += 18;
}
frame 35 {
_root.cam._y -= 16;
}
frame 36 {
_root.cam._y += 14;
}
frame 37 {
_root.cam._y -= 12;
}
frame 38 {
_root.cam._y += 10;
}
frame 39 {
_root.cam._y -= 8;
}
frame 40 {
_root.cam._y += 6;
}
frame 41 {
_root.cam._y -= 4;
}
frame 42 {
_root.cam._y += 2;
}
frame 59 {
_root.ignite.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -15;
_root.guy.health -= 10;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
}
movieClip 372 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
}
}
movieClip 390 {
}
movieClip 421 {
frame 9 {
gotoAndPlay(8);
}
}
movieClip 425 {
frame 9 {
gotoAndPlay(8);
}
}
movieClip 429 {
}
movieClip 431 {
}
movieClip 432 {
instance of movieClip 429 {
onClipEvent (load) {
_x = _x - Math.random() * 200;
}
}
instance of movieClip 431 {
onClipEvent (load) {
deltax = _root.guy._x - _parent._parent._x;
deltay = _root.guy._y - 40 - _parent._parent._y;
DISTANCE = Math.sqrt(deltax * deltax + deltay * deltay);
_width = DISTANCE;
if (_width > 400) {
_width = 400;
}
_x = _width / 2;
}
onClipEvent (enterFrame) {
_alpha = _alpha - 6.666666666666667;
}
}
frame 15 {
stop();
}
instance of movieClip 429 {
onClipEvent (load) {
_x = _x - Math.random() * 200;
}
}
instance of movieClip 431 {
onClipEvent (load) {
deltax = _root.guy._x - _parent._parent._x;
deltay = _root.guy._y - 40 - _parent._parent._y;
DISTANCE = Math.sqrt(deltax * deltax + deltay * deltay);
_width = DISTANCE;
if (_width > 400) {
_width = 400;
}
_x = _width / 2;
}
onClipEvent (enterFrame) {
_alpha = _alpha - 6.666666666666667;
}
}
frame 30 {
stop();
}
}
movieClip 433 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
i = 0;
while (i < 4) {
this['circle' + i]._xscale = 280 + Math.random() * 40;
this['circle' + i]._yscale = this['circle' + i]._xscale;
this['circle' + i]._rotation = Math.random() * 360;
this['circle' + i].ROTATION = _rotation + 90;
this['circle' + i]._x = 5 * i * Math.cos(this['circle' + i]._rotation * 0.0174532925199433);
this['circle' + i]._y = 5 * i * Math.sin(this['circle' + i]._rotation * 0.0174532925199433);
++i;
}
o = 0;
while (o < 4) {
this['line' + o]._xscale = 280 + Math.random() * 40;
this['line' + o]._yscale = this['line' + o]._xscale;
this['line' + o]._rotation = Math.random() * 360;
this['line' + o]._x = 10 * Math.cos(this['line' + o]._rotation * 0.0174532925199433);
this['line' + o]._y = 10 * Math.sin(this['line' + o]._rotation * 0.0174532925199433);
++o;
}
}
frame 1 {
if (_name == 'bullet') {
_visible = false;
}
}
instance circle1 of movieClip 421 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance line1 of movieClip 425 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance line2 of movieClip 425 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance line3 of movieClip 425 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance circle2 of movieClip 421 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance circle3 of movieClip 421 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance of movieClip 432 {
onClipEvent (load) {
deltax = _root.guy._x - _parent._x;
deltay = _root.guy._y - 40 - _parent._y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
R = Math.round(Math.random());
FRAME = R * 15 + 1;
gotoAndPlay(FRAME);
}
}
frame 16 {
this.removeMovieClip();
}
}
movieClip 453 {
frame 31 {
i = _root.leechcount;
while (i <= _root.leechcount + 5) {
duplicateMovieClip(_root.leech, 'leech' + i, i);
_root['leech' + i].R = 72 * i;
_root['leech' + i]._x = _parent._parent._x + Math.cos(_root['leech' + i]._rotation * 0.0174532925199433);
_root['leech' + i]._y = -150 + Math.sin(_root['leech' + i]._rotation * 0.0174532925199433);
++i;
}
_root.ignite.start(0, 1);
_root.puff.start(0, 1);
}
}
movieClip 485 {
frame 48 {
_root.cam._x -= 20;
_root.lightning.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 30;
if (_root.guy._x < _parent._parent._parent._x) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
frame 49 {
_root.cam._x += 35;
}
frame 50 {
_root.cam._x -= 25;
}
frame 51 {
_root.cam._x += 19;
}
frame 52 {
_root.cam._x -= 16;
}
frame 53 {
_root.cam._x += 13;
}
frame 54 {
_root.cam._x -= 9;
}
frame 55 {
_root.cam._x += 7;
}
frame 56 {
_root.cam._x -= 5;
}
frame 57 {
_root.cam._x -= 3;
}
frame 58 {
_root.cam._x += 1;
}
}
movieClip 486 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
mc.play();
} else {
mc.stop();
}
};
}
frame 2 {
if (_parent.seconds > 0 || _parent.wait > 0 || _root.guy._x > _parent._x + 200 || _root.guy._x < _parent._x - 200) {
gotoAndPlay(1);
} else {
_parent.wait = 100;
R = Math.random();
if (R > 0.5) {
gotoAndPlay('lightning');
}
}
}
frame 4 {
if (mc._currentframe < 46) {
gotoAndPlay('leeches');
} else {
gotoAndPlay(1);
}
}
frame 6 {
if (mc._currentframe < 70) {
gotoAndPlay('lightning');
}
}
}
movieClip 515 {
}
movieClip 534 {
frame 1 {
_root.ground.crab._yscale = 0;
RANDOMHIT = 0;
}
instance of movieClip 327 {
onClipEvent (load) {
FRAME = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
FRAME += _parent.xspeed;
if (FRAME >= 59) {
FRAME -= 58;
}
if (FRAME <= 0) {
FRAME += 58;
}
gotoAndPlay(FRAME);
} else {
stop();
}
}
}
instance of movieClip 327 {
onClipEvent (load) {
gotoAndPlay(30);
FRAME = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
FRAME -= _parent.xspeed;
if (FRAME >= 59) {
FRAME -= 58;
}
if (FRAME <= 0) {
FRAME += 58;
}
gotoAndPlay(FRAME);
} else {
stop();
}
}
}
instance of movieClip 334 {
onClipEvent (load) {
FRAME = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
FRAME -= _parent.xspeed;
if (FRAME >= 59) {
FRAME -= 58;
}
if (FRAME <= 0) {
FRAME += 58;
}
gotoAndPlay(FRAME);
} else {
stop();
}
}
}
instance of movieClip 334 {
onClipEvent (load) {
gotoAndPlay(30);
FRAME = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (_parent._visible == false) {
FRAME = 30;
}
FRAME += _parent.xspeed;
if (FRAME >= 59) {
FRAME -= 58;
}
if (FRAME <= 0) {
FRAME += 58;
}
gotoAndPlay(FRAME);
} else {
stop();
}
}
}
frame 2 {
if (health > 0) {
gotoAndPlay(1);
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.bosshealth > 0) {
_parent.health += 0.05;
}
}
}
instance of movieClip 333 {
onClipEvent (enterFrame) {
FRAME = _parent.MAXhealth - _parent.health + 1;
gotoAndPlay(FRAME);
}
}
frame 20 {
_root.cam._y -= 10;
_root.hellspike.start(0, 1);
}
frame 20 {
_root.cam._y -= 10;
}
instance of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy._xscale = 100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
frame 21 {
_root.cam._y += 18;
}
frame 21 {
_root.cam._y += 18;
}
frame 22 {
_root.cam._y -= 16;
}
frame 22 {
_root.cam._y -= 16;
}
frame 23 {
_root.cam._y += 14;
}
frame 23 {
_root.cam._y += 14;
}
frame 24 {
_root.cam._y -= 12;
}
frame 24 {
_root.cam._y -= 12;
}
frame 25 {
_root.cam._y += 10;
}
frame 25 {
_root.cam._y += 10;
}
frame 26 {
_root.cam._y -= 8;
}
frame 26 {
_root.cam._y -= 8;
_root.ground.crab._yscale = 100;
}
frame 27 {
_root.cam._y += 6;
}
frame 27 {
_root.cam._y += 6;
}
frame 28 {
_root.cam._y -= 4;
}
frame 28 {
_root.cam._y -= 4;
}
frame 29 {
_root.cam._y += 2;
}
frame 29 {
_root.cam._y += 2;
}
instance of movieClip 515 {
onClipEvent (enterFrame) {
FRAME = _parent.impact + _parent.RANDOMHIT * 10;
gotoAndPlay(FRAME);
}
}
instance weakspot of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.bosshealth > 0) {
_parent.health += 0.5;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.body.hitTest(this)) {
_root.guy.fallspeed -= (_root.guy.fallspeed + 10) / 5;
_root.guy.speed -= (_root.guy.speed - 10) / 3;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.body.hitTest(this)) {
_root.guy.fallspeed -= (_root.guy.fallspeed + 30) / 5;
_root.guy.speed = 1;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.body.hitTest(this)) {
_root.guy.speed = -5;
_root.guy._xscale = -100;
}
}
}
frame 31 {
if (health < MAXhealth) {
gotoAndPlay(30);
} else {
_root.ground.crab._yscale = 0;
}
}
instance of movieClip 327 {
onClipEvent (load) {
FRAME = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
FRAME += _parent.xspeed;
if (FRAME >= 59) {
FRAME -= 58;
}
if (FRAME <= 0) {
FRAME += 58;
}
gotoAndPlay(FRAME);
} else {
stop();
}
}
}
instance of movieClip 327 {
onClipEvent (load) {
gotoAndPlay(30);
FRAME = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
FRAME -= _parent.xspeed;
if (FRAME >= 59) {
FRAME -= 58;
}
if (FRAME <= 0) {
FRAME += 58;
}
gotoAndPlay(FRAME);
} else {
stop();
}
}
}
instance of movieClip 334 {
onClipEvent (load) {
FRAME = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
FRAME -= _parent.xspeed;
if (FRAME >= 59) {
FRAME -= 58;
}
if (FRAME <= 0) {
FRAME += 58;
}
gotoAndPlay(FRAME);
} else {
stop();
}
}
}
instance of movieClip 334 {
onClipEvent (load) {
gotoAndPlay(30);
FRAME = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (_parent._visible == false) {
FRAME = 30;
}
FRAME += _parent.xspeed;
if (FRAME >= 59) {
FRAME -= 58;
}
if (FRAME <= 0) {
FRAME += 58;
}
gotoAndPlay(FRAME);
} else {
stop();
}
}
}
}
instance crab of movieClip 534 {
onClipEvent (load) {
xspeed = 0;
seconds = 1;
MAXhealth = 80;
health = MAXhealth;
impact = 1;
shot = false;
onscreen = false;
SIZE = 10;
wait = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.bosshealth < 0) {
_root.bosshealth = 0;
}
if (health < MAXhealth && _root.boss convo._currentframe < 5) {
_root.boss convo.play();
_root.boss check.swapDepths(999);
_root.boss check.removeMovieClip();
_root.PAUSE = true;
}
--wait;
_root.sloth._x = _x + _root.sloth.X;
if (_root.guy._x <= _x - 800) {
_visible = false;
} else {
_visible = true;
}
if (onscreen) {
_root.beam.DAMAGE = 1;
if (impact > 1) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
impact = 3;
shot = false;
}
if (seconds < 1) {
if (health < 0) {
health = 0;
}
if (_root.guy._x < _x - 100) {
xspeed = -1;
}
if (_root.guy._x < _x - 200) {
xspeed = -2;
}
if (_root.guy._x < _x - 300) {
xspeed = -5;
}
if (_root.guy._x < _x - 400) {
xspeed = -9;
}
if (_root.guy._x > _x + 100) {
xspeed = 1;
}
if (_root.guy._x > _x + 200) {
xspeed = 2;
}
if (_root.guy._x > _x + 300) {
xspeed = 5;
}
if (_root.guy._x > _x + 400) {
xspeed = 9;
}
if (_root.guy._x > _x - 100 && _root.guy._x < _x + 100) {
xspeed = 0;
}
if (_currentframe < 3) {
_x = _x + xspeed;
}
}
if (_currentframe >= 3) {
_root.ground.crab._x = _x - _root.ground._x;
}
if (health > MAXhealth) {
health = MAXhealth;
}
if (health < 0) {
health = 0;
}
if (_x > 3000) {
_x = 3000;
}
} else {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
}
movieClip 536 {
}
movieClip 548 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
COIN();
}
frame 20 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 548 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 554 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
}
frame 13 {
gotoAndPlay(1);
}
}
movieClip 565 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
}
}
movieClip 571 {
}
movieClip 574 {
frame 1 {
onEnterFrame = function () {
FRAME = _parent._parent.impact + 1;
gotoAndPlay(FRAME);
};
}
}
movieClip 576 {
}
movieClip 580 {
frame 57 {
gotoAndPlay(20);
}
}
movieClip 661 {
frame 13 {
_root.chomp.start(0, 1);
}
frame 14 {
if (_parent.bite.hitTest(_root.guy.body)) {
gotoAndPlay('got him');
_root.guy.health -= 10;
}
}
frame 40 {
_root.guy.health -= 5;
}
frame 49 {
_root.guy.health -= 5;
}
frame 58 {
_root.guy.health -= 5;
}
}
movieClip 697 {
}
movieClip 698 {
frame 1 {
function ADD() {
++Pcount;
duplicateMovieClip(circle, 'circle' + Pcount, Pcount);
}
Pcount = 0;
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
ADD();
}
instance circle of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 4 + Math.random() * 2;
SIN = 0;
seconds = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != 'circle') {
speed *= 0.9;
xspeed = speed * Math.cos(_rotation * 0.0174532925199433);
yspeed = speed * Math.sin(_rotation * 0.0174532925199433);
++seconds;
_x = _x + xspeed;
_y = _y - yspeed;
if (seconds >= 10) {
++SIN;
VISIBLE = -Math.round(Math.sin(SIN));
_visible = VISIBLE;
}
if (seconds >= 20) {
this.removeMovieClip();
}
} else {
_visible = false;
}
}
}
}
}
movieClip 703 {
frame 36 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - _parent._height / 2;
}
_root.guy._visible = true;
++_root.bodycount;
if (_root.DIFFICULTY == 'HARD') {
duplicateMovieClip(_root.blob, 'blob' + _root.enemycount, _root.enemycount);
_root['blob' + _root.enemycount]._x = _parent._x;
_root['blob' + _root.enemycount]._y = _parent._y - 40;
_root['blob' + _root.enemycount].gotoAndPlay(15);
duplicateMovieClip(_root.blob, 'blob' + _root.enemycount + 1, _root.enemycount + 1);
_root['blob' + _root.enemycount + 1]._x = _parent._x + 20;
_root['blob' + _root.enemycount + 1]._y = _parent._y - 40;
_root['blob' + _root.enemycount + 1].gotoAndPlay(14);
duplicateMovieClip(_root.blob, 'blob' + _root.enemycount + 2, _root.enemycount + 2);
_root['blob' + _root.enemycount + 2]._x = _parent._x - 20;
_root['blob' + _root.enemycount + 2]._y = _parent._y - 40;
_root['blob' + _root.enemycount + 2].gotoAndPlay(13);
}
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
}
frame 112 {
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 704 {
frame 1 {
--seconds;
}
frame 2 {
if (health > 0) {
if (seconds < 0) {
if (_root.guy.hitTest(this)) {
seconds = 20;
gotoAndPlay('chomp');
} else {
if (_root.guy._x - _x >= 50 || _root.guy._x - _x <= -50) {
seconds = 20;
gotoAndPlay('run');
} else {
gotoAndPlay(1);
}
}
} else {
gotoAndPlay(1);
}
} else {
xspeed = -10;
gotoAndPlay('dead');
}
}
frame 3 {
xspeed = _xscale * 0.03;
}
frame 4 {
if (health > 0) {
if (_root.guy._x - _x >= 50) {
gotoAndPlay('run');
_xscale = -100;
}
if (_root.guy._x - _x <= -50) {
gotoAndPlay('run');
_xscale = 100;
}
} else {
xspeed = -10;
gotoAndPlay('dead');
}
}
frame 5 {
xspeed = 0;
}
instance bite of movieClip 145 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body) && _parent.mc._currentframe == 14) {
hit = true;
}
if (hit) {
_root.guy._visible = false;
_root.guy._x = _parent._x;
_root.guy._y = _parent._y;
_root.guy.impact = 0;
if (_parent.mc._currentframe == 96) {
_root.guy._visible = true;
_root.guy._y = _parent._y - 40;
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.speed = -_parent._xscale * 0.2;
_root.guy._xscale = _parent._xscale;
hit = false;
}
}
}
}
frame 6 {
if (health > 0) {
if (mc._currentframe == 30) {
gotoAndPlay(1);
} else {
if (mc._currentframe == 120) {
gotoAndPlay(1);
} else {
gotoAndPlay('chomp');
}
}
} else {
xspeed = -10;
gotoAndPlay('dead');
}
}
frame 7 {
xspeed *= 0.9;
}
instance bite of movieClip 145 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.guy._visible == false) {
_root.guy._visible = false;
_root.guy._x = _parent._x;
_root.guy._y = _parent._y;
if (_parent.mc._currentframe == 36) {
_root.guy._visible = true;
hit = false;
}
}
}
}
frame 8 {
gotoAndPlay('dead');
}
}
instance of movieClip 704 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 40;
impact = 0;
shot = false;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - xspeed;
if (impact > 0) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 706 {
}
movieClip 709 {
}
movieClip 720 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
_root.smashbig.start(0, 1);
COIN();
COIN();
COIN();
}
frame 20 {
stop();
}
}
instance of movieClip 720 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
if (_root.bosshealth < 0) {
_root.boss convo.play();
}
}
}
}
movieClip 726 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - 30;
}
_root.biff1.start(0, 1);
COIN();
}
frame 5 {
COIN();
}
frame 7 {
COIN();
}
frame 9 {
COIN();
}
frame 11 {
COIN();
}
frame 13 {
COIN();
}
frame 15 {
COIN();
}
frame 17 {
COIN();
}
frame 19 {
COIN();
}
frame 21 {
COIN();
}
frame 23 {
COIN();
}
frame 25 {
COIN();
}
frame 27 {
COIN();
}
frame 29 {
COIN();
}
frame 31 {
COIN();
}
frame 33 {
COIN();
}
frame 35 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 741 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
COIN();
}
frame 22 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 741 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 743 {
}
instance of movieClip 704 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 40;
impact = 0;
shot = false;
onscreen = false;
SIZE = 4;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - xspeed;
if (impact > 0) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 745 {
}
movieClip 747 {
}
movieClip 749 {
}
movieClip 752 {
}
movieClip 757 {
}
movieClip 770 {
}
movieClip 780 {
frame 9 {
_parent.speed = 3;
}
instance of movieClip 145 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && hit == false) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 15;
_root.guy.speed = -_parent._parent._xscale * 0.1;
_root.guy._xscale = _parent._parent._xscale;
hit = true;
}
}
}
}
frame 19 {
_parent.speed = 15;
}
frame 21 {
F = _currentframe - 2;
if (_parent._xscale < 0 && _parent._x <= _root.guy._x - 20) {
gotoAndPlay(F);
}
if (_parent._xscale > 0 && _parent._x >= _root.guy._x + 20) {
gotoAndPlay(F);
}
}
frame 22 {
speed = 3;
}
frame 34 {
_parent.speed *= 0.8;
}
frame 35 {
_parent.speed *= 0.8;
}
frame 36 {
_parent.speed *= 0.8;
}
frame 37 {
_parent.speed *= 0.8;
}
frame 38 {
_parent.speed *= 0.8;
}
frame 39 {
_parent.speed *= 0.8;
}
frame 40 {
_parent.speed *= 0.8;
}
frame 41 {
_parent.speed *= 0.8;
}
frame 42 {
_parent.speed = 0;
}
}
movieClip 789 {
}
movieClip 795 {
frame 1 {
_rotation = _parent.ROTATION;
if (_parent._parent._xscale == -100) {
_rotation = _rotation * -1;
_rotation = _rotation + 180;
}
}
}
movieClip 802 {
frame 1 {
deltax = _root.guy._x - _parent._x;
deltay = _root.guy._y - 40 - (_parent._y - 150);
ROTATION = Math.atan2(deltay, deltax) / 0.0174532925199433;
SPEED = 0;
}
frame 9 {
_parent.fallspeed = -20;
}
frame 13 {
if (fallspeed > 0) {
gotoAndPlay(12);
}
}
instance of movieClip 145 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && hit == false) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 15;
_root.guy.speed = -_parent._parent._xscale * 0.1;
_root.guy._xscale = _parent._parent._xscale;
hit = true;
}
}
}
}
frame 15 {
SPEED += 2;
_parent.speed = -SPEED * Math.cos(attack._rotation * 0.0174532925199433);
_parent.fallspeed = SPEED * Math.sin(attack._rotation * 0.0174532925199433);
}
frame 16 {
if (!_root.ground.hitTest(_parent._x, _parent._y, true)) {
gotoAndPlay(15);
} else {
attack._rotation = 0;
_parent.fallspeed = 0;
_parent.speed = 10;
if (_root.guy._x > _parent._x) {
_parent._xscale = -100;
} else {
_parent._xscale = 100;
}
}
}
frame 28 {
_parent.speed *= 0.8;
}
frame 29 {
_parent.speed *= 0.8;
}
frame 30 {
_parent.speed *= 0.8;
}
frame 31 {
_parent.speed *= 0.8;
}
frame 32 {
_parent.speed *= 0.8;
}
frame 33 {
_parent.speed *= 0.8;
}
frame 34 {
_parent.speed *= 0.8;
}
frame 35 {
_parent.speed *= 0.8;
}
frame 36 {
_parent.speed = 0;
}
}
movieClip 812 {
}
movieClip 816 {
}
movieClip 824 {
frame 24 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - _parent._height / 2;
}
++_root.bodycount;
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
}
frame 85 {
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 825 {
frame 1 {
speed = 0;
impact = 0;
if (_root.guy._x >= _x && _xscale > 0) {
gotoAndPlay('turn');
}
if (_root.guy._x <= _x && _xscale < 0) {
gotoAndPlay('turn');
}
}
frame 2 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact > 0) {
gotoAndPlay('hit');
} else {
if (seconds > 0) {
gotoAndPlay(1);
} else {
if (_root.guy._y > _y - 40 && _root.guy._x > _x - 300 && _root.guy._x < _x + 300) {
gotoAndPlay('jump attack');
} else {
gotoAndPlay('run');
}
}
}
}
}
frame 4 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact > 3 && tooclose < 120) {
FRAME = mc._currentframe;
gotoAndPlay('hit');
} else {
if (mc._currentframe < 50) {
gotoAndPlay('run');
} else {
_xscale = _xscale * -1;
gotoAndPlay(1);
seconds = 50;
}
}
}
}
frame 5 {
speed = 0;
}
frame 6 {
if (impact > 0) {
gotoAndPlay('hit');
} else {
if (mc._currentframe < 15) {
gotoAndPlay('turn');
} else {
_xscale = _xscale * -1;
gotoAndPlay(1);
seconds = 20;
}
}
}
frame 8 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact > 3) {
gotoAndPlay('hit');
}
if (mc._currentframe < 43) {
gotoAndPlay('jump attack');
} else {
_xscale = _xscale * -1;
gotoAndPlay(1);
seconds = 50;
}
}
}
frame 9 {
if (tooclose >= 120) {
if (_root.guy._x >= _x) {
_xscale = -100;
} else {
_xscale = 100;
}
impact = 0;
gotoAndPlay('run');
}
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
--impact;
xspeed = 0;
if (impact >= 10) {
gotoAndPlay('smash');
}
}
frame 10 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact >= 1) {
gotoAndPlay('hit');
} else {
gotoAndPlay(1);
}
}
}
frame 11 {
if (!_root.PAUSE) {
--fallspeed;
if (impact > 0) {
--impact;
}
FRAME = impact + 1;
mc.gotoAndPlay(FRAME);
}
}
frame 12 {
if (_root.ground.hitTest(_x, _y, true)) {
if (speed >= 3 || speed <= -3) {
gotoAndPlay('run');
mc.gotoAndPlay(34);
fallspeed = 0;
impact = 0;
speed *= -1;
_xscale = _xscale * -1;
} else {
fallspeed = 0;
speed = 0;
impact = 0;
gotoAndPlay(1);
}
} else {
gotoAndPlay('smash');
}
}
frame 13 {
speed = 0;
fallspeed = 0;
}
frame 14 {
gotoAndPlay('dead');
}
}
instance of movieClip 825 {
onClipEvent (load) {
health = 80;
seconds = 60;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 826 {
frame 1 {
pcount = 0;
onEnterFrame = function () {
if (_root.guy.SUPER > 0) {
++pcount;
duplicateMovieClip(circle, 'circle' + pcount, pcount);
this['circle' + pcount]._x = circle._x;
this['circle' + pcount]._y = circle._y;
this['circle' + pcount]._xscale = circle._xscale;
this['circle' + pcount]._yscale = circle._yscale;
}
};
}
instance circle of movieClip 697 {
onClipEvent (load) {
fallspeed = -1 - Math.random() * 2;
xspeed = 0.5 - Math.random() * 1;
sizespeed = 3 + Math.random() * 3;
}
onClipEvent (enterFrame) {
if (_name != 'circle') {
_visible = true;
_y = _y + fallspeed;
_x = _x + xspeed;
_xscale = _xscale - sizespeed;
_yscale = _xscale;
X = oldX - _root.guy._x;
Y = oldY - _root.guy._y;
oldX = _x;
oldY = _y;
if (_xscale <= 0) {
this.removeMovieClip();
}
} else {
_visible = false;
_x = _root.guy._x - _parent._x;
_y = _root.guy._y - 40 - _parent._y;
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
movieClip 832 {
frame 3 {
stop();
}
frame 4 {
play();
}
frame 13 {
this.removeMovieClip();
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
movieClip 836 {
frame 2 {
if (_name == 'slash') {
gotoAndPlay(1);
_visible = false;
}
}
frame 10 {
this.removeMovieClip();
}
}
movieClip 848 {
frame 1 {
if (_name != 'launch') {
_visible = true;
} else {
_visible = false;
}
}
frame 20 {
this.removeMovieClip();
}
}
movieClip 851 {
}
movieClip 865 {
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 5;
_root.guy.health -= 5;
if (_parent._parent._rotation < 90) {
_root.guy._xscale = -100;
} else {
_root.guy._xscale = 100;
}
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
frame 15 {
gotoAndPlay('loop');
}
}
movieClip 869 {
frame 1 {
++_root.bodycount;
_root.puff.start(0, 1);
}
frame 50 {
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 873 {
frame 20 {
gotoAndPlay('bwap');
}
}
movieClip 883 {
frame 21 {
stop();
this.removeMovieClip();
}
}
movieClip 888 {
frame 1 {
R = Math.random() - 0.5;
fallspeed = 0;
}
frame 2 {
if (health > 0) {
if (seconds > 0) {
gotoAndPlay(1);
}
} else {
if (_root.DIFFICULTY == 'MEDIUM') {
gotoAndPlay('death');
} else {
gotoAndPlay('inflate');
}
}
}
frame 4 {
if (health > 0) {
if (seconds < 0) {
gotoAndPlay('attack');
} else {
gotoAndPlay(1);
}
} else {
if (_root.DIFFICULTY == 'MEDIUM') {
gotoAndPlay('death');
} else {
gotoAndPlay('inflate');
}
}
}
frame 6 {
gotoAndPlay('death');
}
frame 7 {
if (!_root.PAUSE) {
_rotation = _rotation + R * 10;
_y = _y + fallspeed;
++fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('explode');
}
}
}
frame 8 {
if (_y > _root.guy._y + 300) {
gotoAndPlay('explode');
} else {
gotoAndPlay('inflate');
}
}
frame 9 {
_root.cam._x += 5;
_root.explosion1.start(0, 1);
if (this.getDepth() < 0) {
}
COIN();
}
frame 9 {
++_root.bodycount;
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
i = 100;
while (i < 105) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -5;
_root.guy.health -= 20;
if (_root.guy._x < _parent._x) {
_root.guy._xscale = 100;
}
if (_root.guy._x > _parent._x) {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.1;
}
}
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 10 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
frame 10 {
_root.cam._x -= 10;
}
frame 11 {
_root.cam._x += 8;
}
frame 12 {
_root.cam._x -= 6;
}
frame 13 {
_root.cam._x += 4;
}
frame 14 {
_root.cam._x -= 2;
}
frame 15 {
_root.cam._x += 1;
}
frame 47 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 901 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
COIN();
}
frame 20 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 901 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 908 {
}
movieClip 914 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
COIN();
}
frame 20 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 914 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 925 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
COIN();
}
frame 20 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 925 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 928 {
frame 1 {
stop();
seconds = 0;
elasticness = 0.8;
quickness = 0.03;
xspeed = 15 * Math.cos(R * 0.0174532925199433);
yspeed = 15 * Math.sin(R * 0.0174532925199433);
shotcount = 0;
hit = false;
R = 0;
onEnterFrame = function () {
if (!_root.PAUSE) {
if (!hit) {
if (_root.guy.body.hitTest(this.circle)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.speed = -_root.guy._xscale / 15;
_root.guy.health -= 5;
gotoAndPlay(2);
hit = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay(2);
hit = true;
}
deltax = _root.guy._x - _x;
deltay = _root.guy._y - _y;
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
if (_x <= _root.guy._x) {
if (xspeed <= 15) {
xspeed += 0.75;
}
} else {
if (xspeed >= -15) {
xspeed -= 0.75;
}
}
if (_y <= _root.guy._y - 40) {
if (yspeed <= 15) {
yspeed += 0.75;
}
} else {
if (yspeed >= -15) {
yspeed -= 0.75;
}
}
_x = _x + xspeed;
_y = _y + yspeed;
X = _x - oldx;
Y = _y - oldy;
oldy = _y;
oldx = _x;
}
++shotcount;
if (!hit) {
duplicateMovieClip(circle, 'circle' + shotcount, shotcount);
}
this.createEmptyMovieClip('line', -1);
i = shotcount;
while (i >= shotcount - 10) {
ALPHA = 100;
COLOUR = 0;
THICKNESS = 10 - (shotcount - i);
if (i <= shotcount - 10 || i <= 0) {
ALPHA = 0;
}
line.lineStyle(THICKNESS, COLOUR, ALPHA);
line.lineTo(this['circle' + i]._x, this['circle' + i]._y);
--i;
}
}
};
}
instance circle of movieClip 697 {
onClipEvent (load) {
seconds = 0;
_visible = false;
}
onClipEvent (enterFrame) {
deltax = _root.enemy._x - _parent._x;
deltay = _root.enemy._y - _parent._y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433 - 180 - 45;
if (!_parent.hit) {
if (_name != 'circle') {
++seconds;
if (seconds >= 10) {
this.removeMovieClip();
}
_visible = false;
_x = _x - _parent.X;
_y = _y - _parent.Y;
}
}
}
}
frame 2 {
_root.biff1.start(0, 1);
}
frame 20 {
this.removeMovieClip();
}
}
movieClip 931 {
}
movieClip 932 {
frame 1 {
_visible = false;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_x <= _parent.boat end._x) {
if (this.hitTest(_root.guy._x, _root.boat._y, true)) {
_x = _x + 2;
_root.boat._x += 2;
if (this.hitTest(_root.guy)) {
_root.guy._x += 2;
}
}
}
}
}
}
instance barrier2 of movieClip 145 {
onClipEvent (load) {
H = _height;
_height = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._x > _x + _width / 2 + _parent._x + 200) {
_height = H;
}
}
}
}
movieClip 937 {
}
movieClip 938 {
frame 1 {
stop();
hit = false;
seconds = 30 + Math.random() * 10;
onEnterFrame = function () {
if (!_root.PAUSE) {
if (!hit) {
if (_name != 'coin') {
--seconds;
}
if (seconds < 0) {
gotoAndPlay('zoom');
hit = true;
}
if (_root.guy.body.hitTest(this)) {
play();
hit = true;
}
}
}
};
}
frame 2 {
_root.coinsound.start(0, 1);
}
frame 2 {
++_root.money;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'fundraiser') {
_root.money += 0.2;
}
++i;
}
}
frame 10 {
this.swapDepths(999);
this.removeMovieClip();
}
frame 11 {
X = _x - _root.guy._x;
Y = _y - (_root.guy._y - 40);
DISTANCE = Math.sqrt(X * X + Y * Y);
swish._height = DISTANCE;
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433 + 90;
}
frame 12 {
_x = _root.guy._x;
_y = _root.guy._y - 40;
gotoAndPlay(2);
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
movieClip 974 {
frame 1 {
_visible = false;
stop();
}
frame 2 {
_visible = true;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= _parent.DAMAGE * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root['enemy' + i]._x;
_root['slash' + _root.slashcount]._y = _root['enemy' + i]._y - 40;
_root['slash' + _root.slashcount]._rotation = _root.guy.R;
}
++i;
}
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
movieClip 981 {
frame 1 {
stop();
onMouseDown = function () {
if (!_root.PAUSE) {
if (Math.round(_root.shotcount / 2) != _root.shotcount / 2) {
play();
}
}
};
}
}
movieClip 988 {
frame 1 {
stop();
onMouseDown = function () {
if (!_root.PAUSE) {
if (Math.round(_root.shotcount / 2) == _root.shotcount / 2) {
play();
}
}
};
}
}
movieClip 1009 {
frame 1 {
FRAME = Math.round(_parent._parent.R) + 180;
gotoAndPlay(FRAME);
}
}
movieClip 1010 {
frame 2 {
if (_parent.mousedist >= 100) {
gotoAndPlay('aim');
} else {
gotoAndPlay(1);
}
}
instance aim of movieClip 1009 {
onClipEvent (load) {
FRAME = Math.round(_parent._parent.R) + 180;
gotoAndPlay(FRAME);
_xscale = _root.guy._xscale;
}
onClipEvent (enterFrame) {
FRAME = Math.round(_parent._parent.R) + 180;
gotoAndPlay(FRAME);
_xscale = _root.guy._xscale;
}
}
frame 4 {
if (_parent.mousedist >= 100) {
gotoAndPlay('aim');
} else {
gotoAndPlay(1);
}
}
}
movieClip 1047 {
}
movieClip 1205 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
_root.swishSH.start(0, 1);
}
frame 3 {
_root.guy.speed = 0;
_root.guy.fallspeed = -3;
}
frame 5 {
_root.cam._x -= 3 * _root._xscale / 100;
_root.cam._y -= 2;
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_root.guy.mousedist <= 100) {
_parent.gotoAndPlay('melee 2');
}
}
}
frame 6 {
_root.cam._x += 5 * _root._xscale / 100;
_root.cam._y += 3;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop2.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed = -3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = -20;
}
++i;
}
}
}
frame 21 {
_root.swishSL.start(0, 1);
}
frame 24 {
_root.guy.speed = 0;
_root.guy.fallspeed = -5;
}
frame 25 {
_root.cam._x -= 3 * _root._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop3.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed = -3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 0;
}
++i;
}
}
}
frame 26 {
_root.cam._x -= 5 * _root._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_root.guy.mousedist <= 100) {
_parent.gotoAndPlay('melee 3');
}
}
}
frame 41 {
_root.swishL.start(0, 1);
}
frame 43 {
_root.guy.speed = 0;
_root.guy.fallspeed = -3;
}
frame 44 {
_root.cam._x -= 3 * _root._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop1.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed = -3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = -10;
}
++i;
}
}
}
frame 45 {
_root.cam._x -= 5 * _root._xscale / 100;
_root.cam._y -= 5;
}
frame 61 {
_root.cam._x -= 5 * _root._xscale / 100;
}
frame 61 {
_root.guy.fallspeed = -5;
_root.guy.speed = -3 * _root.guy._xscale / 100;
}
frame 62 {
_root.cam._x -= 3 * _root._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 18 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed = -3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = -10;
}
++i;
}
}
}
frame 63 {
_root.cam._x -= 5 * _root._xscale / 100;
_root.cam._y -= 5;
}
frame 79 {
_root.cam._x -= 5 * _root._xscale / 100;
}
frame 79 {
_root.guy.speed = 0;
_root.guy.fallspeed = -3;
}
frame 80 {
_root.cam._x -= 3 * _root._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed = -3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = -10;
}
++i;
}
}
}
frame 81 {
_root.cam._x -= 5 * _root._xscale / 100;
_root.cam._y -= 5;
}
}
movieClip 1214 {
frame 1 {
_root.guy.fallspeed = 0;
_root.guy.speed = 0;
}
frame 2 {
_root.guy.fallspeed = 0;
}
frame 3 {
_root.guy.fallspeed = 0;
}
frame 4 {
_root.guy.fallspeed = 0;
}
frame 5 {
_root.guy.fallspeed = 0;
_root.guy.speed = 0;
}
}
movieClip 1261 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
};
}
frame 25 {
gotoAndPlay(24);
}
}
movieClip 1266 {
}
movieClip 1267 {
frame 2 {
onEnterFrame = function () {
if (_currentframe <= 19) {
if (!Key.isDown(1) && _parent.SC > 1) {
if (_root.guy.nosword != true) {
gotoAndPlay('melee');
}
if (_parent.SC >= 20 && _parent.SC <= 30) {
mc.gotoAndPlay('super charge');
} else {
mc.gotoAndPlay('failure charge');
}
_root.guy.SWORDCHARGE = 1;
}
}
};
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_root.guy.nosword != true) {
if (_root.guy.mousedist <= 100) {
_parent.gotoAndPlay('melee');
}
}
}
}
frame 4 {
if (_root.guy.fallspeed >= 0) {
if (_root.ground.hitTest(_root.guy._x + 25 * _root.guy._xscale / 100, _root.guy._y - 30, true)) {
if (!_root.ground.hitTest(_root.guy._x + 25 * _root.guy._xscale / 100, _root.guy._y - 50, true)) {
gotoAndPlay('climb');
}
}
if (_root.ground.hitTest(_parent._x - 16, _parent._y - 10, true)) {
gotoAndPlay('wall slide');
}
if (_root.ground.hitTest(_parent._x + 16, _parent._y - 10, true)) {
gotoAndPlay('wall slide');
}
}
deltax = _root._xmouse - _parent._x;
deltay = _root._ymouse - (_parent._y - 40);
mousedist = Math.sqrt(deltax * deltax + deltay * deltay);
if (mousedist >= 100) {
if (!Key.isDown(1)) {
gotoAndPlay('aim');
}
}
}
frame 5 {
if (_parent.fallspeed <= 1) {
gotoAndPlay(4);
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.fallspeed >= 0) {
if (_root.ground.hitTest(_root.guy._x + 25 * _root.guy._xscale / 100, _root.guy._y - 30, true)) {
if (!_root.ground.hitTest(_root.guy._x + 25 * _root.guy._xscale / 100, _root.guy._y - 50, true)) {
_parent.gotoAndPlay('climb');
}
}
}
}
}
frame 17 {
if (!_root.ground.hitTest(_root.guy._x, _root.guy._y + 5, true)) {
gotoAndPlay(16);
}
}
frame 18 {
if (_root.guy.fallspeed >= 0) {
if (_root.ground.hitTest(_root.guy._x + 25 * _root.guy._xscale / 100, _root.guy._y - 30, true)) {
if (!_root.ground.hitTest(_root.guy._x + 25 * _root.guy._xscale / 100, _root.guy._y - 50, true)) {
gotoAndPlay('climb');
}
}
if (_root.ground.hitTest(_parent._x - 16, _parent._y - 10, true)) {
gotoAndPlay('wall slide');
}
if (_root.ground.hitTest(_parent._x + 16, _parent._y - 10, true)) {
gotoAndPlay('wall slide');
}
}
}
instance aim of movieClip 1009 {
onClipEvent (enterFrame) {
FRAME = Math.round(_parent._parent.R) + 180;
gotoAndPlay(FRAME);
}
}
frame 19 {
deltax = _root._xmouse - _parent._x;
deltay = _root._ymouse - (_parent._y - 40);
mousedist = Math.sqrt(deltax * deltax + deltay * deltay);
if (mousedist >= 100) {
gotoAndPlay('aim');
} else {
gotoAndPlay(3);
}
}
frame 20 {
if (mousedist <= 100) {
if (_root.ground.hitTest(_parent._x, _parent._y - 80, true)) {
X = _root.guy._x;
gotoAndPlay('cieling hang');
}
}
}
frame 21 {
gotoAndPlay('melee');
if (mc._currentframe >= 18 && mc._currentframe <= 20) {
gotoAndPlay(3);
}
if (mc._currentframe >= 38 && mc._currentframe <= 40) {
gotoAndPlay(3);
}
if (mc._currentframe >= 59 && mc._currentframe <= 60) {
gotoAndPlay(3);
}
}
frame 22 {
if (!_root.ground.hitTest(_root.guy._x + 25 * _root.guy._xscale / 100, _root.guy._y - 50, true)) {
++_root.guy._y;
}
}
frame 23 {
if (mc._currentframe <= 5) {
gotoAndPlay('climb');
} else {
gotoAndPlay(1);
_parent.fallspeed = -20;
_parent.speed = 5 * _root.guy._xscale / 100;
}
}
frame 24 {
_parent.fallspeed = 2;
}
instance aim of movieClip 1009 {
onClipEvent (enterFrame) {
FRAME = Math.round(_parent._parent.R) + 180;
gotoAndPlay(FRAME);
}
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (!_root.guy.nosword) {
if (_root.guy.mousedist <= 100) {
_parent.X = _root.guy._x;
_parent.gotoAndPlay('wall hang');
}
}
}
}
frame 25 {
if (_root.guy.fallspeed > 0) {
if (_root.ground.hitTest(_parent._x - 16, _parent._y - 40, true)) {
gotoAndPlay('wall slide');
_root.guy._xscale = -100;
} else {
if (_root.ground.hitTest(_parent._x + 16, _parent._y - 40, true)) {
gotoAndPlay('wall slide');
_root.guy._xscale = 100;
} else {
gotoAndPlay(4);
}
}
} else {
gotoAndPlay(4);
}
}
frame 26 {
_parent.fallspeed = 0;
_parent.speed = 0;
_root.guy._x = X;
while (_root.ground.hitTest(_root.guy._x, _root.guy._y - 82, true)) {
++_root.guy._y;
}
while (!_root.ground.hitTest(_root.guy._x, _root.guy._y - 84, true)) {
--_root.guy._y;
}
}
instance of movieClip 988 {
onClipEvent (enterFrame) {
_rotation = _root.guy.R;
if (_root.guy._xscale == -100) {
_rotation = _rotation * -1;
_rotation = _rotation + 180;
}
}
onClipEvent (mouseDown) {
gotoAndPlay(2);
}
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_root.guy.mousedist <= 100) {
_root.guy._y += 5;
_parent.gotoAndPlay('melee');
}
}
}
frame 27 {
gotoAndPlay('cieling hang');
}
frame 28 {
_parent.fallspeed = 0;
_parent.speed = 0;
_root.guy._x = X;
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_root.guy.mousedist <= 100) {
_root.guy._x += _xscale / 10;
_parent.gotoAndPlay('melee');
}
}
}
frame 29 {
if (_root.ground.hitTest(_root.guy._x - 30, _parent._y - 40, true) && Key.isDown(39)) {
gotoAndPlay(4);
}
if (_root.ground.hitTest(_root.guy._x - 30, _parent._y - 40, true) && Key.isDown(_root.RIGHT)) {
gotoAndPlay(4);
}
if (_root.ground.hitTest(_root.guy._x + 30, _parent._y - 40, true) && Key.isDown(37)) {
gotoAndPlay(4);
}
if (_root.ground.hitTest(_root.guy._x + 30, _parent._y - 40, true) && Key.isDown(_root.LEFT)) {
gotoAndPlay(4);
}
if (_root.ground.hitTest(_root.guy._x - 30, _parent._y - 40, true)) {
_root.guy._xscale = -100;
gotoAndPlay('wall hang');
}
if (_root.ground.hitTest(_root.guy._x + 30, _parent._y - 40, true)) {
_root.guy._xscale = 100;
gotoAndPlay('wall hang');
}
}
}
movieClip 1304 {
frame 1 {
_root.guy.speed = -10 * _root.guy._xscale / 100;
_root.guy.fallspeed = -5;
}
frame 4 {
_root.cam._x -= 15 * _root.guy._xscale / 100;
_root.swishH.start(0, 1);
}
frame 5 {
_root.guy._x += 20 * _root.guy._xscale / 100;
_root.guy.speed = 20 * _root.guy._xscale / 100;
_root.guy.fallspeed = 20;
d;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body) && _root['enemy' + i].impact == 0) {
_root.chop1.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 12;
_root['enemy' + i].health -= 12 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE <= 4) {
_root['enemy' + i]._xscale = _root.guy._xscale;
_root['enemy' + i].speed = -20;
}
if (_root.ground.hitTest(_root['enemy' + i]._x, _root['enemy' + i]._y, true)) {
_root['enemy' + i].fallspeed = 5;
} else {
_root['enemy' + i].fallspeed = -5;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 20;
}
++i;
}
}
}
frame 7 {
if (_root.guy.fallspeed >= 1) {
gotoAndPlay(6);
}
}
}
movieClip 1317 {
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
}
movieClip 1348 {
frame 1 {
_root.swishSH.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop1.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 5 {
_root.cam._y -= 3;
}
frame 6 {
_root.cam._y += 5;
}
}
movieClip 1380 {
frame 1 {
_root.swishL.start(0, 1);
}
frame 5 {
_parent.speed = 3 * _root.guy._xscale / 100;
}
frame 6 {
_root.cam._y -= 2;
_root.cam._x -= 3 * _root.guy._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop2.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = -70;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 7 {
_root.cam._y += 3;
_root.cam._x += 5 * _root.guy._xscale / 100;
}
}
movieClip 1411 {
frame 1 {
_root.swishSL.start(0, 1);
}
frame 5 {
_parent.speed = 5 * _parent._xscale / 100;
}
frame 6 {
_root.cam._y -= 1;
_root.cam._x -= 4 * _root.guy._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop3.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = -20;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 7 {
_root.cam._y += 2;
_root.cam._x += 6 * _root.guy._xscale / 100;
}
}
movieClip 1432 {
frame 1 {
_root.swishH.start(0, 1);
}
frame 2 {
_root.guy.speed = 10 * _root.guy._xscale / 100;
_root.guy.fallspeed = -4;
}
frame 6 {
_root.cam._y -= 1;
_root.cam._x -= 4 * _root.guy._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop2.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = -20;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 7 {
_root.cam._y += 2;
_root.cam._x += 6 * _root.guy._xscale / 100;
}
}
movieClip 1438 {
frame 1 {
_root.guy.speed = -5 * _parent._xscale / 100;
_root.deflect.start(0, 1);
}
}
movieClip 1470 {
}
movieClip 1513 {
frame 5 {
_root.cam._x -= 10 * _root.guy._xscale / 100;
}
frame 5 {
_root.guy.speed = 40 * _root.guy._xscale / 100;
_root.swishSL.start(0, 1);
_root.swishH.start(0, 1);
}
instance of movieClip 1470 {
onClipEvent (enterFrame) {
_x = _x - _root.guy.speed * _root.guy._xscale / 100;
_y = _y - _root.guy.fallspeed;
}
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop2.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 12;
_root['enemy' + i].health -= 12 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 4) {
_root['enemy' + i]._xscale = _root.guy._xscale;
_root['enemy' + i].speed = -20;
_root['enemy' + i].fallspeed -= 5;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 0;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 7 {
_root.cam._x += 20 * _root.guy._xscale / 100;
}
frame 10 {
_root.guy.speed = 5 * _root.guy._xscale / 100;
}
}
movieClip 1530 {
frame 1 {
if (_root.slashcount >= _root.slashmax) {
_root.slashcount = 70;
}
duplicateMovieClip(_root.launch, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x;
_root['slash' + _root.slashcount]._y = _root.guy._y;
_root['slash' + _root.slashcount]._xscale = _root.guy._xscale;
_root.woosh.start(0, 1);
_root.swishH.start(0, 1);
}
frame 4 {
_root.cam._x -= 2 * _root._xscale / 100;
_root.cam._y -= 5;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root.chop1.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 12;
_root['enemy' + i].health -= 12 * _root.melee;
_root['enemy' + i].speed = 0;
if (_root['enemy' + i].SIZE < 4) {
_root['enemy' + i].fallspeed = -15;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = -70;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 5 {
_root.cam._y += 10;
}
}
movieClip 1566 {
frame 1 {
_root.guy.fallspeed = 15;
_root.swishL.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body) && _root['enemy' + i].impact == 0) {
_root.chop3.start(0, 1);
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 12;
_root['enemy' + i].health -= 12 * _root.melee;
_root['enemy' + i].fallspeed = 20;
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y;
_root['slash' + _root.slashcount]._rotation = 90;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 7 {
if (!_root.ground.hitTest(_parent._x, _parent._y + 1, true)) {
gotoAndPlay(6);
} else {
_parent.speed = 0;
}
}
frame 8 {
_root.landing.start(0, 1);
}
}
movieClip 1572 {
frame 2 {
if (!_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
gotoAndPlay(1);
}
}
frame 3 {
_root.landing.start(0, 1);
}
}
movieClip 1591 {
frame 16 {
if (!_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
gotoAndPlay(15);
}
}
frame 17 {
_root.landing.start(0, 1);
}
}
movieClip 1596 {
}
movieClip 1598 {
frame 1 {
circlecount = 0;
onEnterFrame = function () {
++circlecount;
duplicateMovieClip('circle', 'circle' + circlecount, circlecount);
};
}
instance circle of movieClip 697 {
onClipEvent (load) {
speed = -5 - Math.random() * 3;
SIZE = 5 + Math.random() * 6;
_xscale = 200 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (_name != 'circle') {
_x = _x + speed;
_y = _y + SIZE / 10;
_xscale = _xscale - SIZE;
_yscale = _xscale;
if (_xscale < 0) {
this.removeMovieClip();
}
}
}
}
}
movieClip 1602 {
frame 1 {
onEnterFrame = function () {
FRAME = _root.guy.impact + 1;
gotoAndPlay(FRAME);
};
}
}
movieClip 1607 {
instance aim of movieClip 1009 {
onClipEvent (load) {
FRAME = Math.round(_parent._parent.R) + 180;
gotoAndPlay(FRAME);
_xscale = _root.guy._xscale;
}
onClipEvent (enterFrame) {
FRAME = Math.round(_parent._parent.R) + 180;
gotoAndPlay(FRAME);
_xscale = _root.guy._xscale;
}
}
}
movieClip 1614 {
frame 9 {
gotoAndPlay(8);
}
}
movieClip 1640 {
frame 1 {
_root.guy.speed = 5 * _root.guy._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 18 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 2 {
_root.cam._y -= 12;
_root.cam._x -= 6;
}
frame 3 {
_root.cam._y += 10;
_root.cam._x += 5;
}
frame 4 {
_root.cam._y -= 8;
_root.cam._x -= 4;
}
frame 5 {
_root.cam._y += 6;
_root.cam._x += 2;
}
frame 6 {
_root.cam._y -= 4;
_root.cam._x -= 1;
}
frame 7 {
_root.cam._y += 2;
}
}
movieClip 1659 {
instance of movieClip 145 {
onClipEvent (load) {
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
if (_root.combokingequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root['enemy' + i].health -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
if (_root['enemy' + i].fallspeed != 0) {
_root['enemy' + i].fallspeed -= 3;
}
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
if (this.hitTest(_root['enemy' + i].weakspot)) {
if (_root.combonerequipped) {
if (_root.guy.COMBOchain > 0) {
_root.guy.COMBO = _root.guy.oldCOMBO + 1;
}
_root.guy.COMBOchain = 30;
}
_root['enemy' + i].impact = 8;
_root.bosshealth -= 8 * _root.melee;
_root['enemy' + i].RANDOMHIT = Math.round(Math.random() * 2);
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x + _x * _root.guy._xscale / 100;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = 45;
}
++i;
}
}
}
frame 2 {
_root.cam._y -= 3;
}
frame 3 {
_root.cam._y += 5;
}
}
movieClip 1704 {
frame 1 {
if (!_root.ground.hitTest(_root.guy._x, _root.guy._y + 10, true)) {
gotoAndPlay('blast');
}
}
frame 32 {
if (_root.NODEATH) {
gotoAndPlay(30);
}
}
frame 33 {
--_root.LIVES;
_root.cam._y -= 10;
_root.death.start(0, 1);
}
frame 34 {
_root.cam._y += 20;
}
frame 35 {
_root.cam._y -= 18;
}
frame 36 {
_root.cam._y += 16;
}
frame 37 {
_root.cam._y -= 14;
}
frame 38 {
_root.cam._y += 12;
}
frame 39 {
_root.cam._y -= 10;
}
frame 40 {
_root.cam._y += 8;
}
frame 41 {
_root.cam._y -= 6;
}
frame 42 {
_root.cam._y += 4;
}
frame 43 {
_root.cam._y -= 2;
}
frame 45 {
if (_root.LIVES <= 0) {
gotoAndPlay('DEAD');
}
_root.guy._x = _root.guy.continueX;
_root.guy._y = _root.guy.continueY;
}
frame 72 {
_root.guy.health = _root.guy.healthMAX;
}
frame 95 {
if (_root.RESPAWN) {
FRAME = _root._currentframe - 1;
_root.gotoAndPlay(FRAME);
} else {
_root.gotoAndStop('PUB');
}
}
}
movieClip 1706 {
}
movieClip 1707 {
frame 1 {
if (!_root.charge itequipped) {
SWORDCHARGE = 1;
}
if (_root.slope.hitTest(_x, _y, true)) {
gotoAndPlay('slide');
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
gotoAndPlay('jump');
}
if (SWORDCHARGE > 10) {
gotoAndPlay('charge');
}
if (Key.isDown(_root.RIGHT) || Key.isDown(39)) {
gotoAndPlay('run');
Downtap = 0;
DoubleTapRight += 6;
}
if (Key.isDown(_root.LEFT) || Key.isDown(37)) {
gotoAndPlay('run');
Downtap = 0;
DoubleTapLeft += 6;
}
if (DoubleTapRight >= 1) {
--DoubleTapRight;
}
if (DoubleTapLeft >= 1) {
--DoubleTapLeft;
}
if (Downtap >= 1) {
--Downtap;
}
if (DoubleTapRight >= 7 || DoubleTapLeft >= 7) {
gotoAndPlay('stinger');
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('jump');
fallspeed = -20;
_root.woosh.start(0, 1);
}
if (Key.isDown(85) && Key.isDown(70) && Key.isDown(79)) {
gotoAndPlay('UFO');
}
if (Key.isDown(16) && Key.isDown(51)) {
_root.money = 999;
}
if (Key.isDown(16) && Key.isDown(52)) {
_root.money = 999;
}
if (Key.isDown(65) && Key.isDown(88) && Key.isDown(69)) {
_root.guy.nosword = 'axe';
_root.melee = 100;
}
if (Key.isDown(67) && Key.isDown(79) && Key.isDown(87)) {
_root.COW = true;
}
speed *= 0.5;
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_root.guy.nosword != true) {
if (_parent.mousedist <= 100) {
_parent.gotoAndPlay('melee 1');
}
}
}
}
frame 2 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
gotoAndPlay(1);
}
}
}
frame 3 {
if (!_root.charge itequipped) {
SWORDCHARGE = 1;
}
if (!_root.ground.hitTest(_x, _y + 10, true)) {
gotoAndPlay('jump');
}
if (SWORDCHARGE > 10) {
gotoAndPlay('charge');
}
if (Key.isDown(_root.RIGHT) || Key.isDown(39)) {
_xscale = 100;
RIGHTDOWN = true;
if (speed <= 10) {
++speed;
}
if (speed < 0) {
speed = 0;
}
}
if (Key.isDown(_root.LEFT) || Key.isDown(37)) {
_xscale = -100;
LEFTDOWN = true;
if (speed >= -10) {
--speed;
}
if (speed > 0) {
speed = 0;
}
}
if (Key.isDown(65) && Key.isDown(88) && Key.isDown(69)) {
_root.guy.nosword = 'axe';
_root.melee = 100;
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('jump');
fallspeed = -20;
_root.woosh.start(0, 1);
}
}
frame 4 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (Key.isDown(_root.RIGHT) || Key.isDown(_root.LEFT) || Key.isDown(39) || Key.isDown(37)) {
gotoAndPlay('run');
} else {
gotoAndPlay(1);
}
}
}
}
frame 5 {
if (health <= 0) {
gotoAndPlay('dead');
}
if (!_root.charge itequipped) {
SWORDCHARGE = 1;
}
SC = SWORDCHARGE;
if (DoubleTapRight >= 7) {
gotoAndPlay('air stinger');
_xscale = 100;
seconds = 0;
}
if (DoubleTapLeft >= 7) {
gotoAndPlay('air stinger');
_xscale = -100;
seconds = 0;
}
if (DoubleTapRight >= 0) {
--DoubleTapRight;
}
if (DoubleTapLeft >= 0) {
--DoubleTapLeft;
}
if (Key.isDown(_root.RIGHT) || Key.isDown(39)) {
if (!RIGHTDOWN) {
DoubleTapRight += 7;
RIGHTDOWN = true;
}
} else {
RIGHTDOWN = false;
}
if (Key.isDown(_root.LEFT) || Key.isDown(37)) {
if (!LEFTDOWN) {
DoubleTapLeft += 7;
LEFTDOWN = true;
}
} else {
LEFTDOWN = false;
}
if (Key.isDown(_root.RIGHT) || Key.isDown(39)) {
_xscale = 100;
mc.aim._xscale = _xscale;
if (speed <= 10) {
speed += 0.8;
}
} else {
if (Key.isDown(_root.LEFT) || Key.isDown(37)) {
_xscale = -100;
mc.aim._xscale = _xscale;
if (speed >= -10) {
speed -= 0.8;
}
}
}
if (_root.ground.hitTest(_x + _xscale / 5, _y - 15, true) && fallspeed >= 1) {
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('wall jump');
_xscale = _xscale * -1;
lastwalljump = 20;
}
}
if (_root.guy.nosword != true) {
if (Key.isDown(_root.DOWN) || Key.isDown(40)) {
if (!DOWNDOWN) {
if (fallspeed > -5) {
gotoAndPlay('breakdown');
}
DOWNDOWN = true;
}
} else {
DOWNDOWN = false;
}
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
if (fallspeed < 0 && lastwalljump == 0) {
fallspeed -= 0.6;
}
}
}
frame 6 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (_root.slope.hitTest(_x, _y, true)) {
gotoAndPlay('slide');
} else {
if (_root.ground.hitTest(_x, _y, true)) {
DoubleTapLeft = 0;
DoubleTapRight = 0;
gotoAndPlay(1);
_root.landing.start(0, 1);
fallspeed = 0;
} else {
gotoAndPlay('jump');
}
}
}
}
}
frame 7 {
if (health <= 0) {
gotoAndPlay('dead');
}
DoubleTapRight = 0;
DoubleTapLeft = 0;
++seconds;
if (seconds >= 12 && mc._currentframe <= 6) {
_root.guy.DoubleTapLeft = 0;
_root.guy.DoubleTapRight = 0;
fallspeed = 10;
speed *= 0.2;
gotoAndPlay('jump');
}
}
frame 8 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
speed = 0;
}
if (mc._currentframe <= 20) {
gotoAndPlay('air stinger');
} else {
gotoAndPlay(1);
}
}
}
}
frame 9 {
fallspeed = 0;
speed = 0;
}
frame 10 {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe >= 6) {
fallspeed = -20;
speed = 10 * _xscale / 100;
gotoAndPlay('jump');
mc.gotoAndPlay(3);
} else {
gotoAndPlay('wall jump');
}
}
}
frame 11 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (!_root.charge itequipped) {
SWORDCHARGE = 1;
}
speed *= 0.85;
if (mc._currentframe >= 12) {
if (Key.isDown(_root.RIGHT) || Key.isDown(_root.LEFT) || Key.isDown(39) || Key.isDown(37)) {
gotoAndPlay('run');
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('jump');
fallspeed = -20;
_root.woosh.start(0, 1);
}
} else {
if (Key.isDown(_root.UP) || Key.isDown(38)) {
if (mc._currentframe >= 5) {
gotoAndPlay('launch');
fallspeed = -20;
_root.woosh.start(0, 1);
}
}
}
}
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_parent.mc._currentframe >= 5) {
if (_parent.mousedist <= 100) {
_parent.gotoAndPlay('melee 2');
}
}
}
}
frame 12 {
if (impact > 0) {
if (impact >= 12) {
if (impact == 100) {
gotoAndPlay('deflect');
} else {
gotoAndPlay('smash');
}
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe <= 21) {
gotoAndPlay('melee 1');
} else {
gotoAndPlay(1);
}
}
}
frame 13 {
if (!_root.charge itequipped) {
SWORDCHARGE = 1;
}
speed *= 0.85;
if (mc._currentframe >= 12) {
if (Key.isDown(_root.RIGHT) || Key.isDown(_root.LEFT) || Key.isDown(39) || Key.isDown(37)) {
gotoAndPlay('run');
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
if (Downtap >= 1) {
gotoAndPlay('launch');
fallspeed = -20;
_root.woosh.start(0, 1);
} else {
gotoAndPlay('jump');
fallspeed = -20;
_root.woosh.start(0, 1);
}
}
} else {
if (Key.isDown(_root.UP) || Key.isDown(38)) {
if (mc._currentframe >= 5) {
gotoAndPlay('launch');
fallspeed = -20;
_root.woosh.start(0, 1);
}
}
}
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_parent.mc._currentframe >= 7) {
if (_parent.mousedist <= 100) {
_parent.gotoAndPlay('melee 3');
}
}
}
}
frame 14 {
if (impact > 0) {
if (impact >= 12) {
if (impact == 100) {
gotoAndPlay('deflect');
} else {
gotoAndPlay('smash');
}
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe <= 23) {
gotoAndPlay('melee 2');
} else {
gotoAndPlay(1);
}
}
}
frame 15 {
if (!_root.charge itequipped) {
SWORDCHARGE = 1;
}
speed *= 0.85;
if (mc._currentframe >= 12) {
if (Key.isDown(_root.RIGHT) || Key.isDown(_root.LEFT) || Key.isDown(39) || Key.isDown(37)) {
gotoAndPlay('run');
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('jump');
fallspeed = -20;
Downtap = 0;
_root.woosh.start(0, 1);
}
} else {
if (Key.isDown(_root.UP) || Key.isDown(38)) {
if (mc._currentframe >= 3) {
gotoAndPlay('launch');
fallspeed = -20;
_root.woosh.start(0, 1);
}
}
}
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == '4-hit combo') {
if (_parent.mc._currentframe >= 8) {
if (_parent.mousedist <= 100) {
_parent.gotoAndPlay('melee 4');
}
}
}
++i;
}
}
}
frame 16 {
if (impact > 0) {
if (impact >= 12) {
if (impact == 100) {
gotoAndPlay('deflect');
} else {
gotoAndPlay('smash');
}
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe <= 21) {
gotoAndPlay('melee 3');
} else {
gotoAndPlay(1);
}
}
}
frame 17 {
if (!_root.charge itequipped) {
_root.SWORDCHARGE = 1;
}
speed *= 0.85;
if (mc._currentframe >= 12) {
if (Key.isDown(_root.RIGHT) || Key.isDown(_root.LEFT) || Key.isDown(39) || Key.isDown(37)) {
gotoAndPlay('run');
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('jump');
fallspeed = -20;
Downtap = 0;
_root.woosh.start(0, 1);
}
} else {
if (Key.isDown(_root.UP) || Key.isDown(38)) {
if (mc._currentframe >= 3) {
gotoAndPlay('launch');
fallspeed = -20;
_root.woosh.start(0, 1);
}
}
}
}
frame 18 {
if (impact > 0) {
if (impact >= 12) {
if (impact == 100) {
gotoAndPlay('deflect');
} else {
gotoAndPlay('smash');
}
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe <= 21) {
gotoAndPlay('melee 4');
} else {
gotoAndPlay(1);
}
}
}
frame 19 {
speed *= 0.9;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
}
frame 20 {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe < 20) {
gotoAndPlay('deflect');
} else {
gotoAndPlay(1);
}
}
}
frame 21 {
speed *= 0.85;
DoubleTapRight = 0;
DoubleTapLeft = 0;
SC = SWORDCHARGE;
}
frame 22 {
if (impact > 0) {
if (impact >= 12) {
if (impact == 100) {
gotoAndPlay('deflect');
} else {
gotoAndPlay('smash');
}
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe <= 22) {
gotoAndPlay('stinger');
if (mc._currentframe > 10) {
if (Key.isDown(1)) {
gotoAndPlay('charge');
} else {
if (SC >= 20 && SC <= 30) {
gotoAndPlay('super charge');
}
}
}
} else {
gotoAndPlay(1);
}
}
}
frame 23 {
fallspeed -= 0.6;
if (DoubleTapRight >= 7) {
gotoAndPlay('air stinger');
_xscale = 100;
seconds = 0;
}
if (DoubleTapLeft >= 7) {
gotoAndPlay('air stinger');
_xscale = -100;
seconds = 0;
}
if (DoubleTapRight >= 0) {
--DoubleTapRight;
}
if (DoubleTapLeft >= 0) {
--DoubleTapLeft;
}
if (Key.isDown(_root.RIGHT) || Key.isDown(39)) {
if (!RIGHTDOWN) {
DoubleTapRight += 7;
RIGHTDOWN = true;
}
} else {
RIGHTDOWN = false;
}
if (Key.isDown(_root.LEFT) || Key.isDown(37)) {
if (!LEFTDOWN) {
DoubleTapLeft += 7;
LEFTDOWN = true;
}
} else {
LEFTDOWN = false;
}
if (Key.isDown(_root.RIGHT) || Key.isDown(39)) {
_xscale = 100;
mc.aim._xscale = _xscale;
if (speed <= 10) {
speed += 0.8;
}
} else {
if (Key.isDown(_root.LEFT) || Key.isDown(37)) {
_xscale = -100;
mc.aim._xscale = _xscale;
if (speed >= -10) {
speed -= 0.8;
}
}
}
if (_root.ground.hitTest(_x + _xscale / 5, _y - 15, true) && fallspeed >= 1) {
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('wall jump');
_xscale = _xscale * -1;
}
}
}
frame 24 {
if (impact > 0) {
if (impact >= 12) {
if (impact == 100) {
gotoAndPlay('deflect');
} else {
gotoAndPlay('smash');
}
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe >= 8) {
gotoAndPlay('jump');
} else {
gotoAndPlay('launch');
}
}
}
frame 25 {
if (health <= 0) {
gotoAndPlay('dead');
}
if (fallspeed <= 20) {
fallspeed += 2;
}
Downtap = 0;
}
frame 26 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe < 21) {
gotoAndPlay('breakdown');
} else {
gotoAndPlay(1);
}
}
}
}
frame 27 {
if (mc._currentframe > 3) {
speed *= 0.9;
}
if (_root.ground.hitTest(_x - _xscale * 0.25, _y - _height / 2, true) && mc._currentframe < 3) {
gotoAndPlay('smash bounce');
fallspeed = -10;
speed *= -0.3;
}
DoubleTapLeft = 0;
DoubleTapRight = 0;
}
frame 28 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (mc._currentframe <= 15) {
gotoAndPlay('smash');
} else {
impact = 0;
gotoAndPlay(1);
}
}
}
frame 29 {
speed *= 0.9;
DoubleTapLeft = 0;
DoubleTapRight = 0;
if (mc._currentframe < 15) {
if (_root.ground.hitTest(_x, _y, true)) {
mc.gotoAndPlay(17);
}
}
}
frame 30 {
if (mc._currentframe <= 24) {
gotoAndPlay('smash bounce');
} else {
impact = 0;
gotoAndPlay(1);
}
}
frame 31 {
FRAME = impact + 1;
mc.gotoAndPlay(FRAME);
--impact;
DoubleTapLeft = 0;
DoubleTapRight = 0;
}
frame 32 {
if (impact > 0) {
gotoAndPlay('hit');
} else {
gotoAndPlay(1);
}
}
frame 33 {
_x = _x + 5.25;
_y = _y + 3;
fallspeed = 0;
speed = 0;
if (impact > 0) {
--impact;
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('jump');
fallspeed = -20;
}
if (Key.isDown(_root.RIGHT) || Key.isDown(39)) {
if (_x < _root.cam._x + _root.cam._width * 0.1) {
_x = _x + 5.25;
_y = _y + 3;
}
}
if (Key.isDown(_root.LEFT) || Key.isDown(37)) {
if (_x > _root.cam._x - _root.cam._width * 0.4) {
_x = _x - 8.75;
_y = _y - 5;
}
}
}
frame 34 {
if (fallspeed < 0) {
gotoAndPlay('jump');
} else {
if (this.hitTest(_root.slope)) {
gotoAndPlay('slide');
}
}
}
frame 35 {
speed *= 0.85;
fallspeed = 0;
SC = SWORDCHARGE;
}
frame 36 {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (Key.isDown(1)) {
gotoAndPlay('charge');
} else {
if (SC >= 20 && SC <= 30) {
gotoAndPlay('super charge');
} else {
gotoAndPlay('failure charge');
}
}
}
}
frame 37 {
speed *= 0.85;
if (mc._currentframe >= 8) {
if (Key.isDown(_root.RIGHT) || Key.isDown(_root.LEFT) || Key.isDown(39) || Key.isDown(37)) {
gotoAndPlay('run');
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('jump');
fallspeed = -20;
}
}
}
instance of movieClip 145 {
onClipEvent (mouseDown) {
if (_parent.mc._currentframe >= 8) {
if (_parent.mousedist <= 100) {
_parent.gotoAndPlay('melee 1');
}
}
}
}
frame 38 {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe <= 15) {
gotoAndPlay('super charge');
} else {
gotoAndPlay(1);
}
}
}
frame 39 {
if (mc._currentframe >= 8) {
if (Key.isDown(_root.RIGHT) || Key.isDown(_root.LEFT) || Key.isDown(39) || Key.isDown(37)) {
gotoAndPlay('run');
}
if (Key.isDown(_root.UP) || Key.isDown(38)) {
gotoAndPlay('jump');
fallspeed = -20;
}
}
}
frame 40 {
if (impact > 0) {
if (impact >= 12) {
gotoAndPlay('smash');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe <= 15) {
gotoAndPlay('failure charge');
} else {
gotoAndPlay(1);
}
}
}
frame 41 {
fallspeed = 0;
speed = 0;
xspeed = 0;
}
frame 42 {
if (mc._currentframe >= 84 && mc._currentframe <= 85) {
health = healthMAX;
gotoAndPlay(1);
} else {
gotoAndPlay('dead');
}
}
frame 43 {
fallspeed = 0;
impact = 0;
speed = 0;
xspeed = 0;
if (Key.isDown(_root.UP) || Key.isDown(38)) {
_y = _y - 8;
}
if (Key.isDown(_root.DOWN) || Key.isDown(40)) {
_y = _y + 8;
}
if (Key.isDown(_root.LEFT) || Key.isDown(37)) {
_x = _x - 8;
}
if (Key.isDown(_root.RIGHT) || Key.isDown(39)) {
_x = _x + 8;
}
}
instance mc of movieClip 1706 {
onClipEvent (load) {
SIN = 0;
}
onClipEvent (enterFrame) {
_rotation = _rotation + Math.cos(SIN);
SIN += 0.1;
}
}
frame 44 {
if (!_root.PAUSE) {
gotoAndPlay('UFO');
} else {
gotoAndPlay(1);
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (_y >= 1300) {
health = 0;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 1709 {
}
instance Lhouse of movieClip 1709 {
onClipEvent (enterFrame) {
if (_root.guy._x > _x - _width / 2 && _root.guy._x < _x + _width / 2) {
if (_alpha > 0) {
_alpha = _alpha - 5;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
_root.light house._alpha = _alpha;
}
}
movieClip 1729 {
frame 11 {
if (X > 100 || X < -100) {
gotoAndPlay(1);
} else {
xspeed = 0;
}
}
frame 19 {
_y = _y - 5;
fallspeed = -10;
if (_x >= _root.guy._x) {
xspeed = 3;
} else {
xspeed = -3;
}
}
frame 22 {
if (health > 0) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (stuck) {
play();
} else {
gotoAndPlay(21);
}
} else {
xspeed = 0;
gotoAndPlay(1);
}
} else {
gotoAndPlay(100);
}
}
frame 23 {
_root.chomp.start(0, 1);
}
frame 100 {
_root.explosion1.start(0, 1);
}
frame 100 {
++_root.bodycount;
}
instance of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy.speed = -_root.guy._xscale * 0.1;
}
}
}
frame 110 {
this.swapDepths(999);
this.removeMovieClip();
}
frame 112 {
gotoAndPlay('dead');
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
movieClip 1731 {
}
instance house front of movieClip 1731 {
onClipEvent (enterFrame) {
if (_root.guy._x > _x - _width / 2 + 50 && _root.guy._x < _x + _width / 2 && _root.guy._y > _y - _height + 80) {
if (_alpha > 0) {
_alpha = _alpha - 5;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
movieClip 1733 {
}
instance of movieClip 1733 {
onClipEvent (enterFrame) {
if (_root.guy._x > _x - _width / 2 + 50 && _root.guy._x < _x + _width / 2 && _root.guy._y < _y) {
if (_alpha > 0) {
_alpha = _alpha - 5;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
instance of movieClip 825 {
onClipEvent (load) {
health = 80;
seconds = 60;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance blob of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
if (_root.DIFFICULTY == 'HARD') {
health = 8;
}
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_root.Lhouse._alpha < 100) {
health = 0;
}
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 1737 {
}
movieClip 1739 {
}
instance boat of movieClip 1739 {
onClipEvent (load) {
SIN = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
SIN += 0.2;
_rotation = 3 * Math.sin(SIN);
}
}
}
movieClip 1742 {
}
instance barrier of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.bodycount >= 4) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance barrier2 of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.cam._x > _x) {
if (_root.MUSIC._currentframe < 4) {
_root.MUSIC.gotoAndPlay('BOSS');
}
_root.cam.XSCALE = 150;
_root.cam.YSCALE = 150;
_root.cam.originY = _y;
_root.cam.Y = _y;
_root.cam.oldY = _y;
_root.cam._y = _y;
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance boatend of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._x >= _x) {
_root.house front.swapDepths(997);
_root.house front.removeMovieClip();
_root.house back.swapDepths(998);
_root.house back.removeMovieClip();
_root.docks.swapDepths(999);
_root.docks.removeMovieClip();
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._x >= _x) {
_root.house front.swapDepths(993);
_root.house front.removeMovieClip();
_root.house back.swapDepths(994);
_root.house back.removeMovieClip();
_root.docks.swapDepths(995);
_root.docks.removeMovieClip();
_root.boat.swapDepths(996);
_root.boat.removeMovieClip();
_root.water1.swapDepths(997);
_root.water1.removeMovieClip();
_root.water2.swapDepths(998);
_root.water2.removeMovieClip();
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance boss check of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.PAUSE = true;
_root.boss convo.play();
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 1754 {
}
movieClip 1792 {
}
movieClip 1810 {
frame 1 {
_visible = false;
}
frame 2 {
_visible = true;
_root.HUD._visible = false;
_root['enemy' + _root.enemycount].seconds = 0;
}
frame 30 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'BLAH BLAH BLAH!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 31 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 55 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'BLAH BLAH?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 56 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 65 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'WORDS!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 66 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 74 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'FLAME ON!!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 75 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 76 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'CRUDE PUN';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 77 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 101 {
_root.PAUSE = false;
_root.HUD._visible = true;
_root.bossMAXhealth = 150;
_root.bosshealth = _root.bossMAXhealth;
_root.BOSSbar.onscreen = true;
stop();
}
frame 102 {
_root.PAUSE = true;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.SLOTH = 'beat';
}
frame 147 {
_root.HUD._visible = false;
}
frame 242 {
_root.gotoAndPlay('pub');
}
}
instance boss convo of movieClip 1810 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_currentframe < 165) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
} else {
_x = _x + 1;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._x > _x) {
i = 0;
while (i < 100) {
_root['enemy' + i].swapDepths(999 + i);
_root['enemy' + i].removeMovieClip();
++i;
}
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 1816 {
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (X / _root.bossMAXhealth) * _root.bosshealth;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
_xscale = (X / _root.bossMAXhealth) * _root.bosshealth;
}
}
}
movieClip 1817 {
}
instance BOSSbar of movieClip 1817 {
onClipEvent (load) {
_alpha = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
movieClip 1832 {
}
button 1836 {
on (release) {
gotoAndPlay('RESUME');
}
}
button 1839 {
on (release) {
gotoAndStop('equipped');
}
}
button 1842 {
on (release) {
gotoAndStop('options');
}
}
button 1845 {
on (release) {
gotoAndStop('what');
}
}
button 1848 {
on (release) {
gotoAndStop('quit');
}
}
button 1882 {
on (release) {
gotoAndStop('MENU');
}
}
button 1887 {
on (rollOver) {
gotoAndStop('TEXT');
}
on (rollOut) {
gotoAndStop('PINT');
}
on (press) {
this.startDrag();
}
on (release) {
this.stopDrag();
if (this.hitTest(_root.shop.MENU)) {
_root.shop.MENU[NAME].equipped = false;
NAME = 'NOTHING';
}
_x = X;
_y = Y;
}
on (releaseOutside) {
this.stopDrag();
if (this.hitTest(_root.shop.MENU)) {
_root.shop.MENU[NAME].equipped = false;
_root.shop.MENU[NAME]._visible = true;
NAME = 'NOTHING';
}
_x = X;
_y = Y;
}
}
movieClip 1891 {
frame 1 {
_visible = false;
X = _x;
Y = _y;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_parent.NAME != 'NOTHING') {
_parent.gotoAndStop('PINT');
}
}
}
frame 2 {
_visible = false;
stop();
}
frame 3 {
_visible = true;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_parent.NAME == 'NOTHING') {
_parent.gotoAndStop('NOTHING');
}
}
}
}
button 1903 {
on (release) {
_root.MUSICMUTE = false;
}
}
button 1907 {
on (release) {
_root.MUSICMUTE = true;
}
}
button 1910 {
on (release) {
_root._quality = 'LOW';
_root.QUALITY = 'LOW';
}
}
button 1914 {
on (release) {
_root._quality = 'MEDIUM';
_root.QUALITY = 'MEDIUM';
}
}
button 1918 {
on (release) {
_root._quality = 'HIGH';
_root.QUALITY = 'HIGH';
}
}
button 1920 {
on (release) {
_root._quality = 'LOW';
_root.QUALITY = 'LOW';
}
}
button 1921 {
on (release) {
_root._quality = 'MEDIUM';
_root.QUALITY = 'MEDIUM';
}
}
button 1922 {
on (release) {
_root._quality = 'HIGH';
_root.QUALITY = 'HIGH';
}
}
movieClip 1923 {
frame 1 {
onEnterFrame = function () {
if (_root._quality == 'LOW') {
gotoAndStop(1);
}
if (_root._quality == 'MEDIUM') {
gotoAndStop(2);
}
if (_root._quality == 'HIGH') {
gotoAndStop(3);
}
};
}
}
button 1924 {
on (release) {
_root.setVolume(100);
}
}
button 1925 {
on (release) {
_root.setVolume(0);
}
}
button 1930 {
on (release) {
FRAME = _currentframe + 1;
gotoAndStop(FRAME);
}
}
button 1940 {
on (release) {
gotoAndStop('MENU');
}
}
button 1946 {
on (release) {
gotoAndPlay('QUITTED');
}
}
button 1950 {
on (release) {
gotoAndStop('MENU');
}
}
movieClip 1975 {
frame 1 {
_visible = false;
stop();
onEnterFrame = function () {
if (Key.isDown(13) || Key.isDown(27) || Key.isDown(32) || Key.isDown(80)) {
if (_currentframe == 1 && _root.PAUSE == false) {
play();
}
if (_currentframe >= 15 && _currentframe <= 30) {
gotoAndPlay('resume');
}
}
};
}
frame 2 {
_root.PAUSE = true;
_visible = true;
}
frame 6 {
_root.ignite.start(0, 1);
_root.COW = false;
}
frame 21 {
stop();
}
instance slot3 of movieClip 1891 {
onClipEvent (load) {
NAME = _root.SLOT3;
}
onClipEvent (enterFrame) {
if (_currentframe == 4) {
gotoAndStop(3);
}
GLASS.stopDrag();
}
}
instance slot4 of movieClip 1891 {
onClipEvent (load) {
NAME = _root.SLOT4;
}
onClipEvent (enterFrame) {
if (_currentframe == 4) {
gotoAndStop(3);
}
GLASS.stopDrag();
}
}
instance slot5 of movieClip 1891 {
onClipEvent (load) {
NAME = _root.SLOT5;
}
onClipEvent (enterFrame) {
if (_currentframe == 4) {
gotoAndStop(3);
}
GLASS.stopDrag();
}
}
frame 32 {
_root.ignite.start(0, 1);
}
frame 40 {
_root.PAUSE = false;
gotoAndStop(1);
}
frame 41 {
_root.ignite.start(0, 1);
}
frame 49 {
_root.PAUSE = false;
_root.gotoAndStop('pub');
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 1980 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (!_root.MUSICMUTE) {
gotoAndPlay(1);
}
}
};
}
frame 4 {
stopAllSounds();
_visible = false;
}
frame 5 {
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 6 {
stopAllSounds();
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (!_root.MUSICMUTE) {
gotoAndPlay('BOSS');
}
}
};
}
}
movieClip 1981 {
}
instance of movieClip 1981 {
onClipEvent (enterFrame) {
this.swapDepths(999);
this.removeMovieClip();
}
}
frame 9 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 90;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
if (_root.DIFFICULTY == 'HARD') {
LIVES = 2;
} else {
LIVES = 3;
}
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.MONEY = money;
}
movieClip 1984 {
}
movieClip 1990 {
frame 1 {
stop();
}
}
button 1992 {
on (rollOver) {
_root.MOUSE._visible = true;
_root.MOUSE.TEXT = 'SHOP';
}
on (rollOut) {
_root.MOUSE._visible = false;
_root.MOUSE.TEXT = '';
}
on (release) {
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.WELCOMED == true) {
_root.shop.play();
_root.line.removeMovieClip();
i = 0;
while (i < 100) {
_root['shot' + i].removeMovieClip();
_root['bullet' + i].removeMovieClip();
++i;
}
}
}
}
button 1993 {
on (rollOver) {
_root.MOUSE._visible = true;
_root.MOUSE.TEXT = 'LEVEL SELECT';
}
on (rollOut) {
_root.MOUSE._visible = false;
_root.MOUSE.TEXT = '';
}
on (release) {
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.WELCOMED == true) {
_root.map.play();
_root.line.removeMovieClip();
i = 0;
while (i < 100) {
_root['shot' + i].removeMovieClip();
_root['bullet' + i].removeMovieClip();
++i;
}
}
}
}
button 1994 {
on (rollOver) {
if (_root.dev logequipped) {
_root.MOUSE._visible = true;
_root.MOUSE.TEXT = 'DEV LOG';
} else {
_root.MOUSE._visible = true;
_root.MOUSE.TEXT = 'LOCKED';
}
}
on (rollOut) {
_root.MOUSE._visible = false;
_root.MOUSE.TEXT = '';
}
on (release) {
if (_root.dev logequipped) {
_root.toilets.play();
_root.line.removeMovieClip();
i = 0;
while (i < 100) {
_root['shot' + i].removeMovieClip();
_root['bullet' + i].removeMovieClip();
++i;
}
}
}
}
button 1995 {
on (rollOver) {
_root.MOUSE._visible = true;
_root.MOUSE.TEXT = 'PLAY A GAME';
}
on (rollOut) {
_root.MOUSE._visible = false;
_root.MOUSE.TEXT = '';
}
on (release) {
getURL('http://www.maxgames.com/', '_blank');
}
}
movieClip 1996 {
instance of movieClip 1984 {
onClipEvent (enterFrame) {
if (_root.guy._x > _x + _parent._x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
movieClip 1998 {
frame 1 {
_visible = false;
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (_y >= 1300) {
_x = continueX;
_y = continueY;
fallspeed = 0;
speed = 0;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 2000 {
}
instance of movieClip 2000 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x - X * 0.8;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
button 2008 {
on (release) {
_root.shop.str.text = DESCRIPTION;
_root.shop.COST = PRICE;
_parent.NAME = _name;
this.stopDrag();
i = 0;
while (i <= 6) {
if (this.hitTest(_root.shop['slot' + i]) && equipped == false && _root.shop['slot' + i].NAME == 'NOTHING') {
_root.shop['slot' + i].NAME = NAME;
equipped = true;
_root[_name + 'equipped'] = true;
}
++i;
}
this.swapDepths(DEPTH);
_x = currentX;
_y = currentY;
}
on (releaseOutside) {
_root.shop.str.text = DESCRIPTION;
_root.shop.COST = PRICE;
_parent.NAME = _name;
this.stopDrag();
i = 0;
while (i <= 6) {
if (this.hitTest(_root.shop['slot' + i]) && equipped == false && _root.shop['slot' + i].NAME == 'NOTHING') {
_root.shop['slot' + i].NAME = NAME;
equipped = true;
_root[_name + 'equipped'] = true;
}
++i;
}
this.swapDepths(DEPTH);
_x = currentX;
_y = currentY;
}
on (press) {
if (bought) {
DEPTH = this.getDepth();
currentX = _x;
currentY = _y;
this.swapDepths(100);
this.startDrag();
}
}
}
movieClip 2024 {
frame 1 {
Y = _y;
X = _x;
stop();
equipped = false;
NAME = _name;
i = 0;
while (i < 6) {
if (_root['SLOT' + i] == _name) {
equipped = true;
}
++i;
}
bought = _root[NAME + 'bought'];
onEnterFrame = function () {
_root[NAME + 'bought'] = bought;
if (equipped) {
_visible = false;
} else {
_visible = true;
}
if (_currentframe == 1) {
if (bought) {
gotoAndPlay('bought');
}
}
if (_x == X) {
if (!Key.isDown(1)) {
if (_y > Y - 300) {
if (_parent.DOWN.hitTest(_root._xmouse, _root._ymouse, true)) {
_y = _y - 5;
}
}
if (_parent.UP.hitTest(_root._xmouse, _root._ymouse, true)) {
_y = _y + 5;
}
}
if (_y > Y) {
_y = Y;
}
}
};
}
frame 6 {
stop();
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data._name = true;
}
}
movieClip 2026 {
frame 1 {
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.fourhitcombo.bought != undefined) {
this.4-hit combobought = savefile.data.fourhitcombo.bought;
this.point blankbought = savefile.data.pointblank.bought;
this.more healthbought = savefile.data.morehealth.bought;
this.even more healthbought = savefile.data.evenmorehealth.bought;
this.sharp edgesbought = savefile.data.sharpedges.bought;
this.autofirebought = savefile.data.autofire.bought;
this.combokingbought = savefile.data.comboking.bought;
this.charge itbought = savefile.data.chargeit.bought;
this.fundraiserbought = savefile.data.fundraiser.bought;
this.dev logbought = savefile.data.devlog.bought;
}
onEnterFrame = function () {
savefile.data.fourhitcombo.bought = this.4-hit combobought;
savefile.data.pointblank.bought = this.point blankbought;
savefile.data.morehealth.bought = this.more healthbought;
savefile.data.evenmorehealth.bought = this.even more healthbought;
savefile.data.sharpedges.bought = this.sharp edgesbought;
savefile.data.autofire.bought = this.autofirebought;
savefile.data.comboking.bought = this.combokingbought;
savefile.data.chargeit.bought = this.charge itbought;
savefile.data.fundraiser.bought = this.fundraiserbought;
savefile.data.devlog.bought = this.dev logbought;
};
}
instance 4-hit combo of movieClip 2024 {
onClipEvent (load) {
PRICE = 50;
DESCRIPTION = 'IT\'S LIKE THAT 3-HIT COMBO YOU HAVE NOW, EXCEPT IT HAS 4 HITS.';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.fourhitcombo == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.fourhitcombo = true;
}
}
}
instance point blank of movieClip 2024 {
onClipEvent (load) {
PRICE = 100;
DESCRIPTION = 'SHOOTIN GUYS UP CLOSE WILL DO MORE DAMAGE';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.pointblank == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.pointblank = true;
}
}
}
instance more health of movieClip 2024 {
onClipEvent (load) {
PRICE = 100;
DESCRIPTION = 'DO I REALLY NEED TO EXPLAIN THIS ONE?';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.morehealth == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.morehealth = true;
}
}
}
instance even more health of movieClip 2024 {
onClipEvent (load) {
PRICE = 150;
DESCRIPTION = 'SEE ABOVE.';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.evenmorehealth == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.evenmorehealth = true;
}
}
}
instance autofire of movieClip 2024 {
onClipEvent (load) {
PRICE = 50;
DESCRIPTION = 'IF YOU HOLD DOWN THE MOUSE, YOU\'LL KEEP SHOOTIN';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.autofire == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.autofire = true;
}
}
}
instance sharp edges of movieClip 2024 {
onClipEvent (load) {
PRICE = 75;
DESCRIPTION = 'YOUR SWORD WILL HURT WAY MORE.';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.sharpedges == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.sharpedges = true;
}
}
}
instance comboking of movieClip 2024 {
onClipEvent (load) {
PRICE = 150;
DESCRIPTION = 'ANYTHING ABOVE A 5-HIT COMBO WILL GENERATE SOME HEALTH. \n \n (INCLUDES COMBO TRACKER)';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.comboking == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.comboking = true;
}
}
}
instance charge it of movieClip 2024 {
onClipEvent (load) {
PRICE = 100;
DESCRIPTION = 'HOLD DOWN AN ATTACK TO CHARGE IT, THEN RELEASE AT THE RIGHT TIME FOR RED HOT BONUS.';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.chargeit == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.chargeit = true;
}
}
}
instance fundraiser of movieClip 2024 {
onClipEvent (load) {
PRICE = 100;
DESCRIPTION = 'EVERY COIN YOU GET IS WORTH 1.2 COINS';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.fundraiser == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.fundraiser = true;
}
}
}
instance dev log of movieClip 2024 {
onClipEvent (load) {
PRICE = 200;
DESCRIPTION = 'EQUIP THIS TO UNLOCK THE GENTS. YOU MIGHT LEARN A THING OR TWO.';
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.devlog == true) {
_root[_name + 'bought'] = true;
} else {
_root[_name + 'bought'] = false;
}
}
onClipEvent (enterFrame) {
if (_root[_name + 'bought']) {
savefile.data.devlog = true;
}
}
}
}
button 2027 {
on (release) {
gotoAndPlay('BACK');
}
}
movieClip 2034 {
frame 1 {
stop();
}
}
button 2038 {
on (release) {
play();
}
}
button 2040 {
on (release) {
play();
_root.doneshoptutorial = true;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.doneshoptutorial = true;
}
}
button 2041 {
on (release) {
gotoAndStop('SHOP');
_root.doneshoptutorial = true;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.doneshoptutorial = true;
}
}
button 2051 {
on (release) {
if (!_parent.MENU[_parent.MENU.NAME].bought) {
if (_root.money >= _parent.COST) {
_parent.MENU[_parent.MENU.NAME].bought = true;
var savefile = SharedObject.getLocal('JOHNNY');
_root.money -= COST;
_root.kaching.start(0, 1);
savefile.data.MONEY = _root.money;
}
} else {
allreadybought.play();
}
}
}
button 2055 {
on (release) {
play();
}
}
movieClip 2056 {
frame 1 {
_visible = false;
stop();
}
frame 2 {
_visible = true;
}
frame 6 {
stop();
}
}
movieClip 2057 {
frame 1 {
_visible = false;
onEnterFrame = function () {
COST = _parent.COST;
if (COST == 0) {
_visible = false;
_parent.CONTINUE._visible = true;
} else {
_visible = true;
_parent.CONTINUE._visible = false;
}
};
}
}
movieClip 2073 {
frame 1 {
stop();
_visible = false;
}
frame 2 {
_visible = true;
_root.PAUSE = true;
_root.HUD._visible = false;
Math.round(_root.money);
COST = 0;
}
frame 9 {
_root.cam._y -= 500;
}
instance of movieClip 261 {
onClipEvent (enterFrame) {
CASH = Math.round(_root.money);
MONEY = _root.money;
}
}
instance slot3 of movieClip 1891 {
onClipEvent (load) {
NAME = _root.SLOT3;
}
onClipEvent (enterFrame) {
_root.SLOT3 = NAME;
}
}
instance slot4 of movieClip 1891 {
onClipEvent (load) {
NAME = _root.SLOT4;
}
onClipEvent (enterFrame) {
_root.SLOT4 = NAME;
}
}
instance slot5 of movieClip 1891 {
onClipEvent (load) {
NAME = _root.SLOT5;
}
onClipEvent (enterFrame) {
_root.SLOT5 = NAME;
}
}
frame 32 {
_root.biff1.start(0, 1);
}
frame 55 {
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'HEY, YOU MIGHT AS WELL STOP IN FOR A PINT BEFORE YOU GO BACK OUT. \n \n YOU KNOW HOW THIS SYSTEM WORKS? \n \nYEAH NAH';
c = 1;
speedchecker = 1;
stop();
FRAME = _currentframe;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.doneshoptutorial == true) {
gotoAndStop('SHOP');
}
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
++c;
DIP.start(0, 1);
if (str.text == 'HEY,') {
speedchecker -= 10;
}
if (str.text == 'HEY, YOU MIGHT AS WELL STOP IN FOR A PINT BEFORE YOU GO BACK OUT. ') {
speedchecker -= 20;
}
}
++speedchecker;
if (c >= myText.length) {
play();
}
}
};
}
frame 56 {
stop();
}
frame 57 {
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'OK I\'LL MAKE THIS QUICK.';
c = 1;
speedchecker = 1;
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
++c;
DIP.start(0, 1);
if (str.text == 'HEY,') {
speedchecker -= 10;
}
if (str.text == 'HEY, YOU MIGHT AS WELL STOP IN FOR A PINT BEFORE YOU GO BACK OUT. ') {
speedchecker -= 50;
}
}
++speedchecker;
if (c >= myText.length) {
play();
}
}
};
}
frame 58 {
stop();
}
frame 59 {
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'THIS BOARD ON THE LEFT IS EVERYTHING WE HAVE IN STOCK. \n \n AS IT STANDS, WE HAVE ALL THE BOOZE N YOU GOT NONE.';
c = 1;
speedchecker = 1;
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
++c;
DIP.start(0, 1);
if (str.text == 'THIS BOARD ON THE LEFT IS EVERYTHING WE HAVE IN STOCK.') {
speedchecker -= 30;
}
}
++speedchecker;
if (c >= myText.length) {
play();
}
}
};
}
frame 60 {
stop();
}
frame 61 {
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'CLICK ON A DRINK TO SEE WHAT IT IS. \n \nLET\'S START OFF WITH A \n4-HIT-COMBO.';
c = 1;
speedchecker = 1;
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
++c;
DIP.start(0, 1);
if (str.text == 'CLICK ON A DRINK TO SEE WHAT IT IS.') {
speedchecker -= 30;
}
}
++speedchecker;
if (c >= myText.length) {
play();
}
}
};
}
frame 62 {
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (_root.shop.MENU.4-hit combo.bought) {
play();
}
}
};
}
frame 63 {
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'GREAT. NOW THAT DRINK\'S YOURS. \n \nANYTHIN WHAT\'S YOURS IS IN ORANGE, ANYTHIN WHAT AINT IS IN WHITE.';
c = 1;
speedchecker = 1;
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
++c;
DIP.start(0, 1);
if (str.text == 'GREAT') {
speedchecker -= 5;
}
if (str.text == 'GREAT. NOW THAT DRINK\'S YOURS.') {
speedchecker -= 10;
}
}
++speedchecker;
if (c >= myText.length) {
play();
}
}
};
}
frame 64 {
stop();
}
frame 65 {
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'DRAG THE 4-HIT COMBO OVER TO SLOT 1 TO EQUIP IT.';
c = 1;
speedchecker = 1;
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
++c;
DIP.start(0, 1);
}
++speedchecker;
if (c >= myText.length) {
play();
}
}
};
}
frame 66 {
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (_root.shop.MENU.4-hit combo.equipped) {
play();
}
}
};
}
frame 67 {
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'YOU GOT 3 SLOTS TO FILL HOWEVER YOU WANT. \n \nDRAG 4-HIT COMBO BACK TO THE BOARD TO UNEQUIP IT.';
c = 1;
speedchecker = 1;
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
++c;
DIP.start(0, 1);
}
++speedchecker;
if (c >= myText.length) {
play();
}
}
};
}
frame 68 {
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (!_root.shop.MENU.4-hit combo.equipped) {
play();
}
}
};
}
frame 69 {
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'SORTED.';
c = 1;
speedchecker = 1;
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
++c;
DIP.start(0, 1);
}
++speedchecker;
if (c >= myText.length) {
play();
}
}
};
}
frame 70 {
stop();
}
frame 71 {
stop();
}
frame 72 {
stop();
str.htmlText = 'WHATJER WANT?';
if (Math.random() > 0.5) {
str.htmlText = 'WHAT\'RE YA BUYIN?';
} else {
if (Math.random() < 0.5) {
str.htmlText = 'YEAH?';
}
}
}
frame 95 {
_root.cam._y += 500;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.SLOT1 = _root.SLOT1;
savefile.data.SLOT2 = _root.SLOT2;
savefile.data.SLOT3 = _root.SLOT3;
}
frame 103 {
_root.PAUSE = false;
_root.HUD._visible = true;
COST = 0;
}
}
instance shop of movieClip 2073 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
button 2087 {
on (release) {
_parent.HAND._x = _root._xmouse - _parent._x;
_parent.HAND._y = _root._ymouse - _parent._y;
_parent.HAND.play();
_parent.HAND.FRAME = 'level 1';
}
on (rollOver) {
ICON.FRAME = 'WRATH';
}
on (rollOut) {
ICON.FRAME = 'NONE';
}
}
button 2088 {
on (release) {
_parent.HAND._x = _root._xmouse - _parent._x;
_parent.HAND._y = _root._ymouse - _parent._y;
_parent.HAND.play();
_parent.HAND.FRAME = 'level 2';
}
on (rollOver) {
ICON.FRAME = 'SLOTH';
}
on (rollOut) {
ICON.FRAME = 'NONE';
}
}
button 2089 {
on (release) {
_parent.HAND._x = _root._xmouse - _parent._x;
_parent.HAND._y = _root._ymouse - _parent._y;
_parent.HAND.play();
_parent.HAND.FRAME = 'level 3';
}
on (rollOver) {
ICON.FRAME = 'GLUTTONY';
}
on (rollOut) {
ICON.FRAME = 'NONE';
}
}
movieClip 2104 {
}
button 2108 {
on (release) {
_parent.HAND._x = _root._xmouse - _parent._x;
_parent.HAND._y = _root._ymouse - _parent._y;
_parent.HAND.play();
_parent.HAND.FRAME = 'level 4';
}
on (rollOver) {
ICON.FRAME = 'LUST';
}
on (rollOut) {
ICON.FRAME = 'NONE';
}
}
button 2109 {
on (release) {
_parent.HAND._x = _root._xmouse - _parent._x;
_parent.HAND._y = _root._ymouse - _parent._y;
_parent.HAND.play();
_parent.HAND.FRAME = 3;
}
on (rollOver) {
ICON.FRAME = 'GLUTTONY';
}
on (rollOut) {
ICON.FRAME = 'NONE';
}
}
button 2116 {
on (release) {
_parent.HAND._x = _root._xmouse - _parent._x;
_parent.HAND._y = _root._ymouse - _parent._y;
_parent.HAND.play();
_parent.HAND.FRAME = 'level 6';
}
on (rollOver) {
ICON.FRAME = 'ENVY';
}
on (rollOut) {
ICON.FRAME = 'NONE';
}
}
button 2117 {
on (release) {
_parent.HAND._x = _root._xmouse - _parent._x;
_parent.HAND._y = _root._ymouse - _parent._y;
_parent.HAND.play();
_parent.HAND.FRAME = 'level 5';
}
on (rollOver) {
ICON.FRAME = 'GREED';
}
on (rollOut) {
ICON.FRAME = 'NONE';
}
}
button 2120 {
on (release) {
_parent.HAND._x = _root._xmouse - _parent._x;
_parent.HAND._y = _root._ymouse - _parent._y;
_parent.HAND.play();
_parent.HAND.FRAME = 'level 7';
}
on (rollOver) {
ICON.FRAME = 'PRIDE';
}
on (rollOut) {
ICON.FRAME = 'NONE';
}
}
movieClip 2121 {
frame 1 {
stop();
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.WRATH == 'beat' && savefile.data.GLUTTONY == 'beat' && savefile.data.SLOTH == 'beat') {
gotoAndStop(2);
}
}
instance ICON of movieClip 2104 {
onClipEvent (load) {
_visible = false;
FRAME = 'NONE';
}
onClipEvent (enterFrame) {
if (FRAME == 'NONE') {
_visible = false;
} else {
_visible = true;
}
gotoAndStop(FRAME);
}
}
frame 2 {
stop();
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.LUST == 'beat') {
gotoAndStop(3);
}
}
frame 3 {
stop();
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.GREED == 'beat' && savefile.data.ENVY == 'beat') {
gotoAndStop(4);
}
}
frame 4 {
stop();
}
}
movieClip 2123 {
}
movieClip 2125 {
}
movieClip 2140 {
frame 2 {
_root._quality = 'LOW';
}
frame 4 {
_root.biff1.start(0, 1);
}
frame 12 {
_parent.FRAME = FRAME;
_parent.gotoAndPlay('quick cut');
}
}
button 2142 {
on (release) {
gotoAndPlay('BACK');
}
}
movieClip 2176 {
frame 1 {
seconds = 20;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.NOTE == true) {
this.swapDepths(999);
this.removeMovieClip();
}
onEnterFrame = function () {
--seconds;
};
onPress = function () {
if (seconds < 0) {
var v2 = SharedObject.getLocal('JOHNNY');
v2.data.NOTE = true;
this.swapDepths(999);
this.removeMovieClip();
}
};
}
}
movieClip 2222 {
}
movieClip 2224 {
frame 1 {
stop();
_visible = false;
}
frame 2 {
_visible = true;
_root.PAUSE = true;
_root.HUD._visible = false;
}
frame 9 {
_root.cam._y -= 500;
_root._quality = 'HIGH';
}
instance of movieClip 2123 {
onClipEvent (load) {
_visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.GLUTTONY == 'beat') {
_visible = true;
}
}
}
instance of movieClip 2123 {
onClipEvent (load) {
_visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.SLOTH == 'beat') {
_visible = true;
}
}
}
instance of movieClip 2123 {
onClipEvent (load) {
_visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.LUST == 'beat') {
_visible = true;
}
}
}
instance of movieClip 2123 {
onClipEvent (load) {
_visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.ENVY == 'beat') {
_visible = true;
}
}
}
instance of movieClip 2123 {
onClipEvent (load) {
_visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.GREED == 'beat') {
_visible = true;
}
}
}
instance of movieClip 2125 {
onClipEvent (load) {
_visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.WRATH == 'beat') {
_visible = true;
}
}
}
instance HAND of movieClip 2140 {
onClipEvent (load) {
stop();
}
}
frame 18 {
stop();
}
frame 27 {
_root.cam._y += 500;
_root._quality = _root.QUALITY;
}
frame 34 {
_root.PAUSE = false;
_root.HUD._visible = true;
}
frame 35 {
gotoAndStop(1);
_visible = false;
}
frame 85 {
_root.gotoAndStop(FRAME);
}
}
instance map of movieClip 2224 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
button 2228 {
on (release) {
gotoAndPlay('BACK');
}
}
movieClip 2229 blankpage {
}
movieClip 2232 {
}
movieClip 2234 {
}
movieClip 2238 page1 {
}
button 2239 {
on (release) {
_root.hcover = !_root.hcover;
}
}
movieClip 2241 page2 {
frame 1 {
trace('page2 reset');
trace(this);
}
}
button 2242 {
on (release) {
getURL('pageflip_v22_source.php', '');
}
}
movieClip 2246 {
}
movieClip 2247 page3 {
frame 1 {
trace('page3 reset');
btn.enabled = _root.getPN(2) == _root.page;
}
}
movieClip 2251 page4 {
frame 1 {
afa0._yscale = _level0.afa;
afa0._xscale = afa0._yscale;
afa1._yscale = _level0.afa;
afa1._xscale = afa1._yscale;
click._width = _level0.clickarea;
txt._x = 8 + _level0.clickarea;
}
}
movieClip 2255 {
}
movieClip 2259 page5 {
frame 1 {
afa0._yscale = _level0.afa;
afa0._xscale = afa0._yscale;
afa1._yscale = _level0.afa;
afa1._xscale = afa1._yscale;
click._width = _level0.clickarea;
txt._x = 292 - _level0.clickarea;
}
}
movieClip 2261 page6 {
}
movieClip 2262 {
}
movieClip 2266 page7 {
}
movieClip 2268 {
}
movieClip 2270 page8 {
}
movieClip 2275 {
}
movieClip 2299 page9 {
frame 1 {
spiral._rotation = 15 * (mcnt - 1) % 360;
onEnterFrame = function () {
spiral._rotation = 15 * mcnt % 360;
};
}
}
movieClip 2301 {
}
movieClip 2312 {
}
movieClip 2315 page10 {
}
movieClip 2319 page11 {
}
movieClip 2322 page12 {
}
movieClip 2326 {
}
movieClip 2329 page13 {
}
movieClip 2331 page14 {
frame 1 {
btn5.enabled = _root.getPN(14) == _root.page;
btn4.enabled = btn5.enabled;
btn3.enabled = btn5.enabled;
btn2.enabled = btn5.enabled;
btn1.enabled = btn5.enabled;
btn0.enabled = btn5.enabled;
trace('page14 reset');
}
}
movieClip 2332 {
}
movieClip 2333 {
}
movieClip 2334 sph {
}
movieClip 2335 {
}
movieClip 2337 page15 {
}
movieClip 2339 page16 {
frame 1 {
btn5.enabled = _root.getPN(14) == _root.page;
btn4.enabled = btn5.enabled;
btn3.enabled = btn5.enabled;
btn2.enabled = btn5.enabled;
btn1.enabled = btn5.enabled;
btn0.enabled = btn5.enabled;
trace('page14 reset');
}
}
movieClip 2345 page17 {
}
movieClip 2347 page18 {
frame 1 {
btn5.enabled = _root.getPN(14) == _root.page;
btn4.enabled = btn5.enabled;
btn3.enabled = btn5.enabled;
btn2.enabled = btn5.enabled;
btn1.enabled = btn5.enabled;
btn0.enabled = btn5.enabled;
trace('page14 reset');
}
}
movieClip 2350 page19 {
}
movieClip 2356 page20 {
}
movieClip 2358 page21 {
}
movieClip 2361 page22 {
frame 1 {
btn5.enabled = _root.getPN(14) == _root.page;
btn4.enabled = btn5.enabled;
btn3.enabled = btn5.enabled;
btn2.enabled = btn5.enabled;
btn1.enabled = btn5.enabled;
btn0.enabled = btn5.enabled;
trace('page14 reset');
}
}
movieClip 2363 page23 {
}
movieClip 2366 page24 {
frame 1 {
btn5.enabled = _root.getPN(14) == _root.page;
btn4.enabled = btn5.enabled;
btn3.enabled = btn5.enabled;
btn2.enabled = btn5.enabled;
btn1.enabled = btn5.enabled;
btn0.enabled = btn5.enabled;
trace('page14 reset');
}
}
movieClip 2368 page25 {
}
movieClip 2370 {
}
movieClip 2372 page26 {
frame 1 {
btn5.enabled = _root.getPN(14) == _root.page;
btn4.enabled = btn5.enabled;
btn3.enabled = btn5.enabled;
btn2.enabled = btn5.enabled;
btn1.enabled = btn5.enabled;
btn0.enabled = btn5.enabled;
trace('page14 reset');
}
}
movieClip 2375 page27 {
}
movieClip 2382 page28 {
}
movieClip 2384 page29 {
}
movieClip 2389 page30 {
}
movieClip 2394 {
}
movieClip 2396 page31 {
}
movieClip 2399 {
}
movieClip 2406 {
frame 90 {
FRAME = Math.round(Math.random() * 80) + 1;
gotoAndPlay(FRAME);
}
}
movieClip 2410 {
}
movieClip 2417 {
frame 92 {
FRAME = Math.round(Math.random() * 80) + 1;
gotoAndPlay(FRAME);
}
}
movieClip 2427 {
frame 1 {
onEnterFrame = function () {
FRAME = _parent._parent.impact + 1 + _parent._parent.RANDOMHIT * 10;
gotoAndPlay(FRAME);
};
}
}
movieClip 2429 {
}
movieClip 2431 {
}
movieClip 2433 page32 {
}
movieClip 2437 {
}
movieClip 2439 page33 {
}
movieClip 2442 page34 {
}
movieClip 2445 page35 {
}
movieClip 2448 page36 {
}
movieClip 2455 page37 {
}
movieClip 2473 {
}
movieClip 2477 {
}
movieClip 2478 page38 {
}
movieClip 2480 page39 {
}
movieClip 2483 page40 {
}
movieClip 2486 page41 {
}
movieClip 2491 page42 {
}
movieClip 2495 page43 {
}
movieClip 2498 page44 {
}
movieClip 2629 {
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop2.start(0, 1);
_root.guy.impact = 10;
_root.guy.health -= 15;
_root.guy.speed = -_parent._parent._xscale * 0.03;
_root.guy._xscale = _parent._parent._xscale;
hit = true;
}
}
}
}
instance FLICK of movieClip 145 {
onClipEvent (load) {
fallspeed = -13;
speed = -3;
ready = false;
}
onClipEvent (enterFrame) {
if (ready) {
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
_root.guy._x = _x * _parent._parent._xscale / 100 + _parent._parent._x;
_root.guy._y = _y + _parent._parent._y;
_root.guy.impact = 20;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop3.start(0, 1);
_root.guy.impact = 20;
_root.guy._y -= 5;
_root.guy.fallspeed = 0;
_root.guy.health -= 15;
_root.guy.speed = 0;
_parent.FLICK.ready = true;
_root.guy._xscale = _parent._parent._xscale;
hit = true;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
_root.guy.fallspeed = 0;
_root.guy.health -= 15;
_root.guy.speed = -_parent._parent._xscale * 0.4;
_root.guy._xscale = _parent._parent._xscale;
hit = true;
}
}
}
}
}
movieClip 2639 {
frame 18 {
gotoAndPlay(6);
}
}
movieClip 2640 page45 {
}
movieClip 2642 page46 {
}
movieClip 2650 {
frame 1 {
gotoAndStop(_root.guy.SWORDCHARGE);
onEnterFrame = function () {
gotoAndStop(_root.guy.SWORDCHARGE);
};
}
}
movieClip 2652 {
}
movieClip 2657 {
}
movieClip 2670 {
}
movieClip 2674 page47 {
}
movieClip 2677 page48 {
}
movieClip 2680 page49 {
}
movieClip 2682 page50 {
}
movieClip 2684 {
}
movieClip 2686 {
}
movieClip 2687 {
}
movieClip 2688 {
}
movieClip 2689 {
}
movieClip 2691 {
}
movieClip 2692 {
}
movieClip 2694 {
}
movieClip 2696 {
}
movieClip 2698 {
}
movieClip 2699 {
}
movieClip 2700 {
}
movieClip 2701 {
frame 2 {
function addPage(ename, tear) {
if (ename == 'start') {
pageOrder = new Array();
pageCanTear = new Array();
page = 0;
ename = 'blankpage';
}
if (ename == 'end') {
maxpage = page - 1;
ename = 'blankpage';
}
tear = (tear == undefined) ? false : tear;
pageOrder[page] = ename;
pageCanTear[page] = tear;
++page;
}
function reset() {
pages.p4.page._x = -pw;
pages.p4._x = pw;
pages.p1.page._x = -pw;
pages.p1._x = 0;
pages.flip.p2.page._x = -pw;
pages.flip.p2._x = pw;
pages.flip.p3.page._x = -pw;
pages.flip.p3._x = 0;
pages.p0.page._x = -pw;
pages.p0._x = 0;
pages.p5.page._x = -pw;
pages.p5._x = pw;
pages.pLL.page._x = -pw;
pages.pLL._x = 0;
pages.pLR.page._x = -pw;
pages.pLR._x = pw;
pages.flip._visible = false;
pages.mask._visible = pages.flip._visible;
pages.pgrad._visible = pages.flip._visible;
pages.pgmask._width = pw * 2;
pages.flip.p3mask._width = pages.pgmask._width;
pages.pgmask._height = ph;
pages.flip.p3mask._height = pages.pgmask._height;
pages.center._height = ph + 2 * lcaddy;
pages.flip.fmask.page.pf._width = pw;
pages.center._width = 6;
pages.flip.fmask.page.pf._height = ph;
pages.flip.flipgrad._height = 2 * Math.sqrt(ph * ph + pw * pw);
pages.flip.p3shadow._height = pages.flip.flipgrad._height;
pages.pgrad._height = pages.flip.flipgrad._height;
pages.mask._height = pages.flip.flipgrad._height;
pages.mask._width = pages.flip.flipgrad._height;
pageNumber = new Array();
i = 0;
while (i <= maxpage + 1) {
pageNumber[i] = i;
++i;
}
}
function hittest() {
var x = pages._xmouse;
var y = pages._ymouse;
var pmh = ph / 2;
if (y <= pmh && y >= -pmh && x <= pw && x >= -pw) {
var r = Math.sqrt(x * x + y * y);
var a = Math.asin(y / r);
var y = Math.tan(a) * pw;
if (y > 0 && y > ph / 2) {
y = ph / 2;
}
if (y < 0 && y < -ph / 2) {
y = -ph / 2;
}
sy = y;
oy = sy;
r0 = Math.sqrt((sy + ph / 2) * (sy + ph / 2) + pw * pw);
r1 = Math.sqrt((ph / 2 - sy) * (ph / 2 - sy) + pw * pw);
pageN = pages.flip.p2.page;
pageO = pages.flip.p3;
offs = -pw;
pages.flip.fmask._x = pw;
if (x < -(pw - clickarea) && page > 0) {
pages.flip.p3._x = 0;
hflip = checkCover(page, -1);
setPages(page - 2, page - 1, page, page + 1);
ctear = pageCanTear[page];
return -1;
}
if (x > pw - clickarea && page < maxpage) {
pages.flip.p3._x = pw;
hflip = checkCover(page, 1);
setPages(page, page + 2, page + 1, page + 3);
ctear = pageCanTear[page + 1];
return 1;
}
} else {
return 0;
}
}
function checkCover(p, dir) {
if (hcover) {
if (dir > 0) {
if (p == maxpage - 2 || p == 0) {
return true;
}
return false;
}
if (p == maxpage || p == 2) {
return true;
}
}
return false;
}
function corner() {
var v2 = Math.abs(pages._xmouse);
var v1 = Math.abs(pages._ymouse);
if (v2 > pw - afa && v2 < pw && v1 > ph / 2 - afa && v1 < ph / 2) {
return true;
}
return false;
}
function oef() {
++_global.mcnt;
if (!flip && corner()) {
preflip = true;
if (!autoflip()) {
preflip = false;
}
}
if (preflip && !corner()) {
preflip = false;
flip = false;
flipOK = false;
flipOff = true;
}
getm();
if (aflip && !preflip) {
ay += (sy - ay) / (gflip ? gs : ps);
y = ay;
acnt += aadd;
ax -= aadd;
if (Math.abs(acnt) > pw) {
flipOK = true;
flipOff = true;
flip = false;
aflip = false;
}
}
if (flip) {
if (tear) {
x = tox;
toy += teard;
y = toy;
teard *= 1.2;
if (Math.abs(teard) > 1200) {
flipOff = true;
flip = false;
}
} else {
ox += (x - ox) / (gflip ? gs : ps);
x = ox;
oy += (y - oy) / (gflip ? gs : ps);
y = oy;
}
calc(x, y);
}
if (flipOff) {
if (flipOK || tear) {
ox += (-sx - ox) / (gflip ? gs : es);
x = ox;
oy += (sy - oy) / (gflip ? gs : es);
y = oy;
calc(x, y);
if (x / -sx > 0.99 || tear) {
flip = false;
flipOff = false;
flipOK = flipOff;
pages.flip._visible = false;
pages.pgrad._visible = pages.flip._visible;
if (tear) {
removePage(sx < 0 ? page : page + 1);
page += sx < 0 ? -2 : 0;
} else {
page += sx < 0 ? -2 : 2;
}
if (gskip) {
page = gtarget;
}
setPages(page, 0, 0, page + 1);
tear = false;
if (gpage > 0 && !gskip) {
--gpage;
autoflip();
startsnd(0);
} else {
gskip = false;
gflip = gskip;
}
}
} else {
ox += (sx - ox) / 3;
x = ox;
oy += (sy - oy) / 3;
y = oy;
calc(x, y);
if (x / sx > 0.99) {
flip = false;
flipOff = false;
aflip = false;
pages.flip._visible = false;
pages.pgrad._visible = pages.flip._visible;
setPages(page, 0, 0, page + 1);
}
}
}
}
function calc(x, y) {
if (hflip) {
var v7 = sx < 0 ? -x : x;
if (v7 > 0) {
sp2._visible = false;
sp3._visible = true;
scalc(sp3, x);
} else {
sp3._visible = false;
sp2._visible = true;
scalc(sp2, x);
}
pages.flip.setMask(null);
pages.flip._visible = true;
pages.flip.fgrad._visible = false;
pages.flip.p3._visible = false;
pages.flip.p2._visible = pages.flip.p3._visible;
return undefined;
} else {
pages.flip.fgrad._visible = true;
}
rr0 = Math.sqrt((y + ph / 2) * (y + ph / 2) + x * x);
rr1 = Math.sqrt((ph / 2 - y) * (ph / 2 - y) + x * x);
if ((rr0 > r0 || rr1 > r1) && !tear) {
if (y < sy) {
var v4 = Math.asin((ph / 2 - y) / rr1);
y = ph / 2 - Math.sin(v4) * r1;
x = x < 0 ? -Math.cos(v4) * r1 : Math.cos(v4) * r1;
if (y > sy) {
if (sx * x > 0) {
y = sy;
x = sx;
} else {
y = sy;
x = -sx;
}
}
if (rr1 - r1 > tlimit && ctear) {
teard = -5;
tear = true;
ox = x;
tox = ox;
oy = y;
toy = oy;
}
} else {
var v4 = Math.asin((y + ph / 2) / rr0);
y = Math.sin(v4) * r0 - ph / 2;
x = x < 0 ? -Math.cos(v4) * r0 : Math.cos(v4) * r0;
if (y < sy) {
if (sx * x > 0) {
y = sy;
x = sx;
} else {
y = sy;
x = -sx;
}
}
if (rr0 - r0 > tlimit && ctear) {
teard = 5;
tear = true;
ox = x;
tox = ox;
oy = y;
toy = oy;
}
}
}
if (sx < 0 && x - sx < 10 || sx > 0 && sx - x < 10) {
if (sx < 0) {
x = -pw + 10;
}
if (sx > 0) {
x = pw - 10;
}
}
pages.flip._visible = true;
pages.pgrad._visible = !tear;
pages.flip.p3shadow._visible = pages.pgrad._visible;
pages.flip.p3._visible = true;
pages.flip.p2._visible = pages.flip.p3._visible;
var v6 = x - sx;
var v5 = y - sy;
var v9 = v5 / v6;
var v8 = -v5 / v6;
cx = sx + v6 / 2;
cy = sy + v5 / 2;
var v3 = Math.sqrt((sx - x) * (sx - x) + (sy - y) * (sy - y));
v4 = Math.asin((sy - y) / v3);
if (sx < 0) {
v4 = -v4;
}
ad = v4 / AM;
pageN._rotation = ad * 2;
v3 = Math.sqrt((sx - x) * (sx - x) + (sy - y) * (sy - y));
rl = pw * 2;
if (sx > 0) {
pages.mask._xscale = 100;
nx = cx - Math.tan(v4) * (ph / 2 - cy);
ny = ph / 2;
if (nx > pw) {
nx = pw;
ny = cy + Math.tan(1.570796326794897 + v4) * (pw - cx);
}
pageN.pf._x = -(pw - nx);
pages.flip.fgrad._xscale = (v3 / rl / 2) * pw;
pages.pgrad._xscale = -(v3 / rl / 2) * pw;
pages.flip.p3shadow._xscale = (v3 / rl / 2) * pw;
} else {
pages.mask._xscale = -100;
nx = cx - Math.tan(v4) * (ph / 2 - cy);
ny = ph / 2;
if (nx < -pw) {
nx = -pw;
ny = cy + Math.tan(1.570796326794897 + v4) * (-pw - cx);
}
pageN.pf._x = -(pw - (pw + nx));
pages.flip.fgrad._xscale = -(v3 / rl / 2) * pw;
pages.pgrad._xscale = (v3 / rl / 2) * pw;
pages.flip.p3shadow._xscale = -(v3 / rl / 2) * pw;
}
pages.mask._x = cx;
pages.mask._y = cy;
pages.mask._rotation = ad;
pageN.pf._y = -ny;
pageN._x = nx + offs;
pageN._y = ny;
pages.flip.fgrad._x = cx;
pages.flip.fgrad._y = cy;
pages.flip.fgrad._rotation = ad;
pages.flip.fgrad._alpha = v3 > rl - 50 ? 100 - (v3 - (rl - 50)) * 2 : 100;
pages.flip.p3shadow._x = cx;
pages.flip.p3shadow._y = cy;
pages.flip.p3shadow._rotation = ad;
pages.flip.p3shadow._alpha = v3 > rl - 50 ? 100 - (v3 - (rl - 50)) * 2 : 100;
pages.pgrad._x = cx;
pages.pgrad._y = cy;
pages.pgrad._rotation = ad + 180;
pages.pgrad._alpha = v3 > rl - 100 ? 100 - (v3 - (rl - 100)) : 100;
pages.flip.fmask.page._x = pageN._x;
pages.flip.fmask.page._y = pageN._y;
pages.flip.fmask.page.pf._x = pageN.pf._x;
pages.flip.fmask.page.pf._y = pageN.pf._y;
pages.flip.fmask.page._rotation = pageN._rotation;
}
function scalc(obj, x) {
if (x < -pw) {
x = -pw;
}
if (x > pw) {
x = pw;
}
var v2 = Math.asin(x / pw);
var v4 = v2 / AM / 2;
var v6 = 100;
var v3 = 100 * Math.sin(rotz * AM);
x /= 2;
var v5 = Math.cos(v2) * (pw / 2) * (v3 / 100);
placeImg(obj, v4, v3, x, v5);
pages.flip._visible = true;
pages.pgrad._visible = pages.flip._visible;
pages.pgrad._xscale = x;
pages.flip.p3shadow._alpha = 100;
pages.pgrad._alpha = 100;
pages.flip.p3shadow._xscale = -x;
pages.flip.p3shadow._x = 0;
pages.flip.p3shadow._y = 0;
pages.flip.p3shadow._rotation = 0;
pages.pgrad._x = 0;
pages.pgrad._y = 0;
pages.pgrad._rotation = 0;
}
function placeImg(j, rot, ss, x, y) {
var v2 = Math.tan(rot * AM);
var v5 = Math.SQRT2 / Math.sqrt(v2 * v2 + 1);
var v4 = 100 * v2;
var v7 = -rot;
var v3 = 100 * v5;
var v6 = 100 * v5;
j.ph.pic._rotation = 45;
j.ph.pic._xscale = v4 < 0 ? -v3 : v3;
j.ph.pic._yscale = v6 * (100 / ss);
j.ph._rotation = v7;
j.ph._xscale = v4;
j._yscale = ss;
j._x = x;
j._y = y;
j._visible = true;
}
function setPages(p1, p2, p3, p4) {
p0 = p1 - 2;
p5 = p4 + 2;
if (p0 < 0) {
p0 = 0;
}
if (p5 > maxpage) {
p5 = 0;
}
if (p1 < 0) {
p1 = 0;
}
if (p2 < 0) {
p2 = 0;
}
if (p3 < 0) {
p3 = 0;
}
if (p4 < 0) {
p4 = 0;
}
trace('setpages ->' + p1 + ',' + p2 + ',' + p3 + ',' + p4);
pleft = pages.p1.page.pf.ph.attachMovie(pageOrder[p1], 'pic', 0);
pages.p1.page.pf.ph._y = -ph / 2;
if (transparency) {
pleftb = pages.p0.page.pf.ph.attachMovie(pageOrder[p0], 'pic', 0);
pages.p0.page.pf.ph._y = -ph / 2;
} else {
pages.p0._visible = false;
}
if (hflip) {
var tm = pages.flip.hfliph.attachMovie('sph', 'sp2', 0);
sp2 = tm.ph.pic.attachMovie(pageOrder[p2], 'pic', 0);
sp2._y = -ph / 2;
sp2._x = -pw / 2;
sp2 = pages.flip.hfliph.sp2;
var tm = pages.flip.hfliph.attachMovie('sph', 'sp3', 1);
sp3 = tm.ph.pic.attachMovie(pageOrder[p3], 'pic', 0);
sp3._y = -ph / 2;
sp3._x = -pw / 2;
sp3 = pages.flip.hfliph.sp3;
} else {
pages.flip.hfliph.sp2.removeMovieClip();
pages.flip.hfliph.sp3.removeMovieClip();
sp2 = pages.flip.p2.page.pf.ph.attachMovie(pageOrder[p2], 'pic', 0);
pages.flip.p2.page.pf.ph._y = -ph / 2;
sp3 = pages.flip.p3.page.pf.ph.attachMovie(pageOrder[p3], 'pic', 0);
pages.flip.p3.page.pf.ph._y = -ph / 2;
}
pright = pages.p4.page.pf.ph.attachMovie(pageOrder[p4], 'pic', 0);
pages.p4.page.pf.ph._y = -ph / 2;
if (transparency) {
prightb = pages.p5.page.pf.ph.attachMovie(pageOrder[p5], 'pic', 0);
pages.p5.page.pf.ph._y = -ph / 2;
} else {
pages.p5._visible = false;
}
if (lcover) {
var lpl = transparency ? p1 - 4 : p1 - 2;
var lpr = transparency ? p4 + 4 : p4 + 2;
var limit = transparency ? 0 : -2;
if (lpl > limit) {
pages.pLL.page.pf.ph.attachMovie(pageOrder[2], 'pic', 0);
pages.pLL.page.pf.ph._y = -ph / 2;
pages.pLL._visible = true;
} else {
pages.pLL._visible = false;
}
if (lpr < maxpage - limit) {
pages.pLR.page.pf.ph.attachMovie(pageOrder[maxpage - 1], 'pic', 0);
pages.pLR.page.pf.ph._y = -ph / 2;
pages.pLR._visible = true;
} else {
pages.pLR._visible = false;
}
}
}
function resetPages() {
setPages(page, 0, 0, page + 1);
}
function autoflip() {
if (!aflip && !flip && !flipOff && canflip) {
acnt = 0;
var pmh = ph / 2;
aamp = Math.random() * pmh - ph / 4;
var x = gflip ? gdir * pw / 2 : (pages._xmouse < 0 ? -pw / 2 : pw / 2);
var y = pages._ymouse;
if (y > 0 && y > pmh) {
y = pmh;
}
if (y < 0 && y < -pmh) {
y = -pmh;
}
sy = y;
oy = sy;
ax = pages._xmouse < 0 ? -pmh : pmh;
ay = y * Math.random();
offs = -pw;
var hit = 0;
if (x < 0 && page > 0) {
pages.flip.p3._x = 0;
hflip = (hcover && gskip) ? (page == maxpage || gtarget == 0) : checkCover(page, -1);
ctear = pageCanTear[page];
if (!(preflip && hflip)) {
if (gskip) {
setPages(gtarget, gtarget + 1, page, page + 1);
} else {
setPages(page - 2, page - 1, page, page + 1);
}
}
hit = -1;
}
if (x > 0 && page < maxpage) {
pages.flip.p3._x = pw;
hflip = (hcover && gskip) ? (page == 0 || gtarget == maxpage) : checkCover(page, 1);
ctear = pageCanTear[page + 1];
if (!(preflip && hflip)) {
if (gskip) {
setPages(page, gtarget, page + 1, gtarget + 1);
} else {
setPages(page, page + 2, page + 1, page + 3);
}
}
hit = 1;
}
if (hflip && preflip) {
hit = 0;
preflip = false;
return false;
}
if (hit) {
anim._visible = false;
flip = true;
flipOff = false;
sx = hit * pw;
ox = sx;
pages.flip.setMask(pages.mask);
aadd = hit * (pw / (gflip ? 5 : 10));
aflip = true;
pages.flip.fmask._x = pw;
if (preflip) {
sy = pages._ymouse < 0 ? -(ph / 2) : ph / 2;
oy = sy;
}
r0 = Math.sqrt((sy + ph / 2) * (sy + ph / 2) + pw * pw);
r1 = Math.sqrt((ph / 2 - sy) * (ph / 2 - sy) + pw * pw);
pageN = pages.flip.p2.page;
pageO = pages.flip.p3;
oef();
return true;
}
} else {
return false;
}
}
function getm() {
if (aflip && !preflip) {
x = ax;
y = ay;
} else {
x = pages._xmouse;
y = pages._ymouse;
}
}
function gotoPage(i, skip) {
i = getPN(i);
gskip = (skip == undefined) ? false : skip;
if (i < 0) {
return false;
}
var v2 = int(page / 2);
var v1 = int(i / 2);
if (v2 != v1 && canflip && !gflip) {
if (v2 < v1) {
gdir = 1;
gpage = v1 - v2 - 1;
} else {
gdir = -1;
gpage = v2 - v1 - 1;
}
gflip = true;
if (gskip) {
gtarget = v1 * 2;
gpage = 0;
}
autoflip();
startsnd(0);
} else {
gskip = false;
}
}
function getPN(i) {
if (i == 0) {
return 0;
}
var v2 = false;
j = 1;
while (j <= maxpage) {
if (i == pageNumber[j]) {
i = j;
v2 = true;
break;
}
++j;
}
if (v2) {
return i;
} else {
return -1;
}
}
function removePage(i) {
trace('remove page ' + i);
i = Math.floor((i - 1) / 2) * 2 + 1;
removedPages.push(pageNumber[i], pageNumber[i + 1]);
j = i + 2;
while (j <= maxpage + 1) {
pageOrder[j - 2] = pageOrder[j];
pageCanTear[j - 2] = pageCanTear[j];
pageNumber[j - 2] = pageNumber[j];
++j;
}
trace('removed pages ' + i + ',' + (i + 1));
trace(removedPages.join(', '));
maxpage -= 2;
}
function startsnd(i) {
if (SoundOn) {
if (i == 0) {
snd0.start(0, 0);
snd0.onSoundComplete = function () {
startsnd(2);
delete snd0.onSoundComplete;
};
} else {
--i;
this['snd' + i].start(0, 0);
}
}
}
function startAutoFlip(sec) {
if (sec == undefined) {
sec = 2000;
}
intervalID = setInterval(nextPage, sec * 1000);
}
function stopAutoFlip() {
clearInterval(intervalID);
}
function prevPage() {
gotoPage(page - 2);
}
function nextPage() {
gotoPage(page + 2);
}
pw = 300;
ph = 400;
addPage('start');
addPage('page1');
addPage('page2');
addPage('page3');
addPage('page4');
addPage('page5');
addPage('page6');
addPage('page7');
addPage('page8');
addPage('page9');
addPage('page10');
addPage('page11');
addPage('page12');
addPage('page13');
addPage('page14');
addPage('page15');
addPage('page16');
addPage('page17');
addPage('page18');
addPage('page19');
addPage('page20');
addPage('page21');
addPage('page22');
addPage('page23');
addPage('page24');
addPage('page25');
addPage('page26');
addPage('page27');
addPage('page28');
addPage('page29');
addPage('page30');
addPage('page31');
addPage('page32');
addPage('page33');
addPage('page34');
addPage('page35');
addPage('page36');
addPage('page37');
addPage('page38');
addPage('page39');
addPage('page40');
addPage('page41');
addPage('page42');
addPage('page43');
addPage('page44');
addPage('page45');
addPage('page46');
addPage('page47');
addPage('page48');
addPage('page49');
addPage('page50');
addPage('end');
page = 0;
if (directlink == undefined) {
directlink = 0;
} else {
if (directlink % 2) {
--directlink;
}
}
page = directlink;
hcover = true;
clickarea = 64;
afa = 56;
gs = 10;
ps = 5;
es = 3;
canflip = true;
transparency = true;
lcover = true;
lcaddx = 10;
lcaddy = 10;
SoundOn = true;
_global.mcnt = 0;
gpage = 0;
gflip = false;
gdir = 0;
gskip = false;
gtarget = 0;
aflip = false;
flip = false;
flipOff = false;
flipOK = false;
hflip = false;
rotz = -30;
preflip = false;
ctear = false;
tear = false;
teard = 0;
tlimit = 80;
removedPages = new Array();
mpx = 0;
mpy = 0;
sy = 0;
sx = 0;
x = 0;
y = 0;
ax = 0;
ay = 0;
acnt = 0;
aadd = 0;
aamp = 0;
AM = 0.0174532925199433;
mousecontroll = new Object();
mousecontroll.onMouseDown = function () {
if (flip && !aflip) {
flipOK = false;
if (sx < 0 && pages._xmouse > 0) {
flipOK = true;
}
if (sx > 0 && pages._xmouse < 0) {
flipOK = true;
}
flipOff = true;
flip = false;
} else {
if ((flipOff || aflip || !canflip) && !preflip) {
trace('donothing');
} else {
if (!preflip) {
var v4 = ox;
var v3 = oy;
var v2 = sx;
var v1 = sy;
hit = hittest();
if (hit) {
startsnd(1);
flip = true;
flipOff = false;
tear = false;
sx = hit * pw;
ox = sx;
pages.flip.setMask(pages.mask);
mpx = pages._xmouse;
mpy = pages._ymouse;
oef();
}
} else {
startsnd(1);
flip = true;
flipOff = false;
tear = false;
preflip = false;
aflip = preflip;
mpx = pages._xmouse;
mpy = pages._ymouse;
oef();
}
}
}
};
mousecontroll.onMouseUp = function () {
if (flip && !tear) {
if (Math.abs(pages._xmouse) > pw - afa && Math.abs(pages._ymouse) > ph / 2 - afa && Math.abs(pages._xmouse - mpx) < afa || preflip) {
flip = false;
preflip = false;
autoflip();
startsnd(2);
} else {
if (!preflip) {
preflip = false;
flipOK = false;
if (sx < 0 && pages._xmouse > 0) {
flipOK = true;
}
if (sx > 0 && pages._xmouse < 0) {
flipOK = true;
}
flipOff = true;
flip = false;
if (flipOK) {
startsnd(2);
}
}
}
}
};
snd0 = new Sound();
snd1 = new Sound();
snd2 = new Sound();
snd0.attachSound('pf1');
snd1.attachSound('pf2');
snd2.attachSound('pf3');
this.onUnload = function () {
trace('unload ===========================================================');
removeML();
};
}
frame 4 {
function removeML() {
Mouse.removeListener(mousecontroll);
}
stop();
Mouse.addListener(mousecontroll);
onEnterFrame = oef;
resetPages();
reset();
}
}
movieClip 2705 {
frame 1 {
stop();
_visible = false;
}
frame 2 {
_visible = true;
_root.PAUSE = true;
_root.HUD._visible = false;
}
frame 8 {
_root.gotoAndStop('dev log');
}
frame 18 {
stop();
_root._quality = 'MEDIUM';
}
frame 27 {
_root.PAUSE = false;
_root._quality = _root.QUALITY;
_root.gotoAndStop('pub');
}
}
instance toilets of movieClip 2705 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 2708 {
frame 1 {
TEXT = '';
_visible = false;
}
}
instance MOUSE of movieClip 2708 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_x = _root._xmouse;
_y = _root._ymouse;
} else {
_x = 0;
_y = -200;
}
}
}
movieClip 2725 {
frame 1 {
stop();
_visible = false;
}
frame 2 {
_visible = true;
_root.PAUSE = true;
_root.HUD._visible = false;
}
frame 31 {
stop();
onPress = function () {
play();
};
}
frame 32 {
stop();
onPress = function () {
play();
};
}
frame 33 {
stop();
onPress = function () {
play();
};
}
frame 57 {
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.WELCOMED = true;
_root.PAUSE = false;
_root.HUD._visible = true;
}
frame 58 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance welcome of movieClip 2725 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.WELCOMED == false) {
play();
} else {
this.swapDepths(999);
this.removeMovieClip();
}
}
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 2728 {
frame 1 {
stopAllSounds();
}
frame 2 {
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance of movieClip 2728 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
frame 11 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 90;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
bodycount = 0;
_quality = 'MEDIUM';
PAUSE = false;
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
bosshealth = 0;
bossMAXhealth = 0;
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x + _width / 2 > _root.barrier._x) {
_x = _root.barrier._x - _width / 2;
}
if (_y > originY) {
_y = originY;
}
}
}
}
movieClip 2731 {
}
movieClip 2732 {
}
movieClip 2738 {
}
movieClip 2741 {
frame 1 {
onEnterFrame = function () {
if (_root.bossMAXhealth > 0) {
if (_root.guy._y > _y + _parent._y + _height * 3) {
_y = _y + _height * 4;
}
if (_root.guy._y < _y + _parent._y - _height * 2) {
_y = _y - _height * 4;
}
}
};
}
}
movieClip 2743 {
}
movieClip 2745 {
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 2747 {
}
movieClip 2748 {
instance of movieClip 2747 {
onClipEvent (enterFrame) {
X = _x + _parent._x;
_width = _root.cam._x - X;
if (_root.cam._x < X) {
_width = 0;
}
if (_width > 200) {
_width = 200;
}
DEPTH = Math.sqrt(CAMDIST * CAMDIST + CAMDIST * CAMDIST);
this.swapDepths(DEPTH);
}
}
instance of movieClip 2747 {
onClipEvent (enterFrame) {
X = _x + _parent._x;
_width = X - _root.cam._x;
if (_width > 200) {
_width = 200;
}
if (_root.cam._x > X) {
_width = 0;
}
CAMDIST = X - _root.cam._x;
DEPTH = Math.sqrt(CAMDIST * CAMDIST + CAMDIST * CAMDIST);
this.swapDepths(DEPTH);
}
}
instance of movieClip 2747 {
onClipEvent (enterFrame) {
X = _x + _parent._x;
_width = _root.cam._x - X;
if (_root.cam._x < X) {
_width = 0;
}
if (_width > 200) {
_width = 200;
}
DEPTH = Math.sqrt(CAMDIST * CAMDIST + CAMDIST * CAMDIST);
this.swapDepths(DEPTH);
}
}
instance of movieClip 2747 {
onClipEvent (enterFrame) {
X = _x + _parent._x;
_width = X - _root.cam._x;
if (_width > 200) {
_width = 200;
}
if (_root.cam._x > X) {
_width = 0;
}
CAMDIST = X - _root.cam._x;
DEPTH = Math.sqrt(CAMDIST * CAMDIST + CAMDIST * CAMDIST);
this.swapDepths(DEPTH);
}
}
instance of movieClip 2747 {
onClipEvent (enterFrame) {
X = _x + _parent._x;
_width = _root.cam._x - X;
if (_root.cam._x < X) {
_width = 0;
}
if (_width > 200) {
_width = 200;
}
DEPTH = Math.sqrt(CAMDIST * CAMDIST + CAMDIST * CAMDIST);
this.swapDepths(DEPTH);
}
}
instance of movieClip 2747 {
onClipEvent (enterFrame) {
X = _x + _parent._x;
_width = X - _root.cam._x;
if (_width > 200) {
_width = 200;
}
if (_root.cam._x > X) {
_width = 0;
}
CAMDIST = X - _root.cam._x;
DEPTH = Math.sqrt(CAMDIST * CAMDIST + CAMDIST * CAMDIST);
this.swapDepths(DEPTH);
}
}
instance of movieClip 2747 {
onClipEvent (enterFrame) {
X = _x + _parent._x;
_width = _root.cam._x - X;
if (_root.cam._x < X) {
_width = 0;
}
if (_width > 200) {
_width = 200;
}
DEPTH = Math.sqrt(CAMDIST * CAMDIST + CAMDIST * CAMDIST);
this.swapDepths(DEPTH);
}
}
instance of movieClip 2747 {
onClipEvent (enterFrame) {
X = _x + _parent._x;
_width = X - _root.cam._x;
if (_width > 200) {
_width = 200;
}
if (_root.cam._x > X) {
_width = 0;
}
CAMDIST = X - _root.cam._x;
DEPTH = Math.sqrt(CAMDIST * CAMDIST + CAMDIST * CAMDIST);
this.swapDepths(DEPTH);
}
}
}
movieClip 2750 {
}
movieClip 2754 {
}
movieClip 2756 {
instance of movieClip 2754 {
onClipEvent (enterFrame) {
_rotation = _rotation - 5;
}
}
instance of movieClip 2754 {
onClipEvent (enterFrame) {
_rotation = _rotation + 5;
}
}
}
movieClip 2758 {
}
movieClip 2760 {
}
instance BOX of movieClip 2760 {
onClipEvent (load) {
fallspeed = 0;
speed = 0;
impact = 0;
onscreen = false;
SIZE = 10;
Y = _y;
X = _x;
}
onClipEvent (enterFrame) {
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
if (_x < X + 50) {
_y = Y;
}
if (_y < Y + 5) {
_x = _x + speed;
}
_y = _y + fallspeed;
speed *= 0.5;
if (impact > 0) {
fallspeed = 0;
speed = 3;
impact = 0;
}
if (shot) {
speed += 1;
shot = false;
}
if (_root.ground.hitTest(_x, _y + 1, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
_root.ground.BOX._x = _x - _root.ground._x + 10;
_root.ground.BOX._y = _y - _root.ground._y;
while (_root.ground.hitTest(_x, _y, true)) {
_y = _y - 1;
}
}
}
movieClip 2806 {
}
movieClip 2810 {
}
movieClip 2812 {
}
movieClip 2923 {
frame 9 {
_root.woosh.start(0, 1);
}
frame 22 {
_root.swishL.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop2.start(0, 1);
_root.guy.impact = 10;
_root.guy.health -= 15;
_root.guy.speed = -_parent._parent._xscale * 0.03;
_root.guy._xscale = _parent._parent._xscale;
hit = true;
}
}
}
}
instance FLICK of movieClip 145 {
onClipEvent (load) {
fallspeed = -13;
speed = -3;
ready = false;
}
onClipEvent (enterFrame) {
if (ready) {
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
_root.guy._x = _x * _parent._parent._xscale / 100 + _parent._parent._x;
_root.guy._y = _y + _parent._parent._y;
_root.guy.impact = 20;
}
}
}
frame 45 {
_root.swishSH.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop3.start(0, 1);
_root.guy.impact = 20;
_root.guy._y -= 5;
_root.guy.fallspeed = 0;
_root.guy.health -= 15;
_root.guy.speed = 0;
_parent.FLICK.ready = true;
_root.guy._xscale = _parent._parent._xscale;
hit = true;
}
}
}
}
frame 66 {
_root.swishH.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
_root.guy.fallspeed = 0;
_root.guy.health -= 15;
_root.guy.speed = -_parent._parent._xscale * 0.4;
_root.guy._xscale = _parent._parent._xscale;
hit = true;
}
}
}
}
}
movieClip 2975 {
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
}
movieClip 3001 {
frame 19 {
if (_root.guy._x < _parent._x) {
_parent._xscale = 100;
}
if (_root.guy._x > _parent._x) {
_parent._xscale = -100;
}
_root.woosh.start(0, 1);
}
frame 29 {
deltax = _root.guy._x - _parent._x;
deltay = _root.guy._y - 40 - (_parent._y - 100);
if (_parent._xscale == 100) {
ROTATION = Math.atan2(deltay, deltax) / 0.0174532925199433 + 180;
} else {
ROTATION = -Math.atan2(deltay, deltax) / 0.0174532925199433;
}
}
instance of movieClip 2975 {
onClipEvent (load) {
_rotation = _parent.ROTATION;
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
xspeed = -25 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 20;
if (_parent._parent._parent._xscale == 100) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = (_root.guy._xscale / 100) * xspeed;
}
}
}
}
}
movieClip 3011 {
}
movieClip 3031 {
frame 2 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - _parent._height / 2;
}
++_root.bodycount;
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
}
frame 3 {
_root.swishH.start(0, 1);
_root.puff.start(0, 1);
_root.woosh.start(0, 1);
}
frame 32 {
stop();
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 3032 {
frame 1 {
if (_root.guy._x < _x - XDIST && _root.ground.hitTest(_x - 50, _y - 41, true)) {
speed = 5 * _xscale / 100;
} else {
if (_root.guy._x > _x + XDIST && _root.ground.hitTest(_x + 50, _y - 41, true)) {
speed = -5 * _xscale / 100;
FRAME = mc._currentframe - 2;
if (FRAME <= 0) {
FRAME = 24;
}
mc.gotoAndPlay(FRAME);
} else {
speed = 0;
mc.stop();
}
}
if (_root.guy._y < _y) {
if (_root.guy._x > _x + 50) {
gotoAndPlay('jump');
_y = _y + 100;
seconds = 0;
}
}
fallspeed = 0;
}
frame 2 {
if (onscreen) {
if (seconds > 0) {
if (_root.guy._x > _x + 50 || _root.guy._x < _x - 50) {
gotoAndPlay('crawl');
} else {
--seconds;
gotoAndPlay(1);
}
} else {
gotoAndPlay('jump');
_y = _y + 100;
}
} else {
gotoAndPlay(1);
}
}
frame 3 {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y - 100, true)) {
_y = _y - 55;
gotoAndPlay('crawl');
seconds = 10;
}
}
frame 4 {
if (_root.ground.hitTest(_x, _y + 1, true)) {
seconds = 60;
gotoAndPlay('sit');
} else {
gotoAndPlay('jump');
}
}
frame 5 {
if (_root.guy._x < _x) {
_xscale = 100;
} else {
_xscale = -100;
}
speed = 0;
fallspeed = 0;
--seconds;
if (_root.guy._x > _x + 350 || _root.guy._x < _x - 350) {
_y = _y - 5;
gotoAndPlay('jump');
fallspeed = JUMPHEIGHT;
}
}
frame 6 {
if (health > 0) {
if (impact <= 3) {
if (_root.guy.hitTest(this)) {
gotoAndPlay('slash');
} else {
if (seconds < 0) {
gotoAndPlay('teleport slash');
} else {
gotoAndPlay('sit');
}
}
} else {
gotoAndPlay('hit');
}
} else {
xspeed = -5;
gotoAndPlay('dead');
}
}
frame 7 {
speed = 0;
}
frame 8 {
if (health > 0) {
if (impact <= 3) {
if (mc._currentframe < 84) {
gotoAndPlay('slash');
} else {
seconds = 60;
gotoAndPlay('sit');
}
} else {
gotoAndPlay('hit');
}
} else {
xspeed = -5;
gotoAndPlay('dead');
}
}
frame 9 {
speed *= 0.9;
}
frame 10 {
if (health > 0) {
if (impact <= 3) {
if (mc._currentframe < 54) {
gotoAndPlay('teleport slash');
} else {
seconds = 60;
gotoAndPlay('sit');
}
} else {
gotoAndPlay('hit');
}
} else {
xspeed = -5;
gotoAndPlay('dead');
}
}
frame 11 {
if (!_root.PAUSE) {
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
xspeed = 0;
}
seconds = 5;
}
frame 12 {
if (health <= 0) {
xspeed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
gotoAndPlay('hit');
} else {
gotoAndPlay('sit');
}
}
}
frame 13 {
xspeed *= 0.9;
}
frame 14 {
gotoAndPlay('dead');
}
}
instance of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 20;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 3035 {
}
movieClip 3037 {
}
movieClip 3039 {
frame 1 {
_visible = false;
}
instance of movieClip 3035 {
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._x > _x + _parent._x - 20 && _root.guy._y < _y + _parent._y + 15) {
_xscale = 100;
}
}
}
instance of movieClip 3035 {
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._x < _x + _parent._x + 20 && _root.guy._y < _y + _parent._y + 15) {
_xscale = 100;
}
}
}
instance of movieClip 3035 {
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._x > _x + _parent._x - 20 && _root.guy._y < _y + _parent._y + 15) {
_xscale = 100;
}
}
}
instance crate1 of movieClip 145 {
onClipEvent (load) {
speed = 5;
_x = _root.X0._x - _parent._x;
_y = _root.X0._y - _parent._y;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
if (_y < _root.X1._y - _parent._y && _x < _root.X1._x - _parent._x) {
_y = _y + speed;
}
if (_y > _root.X1._y - _parent._y) {
if (_x < _root.X2._x - _parent._x) {
_x = _x + speed;
}
}
if (_x > _root.X2._x - _parent._x) {
_y = _y - speed;
if (_y < _root.X3._y - _parent._y) {
_x = _root.X0._x - _parent._x;
_y = _root.X0._y - _parent._y;
}
}
}
}
instance crate2 of movieClip 145 {
onClipEvent (load) {
speed = 5;
_x = _root.X0._x - _parent._x;
_y = _root.X0._y - _parent._y - _height * 2;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
if (_y < _root.X1._y - _parent._y && _x < _root.X1._x - _parent._x) {
_y = _y + speed;
}
if (_y > _root.X1._y - _parent._y) {
if (_x < _root.X2._x - _parent._x) {
_x = _x + speed;
}
}
if (_x > _root.X2._x - _parent._x) {
_y = _y - speed;
if (_y < _root.X3._y - _parent._y) {
_x = _root.X0._x - _parent._x;
_y = _root.X0._y - _parent._y;
}
}
}
}
instance crate3 of movieClip 145 {
onClipEvent (load) {
speed = 5;
_x = _root.X0._x - _parent._x;
_y = _root.X0._y - _parent._y - _height * 4;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
if (_y < _root.X1._y - _parent._y && _x < _root.X1._x - _parent._x) {
_y = _y + speed;
}
if (_y > _root.X1._y - _parent._y) {
if (_x < _root.X2._x - _parent._x) {
_x = _x + speed;
}
}
if (_x > _root.X2._x - _parent._x) {
_y = _y - speed;
if (_y < _root.X3._y - _parent._y) {
_x = _root.X0._x - _parent._x;
_y = _root.X0._y - _parent._y;
}
}
}
}
instance crate4 of movieClip 145 {
onClipEvent (load) {
speed = 5;
_x = _root.X0._x - _parent._x;
_y = _root.X0._y - _parent._y - _height * 6;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
if (_y < _root.X1._y - _parent._y && _x < _root.X1._x - _parent._x) {
_y = _y + speed;
}
if (_y > _root.X1._y - _parent._y) {
if (_x < _root.X2._x - _parent._x) {
_x = _x + speed;
}
}
if (_x > _root.X2._x - _parent._x) {
_y = _y - speed;
if (_y < _root.X3._y - _parent._y) {
_x = _root.X0._x - _parent._x;
_y = _root.X0._y - _parent._y;
}
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
movieClip 3056 {
}
movieClip 3057 {
frame 205 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 75;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 75;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance enemy70 of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
movieClip 3070 {
frame 1 {
onEnterFrame = function () {
if (_currentframe <= 100) {
gotoAndPlay(_parent._parent._parent.CHARGE);
}
};
gotoAndPlay(_parent._parent._parent.CHARGE);
}
frame 110 {
stop();
}
}
movieClip 3071 {
}
movieClip 3073 {
}
movieClip 3096 {
frame 23 {
gotoAndPlay(5);
}
}
movieClip 3131 {
}
movieClip 3133 {
}
movieClip 3135 {
frame 10 {
_root.guncock.start(0, 1);
}
frame 26 {
_root.cam._x += _parent._xscale * 0.5;
_root.cam._y += 5;
_parent.xspeed = -10 * _parent._xscale / 100;
_parent.CHARGE = 0;
_root.gunshotbig.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 40;
_root.guy.speed = -_parent._parent._xscale * 0.2;
_root.guy._xscale = _parent._parent._xscale;
}
}
}
frame 27 {
_root.cam._y -= 8;
}
frame 28 {
_root.cam._y += 6;
}
frame 29 {
_root.cam._y -= 4;
}
frame 30 {
_root.cam._y += 2;
}
}
movieClip 3147 {
}
movieClip 3213 {
frame 36 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - _parent._height / 2;
}
++_root.bodycount;
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
}
frame 112 {
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 3214 {
frame 1 {
if (onscreen) {
--seconds;
}
speed = 0;
xspeed = 0;
if (onscreen) {
XXX = _x - _root.guy._x;
if (XXX > 200) {
gotoAndPlay('run');
seconds = 20;
if (_xscale == -100) {
_xscale = 100;
}
}
if (XXX < -200) {
gotoAndPlay('run');
seconds = 20;
if (_xscale == 100) {
_xscale = -100;
}
}
}
}
frame 2 {
if (health <= 0) {
xspeed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
gotoAndPlay('hit');
} else {
if (seconds < 0) {
if (CHARGE > 100) {
seconds = 80;
gotoAndPlay('chomp');
} else {
if (_root.guy._x - _x >= 50 || _root.guy._x - _x <= -50) {
seconds = 20;
gotoAndPlay('run');
} else {
gotoAndPlay(1);
}
}
} else {
gotoAndPlay(1);
}
}
}
}
frame 3 {
xspeed = _xscale * 0.02;
--seconds;
}
frame 4 {
if (health <= 0) {
xspeed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
gotoAndPlay('hit');
} else {
if (CHARGE > 100) {
seconds = 80;
gotoAndPlay('chomp');
} else {
if (_root.guy._x - _x >= 200) {
gotoAndPlay('run');
_xscale = -100;
} else {
if (_root.guy._x - _x <= -200) {
gotoAndPlay('run');
_xscale = 100;
} else {
gotoAndPlay(1);
}
}
}
}
}
}
frame 5 {
xspeed *= 0.2;
--CHARGE;
}
frame 6 {
if (health <= 0) {
xspeed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
gotoAndPlay('hit');
} else {
if (mc._currentframe < 90) {
gotoAndPlay('chomp');
} else {
gotoAndPlay(1);
}
}
}
}
frame 7 {
if (!_root.PAUSE) {
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
--impact;
xspeed = 0;
}
}
frame 8 {
if (health <= 0) {
xspeed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
gotoAndPlay('hit');
} else {
gotoAndPlay(1);
}
}
}
frame 9 {
xspeed *= 0.9;
}
frame 10 {
gotoAndPlay('dead');
}
}
instance of movieClip 3214 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 80;
impact = 0;
shot = false;
CHARGE = 1;
RANDOMHIT = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
++CHARGE;
if (_root.DIFFICULTY == 'HARD') {
++CHARGE;
}
_x = _x - xspeed;
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3214 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 80;
impact = 0;
shot = false;
CHARGE = 1;
RANDOMHIT = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
++CHARGE;
if (_root.DIFFICULTY == 'HARD') {
++CHARGE;
}
_x = _x - xspeed;
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 20;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 20;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 3223 {
frame 2 {
if (impact < 4) {
gotoAndPlay(1);
} else {
gotoAndPlay('dead');
}
}
frame 4 {
if (impact < 4) {
gotoAndPlay(3);
} else {
gotoAndPlay('dead');
}
}
frame 6 {
if (impact < 4) {
gotoAndPlay(5);
} else {
gotoAndPlay('dead');
}
}
frame 8 {
if (impact < 4) {
gotoAndPlay(7);
} else {
gotoAndPlay('dead');
}
}
frame 10 {
if (impact < 4) {
gotoAndPlay(9);
} else {
gotoAndPlay('dead');
}
}
frame 12 {
if (impact < 4) {
gotoAndPlay(11);
} else {
gotoAndPlay('dead');
}
}
frame 13 {
DEAD();
}
frame 21 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 3223 {
onClipEvent (load) {
function DEAD() {
_root.ground.plank6.swapDepths(999);
_root.ground.plank6.removeMovieClip();
}
R = Math.round(Math.random() * 11);
gotoAndPlay(R);
health = 1;
impact = 0;
shot = false;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
shot = false;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3223 {
onClipEvent (load) {
function DEAD() {
_root.ground.plank5.swapDepths(999);
_root.ground.plank5.removeMovieClip();
}
R = Math.round(Math.random() * 11);
gotoAndPlay(R);
health = 1;
impact = 0;
shot = false;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
shot = false;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3223 {
onClipEvent (load) {
function DEAD() {
_root.ground.plank4.swapDepths(999);
_root.ground.plank4.removeMovieClip();
}
R = Math.round(Math.random() * 11);
gotoAndPlay(R);
health = 1;
impact = 0;
shot = false;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
shot = false;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3223 {
onClipEvent (load) {
function DEAD() {
_root.ground.plank3.swapDepths(999);
_root.ground.plank3.removeMovieClip();
}
R = Math.round(Math.random() * 11);
gotoAndPlay(R);
health = 1;
impact = 0;
shot = false;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
shot = false;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3223 {
onClipEvent (load) {
function DEAD() {
_root.ground.plank2.swapDepths(999);
_root.ground.plank2.removeMovieClip();
}
R = Math.round(Math.random() * 11);
gotoAndPlay(R);
health = 1;
impact = 0;
shot = false;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
shot = false;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3223 {
onClipEvent (load) {
function DEAD() {
_root.ground.plank1.swapDepths(999);
_root.ground.plank1.removeMovieClip();
}
R = Math.round(Math.random() * 11);
gotoAndPlay(R);
health = 1;
impact = 0;
shot = false;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
shot = false;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3037 {
onClipEvent (load) {
fallspeed = 0;
speed = 0;
impact = 0;
onscreen = false;
SIZE = 10;
Y = _y;
X = _x;
}
onClipEvent (enterFrame) {
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
_x = _x + speed;
speed *= 0.5;
if (impact > 0) {
if (_root.guy._x < _x) {
speed = 10;
} else {
speed = -10;
}
impact = 0;
}
if (shot) {
if (_root.guy._x < _x) {
speed = 5;
} else {
speed = -5;
}
shot = false;
}
_root.ground.BOX2._x = _x - _root.ground._x;
_root.ground.BOX2._y = _y - _root.ground._y + 10;
while (_root.ground.hitTest(_x + 80, _y - _height / 2, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 80, _y - _height / 2, true)) {
_x = _x + 1;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._x > _x) {
i = 0;
while (i < 100) {
_root['enemy' + i].swapDepths(999 + i);
_root['enemy' + i].removeMovieClip();
++i;
}
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 888 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
if (seconds == 0) {
deltax = _root.guy._x - _x;
deltay = _root.guy._y - 40 - _y;
_rotation = Math.atan2(deltay, deltax) / 0.0174532925199433;
xspeed = -10;
yspeed = -10;
}
if (seconds < 0) {
_x = _x + xspeed * Math.cos(_rotation * 0.0174532925199433);
_y = _y + yspeed * Math.sin(_rotation * 0.0174532925199433);
xspeed += 2;
yspeed += 2;
if (seconds < -30) {
_rotation = 0;
seconds = 100;
}
} else {
SIN += 0.05;
X = _root.guy._x + 120 * Math.sin(SIN);
Y = _root.guy._y - 200 + 30 * Math.cos(SIN);
_x = _x - (_x - X) / 10;
_y = _y - (_y - Y) / 10;
}
--seconds;
if (_root.DIFFICULTY == 'HARD') {
--seconds;
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 3225 {
}
movieClip 3227 {
}
instance of movieClip 3227 {
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
if (this.hitTest(_root.lights)) {
if (_alpha > 0) {
_alpha = _alpha - 1;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 1;
}
}
}
}
movieClip 3229 {
}
instance of movieClip 3229 {
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _height / 2) {
_visible = true;
if (_root.cam.hitTest(this)) {
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x - X;
}
} else {
_visible = false;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.gotoAndPlay(1);
}
}
}
movieClip 3231 {
frame 1 {
_visible = false;
}
}
instance crate1 of movieClip 3231 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.ground[_name]._x + _root.ground._x;
_y = _root.ground[_name]._y + _root.ground._y;
if (this.hitTest(_root.guy)) {
_root.guy.mc.X += _x - oldX;
_root.guy.mc.Y += _y - oldY;
}
oldX = _x;
oldY = _y;
}
}
instance crate2 of movieClip 3231 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.ground[_name]._x + _root.ground._x;
_y = _root.ground[_name]._y + _root.ground._y;
if (this.hitTest(_root.guy)) {
_root.guy.mc.X += _x - oldX;
_root.guy.mc.Y += _y - oldY;
}
oldX = _x;
oldY = _y;
}
}
instance crate3 of movieClip 3231 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.ground[_name]._x + _root.ground._x;
_y = _root.ground[_name]._y + _root.ground._y;
if (this.hitTest(_root.guy)) {
_root.guy.mc.X += _x - oldX;
_root.guy.mc.Y += _y - oldY;
}
oldX = _x;
oldY = _y;
}
}
instance crate4 of movieClip 3231 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.ground[_name]._x + _root.ground._x;
_y = _root.ground[_name]._y + _root.ground._y;
if (this.hitTest(_root.guy)) {
_root.guy.mc.X += _x - oldX;
_root.guy.mc.Y += _y - oldY;
}
oldX = _x;
oldY = _y;
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.health = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.health = 0;
}
}
}
movieClip 3328 {
}
movieClip 3336 {
frame 1 {
FRAME = Math.round(_parent._parent.FUSE);
if (FRAME >= 285) {
gotoAndPlay(285);
} else {
gotoAndPlay(FRAME);
}
onEnterFrame = function () {
FRAME = Math.round(_parent._parent.FUSE);
if (FRAME >= 285) {
gotoAndPlay(285);
} else {
gotoAndPlay(FRAME);
}
};
}
frame 251 {
++_root.enemycount;
duplicateMovieClip(_root.bomb, 'bomb' + _root.enemycount, _root.enemycount);
_root['bomb' + _root.enemycount]._x = _parent._parent._x;
_root['bomb' + _root.enemycount]._y = _parent._parent._y - 60;
_root['bomb' + _root.enemycount].gotoAndPlay(2);
}
frame 289 {
stop();
}
}
movieClip 3397 {
frame 1 {
_visible = false;
}
frame 19 {
var savefile = SharedObject.getLocal('JOHNNY');
if (savefile.data.WELCOMED == true) {
this.swapDepths(999);
this.removeMovieClip();
}
}
frame 20 {
_root.PAUSE = true;
_visible = true;
_root._quality = 'MEDIUM';
}
frame 55 {
stop();
onPress = function () {
play();
};
}
frame 77 {
_root._quality = 'LOW';
_root.PAUSE = false;
stop();
}
frame 78 {
_root.PAUSE = true;
_visible = true;
_root._quality = 'MEDIUM';
}
frame 114 {
stop();
onPress = function () {
play();
};
}
frame 138 {
_root._quality = 'LOW';
_root.PAUSE = false;
this.swapDepths(999);
this.removeMovieClip();
}
frame 140 {
_root.PAUSE = true;
_visible = true;
_root._quality = 'MEDIUM';
}
frame 158 {
stop();
onPress = function () {
play();
};
}
frame 180 {
_root._quality = 'LOW';
_root.PAUSE = false;
this.swapDepths(999);
this.removeMovieClip();
}
}
instance CONTROLS of movieClip 3397 {
onClipEvent (load) {
gotoAndStop('HANG');
}
onClipEvent (enterFrame) {
if (_root.guy._x > _x && _root.guy._y < _y) {
play();
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width;
_height = _root.cam._height;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 3400 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (!_root.MUSICMUTE) {
gotoAndPlay(1);
}
}
};
}
}
instance of movieClip 1981 {
onClipEvent (enterFrame) {
this.swapDepths(999);
this.removeMovieClip();
}
}
frame 13 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 90;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
bossbulletcount = 130;
bossbulletmax = 150;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 3401 {
}
movieClip 3404 {
}
movieClip 3406 {
}
instance of movieClip 3406 {
onClipEvent (load) {
Y = _y;
}
onClipEvent (enterFrame) {
_y = _root.cam._y + _root.cam._height / 2 - _root.cam._y / 80;
if (_y < Y - 300) {
_y = Y - 300;
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
LOCKED = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
OLDX = _x;
_x = _x - (_x - X) / 3;
if (!LOCKED) {
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
}
}
}
movieClip 3416 {
frame 1 {
stop();
}
frame 9 {
dead = true;
}
}
movieClip 3417 {
frame 1 {
_visible = false;
}
instance DICK of movieClip 3416 {
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 1200) {
_y = _y + 1600;
FRAME = 1 + Math.round(Math.random() * 6);
gotoAndStop(FRAME);
dead = false;
}
}
}
instance TOM of movieClip 3416 {
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 1200) {
_y = _y + 1600;
FRAME = 1 + Math.round(Math.random() * 6);
gotoAndStop(FRAME);
dead = false;
}
}
}
instance HARRY of movieClip 3416 {
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 1200) {
_y = _y + 1600;
FRAME = 1 + Math.round(Math.random() * 6);
gotoAndStop(FRAME);
dead = false;
}
}
}
instance STEVEN of movieClip 3416 {
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 1200) {
_y = _y + 1600;
FRAME = 1 + Math.round(Math.random() * 6);
gotoAndStop(FRAME);
dead = false;
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
if (fallspeed > 25) {
fallspeed = 25;
}
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 50 * Math.cos(R * 0.0174532925199433);
yshot = i * 50 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].shot = true;
}
if (_root['enemy' + o].weakpoint.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 10;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].bossshot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 3420 {
}
movieClip 3429 {
}
movieClip 3440 {
}
movieClip 3441 {
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(4);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(5);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(3);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(6);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(7);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(8);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -Math.random() * 5;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(8);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -Math.random() * 5;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(4);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3429 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(9);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(10);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(10);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(11);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(11);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(4);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(1);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(2);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
instance of movieClip 3440 {
onClipEvent (load) {
gotoAndStop(4);
fallspeed = -5 - Math.random() * 3;
speed = -5 - Math.random() * 5;
rotate = -5 - Math.random() * 15;
seconds = 20 + Math.random() * 5;
SIN = 0;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation - rotate;
--seconds;
if (seconds < 0) {
++SIN;
if (Math.round(Math.sin(SIN)) == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
}
}
movieClip 3442 {
instance DICK of movieClip 3441 {
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 1200) {
_y = _y + 1600;
dead = false;
}
if (!_root.ground.DICK.dead) {
DEATHFRAME = _currentframe + 10;
FRAME = _root.ground.DICK._currentframe;
gotoAndStop(FRAME);
} else {
if (!dead) {
gotoAndStop(DEATHFRAME);
dead = true;
}
}
}
}
instance TOM of movieClip 3441 {
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 1200) {
_y = _y + 1600;
dead = false;
}
if (!_root.ground.TOM.dead) {
DEATHFRAME = _currentframe + 10;
FRAME = _root.ground.TOM._currentframe;
gotoAndStop(FRAME);
} else {
if (!dead) {
gotoAndStop(DEATHFRAME);
dead = true;
}
}
}
}
instance HARRY of movieClip 3441 {
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 1200) {
_y = _y + 1600;
dead = false;
}
if (!_root.ground.HARRY.dead) {
DEATHFRAME = _currentframe + 10;
FRAME = _root.ground.HARRY._currentframe;
gotoAndStop(FRAME);
} else {
if (!dead) {
gotoAndStop(DEATHFRAME);
dead = true;
}
}
}
}
instance HARRY of movieClip 3441 {
onClipEvent (load) {
dead = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 1200) {
_y = _y + 1600;
dead = false;
}
if (!_root.ground.STEVEN.dead) {
DEATHFRAME = _currentframe + 10;
FRAME = _root.ground.STEVEN._currentframe;
gotoAndStop(FRAME);
} else {
if (!dead) {
gotoAndStop(DEATHFRAME);
dead = true;
}
}
}
}
}
movieClip 3445 {
frame 1 {
FRAME = _parent._parent.glow;
gotoAndPlay(FRAME);
onEnterFrame = function () {
if (_parent.glow <= 1) {
_parent.glow = 1;
}
FRAME = _parent._parent.glow;
gotoAndPlay(FRAME);
};
}
}
movieClip 3446 {
}
movieClip 3457 {
frame 16 {
_root.cam._y -= 20;
}
frame 17 {
_root.cam._y += 35;
}
frame 18 {
_root.cam._y -= 25;
}
frame 19 {
_root.cam._y += 19;
}
frame 20 {
_root.cam._y -= 16;
}
frame 21 {
_root.cam._y += 13;
}
frame 22 {
_root.cam._y -= 9;
}
frame 23 {
_root.cam._y += 7;
}
frame 24 {
_root.cam._y -= 5;
}
frame 25 {
_root.cam._y -= 3;
}
frame 26 {
_root.cam._y += 1;
}
}
movieClip 3509 {
}
movieClip 3570 {
frame 1 {
i = 0;
while (i < 30) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 40;
while (i < 80) {
circle.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance smoke of movieClip 697 {
onClipEvent (load) {
_alpha = 30;
_xscale = 1000 + Math.random() * 100;
_yscale = _xscale;
_x = 20 - Math.random() * 40;
X = _x;
_y = 20 - Math.random() * 40;
Y = _y;
SIZEred = 1.1;
}
onClipEvent (enterFrame) {
_x = _x + X / 30;
_y = _y + Y / 30;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
SIZEred *= 2;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance circle of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 5 + Math.random() * 5;
_xscale = 300 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.8;
fallspeed *= 0.8;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'circle') {
_visible = true;
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 10 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
frame 53 {
deltax = _root.guy._x - (_parent._parent._x + 180);
deltay = _root.guy._y - 40 - (_parent._parent._y + 170);
R = Math.atan2(deltay, deltax) / 0.0174532925199433 + 180;
}
frame 72 {
_rotation = R;
_root.swishL.start(0, 1);
}
frame 75 {
if (_rotation < -20 || _rotation > 20) {
gotoAndPlay('missed');
}
_root.explosion1.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 3509 {
onClipEvent (load) {
_rotation = -_parent._rotation;
}
}
frame 146 {
stop();
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
xspeed = 35 * Math.cos(_parent._rotation * 0.0174532925199433);
yspeed = -15 * Math.sin(_parent._rotation * 0.0174532925199433);
_root.guy.fallspeed = yspeed;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -(_root.guy._xscale / 100) * xspeed;
}
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
frame 192 {
stop();
}
}
movieClip 3594 {
frame 11 {
_root.puff.start(0, 1);
_root.ignite.start(0, 1);
_root.guncock.start(0, 1);
}
}
movieClip 3609 {
frame 1 {
X = _root.cam._x;
}
frame 2 {
_root.cam._x -= 20;
_root.gunshotHUGE.start(0, 1);
}
instance beam of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -15;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -_root.guy._xscale * 0.4;
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
frame 3 {
_root.cam._x += 35;
}
frame 4 {
_root.cam._x -= 25;
}
frame 5 {
_root.cam._x += 19;
}
frame 6 {
_root.cam._x -= 16;
}
frame 7 {
_root.cam._x += 13;
}
frame 8 {
_root.cam._x -= 9;
}
frame 9 {
_root.cam._x += 7;
}
frame 10 {
_root.cam._x -= 5;
}
frame 11 {
_root.cam._x -= 3;
}
frame 12 {
_root.cam._x += 1;
}
frame 13 {
_root.cam._x = X;
}
}
movieClip 3610 {
frame 1 {
if (_root.bosshealth < 50) {
gotoAndPlay('drop');
}
}
frame 2 {
if (glow == 125) {
gotoAndPlay('shoot');
} else {
if (glow == 75) {
R = Math.random();
if (R > 0.5) {
gotoAndPlay('whip');
} else {
if (_root.guy._y < _y + _height * 0.8) {
gotoAndPlay(1);
}
}
} else {
if (_root.guy._y < _y + _height * 0.8) {
gotoAndPlay(1);
}
}
}
}
frame 3 {
if (mc._currentframe > 5 && mc._currentframe <= 15) {
_y = _y + 40;
}
if (_root.bosshealth < 50) {
gotoAndPlay('drop');
}
}
frame 4 {
if (mc._currentframe < 33) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}
}
frame 5 {
if (mc._currentframe >= 10) {
glow -= 5;
}
if (glow < 1) {
glow = 1;
}
if (_root.bosshealth < 50) {
gotoAndPlay('drop');
}
}
frame 6 {
if (mc._currentframe < 160) {
gotoAndPlay('whip');
} else {
gotoAndPlay(1);
glow = 1;
}
}
frame 7 {
glow = 1;
if (_root.bosshealth < 50) {
gotoAndPlay('drop');
}
}
frame 8 {
if (mc._currentframe >= 14 && mc._currentframe <= 16 && _root.guy._y > _y + _height * 0.8) {
gotoAndPlay(3);
} else {
if (mc._currentframe < 40) {
gotoAndPlay('shoot');
} else {
gotoAndPlay(1);
}
}
}
frame 9 {
glow = 1;
if (mc._currentframe > 5 && mc._currentframe <= 15) {
_y = _y + 40;
}
if (mc._currentframe > 14) {
mc.gotoAndPlay(14);
}
if (_y > _root.cam._y + 200) {
_root.cam.LOCKED = true;
_root.ground.TOM.gotoAndStop('dead');
_root.ground.DICK.gotoAndStop('dead');
_root.ground.HARRY.gotoAndStop('dead');
_root.ground.STEVEN.gotoAndStop('dead');
_root.guy.impact = 20;
}
}
frame 10 {
gotoAndPlay('drop');
}
}
instance boss of movieClip 3610 {
onClipEvent (load) {
glow = 1;
_root.bossMAXhealth = 150;
_root.bosshealth = _root.bossMAXhealth;
health = _root.bosshealth;
onscreen = false;
shot = false;
impact = 0;
RANDOMHIT = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.bosshealth < 50) {
_root.boss convo.play();
}
mc.play();
if (onscreen) {
if (glow < 125) {
++glow;
if (_root.DIFFICULTY == 'HARD') {
++glow;
}
}
_root.GLOW = glow;
_root.bosshealth = health;
if (health < 0) {
health = 0;
}
if (impact > 0) {
--impact;
}
if (shot) {
shot = false;
}
if (bossshot) {
health -= 1.5;
impact = 3;
bossshot = false;
}
_root.HUD.ALPHA = glow;
} else {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
if (_y > _root.cam._y + 800) {
_root.play();
}
} else {
mc.stop();
}
}
}
movieClip 3613 {
}
movieClip 3635 {
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = -100;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
}
movieClip 3788 {
instance GUN of movieClip 3635 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_currentframe <= 60) {
xDist = _x + _parent._x - _root.guy._x;
yDist = _y + _parent._y - _root.guy._y + 20;
angle = Math.atan2(yDist, xDist);
_rotation = angle / 0.0174532925199433 - 90;
}
}
}
}
}
instance of movieClip 3788 {
onClipEvent (load) {
elasticness = 0.8;
quickness = 0.05;
OLDYSPEED = 0;
SIN = 1;
oldY = 0;
if (_root.DIFFICULTY == 'MEDIUM') {
this.swapDepths(999);
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (GUN._currentframe < 60) {
YDISTANCE = _root.cam._y - 100 - _y;
YSPEED = OLDYSPEED * elasticness + YDISTANCE * quickness;
_y = _y + YSPEED;
OLDYSPEED = YSPEED;
SIN += Math.round(_y - oldY);
if (SIN > 78) {
SIN = 1;
}
if (SIN < 1) {
SIN = 78;
}
oldY = _y;
gotoAndStop(SIN);
}
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
movieClip 3895 {
frame 1 {
_visible = false;
}
frame 2 {
_visible = true;
_root.HUD._visible = false;
_root.PAUSE = true;
_root._quality = 'HIGH';
_root['enemy' + _root.enemycount].seconds = 0;
}
frame 30 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'SAY HELLO TO MY \nLITTLE... GUN!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'SAY HELLO TO MY \nLITTLE...') {
speedchecker -= 50;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 31 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 67 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'YOU CALL THAT A GUN? \nWAIT TIL YOU SEE WHAT A \nREAL CANNON LOOKS LIKE.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'YOU CALL THAT A GUN?') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 68 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 82 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'What does a thing \nlike that even \nshoot?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 83 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 93 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'IT SHOOTS PUNKS LIKE \nYOU. NOW HOLD STILL...';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'YOU CALL THAT A GUN?') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 94 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 118 {
_root.PAUSE = false;
_root._quality = _root.QUALITY;
_root.HUD._visible = true;
_root.bossMAXhealth = 150;
_root.bosshealth = _root.bossMAXhealth;
_root.BOSSbar.onscreen = true;
stop();
}
frame 119 {
_root.PAUSE = true;
}
frame 140 {
_root.HUD._visible = false;
i = 0;
while (i < 100) {
_root.line.removeMovieClip();
_root['bullet' + i].removeMovieClip();
_root['shot' + i].removeMovieClip();
_root['missile' + i].removeMovieClip();
++i;
}
}
frame 187 {
_name = 'coss bonvo';
_root.PAUSE = false;
_root._quality = 'MEDIUM';
_root.HUD._visible = true;
stop();
}
frame 189 {
_root.PAUSE = true;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.GLUTTONY = 'beat';
}
frame 311 {
_root.gotoAndStop('pub');
}
}
instance boss convo of movieClip 3895 {
onClipEvent (enterFrame) {
if (_currentframe < 165) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
}
movieClip 3900 {
frame 1 {
X = _x;
Y = _y;
onEnterFrame = function () {
if (_root.bosshealth != oldHealth) {
_x = _x + Math.random() * 5;
_y = _y + Math.random() * 5;
}
oldHealth = _root.bosshealth;
_x = _x - (_x - X) / 3;
_y = _y - (_y - Y) / 3;
};
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (X / _root.bossMAXhealth) * _root.bosshealth;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
_xscale = (X / _root.bossMAXhealth) * _root.bosshealth;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
_xscale = (X / 125) * _root.GLOW;
}
}
}
movieClip 3901 {
}
instance BOSSbar of movieClip 3901 {
onClipEvent (load) {
_alpha = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 3904 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
gotoAndPlay(1);
}
}
};
}
}
frame 15 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
seconds = 100;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
instance crate1 of movieClip 3231 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.ground[_name]._x + _root.ground._x;
_y = _root.ground[_name]._y + _root.ground._y;
if (this.hitTest(_root.guy)) {
_root.guy.mc.X += _x - oldX;
_root.guy.mc.Y += _y - oldY;
}
oldX = _x;
oldY = _y;
}
}
instance crate2 of movieClip 3231 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.ground[_name]._x + _root.ground._x;
_y = _root.ground[_name]._y + _root.ground._y;
if (this.hitTest(_root.guy)) {
_root.guy.mc.X += _x - oldX;
_root.guy.mc.Y += _y - oldY;
}
oldX = _x;
oldY = _y;
}
}
instance crate3 of movieClip 3231 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.ground[_name]._x + _root.ground._x;
_y = _root.ground[_name]._y + _root.ground._y;
if (this.hitTest(_root.guy)) {
_root.guy.mc.X += _x - oldX;
_root.guy.mc.Y += _y - oldY;
}
oldX = _x;
oldY = _y;
}
}
instance crate4 of movieClip 3231 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.ground[_name]._x + _root.ground._x;
_y = _root.ground[_name]._y + _root.ground._y;
if (this.hitTest(_root.guy)) {
_root.guy.mc.X += _x - oldX;
_root.guy.mc.Y += _y - oldY;
}
oldX = _x;
oldY = _y;
}
}
movieClip 3907 {
frame 1 {
_visible = false;
}
instance crate1 of movieClip 145 {
onClipEvent (load) {
speed = 5;
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
if (_x < _root.X1._x - _parent._x) {
_x = _x + speed;
} else {
if (_y > _root.Y1._y - _parent._y) {
_y = _y - speed;
} else {
_x = _x + speed;
}
}
if (_x > _root.X2._x - _parent._x) {
_x = X;
_y = Y;
}
}
}
instance crate2 of movieClip 145 {
onClipEvent (load) {
speed = 5;
X = _x;
Y = _y;
i = 0;
while (i < 100) {
if (_x < _root.X1._x - _parent._x) {
_x = _x + speed;
} else {
if (_y > _root.Y1._y - _parent._y) {
_y = _y - speed;
} else {
_x = _x + speed;
}
}
++i;
}
}
onClipEvent (enterFrame) {
if (_x < _root.X1._x - _parent._x) {
_x = _x + speed;
} else {
if (_y > _root.Y1._y - _parent._y) {
_y = _y - speed;
} else {
_x = _x + speed;
}
}
if (_x > _root.X2._x - _parent._x) {
_x = X;
_y = Y;
}
}
}
instance crate3 of movieClip 145 {
onClipEvent (load) {
speed = 5;
X = _x;
Y = _y;
i = 0;
while (i < 200) {
if (_x < _root.X1._x - _parent._x) {
_x = _x + speed;
} else {
if (_y > _root.Y1._y - _parent._y) {
_y = _y - speed;
} else {
_x = _x + speed;
}
}
++i;
}
}
onClipEvent (enterFrame) {
if (_x < _root.X1._x - _parent._x) {
_x = _x + speed;
} else {
if (_y > _root.Y1._y - _parent._y) {
_y = _y - speed;
} else {
_x = _x + speed;
}
}
if (_x > _root.X2._x - _parent._x) {
_x = X;
_y = Y;
}
}
}
instance crate4 of movieClip 145 {
onClipEvent (load) {
speed = 5;
X = _x;
Y = _y;
i = 0;
while (i < 300) {
if (_x < _root.X1._x - _parent._x) {
_x = _x + speed;
} else {
if (_y > _root.Y1._y - _parent._y) {
_y = _y - speed;
} else {
_x = _x + speed;
}
}
++i;
}
}
onClipEvent (enterFrame) {
if (_x < _root.X1._x - _parent._x) {
_x = _x + speed;
} else {
if (_y > _root.Y1._y - _parent._y) {
_y = _y - speed;
} else {
_x = _x + speed;
}
}
if (_x > _root.X2._x - _parent._x) {
_x = X;
_y = Y;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.gotoAndPlay(1);
}
}
}
movieClip 3912 {
frame 58 {
_root.cam._y -= 40;
}
frame 59 {
_root.cam._y += 35;
}
frame 60 {
_root.cam._y -= 30;
}
frame 61 {
_root.cam._y += 28;
}
frame 62 {
_root.cam._y -= 25;
}
frame 63 {
_root.cam._y += 22;
}
frame 64 {
_root.cam._y -= 20;
}
frame 65 {
_root.cam._y += 18;
}
frame 66 {
_root.cam._y -= 15;
}
frame 67 {
_root.cam._y += 12;
}
frame 68 {
_root.cam._y -= 10;
}
frame 69 {
_root.cam._y += 8;
}
frame 70 {
_root.cam._y -= 5;
}
frame 71 {
_root.cam._y += 3;
}
frame 72 {
_root.cam._y -= 1;
}
}
movieClip 3913 {
}
movieClip 3932 {
frame 1 {
X = _root.cam._x;
}
frame 14 {
_root.cam._x -= 20;
_parent.glow = 1;
_root.gunshotHUGE.start(0, 1);
}
instance beam of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -15;
_root.guy.health -= 30;
_root.guy._xscale = 100;
_root.guy.speed = -_root.guy._xscale * 0.4;
}
if (this.hitTest(_root.ground.TOM)) {
_root.ground.TOM.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.DICK)) {
_root.ground.DICK.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.HARRY)) {
_root.ground.HARRY.gotoAndStop('dead');
}
if (this.hitTest(_root.ground.STEVEN)) {
_root.ground.STEVEN.gotoAndStop('dead');
}
}
}
frame 15 {
_root.cam._x += 35;
}
frame 16 {
_root.cam._x -= 25;
}
frame 17 {
_root.cam._x += 19;
}
frame 18 {
_root.cam._x -= 16;
}
frame 19 {
_root.cam._x += 13;
}
frame 20 {
_root.cam._x -= 9;
}
frame 21 {
_root.cam._x += 7;
}
frame 22 {
_root.cam._x -= 5;
}
frame 23 {
_root.cam._x -= 3;
}
frame 24 {
_root.cam._x += 1;
}
frame 25 {
_root.cam._x = X;
}
}
movieClip 3933 {
frame 2 {
if (mc._currentframe < 75) {
gotoAndPlay('land');
} else {
play();
}
}
frame 4 {
if (glow == 125) {
gotoAndPlay('shoot');
} else {
gotoAndPlay('standing');
}
}
frame 6 {
if (mc._currentframe < 38) {
gotoAndPlay('shoot');
} else {
gotoAndPlay('standing');
}
}
}
instance boss of movieClip 3933 {
onClipEvent (load) {
glow = -75;
_root.bossMAXhealth = 150;
_root.bosshealth = 50;
health = _root.bosshealth;
onscreen = false;
shot = false;
impact = 0;
RANDOMHIT = 0;
}
onClipEvent (enterFrame) {
if (_root.bosshealth <= 0) {
_root.boss convo.play();
}
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (glow < 125) {
++glow;
}
_root.GLOW = glow;
_root.bosshealth = health;
if (impact > 0) {
--impact;
}
if (shot) {
--health;
impact = 3;
shot = false;
}
} else {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
} else {
mc.stop();
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
fallspeed = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_y >= 1300) {
_x = continueX;
_y = continueY;
fallspeed = 0;
speed = 0;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 3936 {
frame 1 {
fallspeed = Math.random() * 5;
seconds = 100 + Math.random() * 20;
SIN = 0;
R = 5 - Math.random() * 10;
FRAME = Math.round(Math.random() * 20);
gotoAndPlay(FRAME);
onEnterFrame = function () {
++fallspeed;
_y = _y + fallspeed;
_rotation = _rotation + R;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed *= -0.3;
}
--seconds;
if (seconds < 20) {
++SIN;
if (Math.sin(SIN) > 0) {
_visible = false;
} else {
_visible = true;
}
if (seconds < 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = _y - 1;
}
};
}
frame 40 {
gotoAndPlay(2);
}
}
instance of movieClip 3936 {
onClipEvent (load) {
_root.smash.start(0, 1);
}
}
movieClip 3937 {
frame 1 {
fallspeed = Math.random() * 5;
seconds = 100 + Math.random() * 20;
SECONDS = 50;
SIN = 0;
R = 5 - Math.random() * 10;
FRAME = Math.round(Math.random() * 20);
gotoAndPlay(FRAME);
onEnterFrame = function () {
--SECONDS;
if (SECONDS < 0) {
++fallspeed;
_y = _y + fallspeed;
_rotation = _rotation + R;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed *= -0.3;
}
--seconds;
if (seconds < 20) {
++SIN;
if (Math.sin(SIN) > 0) {
_visible = false;
} else {
_visible = true;
}
if (seconds < 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
while (_root.ground.hitTest(_x, _y, true)) {
_y = _y - 1;
}
}
};
}
frame 40 {
gotoAndPlay(2);
}
}
instance of movieClip 3937 {
onClipEvent (load) {
SECONDS = 50;
}
onClipEvent (enterFrame) {
--SECONDS;
if (SECONDS == 0) {
_root.smashbig.start(0, 1);
}
}
}
movieClip 3958 {
frame 1 {
_visible = false;
}
frame 2 {
_visible = true;
}
frame 18 {
_root.cam._y -= 5;
_root.biff1.start(0, 1);
}
frame 19 {
_root.cam._y += 10;
}
frame 20 {
_root.cam._y -= 8;
}
frame 21 {
_root.cam._y += 6;
}
frame 22 {
_root.cam._y -= 4;
}
frame 23 {
_root.cam._y += 2;
}
frame 36 {
_root.cam._y -= 5;
_root.biff1.start(0, 1);
}
frame 37 {
_root.cam._y += 10;
}
frame 38 {
_root.cam._y -= 8;
}
frame 39 {
_root.cam._y += 6;
}
frame 40 {
_root.cam._y -= 4;
}
frame 41 {
_root.cam._y += 2;
}
frame 55 {
stop();
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance BOSSbar of movieClip 3901 {
onClipEvent (load) {
_alpha = 0;
onscreen = false;
seconds = 100;
}
onClipEvent (enterFrame) {
if (seconds < 0) {
onscreen = true;
} else {
--seconds;
}
if (onscreen) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
instance boss convo of movieClip 3895 {
onClipEvent (load) {
gotoAndStop('2');
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 17 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 90;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
rootcount = 130;
rootmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
bossMAXhealth = 0;
defense = 1;
_root.bossmaxhealth = 0;
_root.bosshealth = 0;
}
movieClip 3962 {
frame 1 {
onscreen = false;
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.8;
_y = _y - (OLDY - _root.cam._y) * 0.8;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
if (_root.guy._y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.5;
_y = _y - (OLDY - _root.cam._y) * 0.5;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
if (_root.guy._y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.TREE.hitTest(this)) {
if (_root.guy._y >= _y - 200) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
}
}
if (_root.PLATFORMING.hitTest(this)) {
if (_root.guy._y >= _y - 200) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
}
}
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX && _y < originY + 50) {
_x = originX + 1;
}
}
}
}
movieClip 3968 {
}
movieClip 3970 {
}
movieClip 3973 {
instance of movieClip 3968 {
onClipEvent (enterFrame) {
_rotation = _rotation + 0.5;
}
}
instance of movieClip 3970 {
onClipEvent (enterFrame) {
_rotation = _rotation + 0.5;
}
}
}
instance of movieClip 3973 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.3;
_y = _y - (OLDY - _root.cam._y) * 0.3;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
}
}
movieClip 4012 {
}
movieClip 4020 {
frame 1 {
FRAME = Math.round(Math.random() * 10);
gotoAndPlay(FRAME);
}
}
movieClip 4022 {
}
movieClip 4039 {
}
movieClip 4053 {
frame 1 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - _parent._height / 2;
}
_root.explosion1.start(0, 1);
++_root.bodycount;
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
}
frame 12 {
gotoAndPlay(11);
}
}
movieClip 4054 {
instance petal of movieClip 4020 {
onClipEvent (enterFrame) {
if (_name == 'petal') {
_visible = false;
} else {
_visible = true;
}
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
speed *= 0.9;
if (_y > 100 + Math.random() * 100) {
this.removeMovieClip();
}
}
}
frame 2 {
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
i = 0;
while (i < 150) {
duplicateMovieClip(petal, 'petal' + i, i);
this['petal' + i]._x = petal._x + Math.random() * 10 * Math.cos(Math.random() * 360 * 0.0174532925199433);
this['petal' + i]._y = petal._y + Math.random() * 10 * Math.sin(Math.random() * 360 * 0.0174532925199433);
this['petal' + i].speed = 8 - Math.random() * 20;
this['petal' + i].fallspeed = -5 + Math.random() * 5;
++i;
}
} else {
if (impact < 3) {
gotoAndPlay(1);
}
}
} else {
gotoAndPlay(1);
}
}
frame 3 {
if (!_root.PAUSE) {
++i;
duplicateMovieClip(petal, 'petal' + i, i);
this['petal' + i]._x = petal._x + Math.random() * 10 * Math.cos(Math.random() * 360 * 0.0174532925199433);
this['petal' + i]._y = petal._y + Math.random() * 10 * Math.sin(Math.random() * 360 * 0.0174532925199433);
this['petal' + i].speed = 8 - Math.random() * 20;
this['petal' + i].fallspeed = -5 + Math.random() * 5;
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
}
}
frame 4 {
if (health <= 0) {
gotoAndPlay('dead');
i = 0;
while (i < 150) {
duplicateMovieClip(petal, 'petal' + i, i);
this['petal' + i]._x = petal._x + Math.random() * 10 * Math.cos(Math.random() * 360 * 0.0174532925199433);
this['petal' + i]._y = petal._y + Math.random() * 10 * Math.sin(Math.random() * 360 * 0.0174532925199433);
this['petal' + i].speed = 8 - Math.random() * 20;
this['petal' + i].fallspeed = -5 + Math.random() * 5;
++i;
}
} else {
if (impact > 0) {
gotoAndPlay('hit');
} else {
gotoAndPlay(1);
}
}
}
frame 5 {
seconds = 20;
}
frame 6 {
gotoAndPlay('dead');
}
}
instance of movieClip 4054 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 6;
seconds = 20;
i = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
--seconds;
if (seconds < 0) {
seconds = 35;
if (!_root.guy.body.hitTest(this)) {
++_root.rootcount;
if (_root.rootcount > _root.rootmax) {
_root.rootcount -= 5;
}
duplicateMovieClip(_root.attack, 'attack' + _root.rootcount, _root.rootcount);
_root['attack' + _root.rootcount]._x = _x;
_root['attack' + _root.rootcount]._y = _y;
}
}
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 4054 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 6;
seconds = 20;
i = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
--seconds;
if (seconds < 0) {
seconds = 35;
if (!_root.guy.body.hitTest(this)) {
++_root.rootcount;
if (_root.rootcount > _root.rootmax) {
_root.rootcount -= 5;
}
duplicateMovieClip(_root.attack, 'attack' + _root.rootcount, _root.rootcount);
_root['attack' + _root.rootcount]._x = _x;
_root['attack' + _root.rootcount]._y = _y;
}
}
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 4054 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 6;
seconds = 20;
i = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
--seconds;
if (seconds < 0) {
seconds = 35;
if (!_root.guy.body.hitTest(this)) {
++_root.rootcount;
if (_root.rootcount > _root.rootmax) {
_root.rootcount -= 5;
}
duplicateMovieClip(_root.attack, 'attack' + _root.rootcount, _root.rootcount);
_root['attack' + _root.rootcount]._x = _x;
_root['attack' + _root.rootcount]._y = _y;
}
}
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 4059 {
frame 1 {
FRAME = 1 + Math.round(Math.random() * 2);
gotoAndStop(FRAME);
if (Math.random() > 0.5) {
_xscale = -100;
}
}
}
movieClip 4066 {
frame 2 {
if (!_root.COW) {
gotoAndPlay(1);
}
}
frame 4 {
if (_root.COW) {
gotoAndPlay(3);
}
}
}
movieClip 4068 {
}
movieClip 4071 {
frame 1 {
_visible = false;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.bodycount >= 5) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
movieClip 4079 {
frame 1 {
_visible = false;
}
frame 2 {
_visible = true;
}
frame 60 {
stop();
}
}
movieClip 4082 {
frame 1 {
speed = Math.random() + 0.5;
fallspeed = 0;
}
frame 2 {
onEnterFrame = function () {
if (_currentframe < 9) {
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
if (shot) {
gotoAndPlay('dead');
shot = false;
}
}
};
}
frame 5 {
fallspeed -= 6;
_y = _y + (1 - Math.random() * 2);
}
frame 8 {
if (!shot) {
gotoAndPlay(2);
}
}
frame 9 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - 30;
}
_root.explosion1.start(0, 1);
_root.cam._x += 5;
COIN();
}
frame 9 {
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
i = 100;
while (i < 105) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 10 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
frame 10 {
_root.cam._x -= 10;
COIN();
}
frame 11 {
_root.cam._x += 8;
COIN();
}
frame 12 {
_root.cam._x -= 6;
COIN();
}
frame 13 {
_root.cam._x += 4;
COIN();
}
frame 14 {
_root.cam._x -= 2;
COIN();
}
frame 15 {
_root.cam._x += 1;
stop();
}
}
instance of movieClip 4082 {
onClipEvent (load) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
Y = _y;
}
onClipEvent (enterFrame) {
if (_y < Y - 500) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 4082 {
onClipEvent (load) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
Y = _y;
}
onClipEvent (enterFrame) {
if (_y < Y - 500) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 4082 {
onClipEvent (load) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
Y = _y;
}
onClipEvent (enterFrame) {
if (_y < Y - 500) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 4100 {
frame 10 {
if (_parent.XDISTANCE < 0 && _parent._xscale == 100) {
_parent._xscale = -100;
}
if (_parent.XDISTANCE > 0 && _parent._xscale == -100) {
_parent._xscale = 100;
}
}
}
movieClip 4102 {
}
movieClip 4111 {
frame 17 {
gotoAndPlay(5);
}
}
movieClip 4122 {
}
movieClip 4143 {
frame 9 {
_root.slashL.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop2.start(0, 1);
_root.guy.impact = 5;
_root.guy.health -= 10;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
}
}
movieClip 4162 {
frame 14 {
_parent.speed = 0;
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 5;
_root.guy.health -= 10;
_root.guy._xscale = -_parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
}
}
movieClip 4172 {
}
movieClip 4176 {
frame 3 {
stop();
onEnterFrame = function () {
FRAME = _parent.impact + 3;
gotoAndPlay(FRAME);
};
}
}
movieClip 4203 {
}
movieClip 4232 {
frame 34 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - _parent._height / 2;
}
_root.explosion1.start(0, 1);
++_root.bodycount;
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
i = 0;
while (i < 100) {
duplicateMovieClip(petal, 'petal' + i, i);
this['petal' + i]._x = petal._x + Math.random() * 10 * Math.cos(Math.random() * 360 * 0.0174532925199433);
this['petal' + i]._y = petal._y + Math.random() * 10 * Math.sin(Math.random() * 360 * 0.0174532925199433);
this['petal' + i].speed = 8 - Math.random() * 20;
this['petal' + i].fallspeed = -10 + Math.random() * 5;
++i;
}
}
instance petal of movieClip 4020 {
onClipEvent (enterFrame) {
if (_name == 'petal') {
_visible = false;
} else {
_visible = true;
}
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
speed *= 0.9;
if (_y > 0) {
this.removeMovieClip();
}
}
}
frame 38 {
gotoAndPlay(37);
}
}
movieClip 4242 {
}
movieClip 4243 {
frame 1 {
xspeed = 0;
fallspeed = 0;
--Hcount;
}
frame 2 {
if (onscreen) {
if (XDISTANCE < 200 && XDISTANCE > -200) {
if (Hcount > 0) {
gotoAndPlay('undrill');
} else {
gotoAndPlay('hiding');
}
} else {
gotoAndPlay('undrill');
}
} else {
gotoAndPlay('hiding');
}
}
frame 4 {
if (mc._currentframe < 22) {
gotoAndPlay('undrill');
} else {
gotoAndPlay('stand');
}
}
frame 5 {
xspeed *= 0.6;
Hcount = 100;
}
frame 6 {
if (impact > 3) {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (XDISTANCE < 100 && XDISTANCE > 0 && _xscale == 100) {
gotoAndPlay('slash');
} else {
if (XDISTANCE > -100 && XDISTANCE < 0 && _xscale == -100) {
gotoAndPlay('slash');
} else {
if (XDISTANCE > 100) {
if (_xscale == 100) {
gotoAndPlay('run');
} else {
gotoAndPlay('turn');
}
} else {
if (XDISTANCE < -100) {
if (_xscale == -100) {
gotoAndPlay('run');
} else {
gotoAndPlay('turn');
}
} else {
if (_root.guy.hitTest(this)) {
gotoAndPlay('drill');
} else {
gotoAndPlay('stand');
}
}
}
}
}
}
}
frame 7 {
if (mc._currentframe > 5) {
xspeed = -10 * _xscale / 100;
} else {
xspeed = 0;
}
if (!_root.ground.hitTest(_x - _xscale / 2, _y + 20, true)) {
xspeed = 0;
}
}
frame 8 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (XDISTANCE > 100 && _xscale == 100) {
gotoAndPlay('run');
} else {
if (XDISTANCE < -100 && _xscale == -100) {
gotoAndPlay('run');
} else {
gotoAndPlay('stand');
}
}
}
}
frame 9 {
xspeed = 0;
}
frame 10 {
if (mc._currentframe < 15) {
gotoAndPlay('turn');
} else {
gotoAndPlay('stand');
_xscale = _xscale * -1;
}
}
frame 11 {
xspeed *= 0.6;
}
frame 12 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe < 21) {
gotoAndPlay('slash');
} else {
gotoAndPlay('stand');
}
}
}
frame 13 {
fallspeed = 0;
if (!_root.ground.hitTest(_x, _y, true)) {
_y = _y + 1;
}
}
frame 14 {
if (mc._currentframe < 30) {
gotoAndPlay('drill');
} else {
gotoAndPlay('hiding');
}
}
frame 15 {
if (!_root.PAUSE) {
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
xspeed *= 0.8;
}
}
frame 16 {
if (health <= 0) {
speed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
gotoAndPlay('stand');
}
}
}
frame 18 {
if (_root.ground.hitTest(_x, _y, true)) {
if (health <= 0) {
speed = -5;
gotoAndPlay('dead');
} else {
gotoAndPlay('land');
}
} else {
gotoAndPlay('air hit');
}
}
frame 20 {
if (mc._currentframe < 37) {
gotoAndPlay('land');
} else {
_x = _x + _xscale * 0.3;
gotoAndPlay('stand');
}
}
frame 21 {
xspeed = 0;
fallspeed = 0;
}
instance petal of movieClip 4020 {
onClipEvent (enterFrame) {
if (_name == 'petal') {
_visible = false;
} else {
_visible = true;
}
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
speed *= 0.9;
if (_y > 0) {
this.removeMovieClip();
}
}
}
instance petal of movieClip 4020 {
onClipEvent (enterFrame) {
if (_name == 'petal') {
_visible = false;
} else {
_visible = true;
}
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
speed *= 0.9;
if (_y > 0) {
this.removeMovieClip();
}
}
}
instance petal of movieClip 4020 {
onClipEvent (enterFrame) {
if (_name == 'petal') {
_visible = false;
} else {
_visible = true;
}
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
speed *= 0.9;
if (_y > 0) {
this.removeMovieClip();
}
}
}
frame 110 {
this.swapDepths(999);
this.removeMovieClip();
}
frame 112 {
if (mc._currentframe < 16) {
gotoAndPlay('grow');
} else {
gotoAndPlay(1);
}
}
}
instance of movieClip 4243 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
fallspeed = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_y == Y) {
fallspeed = 0;
if (_root.guy.hitTest(this)) {
fallspeed = 6;
}
}
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 4266 {
frame 1 {
if (_name != 'attack') {
_x = _x + _xscale / 10;
}
}
frame 2 {
if (_name != 'attack') {
_x = _x + _xscale / 10;
}
}
frame 3 {
if (_x < _root.guy._x && _xscale == 100) {
gotoAndPlay(1);
}
if (_x > _root.guy._x && _xscale == -100) {
gotoAndPlay(1);
}
}
frame 4 {
if (Math.random() > 0.5) {
_xscale = 100;
} else {
_xscale = -100;
}
_rotation = _rotation + (10 - Math.random() * 20);
}
frame 5 {
_root.slashL.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop1.start(0, 1);
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy._xscale = _parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.2;
}
}
}
}
frame 50 {
this.removeMovieClip();
stop();
}
}
instance attack of movieClip 4266 {
onClipEvent (load) {
_rotation = 0;
if (_x > _root.guy._x) {
_xscale = -100;
} else {
_xscale = 100;
}
if (_name == 'attack') {
_xscale = 100;
_rotation = 0;
}
}
onClipEvent (enterFrame) {
if (_name != 'attack') {
if (!_root.ground.hitTest(_x, _y + 5, true)) {
this.removeMovieClip();
}
if (!_root.ground.hitTest(_x, _y, true)) {
_y = _y + 1;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.health = 0;
}
}
}
movieClip 4269 {
frame 1 {
onEnterFrame = function () {
_rotation = _rotation + 30;
};
}
}
movieClip 4270 {
}
movieClip 4278 {
frame 1 {
R = Math.round(Math.random() * 5) + 1;
if (_parent._parent.COLOUR == 'green') {
R = 4;
}
gotoAndStop(R);
}
}
movieClip 4279 {
frame 1 {
stop();
}
frame 2 {
_root.cam._x += 5;
_root.explosion1.start(0, 1);
if (this.getDepth() < 0) {
}
COIN();
}
frame 2 {
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
i = 100;
while (i < 105) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -5;
_root.guy.health -= 20;
if (_root.guy._x < _parent._x) {
_root.guy._xscale = 100;
}
if (_root.guy._x > _parent._x) {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.1;
}
}
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 10 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
frame 3 {
_root.cam._x -= 10;
COIN();
}
frame 4 {
_root.cam._x += 8;
COIN();
}
frame 5 {
_root.cam._x -= 6;
COIN();
}
frame 6 {
_root.cam._x += 4;
COIN();
}
frame 7 {
_root.cam._x -= 2;
COIN();
}
frame 8 {
_root.cam._x += 1;
stop();
}
frame 40 {
if (_parent.shot == true) {
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
}
movieClip 4280 {
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 0;
Rspeed = 10 - Math.random() * 20;
drop = false;
seconds = 80;
}
onClipEvent (enterFrame) {
if (_parent.XDISTANCE > -50 && _parent.XDISTANCE < 50) {
drop = true;
_parent.gotoAndStop('dropped');
}
if (_parent.shot) {
drop = true;
seconds = 0;
}
if (drop) {
if (seconds <= 0) {
_y = _y - _parent.fallspeed;
_x = _x - _parent.speed;
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
} else {
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x + _parent._x, _y + _parent._y - 1, true)) {
_y = _y - 1;
}
--seconds;
if (_root.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
}
frame 2 {
if (bomb.drop == true) {
gotoAndPlay('dropped');
} else {
if (health <= 0) {
bomb.play();
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - 30;
}
fallspeed = 0;
speed = 0;
COIN();
COIN();
COIN();
}
frame 5 {
gotoAndPlay(4);
}
frame 6 {
if (!_root.cam.hitTest(this)) {
this.removeMovieClip();
}
}
frame 7 {
gotoAndPlay('dropped');
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
Y = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_y < Y - 200) {
this.swapDepths(999);
this.removeMovieClip();
}
if (health > 0) {
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 3;
fallspeed = -1;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
Y = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_y < Y - 200) {
this.swapDepths(999);
this.removeMovieClip();
}
if (health > 0) {
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 3;
fallspeed = -1;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
Y = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_y < Y - 200) {
this.swapDepths(999);
this.removeMovieClip();
}
if (health > 0) {
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 3;
fallspeed = -1;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
Y = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_y < Y - 200) {
this.swapDepths(999);
this.removeMovieClip();
}
if (health > 0) {
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 3;
fallspeed = -1;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
Y = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (_y < Y - 200) {
this.swapDepths(999);
this.removeMovieClip();
}
if (health > 0) {
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 3;
fallspeed = -1;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = -3;
fallspeed = -1;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = -3;
fallspeed = -1;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = -3;
fallspeed = -1;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4243 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 4243 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
instance of movieClip 1981 {
onClipEvent (enterFrame) {
this.swapDepths(999);
this.removeMovieClip();
}
}
movieClip 4284 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
gotoAndPlay(1);
}
}
};
}
}
frame 19 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 90;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
rootcount = 130;
rootmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
_root.bossmaxhealth = 0;
_root.bosshealth = 0;
}
instance of movieClip 4012 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.7;
_y = _y - (OLDY - _root.cam._y) * 0.7;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
onscreen = true;
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX2 = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
onscreen = false;
STOPPED = false;
SINE = 0;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.PAUSE) {
if (!STOPPED) {
_x = _x + 5.25;
_y = _y + 3;
SINE += 90;
_y = _y + Math.sin(SINE) * 2;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.5;
_y = _y - (OLDY - _root.cam._y) * 0.5;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.3;
_y = _y - (OLDY - _root.cam._y) * 0.3;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
_y = _y - (OLDY - _root.cam._y) * 0.6;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.3;
_y = _y - (OLDY - _root.cam._y) * 0.3;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.2;
_y = _y - (OLDY - _root.cam._y) * 0.2;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - (OLDX - _root.cam._x) * 0.2;
_y = _y - (OLDY - _root.cam._y) * 0.2;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
movieClip 4287 {
frame 1 {
_visible = false;
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
_x = _x + 5.25;
_y = _y + 3;
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
movieClip 4289 {
}
movieClip 4294 {
}
movieClip 4295 {
instance of movieClip 4289 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
SIZE = 1 - (100 - _xscale) / 100;
speed = 40 * SIZE;
_x = _x - speed;
if (_x < -500) {
_x = _x + (1000 + Math.random() * 500);
_xscale = 80 + Math.random() * 40;
_yscale = _xscale;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 4289 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
SIZE = 1 - (100 - _xscale) / 100;
speed = 40 * SIZE;
_x = _x - speed;
if (_x < -500) {
_x = _x + (1000 + Math.random() * 500);
_xscale = 80 + Math.random() * 40;
_yscale = _xscale;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 4289 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
SIZE = 1 - (100 - _xscale) / 100;
speed = 40 * SIZE;
_x = _x - speed;
if (_x < -500) {
_x = _x + (1000 + Math.random() * 500);
_xscale = 80 + Math.random() * 40;
_yscale = _xscale;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 4289 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
SIZE = 1 - (100 - _xscale) / 100;
speed = 40 * SIZE;
_x = _x - speed;
if (_x < -500) {
_x = _x + (1000 + Math.random() * 500);
_xscale = 80 + Math.random() * 40;
_yscale = _xscale;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 4294 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
speed = 50;
_x = _x - speed;
if (_x < -_width) {
_x = _x + _width * 2;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 4294 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
speed = 50;
_x = _x - speed;
if (_x < -_width) {
_x = _x + _width * 2;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
instance of movieClip 4294 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (!_root.cam.STOPPED) {
speed = 50;
_x = _x - speed;
if (_x < -_width) {
_x = _x + _width * 2;
}
}
} else {
if (_root.ground.hitTest(_root.guy._x, _root.guy._y, true)) {
onscreen = true;
}
}
}
}
}
instance of movieClip 4295 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
fallspeed = 3;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
_xscale = 100;
if (!_root.cam.STOPPED) {
if (_x < _root.cam._x - 300) {
_x = _root.cam._x - 300;
}
if (_x > _root.cam._x + 100) {
_x = _root.cam._x + 100;
}
}
_root.line._x += 5.25;
_root.line._y += 3;
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
SWORDCHARGE += 0.75;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 0;
fallspeed = 0;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 0;
fallspeed = 0;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 0;
fallspeed = 0;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 0;
fallspeed = 0;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 0;
fallspeed = 0;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 0;
fallspeed = 0;
}
} else {
mc.stop();
}
}
}
movieClip 4303 {
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.impact = 10;
_root.guy.health -= 10;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.impact = 10;
_root.guy.health -= 10;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.impact = 10;
_root.guy.health -= 10;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.guy.impact = 10;
_root.guy.health -= 10;
}
}
}
}
}
instance of movieClip 4303 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
}
}
instance STOP of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.fallspeed = -20;
_root.guy.speed = 70;
_root.cam.STOPPED = true;
}
}
}
movieClip 4318 {
frame 2 {
if (!_parent.onscreen) {
gotoAndPlay(1);
}
}
frame 65 {
_root.gunshotbig.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
_rotation = -_parent._rotation;
if (_root.guy.hitTest(this)) {
if (_root.guy.impact < 1) {
_root.guy.impact = 20;
_root.guy.health -= 20;
}
}
}
}
}
movieClip 4319 {
instance of movieClip 4318 {
onClipEvent (enterFrame) {
xdist = _parent._x - _root.guy._x;
ydist = _parent._y - _root.guy._y;
if (_currentframe < 60) {
R = -Math.atan2(xdist, ydist) / 0.0174532925199433;
_rotation = _rotation - (_rotation - R) / 5;
}
}
}
frame 2 {
if (shot == false) {
gotoAndPlay(1);
}
}
frame 3 {
_root.cam._x += 5;
_parent.speed = 0;
_root.explosion1.start(0, 1);
}
frame 3 {
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
i = 100;
while (i < 105) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 10 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -5;
_root.guy.health -= 20;
if (_root.guy._x < _parent._x) {
_root.guy._xscale = 100;
}
if (_root.guy._x > _parent._x) {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.1;
}
}
}
}
frame 4 {
_root.cam._x -= 10;
}
frame 5 {
_root.cam._x += 8;
}
frame 6 {
_root.cam._x -= 6;
}
frame 7 {
_root.cam._x += 4;
}
frame 8 {
_root.cam._x -= 2;
}
frame 9 {
_root.cam._x += 1;
stop();
}
frame 35 {
stop();
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 4319 {
onClipEvent (load) {
health = 6;
shot = false;
onscreen = false;
SIZE = 1;
X = 100 - Math.random() * 200;
Y = 100 - Math.random() * 200 - 50;
elasticness = 0.8;
quickness = 0.2;
OLDXSPEED = 0;
OLDYSPEED = -10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE2 = _root.cam._x + X - _x;
YDISTANCE2 = _root.cam._y + Y - _y;
XSPEED = OLDXSPEED * elasticness + XDISTANCE2 * quickness;
YSPEED = OLDYSPEED * elasticness + YDISTANCE2 * quickness;
_x = _x + XSPEED;
_y = _y + YSPEED;
OLDXSPEED = XSPEED;
OLDYSPEED = YSPEED;
if (shot) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4319 {
onClipEvent (load) {
health = 6;
shot = false;
onscreen = false;
SIZE = 1;
X = 100 - Math.random() * 200;
Y = 100 - Math.random() * 200 - 50;
elasticness = 0.8;
quickness = 0.2;
OLDXSPEED = 0;
OLDYSPEED = -30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE2 = _root.cam._x + X - _x;
YDISTANCE2 = _root.cam._y + Y - _y;
XSPEED = OLDXSPEED * elasticness + XDISTANCE2 * quickness;
YSPEED = OLDYSPEED * elasticness + YDISTANCE2 * quickness;
_x = _x + XSPEED;
_y = _y + YSPEED;
OLDXSPEED = XSPEED;
OLDYSPEED = YSPEED;
if (shot) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4319 {
onClipEvent (load) {
health = 6;
shot = false;
onscreen = false;
SIZE = 1;
X = 100 - Math.random() * 200;
Y = 100 - Math.random() * 200 - 50;
elasticness = 0.8;
quickness = 0.2;
OLDXSPEED = 0;
OLDYSPEED = -30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE2 = _root.cam._x + X - _x;
YDISTANCE2 = _root.cam._y + Y - _y;
XSPEED = OLDXSPEED * elasticness + XDISTANCE2 * quickness;
YSPEED = OLDYSPEED * elasticness + YDISTANCE2 * quickness;
_x = _x + XSPEED;
_y = _y + YSPEED;
OLDXSPEED = XSPEED;
OLDYSPEED = YSPEED;
if (shot) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 0;
fallspeed = 0;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4280 {
onClipEvent (load) {
health = 6;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x + speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
speed = 0;
fallspeed = 0;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4319 {
onClipEvent (load) {
health = 6;
shot = false;
onscreen = false;
SIZE = 1;
X = 100 - Math.random() * 200;
Y = 100 - Math.random() * 200 - 50;
elasticness = 0.8;
quickness = 0.2;
OLDXSPEED = 0;
OLDYSPEED = -30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE2 = _root.cam._x + X - _x;
YDISTANCE2 = _root.cam._y + Y - _y;
XSPEED = OLDXSPEED * elasticness + XDISTANCE2 * quickness;
YSPEED = OLDYSPEED * elasticness + YDISTANCE2 * quickness;
_x = _x + XSPEED;
_y = _y + YSPEED;
OLDXSPEED = XSPEED;
OLDYSPEED = YSPEED;
if (shot) {
health -= 2;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 21 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 90;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
rootcount = 130;
rootmax = 135;
dustcount = 200;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
_root.bossmaxhealth = 0;
_root.bosshealth = 0;
_root.lustrighttransform = false;
_root.lustlefttransform = false;
}
movieClip 4323 {
frame 2 {
stop();
}
}
instance of movieClip 4323 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.8;
_y = _y - (OLDY - _root.cam._y) * 0.8;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
}
instance of movieClip 3962 {
onClipEvent (load) {
X = _x;
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
OLDX = _root.cam._x;
}
}
instance of movieClip 3962 {
onClipEvent (load) {
X = _x;
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
OLDX = _root.cam._x;
}
}
movieClip 4325 {
frame 1 {
_visible = false;
}
instance of movieClip 145 {
onClipEvent (load) {
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.guy._x > _parent._x + _x + 30) {
_y = Y - 230;
}
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
X = _x;
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
OLDX = _root.cam._x;
}
}
instance of movieClip 3962 {
onClipEvent (load) {
X = _x;
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
OLDX = _root.cam._x;
}
}
instance of movieClip 3962 {
onClipEvent (load) {
X = _x;
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
OLDX = _root.cam._x;
}
}
instance of movieClip 3962 {
onClipEvent (load) {
X = _x;
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.6;
OLDX = _root.cam._x;
}
}
movieClip 4327 {
}
instance of movieClip 4327 {
onClipEvent (load) {
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.5;
OLDX = _root.cam._x;
}
}
instance of movieClip 4294 {
onClipEvent (load) {
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.3;
OLDX = _root.cam._x;
}
}
instance of movieClip 4294 {
onClipEvent (load) {
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.2;
OLDX = _root.cam._x;
}
}
instance of movieClip 4294 {
onClipEvent (load) {
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.2;
OLDX = _root.cam._x;
}
}
instance of movieClip 4294 {
onClipEvent (load) {
OLDX = _root.cam._x;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.1;
OLDX = _root.cam._x;
}
}
movieClip 4329 {
}
movieClip 4330 {
frame 1 {
dustcount = 0;
}
instance dust of movieClip 883 {
onClipEvent (enterFrame) {
if (_name != 'dust') {
_y = _y - 2;
}
}
}
}
movieClip 4339 {
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -40 + (_parent._parent._y - _root.guy._y) / 5;
_root.guy.speed = 0;
_root.guy.health -= 20;
}
}
}
}
frame 22 {
gotoAndPlay(21);
}
}
movieClip 4340 {
frame 128 {
_y = -100;
}
frame 130 {
if (_y == -100) {
gotoAndPlay(129);
}
}
}
movieClip 4351 {
frame 1 {
stop();
}
frame 18 {
i = 0;
while (i < 10) {
duplicateMovieClip(petal, 'petal' + i, i);
this['petal' + i]._x = 200 - Math.random() * 400;
this['petal' + i]._y = -50 - Math.random() * 100;
this['petal' + i].speed = 5 - Math.random() * 20;
this['petal' + i].fallspeed = 3 + Math.random() * 5;
++i;
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.speed = -30 * (_parent._xscale / 100);
_root.guy._xscale = _parent._xscale;
_root.guy.health -= 10;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.speed = -30 * (_parent._xscale / 100);
_root.guy._xscale = _parent._xscale;
_root.guy.health -= 10;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.speed = -30 * (_parent._xscale / 100);
_root.guy._xscale = _parent._xscale;
_root.guy.health -= 10;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.speed = -30 * (_parent._xscale / 100);
_root.guy._xscale = _parent._xscale;
_root.guy.health -= 10;
}
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.speed = -30 * (_parent._xscale / 100);
_root.guy._xscale = _parent._xscale;
_root.guy.health -= 10;
}
}
}
}
instance petal of movieClip 4020 {
onClipEvent (enterFrame) {
if (_name == 'petal') {
_visible = false;
} else {
_visible = true;
}
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
speed *= 0.9;
if (_y > 0) {
this.removeMovieClip();
}
}
}
frame 19 {
i = 0;
while (i < 10) {
duplicateMovieClip(petal, 'petal' + i, i);
this['petal' + i]._x = 200 - Math.random() * 400;
this['petal' + i]._y = -50 - Math.random() * 100;
this['petal' + i].speed = 5 - Math.random() * 20;
this['petal' + i].fallspeed = 3 + Math.random() * 5;
++i;
}
}
frame 20 {
i = 0;
while (i < 10) {
duplicateMovieClip(petal, 'petal' + i, i);
this['petal' + i]._x = 200 - Math.random() * 400;
this['petal' + i]._y = -50 - Math.random() * 100;
this['petal' + i].speed = 5 - Math.random() * 20;
this['petal' + i].fallspeed = 3 + Math.random() * 5;
++i;
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
_xscale = -100;
speed = 80;
fallspeed = -3;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 30;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 4353 {
}
movieClip 4367 {
frame 25 {
++_root.leechcount;
duplicateMovieClip(_root.seed, 'seed' + _root.leechcount, _root.leechcount);
_root['seed' + _root.leechcount]._x = _parent._x + SEED._x;
_root['seed' + _root.leechcount]._y = _parent._y + SEED._y;
_root['seed' + _root.leechcount].speed = 5 + Math.random() * 10;
_root['seed' + _root.leechcount].fallspeed = -5 - Math.random() * 5;
_root['seed' + _root.leechcount].R = -20 - Math.random() * 30;
}
}
movieClip 4389 {
frame 36 {
stop();
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 4399 {
}
movieClip 4412 {
frame 12 {
_root.cam._y -= 10;
_root.biff1.start();
}
frame 13 {
_root.cam._y += 20;
}
frame 14 {
_root.cam._y -= 15;
}
frame 15 {
_root.cam._y += 8;
}
frame 16 {
_root.cam._y -= 4;
}
frame 21 {
stop();
}
}
movieClip 4418 {
}
movieClip 4458 {
frame 2 {
_root.lightningS.start(0, 1);
_root.reverserip.start(0, 1);
}
frame 10 {
_parent.health = 100;
}
frame 25 {
_root.cam._x -= 15;
}
frame 26 {
_root.cam._x += 30;
}
frame 27 {
_root.cam._x -= 25;
_root.bossMAXhealth = _root.LUST.MAXhealth;
_root.LUST._x = _parent._x + 200;
_root.LUST.onscreen = true;
++_root.enemycount;
_root.LUST.ENEMYCOUNT = _root.enemycount;
_root.LUST._name = 'enemy' + _root.enemycount;
}
frame 28 {
_root.cam._x += 20;
}
frame 29 {
_root.cam._x -= 15;
}
frame 30 {
_root.cam._x += 10;
}
frame 31 {
_root.cam._x -= 5;
}
frame 45 {
gotoAndPlay(44);
}
}
movieClip 4459 {
frame 1 {
if (_root.lustlefttransform) {
gotoAndPlay('transform2');
}
}
frame 2 {
if (impact == 0) {
gotoAndPlay(1);
} else {
gotoAndPlay('hit');
MC = mc._currentframe + 1;
}
}
frame 4 {
gotoAndPlay('transform2');
}
frame 5 {
if (!_root.PAUSE) {
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
if (health <= 40) {
gotoAndPlay('fall');
}
}
}
frame 6 {
if (impact > 0) {
gotoAndPlay('hit');
} else {
gotoAndPlay(1);
mc.gotoAndPlay(MC);
}
}
frame 7 {
speed = 0;
if (mc._currentframe > 20) {
gotoAndPlay('fell');
}
}
frame 8 {
gotoAndPlay('fall');
}
frame 9 {
if (!_root.PAUSE) {
speed = 0;
FRAME = impact + 1;
mc.gotoAndPlay(FRAME);
if (health <= 0) {
this.swapDepths(150);
gotoAndPlay('transform');
}
}
}
frame 10 {
gotoAndPlay('fell');
}
frame 11 {
_root.lustrighttransform = true;
}
frame 12 {
gotoAndPlay('transform');
}
}
instance of movieClip 4459 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 6;
X = _x;
Y = _y;
SECONDS = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (health > 40) {
_x = _x - (_x - (_root.cam._x - _root.cam._width / 2 + 200)) / 10;
if (PLACEY <= Y) {
_y = _y - (_y - PLACEY) / 10;
}
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 3;
}
if (SECONDS < 0) {
if (_root.guy._x < _root.cam._x - _root.cam._width / 2 + 400 && _root.guy._y < Y + 100) {
PLACEY = _root.guy._y + Math.sin(angle) * 200;
xDist = _x - _root.guy._x;
yDist = _y - _root.guy._y;
angle = Math.atan2(yDist, xDist);
} else {
PLACEY = Y;
}
} else {
--SECONDS;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 4461 {
}
instance seed of movieClip 4461 {
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + R;
if (_root.ground.hitTest(_x, _y, true)) {
duplicateMovieClip(_root.driller, 'driller' + _root.enemycount, _root.enemycount);
_root['driller' + _root.enemycount]._x = _x;
_root['driller' + _root.enemycount]._y = _root.driller._y;
_root['driller' + _root.enemycount].gotoAndPlay('grow');
this.removeMovieClip();
}
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
}
}
instance driller of movieClip 4243 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root._currentframe != FRAME) {
this.swapDepths(999);
this.removeMovieClip();
}
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 4472 {
frame 17 {
stop();
}
}
instance ball of movieClip 4472 {
onClipEvent (enterFrame) {
if (_name != 'ball') {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
if (_currentframe == 17) {
duplicateMovieClip(_root.helibomb, 'helibomb' + _root.enemycount, _root.enemycount);
_root['helibomb' + _root.enemycount]._x = _x;
_root['helibomb' + _root.enemycount]._y = _y;
_root['helibomb' + _root.enemycount].bomb.bomb.gotoAndStop('green');
this.removeMovieClip();
}
}
}
}
instance helibomb of movieClip 4280 {
onClipEvent (load) {
health = 1;
SIN = Math.random() * 360;
seconds = Math.round(50 + Math.random() * 40);
shot = false;
onscreen = false;
SIZE = 1;
speed = 4;
fallspeed = -1;
COLOUR = 'green';
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.cam)) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
XDISTANCE = _x - _root.guy._x - 200;
YDISTANCE = _y - _root.guy._y - 40;
_x = _x - speed;
_y = _y + fallspeed;
if (shot) {
if (!bomb.drop) {
health -= 10;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
}
}
}
}
if (!onscreen && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 4501 {
frame 36 {
++_root.leechcount;
duplicateMovieClip(_root.ball, 'ball' + _root.leechcount, _root.leechcount);
_root['ball' + _root.leechcount]._x = _parent._x + BALL._x;
_root['ball' + _root.leechcount]._y = _parent._y + BALL._y;
_root['ball' + _root.leechcount].speed = -3 - Math.random() * 10;
_root['ball' + _root.leechcount].fallspeed = -5 - Math.random() * 5;
}
}
movieClip 4511 {
}
movieClip 4537 {
frame 24 {
_root.energywoosh.start(0, 1);
}
frame 49 {
stop();
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 4554 {
frame 12 {
_root.biff1.start(0, 1);
}
}
movieClip 4559 {
}
movieClip 4590 {
frame 2 {
_root.lightningS.start(0, 1);
_root.reverserip.start(0, 1);
}
frame 10 {
_parent.health = 100;
}
frame 25 {
_root.cam._x -= 15;
}
frame 26 {
_root.cam._x += 30;
_root.energywoosh.start(0, 1);
}
frame 27 {
_root.cam._x -= 25;
_root.bossMAXhealth = _root.LUST.MAXhealth;
_root.LUST._x = _parent._x - 200;
_root.LUST.onscreen = true;
++_root.enemycount;
_root.LUST.ENEMYCOUNT = _root.enemycount;
_root.LUST._name = 'enemy' + _root.enemycount;
}
frame 28 {
_root.cam._x += 20;
}
frame 29 {
_root.cam._x -= 15;
}
frame 30 {
_root.cam._x += 10;
}
frame 31 {
_root.cam._x -= 5;
}
frame 45 {
gotoAndPlay(44);
}
}
movieClip 4591 {
frame 1 {
if (_root.lustrighttransform) {
gotoAndPlay('transform2');
}
if (health <= 40) {
gotoAndPlay('fall');
}
}
frame 2 {
if (impact == 0) {
gotoAndPlay(1);
} else {
MC = mc._currentframe;
}
}
frame 3 {
if (!_root.PAUSE) {
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
if (_root.lustrighttransform) {
gotoAndPlay('transform2');
}
}
}
frame 4 {
if (impact > 0) {
gotoAndPlay('hit');
} else {
gotoAndPlay(1);
mc.gotoAndPlay(MC);
}
}
frame 6 {
gotoAndPlay('transform2');
}
frame 7 {
speed = 0;
}
frame 8 {
if (mc._currentframe < 16) {
gotoAndPlay('fall');
}
}
frame 9 {
if (!_root.PAUSE) {
speed = 0;
FRAME = impact + 1;
mc.gotoAndPlay(FRAME);
if (health <= 0) {
this.swapDepths(150);
gotoAndPlay('transform');
}
}
}
frame 10 {
gotoAndPlay('fell');
}
frame 11 {
_root.lustlefttransform = true;
}
frame 12 {
gotoAndPlay('transform');
}
}
instance of movieClip 4591 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 6;
X = _x;
Y = _y;
SECONDS = 50;
_root.lustrighttransform = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (health > 40) {
_x = _x - (_x - (_root.cam._x + _root.cam._width / 2 - 200)) / 10;
} else {
PLACEY = Y;
}
if (PLACEY <= Y) {
_y = _y - (_y - PLACEY) / 10;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 3;
}
if (SECONDS < 0) {
if (_root.guy._x > _root.cam._x + _root.cam._width / 2 - 400 && _root.guy._y < Y + 100) {
PLACEY = _root.guy._y + Math.sin(angle) * 200;
xDist = _x - _root.guy._x;
yDist = _y - _root.guy._y;
angle = Math.atan2(yDist, xDist);
} else {
PLACEY = Y;
}
} else {
--SECONDS;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 4618 {
}
movieClip 4621 {
frame 35 {
if (_root.DIFFICULTY == 'HARD') {
gotoAndPlay(53);
}
if (_parent.health < 450) {
gotoAndPlay(53);
}
_root.BOSSbar.onscreen = true;
}
}
movieClip 4623 {
}
movieClip 4663 {
frame 15 {
_root.vines._xscale = _parent._xscale;
_root.vines.play();
}
}
movieClip 4748 {
frame 42 {
++_root.enemycount;
if (_parent.ENEMYCOUNT == _root.enemycount) {
++_root.enemycount;
}
duplicateMovieClip(_root.spike, 'spike' + _root.enemycount, _root.enemycount);
_root['spike' + _root.enemycount]._x = _parent._x - 130 * _parent._xscale / 100;
_root['spike' + _root.enemycount]._xscale = _parent._xscale;
_root['spike' + _root.enemycount]._y = 400;
}
}
movieClip 4770 {
frame 6 {
_root.scifibeam.start(0, 1);
}
frame 37 {
++_root.enemycount;
if (_parent.ENEMYCOUNT == _root.enemycount) {
++_root.enemycount;
}
duplicateMovieClip(_root.wall, 'enemy' + _root.enemycount, _root.enemycount);
_root['enemy' + _root.enemycount]._x = _parent._x;
_root['enemy' + _root.enemycount].ENEMYCOUNT = _root.enemycount;
_root['enemy' + _root.enemycount]._y = 400;
duplicateMovieClip(_root.ground.wall, 'enemy' + _root.enemycount, _root.enemycount);
_root.ground['enemy' + _root.enemycount]._x = _parent._x - _root.ground._x;
_root.ground['enemy' + _root.enemycount]._y = _root.ground.wall._y;
}
}
movieClip 4782 {
}
movieClip 4793 {
}
movieClip 4802 {
}
movieClip 4803 {
frame 1 {
if (!onscreen) {
mc.gotoAndPlay(1);
}
}
frame 2 {
if (mc._currentframe < 55) {
gotoAndPlay(1);
}
}
frame 3 {
follow = true;
smoking = true;
if (health < 480 && health > 470) {
gotoAndPlay('fall');
}
if (health < 280 && health > 270) {
gotoAndPlay('fall');
}
if (health < 80 && health > 70) {
gotoAndPlay('fall');
}
if (health < 20) {
gotoAndPlay('fall');
}
if (_root.guy._x > 200) {
_xscale = -100;
} else {
_xscale = 100;
}
}
instance mc of movieClip 4623 {
onClipEvent (load) {
SIN = 0;
Y = _y;
}
onClipEvent (enterFrame) {
SIN += 0.1;
_y = Y + Math.sin(SIN) * 5;
}
}
frame 4 {
if (seconds > 0) {
--seconds;
gotoAndPlay('stand');
} else {
if (Math.random() < 0.4) {
gotoAndPlay('vine rain');
if (health > 300) {
seconds = 100;
} else {
if (health > 200) {
seconds = 50;
} else {
seconds = 30;
}
}
} else {
if (Math.random() > 0.4) {
gotoAndPlay('spike plant');
if (health > 300) {
seconds = 100;
} else {
if (health > 200) {
seconds = 50;
} else {
seconds = 30;
}
}
} else {
gotoAndPlay('wall plant');
if (health > 300) {
seconds = 100;
} else {
if (health > 200) {
seconds = 50;
} else {
seconds = 30;
}
}
}
}
}
}
frame 5 {
follow = false;
if (health < 480 && health > 470) {
gotoAndPlay('fall');
}
if (health < 280 && health > 270) {
gotoAndPlay('fall');
}
if (health < 80 && health > 70) {
gotoAndPlay('fall');
}
if (health < 20) {
gotoAndPlay('fall');
}
}
instance mc of movieClip 4663 {
onClipEvent (load) {
SIN = 0;
Y = _y;
}
onClipEvent (enterFrame) {
SIN += 0.1;
_y = Y + Math.sin(SIN) * 5;
}
}
frame 6 {
if (mc._currentframe < 47) {
gotoAndPlay('vine rain');
} else {
gotoAndPlay('stand');
}
}
frame 7 {
follow = false;
if (health < 480 && health > 470) {
gotoAndPlay('fall');
}
if (health < 280 && health > 270) {
gotoAndPlay('fall');
}
if (health < 80 && health > 70) {
gotoAndPlay('fall');
}
if (health < 20) {
gotoAndPlay('fall');
}
}
instance mc of movieClip 4748 {
onClipEvent (load) {
SIN = 0;
Y = _y;
}
onClipEvent (enterFrame) {
SIN += 0.1;
_y = Y + Math.sin(SIN) * 5;
}
}
frame 8 {
if (mc._currentframe < 65) {
gotoAndPlay('spike plant');
} else {
gotoAndPlay('stand');
}
}
frame 9 {
follow = false;
if (health < 480 && health > 470) {
gotoAndPlay('fall');
}
if (health < 280 && health > 270) {
gotoAndPlay('fall');
}
if (health < 80 && health > 70) {
gotoAndPlay('fall');
}
if (health < 20) {
gotoAndPlay('fall');
}
}
instance mc of movieClip 4770 {
onClipEvent (load) {
SIN = 0;
Y = _y;
}
onClipEvent (enterFrame) {
SIN += 0.1;
_y = Y + Math.sin(SIN) * 5;
}
}
frame 10 {
if (mc._currentframe < 37) {
gotoAndPlay('wall plant');
} else {
gotoAndPlay('stand');
}
}
frame 11 {
follow = false;
smoking = false;
}
frame 12 {
if (mc._currentframe < 12) {
gotoAndPlay('fall');
}
}
frame 13 {
if (!_root.PAUSE) {
--downseconds;
FRAME = impact + 1;
mc.gotoAndPlay(FRAME);
if (health <= 0) {
gotoAndPlay('dead');
}
}
}
frame 14 {
if (downseconds > 0) {
gotoAndPlay('down');
}
}
frame 16 {
if (mc._currentframe < 8) {
gotoAndPlay('get up');
} else {
downseconds = 100;
gotoAndPlay(1);
}
}
}
instance LUST of movieClip 4803 {
onClipEvent (load) {
_root.bosshealth = 0;
_root.bossMAXhealth = 0;
MAXhealth = 500;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 6;
X = _x;
Y = _y;
SECONDS = 50;
seconds = 100;
elasticness = 0.7;
quickness = 0.1;
OLDXSPEED = 0;
bombdropseconds = 50;
downseconds = 100;
smoking = true;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (smoking) {
++_root.lustP.dustcount;
duplicateMovieClip(_root.lustP.dust, 'dust' + _root.lustP.dustcount, _root.lustP.dustcount);
_root.lustP['dust' + _root.lustP.dustcount]._x = _x - 10 + Math.random() * 20;
_root.lustP['dust' + _root.lustP.dustcount]._y = _y - 40 + Math.random() * 80;
_root.lustP['dust' + _root.lustP.dustcount]._rotation = Math.random() * 360;
++_root.lustP.dustcount;
duplicateMovieClip(_root.lustP.dust, 'dust' + _root.lustP.dustcount, _root.lustP.dustcount);
_root.lustP['dust' + _root.lustP.dustcount]._x = _x - 10 + Math.random() * 20;
_root.lustP['dust' + _root.lustP.dustcount]._y = _y - 40 + Math.random() * 80;
_root.lustP['dust' + _root.lustP.dustcount]._rotation = Math.random() * 360;
++_root.lustP.dustcount;
}
_root.bosshealth = health;
if (health < healthMAX * 0.2 && _root.DIFFICULTY == 'HARD') {
--bombdropseconds;
if (bombdropseconds <= 0) {
bombdropseconds = 50;
++_root.enemycount;
if (ENEMYCOUNT == _root.enemycount) {
++_root.enemycount;
}
duplicateMovieClip(_root.bomb, 'bomb' + _root.enemycount, _root.enemycount);
_root['bomb' + _root.enemycount]._x = 900 - Math.random() * 1000;
_root['bomb' + _root.enemycount]._y = -5;
_root['bomb' + _root.enemycount].drop = true;
_root['bomb' + _root.enemycount].bomb.gotoAndStop('green');
}
}
if (follow) {
XDISTANCE = _root.guy._x + _xscale * 1.5 - _x;
XSPEED = OLDXSPEED * elasticness + XDISTANCE * quickness;
_x = _x + XSPEED;
OLDXSPEED = XSPEED;
if (_root.vines._currentframe <= 1) {
_root.vines._x = _x - _xscale;
}
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 3;
}
if (SECONDS < 0) {
if (_root.guy._x > _root.cam._x + _root.cam._width / 2 - 400 && _root.guy._y < Y + 100) {
PLACEY = _root.guy._y + Math.sin(angle) * 200;
xDist = _x - _root.guy._x;
yDist = _y - _root.guy._y;
angle = Math.atan2(yDist, xDist);
} else {
PLACEY = Y;
}
} else {
--SECONDS;
}
if (_root.bosshealth <= 0) {
_root.convo.play();
}
} else {
_visible = false;
gotoAndPlay(1);
}
} else {
mc.stop();
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 80;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
_y = _y - _parent.fallspeed;
_x = _x - _parent.speed;
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
movieClip 4857 {
frame 2 {
_root.puff.start(0, 1);
_root.uproot.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
if (_root.guy._x > _x) {
_root.guy._xscale = -100;
} else {
_root.guy._xscale = 100;
}
_root.guy.speed = -15 * (_root.guy._xscale / 100);
_root.guy.health -= 20;
}
}
}
}
frame 25 {
if (oldhealth == health) {
gotoAndPlay(24);
}
oldhealth = health;
}
frame 26 {
if (health <= 0) {
gotoAndPlay(32);
}
}
frame 32 {
if (health > 0) {
gotoAndPlay('stand');
}
}
frame 34 {
_root.explosion1.start(0, 1);
_root.ground['enemy' + ENEMYCOUNT].removeMovieClip();
i = 0;
while (i < 30) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 40;
while (i < 80) {
circle.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance smoke of movieClip 697 {
onClipEvent (load) {
_xscale = 1000 + Math.random() * 100;
_yscale = _xscale;
_x = 20 - Math.random() * 40;
X = _x;
_y = _y + (20 - Math.random() * 40);
Y = _y;
SIZEred = 1.1;
}
onClipEvent (enterFrame) {
_x = _x + X / 30;
_y = _y + Y / 30;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
SIZEred *= 2;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance circle of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 5 + Math.random() * 5;
_xscale = 300 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.8;
fallspeed *= 0.8;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'circle') {
_visible = true;
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 10 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
frame 67 {
this.removeMovieClip();
}
}
instance wall of movieClip 4857 {
onClipEvent (load) {
MAXhealth = 50;
health = MAXhealth;
onscreen = true;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
oldhealth = health;
LEVEL = _root._currentframe;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
}
} else {
mc.stop();
}
if (_root._currentframe != LEVEL) {
this.removeMovieClip();
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
if (_x < _root.L._x + _width / 2) {
_x = _root.L._x + _width / 2;
}
if (_x > _root.RRR._x - _width / 2) {
_x = _root.RRR._x - _width / 2;
}
_yscale = _xscale;
}
}
}
movieClip 4931 {
}
movieClip 4993 {
frame 1 {
_visible = false;
}
frame 23 {
_visible = true;
_root.HUD._visible = false;
_root.PAUSE = true;
_root._quality = 'HIGH';
}
frame 57 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'WHAT-HOW DID YOU GET \nDOWN HERE?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'WHAT-') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 58 {
stop();
onPress = function () {
play();
};
}
frame 92 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' I\'LL SEE YOU IN \nHELL!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 93 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 94 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'WHY ARE WE ALL GOING \nTO HELL?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'WHAT-') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 95 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 96 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' I MEAN LIKE- YOU\'LL \nBE IN HELL, BUT I \nWON\'T.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 97 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 107 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'I DON\'T GET IT.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 108 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 109 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' COS I\'M GONNA KILL \nY\'ALL.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 110 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 111 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'WHY WOULD YOU DO THAT?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 112 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 120 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' ...I CAN\'T REMEMBER.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 121 {
stop();
onPress = function () {
if (_currentframe < 175) {
play();
}
};
}
frame 122 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' I SOLD MY SOUL TO \nTHE DEVIL... AND THEN \nI GOT RED HANDS...';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 123 {
stop();
onPress = function () {
if (_currentframe < 175) {
play();
}
};
}
frame 132 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' I\'M DEFINATELY \nSUPPOSED TO FIGHT YOU.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 133 {
stop();
onPress = function () {
if (_currentframe < 175) {
play();
}
};
}
frame 136 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'SURE, I GOT NOTHIN \nELSE GOIN ON IN THIS \nWEIRD FOREST HIDE-OUT.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 137 {
stop();
onPress = function () {
if (_currentframe < 200) {
play();
}
};
}
frame 168 {
_root.PAUSE = false;
_root._quality = 'MEDIUM';
_root.HUD._visible = true;
_root.BOSSbar.onscreen = true;
stop();
}
frame 169 {
_root.PAUSE = true;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.LUST = 'beat';
}
frame 195 {
_root.HUD._visible = false;
_root.BOSSbar._visible = false;
}
frame 485 {
_root.gotoAndStop('pub');
}
}
instance convo of movieClip 4993 {
onClipEvent (enterFrame) {
if (_currentframe < 200) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
}
movieClip 4998 {
frame 1 {
X = _x;
Y = _y;
onEnterFrame = function () {
if (_root.bosshealth != oldHealth) {
_x = _x + Math.random() * 5;
_y = _y + Math.random() * 5;
}
oldHealth = _root.bosshealth;
_x = _x - (_x - X) / 3;
_y = _y - (_y - Y) / 3;
};
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (X / _root.bossMAXhealth) * _root.bosshealth;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
_xscale = (X / _root.bossMAXhealth) * _root.bosshealth;
}
}
}
movieClip 4999 {
}
instance BOSSbar of movieClip 4999 {
onClipEvent (load) {
_alpha = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 5001 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
gotoAndPlay(1);
}
}
};
}
}
frame 23 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 80;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
firecount = 130;
firecountmax = 135;
Cballcount = 136;
Cballmax = 146;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
if (_root.DIFFICULTY == 'HARD') {
LIVES = 2;
} else {
LIVES = 3;
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
SIN = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.fight1) && _root.bodycount < 3) {
} else {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
if (_x + _width / 2 > _root.barrier._x) {
_x = _root.barrier._x - _width / 2;
}
}
if (_root.guy._y >= _y + _height / 4) {
_y = _y - (_y - _root.guy._y + _height / 4) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_y > originY) {
_y = originY;
}
SIN += 90;
if (_root.part0._y > _root.horizon._y) {
_y = _y + Math.sin(SIN) * _root.part0.camshake / 10;
}
}
}
}
movieClip 5005 {
frame 1 {
X = _x;
onEnterFrame = function () {
_x = X + _root.cam._x / 2;
};
}
}
instance of movieClip 5005 {
onClipEvent (enterFrame) {
if (_root.guy._x >= _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 5005 {
onClipEvent (enterFrame) {
if (_root.guy._x >= _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 5011 {
}
movieClip 5013 {
frame 1 {
stop();
}
instance of movieClip 5011 {
onClipEvent (enterFrame) {
_xscale = _root.guy.BEAMPOWER * 2;
_yscale = _xscale;
}
}
}
movieClip 5028 {
frame 1 {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
frame 23 {
if (_name != 'fire') {
this.swapDepths(999);
}
this.removeMovieClip();
}
}
movieClip 5029 {
frame 1 {
firecount = 0;
seconds = 0;
onEnterFrame = function () {
if (!_root.PAUSE) {
if (this.hitTest(_root.cam)) {
++seconds;
if (seconds / 2 == Math.round(seconds / 2)) {
++firecount;
duplicateMovieClip(fire, 'fire' + firecount, firecount);
this['fire' + firecount]._x = this.fire._x;
this['fire' + firecount]._y = this.fire._y;
this['fire' + firecount]._rotation = Math.random() * 360;
}
}
}
};
}
instance fire of movieClip 5028 {
onClipEvent (load) {
if (_name == 'fire') {
_visible = false;
}
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
if (_name != 'fire') {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
}
}
movieClip 5033 {
}
movieClip 5047 {
instance head of movieClip 5013 {
onClipEvent (mouseDown) {
if (_root.guy.BEAMPOWER > 0) {
_root.guy.BEAMPOWER -= 3;
gotoAndStop(2);
_parent.CLICKING = true;
++_root.beamcount;
if (_parent.BEAMPOWER < 51) {
RANDOM = Math.round(0.5 + Math.random() * 4);
if (_parent.BEAMPOWER < 20) {
_root.ROAR.weakroar.start(0, 1);
} else {
if (RANDOM == 1) {
_root.ROAR.Roar1.start(0, 1);
}
if (RANDOM == 2) {
_root.ROAR.Roar2.start(0, 1);
}
if (RANDOM == 3) {
_root.ROAR.Roar3.start(0, 1);
}
if (RANDOM == 4) {
_root.ROAR.Roar4.start(0, 1);
}
if (RANDOM == 5) {
_root.ROAR.Roar5.start(0, 1);
}
}
}
}
}
onClipEvent (mouseUp) {
if (_parent.BEAMPOWER < 51) {
_root.ROAR.weakroar.stop();
_root.ROAR.Roar1.stop();
_root.ROAR.Roar2.stop();
_root.ROAR.Roar3.stop();
_root.ROAR.Roar4.stop();
_root.ROAR.Roar5.stop();
}
gotoAndStop(1);
_parent.CLICKING = false;
}
}
}
instance of movieClip 5047 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x + 6;
if (!_root.cam.hitTest(this)) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
}
}
movieClip 5049 {
frame 1 {
X = _x;
onEnterFrame = function () {
_x = X + _root.cam._x / 5;
};
}
}
movieClip 5057 {
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
movieClip 5060 {
}
movieClip 5061 {
frame 1 {
_visible = false;
}
instance Bcar of movieClip 5060 {
onClipEvent (enterFrame) {
_y = _root.car.car._y + _root.car._y - _parent._y;
_rotation = _root.car._rotation;
}
}
instance Rcar of movieClip 5060 {
onClipEvent (enterFrame) {
_y = _root.car2.car._y + _root.car2._y - _parent._y;
_rotation = _root.car2._rotation;
}
}
instance of movieClip 145 {
onClipEvent (load) {
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.guy._x > _parent._x + _x + 30) {
_y = Y - 230;
}
if (_root.bodycount >= 3) {
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
Y = _y;
_y = _y - 230;
}
onClipEvent (enterFrame) {
if (_root.bodycount >= 3) {
_y = Y;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _parent._y + _y) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _parent._y + _y) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _parent._y + _y) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _parent._y + _y) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _parent._y + _y) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
instance of movieClip 5060 {
onClipEvent (enterFrame) {
_y = _root.car3.car._y + _root.car3._y - _parent._y;
_rotation = _root.car3._rotation;
}
}
instance of movieClip 145 {
onClipEvent (load) {
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.guy._x > _parent._x + _x + 200) {
_y = Y - 300;
}
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
movieClip 5080 {
frame 2 {
if (_parent.onscreen == false) {
gotoAndPlay(1);
_visible = false;
}
}
frame 3 {
if (_parent.NUMBER == 4 || _parent.NUMBER == 6) {
gotoAndPlay(45);
_visible = true;
}
if (_parent.NUMBER == 5) {
gotoAndPlay(85);
_visible = true;
}
}
frame 30 {
if (_parent.NUMBER == 1) {
gotoAndPlay(45);
}
}
frame 35 {
if (_parent.NUMBER == 2) {
gotoAndPlay(45);
}
}
frame 40 {
if (_parent.NUMBER == 3) {
gotoAndPlay(45);
}
}
frame 45 {
_visible = true;
}
instance of movieClip 697 {
onClipEvent (load) {
fallspeed = -20 + Math.random() * 40;
speed = -3 + Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
if (fallspeed >= 20) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 697 {
onClipEvent (load) {
fallspeed = -20 + Math.random() * 40;
speed = -3 + Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
if (fallspeed >= 20) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 697 {
onClipEvent (load) {
fallspeed = -20 + Math.random() * 40;
speed = -3 + Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
if (fallspeed >= 20) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 697 {
onClipEvent (load) {
fallspeed = -20 + Math.random() * 40;
speed = -3 + Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
if (fallspeed >= 20) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 697 {
onClipEvent (load) {
fallspeed = -20 + Math.random() * 40;
speed = -3 + Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
if (fallspeed >= 20) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 697 {
onClipEvent (load) {
fallspeed = -20 + Math.random() * 40;
speed = -3 + Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
if (fallspeed >= 20) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 883 {
onClipEvent (load) {
fallspeed = -3 - Math.random() * 3;
speed = _x / 2;
_x = _x + (30 - Math.random() * 60);
_y = _y + (10 - Math.random() * 10);
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed *= 0.9;
speed *= 0.9;
}
}
instance of movieClip 883 {
onClipEvent (load) {
fallspeed = -3 - Math.random() * 3;
speed = _x / 2;
_x = _x + (30 - Math.random() * 60);
_y = _y + (10 - Math.random() * 10);
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed *= 0.9;
speed *= 0.9;
}
}
instance of movieClip 883 {
onClipEvent (load) {
fallspeed = -3 - Math.random() * 3;
speed = _x / 2;
_x = _x + (30 - Math.random() * 60);
_y = _y + (10 - Math.random() * 10);
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed *= 0.9;
speed *= 0.9;
}
}
instance of movieClip 883 {
onClipEvent (load) {
fallspeed = -3 - Math.random() * 3;
speed = _x / 2;
_x = _x + (30 - Math.random() * 60);
_y = _y + (10 - Math.random() * 10);
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed *= 0.9;
speed *= 0.9;
}
}
instance of movieClip 883 {
onClipEvent (load) {
fallspeed = -3 - Math.random() * 3;
speed = _x / 2;
_x = _x + (30 - Math.random() * 60);
_y = _y + (10 - Math.random() * 10);
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed *= 0.9;
speed *= 0.9;
}
}
frame 49 {
_root.cam._y += 5;
_root.hellspike.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.health -= 10;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
_root.guy.fallspeed = -5;
}
if (this.hitTest(_root.civ)) {
_root.civ.gotoAndPlay('dead');
}
}
}
}
frame 50 {
_root.cam._y -= 10;
}
frame 51 {
_root.cam._y += 8;
}
frame 52 {
_root.cam._y -= 6;
}
frame 53 {
_root.cam._y += 4;
}
frame 54 {
_root.cam._y -= 2;
}
}
movieClip 5082 {
}
movieClip 5095 {
}
movieClip 5112 {
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.biff1.start(0, 1);
_root.guy.impact = 5;
_root.guy.health -= 10;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
}
}
movieClip 5123 {
}
movieClip 5139 {
frame 1 {
onEnterFrame = function () {
FRAME = _parent.impact + 15;
if (FRAME > 15 && _parent.impact > 0) {
gotoAndPlay(FRAME);
}
if (_currentframe > 15 && _currentframe < 25) {
if (_parent.impact <= 1) {
gotoAndPlay(25);
}
}
};
}
frame 14 {
gotoAndPlay(14);
}
}
movieClip 5147 {
}
movieClip 5162 {
}
movieClip 5163 {
frame 27 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - _parent._height / 2;
}
_root.puff.start(0, 1);
COIN();
COIN();
COIN();
COIN();
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
frame 55 {
if (_parent.NUMBER < 6) {
++_root.bodycount;
}
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 5164 {
frame 1 {
xspeed = 0;
fallspeed = 0;
}
instance body of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_parent.mc._currentframe >= 78) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
frame 2 {
if (impact > 3) {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe < 85) {
gotoAndPlay(1);
}
}
}
frame 3 {
xspeed = 0;
}
frame 4 {
if (seconds <= 0) {
gotoAndPlay('run');
} else {
if (impact > 3) {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
--seconds;
gotoAndPlay('stand');
}
}
}
frame 5 {
xspeed = -2 * _xscale / 100;
if (!_root.ground.hitTest(_x - _xscale / 2, _y + 20, true)) {
xspeed = 0;
}
if (_x < _root.guy._x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
frame 6 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (XDISTANCE > 50 && _xscale == 100) {
gotoAndPlay('run');
} else {
if (XDISTANCE < -50 && _xscale == -100) {
gotoAndPlay('run');
} else {
gotoAndPlay('slash');
}
}
}
}
frame 7 {
xspeed = 0;
}
frame 8 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe < 19) {
gotoAndPlay('slash');
} else {
gotoAndPlay('stand');
}
}
}
frame 9 {
if (!_root.PAUSE) {
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
xspeed *= 0.8;
}
}
frame 10 {
if (health <= 0) {
speed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
gotoAndPlay('stand');
}
}
}
frame 12 {
if (_root.ground.hitTest(_x, _y + 2, true)) {
if (health <= 0) {
speed = -5;
gotoAndPlay('dead');
} else {
gotoAndPlay('land');
}
} else {
gotoAndPlay('air hit');
}
}
frame 13 {
xspeed = 0;
}
frame 14 {
if (mc._currentframe < 20) {
gotoAndPlay('land');
} else {
gotoAndPlay('stand');
}
}
frame 15 {
xspeed = 0;
fallspeed = 0;
}
frame 16 {
gotoAndPlay('dead');
}
}
instance of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 20;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 1;
seconds = 30;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 20;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 40;
NUMBER = 2;
FUSE = 25;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 20;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 50;
NUMBER = 3;
FUSE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.bodycount < 3) {
if (_root.guy._x < _x) {
if (_root.cam._x + _root.cam._width / 2 > _x) {
_root.cam._x = _x - _root.cam._width / 2;
}
} else {
_root.cam._x -= (_root.cam._x - _root.fight1._x) / 5;
}
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
instance of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 0;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
if (_root.guy._x >= _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
fallspeed = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_y == Y) {
fallspeed = 0;
if (_root.guy.hitTest(this)) {
fallspeed = 6;
}
}
}
}
}
instance of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 50;
NUMBER = 4;
FUSE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
if (_root.ground2.hitTest(_x, _y, true)) {
if (!_root.ground2.hitTest(_x + 5, _y + 3, true)) {
if (xspeed > 0) {
xspeed = 0;
}
}
if (!_root.ground2.hitTest(_x - 5, _y + 3, true)) {
if (xspeed < 0) {
xspeed = 0;
}
}
}
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground2.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (_y > 500) {
health = 0;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground2.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground2.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground2.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
if (_root.guy._x >= _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 50;
NUMBER = 4;
FUSE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
if (_root.ground2.hitTest(_x, _y, true)) {
if (!_root.ground2.hitTest(_x + 5, _y + 3, true)) {
if (xspeed > 0) {
xspeed = 0;
}
}
if (!_root.ground2.hitTest(_x - 5, _y + 3, true)) {
if (xspeed < 0) {
xspeed = 0;
}
}
}
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground2.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (_y > 500) {
health = 0;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground2.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground2.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground2.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
if (_root.guy._x >= _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 50;
NUMBER = 4;
FUSE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
if (_root.ground2.hitTest(_x, _y, true)) {
if (!_root.ground2.hitTest(_x + 5, _y + 3, true)) {
if (xspeed > 0) {
xspeed = 0;
}
}
if (!_root.ground2.hitTest(_x - 5, _y + 3, true)) {
if (xspeed < 0) {
xspeed = 0;
}
}
}
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground2.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (_y > 500) {
health = 0;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground2.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground2.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground2.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
if (_root.guy._x >= _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 5167 {
frame 1 {
_visible = false;
}
}
movieClip 5173 {
frame 1 {
stop();
}
frame 4 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - 30;
}
_root.ground.Rcar.swapDepths(999);
_root.ground.Rcar.removeMovieClip();
shot = true;
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
}
frame 4 {
NUMBER = _root.missilecount;
duplicateMovieClip(_root.bomb, 'bomb' + NUMBER, NUMBER);
_root['bomb' + NUMBER]._x = _parent._x;
_root['bomb' + NUMBER]._y = _parent._y;
_root['bomb' + NUMBER].gotoAndPlay(2);
NUMBER = _root.missilecount + 1;
duplicateMovieClip(_root.bomb, 'bomb' + NUMBER, NUMBER);
_root['bomb' + NUMBER]._x = _parent._x - 20;
_root['bomb' + NUMBER]._y = _parent._y;
_root['bomb' + NUMBER].gotoAndPlay(2);
NUMBER = _root.missilecount + 2;
duplicateMovieClip(_root.bomb, 'bomb' + NUMBER, NUMBER);
_root['bomb' + NUMBER]._x = _parent._x + 20;
_root['bomb' + NUMBER]._y = _parent._y;
_root['bomb' + NUMBER].gotoAndPlay(2);
}
}
movieClip 5174 {
instance body of movieClip 145 {
onClipEvent (enterFrame) {
if (_parent.car._currentframe >= 4) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance car of movieClip 5173 {
onClipEvent (load) {
elasticness = 0.9;
quickness = 0.1;
OLDYSPEED = 0;
Y = _y;
point1 = Y;
gotoAndStop(2);
}
onClipEvent (enterFrame) {
YDISTANCE = point1 - _y;
YSPEED = OLDYSPEED * elasticness + YDISTANCE * quickness;
_y = _y + YSPEED;
OLDYSPEED = YSPEED;
if (_root.guy.hitTest(this) && _root.guy._y < _parent._y - 10 && _root.guy.fallspeed >= 0) {
point1 = Y + 3;
} else {
point1 = Y;
}
}
}
}
instance of movieClip 5174 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
if (health < 60 && health > 40) {
car.gotoAndStop(2);
}
if (health < 40 && health > 0) {
car.gotoAndStop(3);
}
if (health < 0) {
car.gotoAndStop(4);
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
if (_root.guy._x > _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
mc.stop();
}
}
}
instance boss fight of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.cam.hitTest(this)) {
_root.cam._x = _x;
_root.cam._xscale -= (_xscale - 350) / 5;
_root.cam._yscale = _root.cam._xscale;
_root.cam._y = _y;
}
}
}
}
movieClip 5177 {
}
movieClip 5179 {
frame 1 {
R = Math.random() * 360;
space = _width / 2;
onEnterFrame = function () {
_x = _root['part' + (NUMBER - 1)]._x + Math.cos(_root['part' + (NUMBER - 1)].angle) * space;
_y = _root['part' + (NUMBER - 1)]._y + Math.sin(_root['part' + (NUMBER - 1)].angle) * space;
delta_x = _x - _root['part' + (NUMBER - 1)]._x;
delta_y = _y - _root['part' + (NUMBER - 1)]._y;
_rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433 + R;
xDist = _root['part' + (NUMBER + 1)]._x - _x;
yDist = _root['part' + (NUMBER + 1)]._y - _y;
angle = Math.atan2(yDist, xDist);
};
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
}
instance part8 of movieClip 5179 {
onClipEvent (load) {
NUMBER = 8;
}
}
instance part7 of movieClip 5179 {
onClipEvent (load) {
NUMBER = 7;
}
}
instance part6 of movieClip 5179 {
onClipEvent (load) {
NUMBER = 6;
}
}
instance part5 of movieClip 5179 {
onClipEvent (load) {
NUMBER = 5;
}
}
instance part4 of movieClip 5179 {
onClipEvent (load) {
NUMBER = 4;
}
}
instance part3 of movieClip 5179 {
onClipEvent (load) {
NUMBER = 3;
}
}
instance part2 of movieClip 5179 {
onClipEvent (load) {
NUMBER = 2;
}
}
movieClip 5180 {
frame 1 {
firecount = 0;
seconds = 0;
onEnterFrame = function () {
if (!_root.PAUSE) {
if (firecount > 300) {
firecount = 0;
}
if (_root.cam.hitTest(_root.boss fight)) {
halfX = X + (X - oldX) / 2;
halfY = Y + (Y - oldY) / 2;
++firecount;
duplicateMovieClip(fire, 'fire' + firecount, firecount);
this['fire' + firecount]._x = halfX;
this['fire' + firecount]._y = halfY;
this['fire' + firecount]._rotation = Math.random() * 360;
++firecount;
duplicateMovieClip(fire, 'fire' + firecount, firecount);
this['fire' + firecount]._x = X;
this['fire' + firecount]._y = Y;
this['fire' + firecount]._rotation = Math.random() * 360;
}
}
};
}
instance fire of movieClip 5028 {
onClipEvent (load) {
if (_name == 'fire') {
_visible = false;
}
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
if (_name != 'fire') {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
}
}
movieClip 5187 {
frame 1 {
onEnterFrame = function () {
_root.WRATHfire.oldX = _root.WRATHfire.X;
_root.WRATHfire.oldY = _root.WRATHfire.Y;
_root.WRATHfire.X = _x * _parent._xscale / 100 + _parent._x + _parent._parent._x;
_root.WRATHfire.Y = _y + _parent._y + _parent._parent._y;
if (_parent._name == 'WRATH') {
if (_parent.onscreen) {
_root.WRATHfire.X = _x + _parent._x;
_root.WRATHfire.Y = _y + _parent._y;
}
}
};
}
}
movieClip 5259 {
frame 1 {
onEnterFrame = function () {
if (_root.PAUSE) {
stop();
} else {
play();
}
_rotation = -_parent._rotation;
if (_root.part0.speed > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if (_root.difficulty == 'HARD') {
if (_root.part0.health < 50) {
if (_root.part0.speed < -5 || _root.part0.speed > 5) {
if (Math.round(_root.part0.fallspeed) == -8 || Math.round(_root.part0.fallspeed) == -9) {
++_root.firecount;
if (_root.firecount > _root.firecountmax) {
_root.firecount = 130;
}
duplicateMovieClip(_root.fireshot, 'fireshot' + _root.firecount, _root.firecount);
_root['fireshot' + _root.firecount]._x = _root.part1._x;
_root['fireshot' + _root.firecount]._y = _root.part1._y - 100;
_root['fireshot' + _root.firecount].NUMBER = _root.firecount;
}
if (Math.round(_root.part0.fallspeed) == 0 || Math.round(_root.part0.fallspeed) == 1) {
++_root.firecount;
if (_root.firecount > _root.firecountmax) {
_root.firecount = 130;
}
duplicateMovieClip(_root.fireshot, 'fireshot' + _root.firecount, _root.firecount);
_root['fireshot' + _root.firecount]._x = _root.part1._x;
_root['fireshot' + _root.firecount]._y = _root.part1._y - 100;
_root['fireshot' + _root.firecount].NUMBER = _root.firecount;
}
if (Math.round(_root.part0.fallspeed) == 8 || Math.round(_root.part0.fallspeed) == 9) {
++_root.firecount;
if (_root.firecount > _root.firecountmax) {
_root.firecount = 130;
}
duplicateMovieClip(_root.fireshot, 'fireshot' + _root.firecount, _root.firecount);
_root['fireshot' + _root.firecount]._x = _root.part1._x;
_root['fireshot' + _root.firecount]._y = _root.part1._y - 100;
_root['fireshot' + _root.firecount].NUMBER = _root.firecount;
}
}
}
}
};
}
frame 2 {
if (!_root.part0.STOP) {
gotoAndPlay(1);
}
}
frame 18 {
_root.ignite.start(0, 1);
_root.hellspike.start(0, 1);
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 883 {
onClipEvent (load) {
fallspeed = -3 - Math.random() * 3;
speed = 15 + Math.random() * 5;
_rotation = Math.random() * 360;
XSPEED += speed * Math.cos(_rotation * 0.0174532925199433);
YSPEED += speed * Math.sin(_rotation * 0.0174532925199433);
}
onClipEvent (enterFrame) {
_x = _x + XSPEED;
_y = _y + YSPEED;
fallspeed *= 0.9;
speed *= 0.9;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
instance of movieClip 5028 {
onClipEvent (load) {
fallspeed = -10;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
frame 45 {
if (Math.random() > 0.4) {
gotoAndPlay('jump off');
}
}
frame 57 {
++_root.firecount;
duplicateMovieClip(_root.fireshot, 'fireshot' + _root.firecount, _root.firecount);
_root['fireshot' + _root.firecount]._x = _root.part1._x;
_root['fireshot' + _root.firecount]._y = _root.part1._y - 100;
_root['fireshot' + _root.firecount].NUMBER = _root.firecount;
_root.ignite.start(0, 1);
}
frame 73 {
++_root.firecount;
duplicateMovieClip(_root.fireshot, 'fireshot' + _root.firecount, _root.firecount);
_root['fireshot' + _root.firecount]._x = _root.part1._x;
_root['fireshot' + _root.firecount]._y = _root.part1._y - 100;
_root['fireshot' + _root.firecount].NUMBER = _root.firecount;
_root.ignite.start(0, 1);
}
frame 92 {
++_root.firecount;
duplicateMovieClip(_root.fireshot, 'fireshot' + _root.firecount, _root.firecount);
_root['fireshot' + _root.firecount]._x = _root.part1._x;
_root['fireshot' + _root.firecount]._y = _root.part1._y - 100;
_root['fireshot' + _root.firecount].NUMBER = _root.firecount;
_root.ignite.start(0, 1);
}
frame 99 {
if (_root.difficulty != 'HARD') {
gotoAndPlay(116);
}
}
frame 108 {
++_root.firecount;
duplicateMovieClip(_root.fireshot, 'fireshot' + _root.firecount, _root.firecount);
_root['fireshot' + _root.firecount]._x = _root.part1._x;
_root['fireshot' + _root.firecount]._y = _root.part1._y - 100;
_root['fireshot' + _root.firecount].NUMBER = _root.firecount;
_root.ignite.start(0, 1);
}
frame 117 {
_root.part0.JUMPcount = 1;
_root.part0.STOP = false;
_root.part0.fallspeed = -5;
_root.part0.speed = -10;
gotoAndPlay(1);
}
frame 124 {
_root.WRATH.onscreen = true;
_root.WRATH._xscale = 100;
_root.WRATH._x = _root.part1._x - 30;
_root.WRATH._y = _root.part1._y - 80;
_root.WRATH.speed = -10;
_root.WRATH.fallspeed = -5;
_root.woosh.start(0, 1);
}
instance WRATH of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.health -= 20;
if (_parent.speed > 0) {
_root.guy._xscale = -100;
} else {
_root.guy._xscale = 100;
}
_root.guy.speed = -_root.guy._xscale * 0.1;
_root.guy.fallspeed = -10;
}
}
}
}
frame 126 {
if (_root.WRATH.onscreen) {
gotoAndPlay(125);
} else {
_root.part0.JUMPcount = 1;
_root.part0.STOP = false;
_root.part0.fallspeed = -5;
_root.part0.speed = -10;
gotoAndPlay(1);
}
}
}
movieClip 5260 {
frame 1 {
R = Math.random() * 360;
space = _width / 2;
onEnterFrame = function () {
_x = _root['part' + (NUMBER - 1)]._x + Math.cos(_root['part' + (NUMBER - 1)].angle) * space;
_y = _root['part' + (NUMBER - 1)]._y + Math.sin(_root['part' + (NUMBER - 1)].angle) * space;
delta_x = _x - _root['part' + (NUMBER - 1)]._x;
delta_y = _y - _root['part' + (NUMBER - 1)]._y;
_rotation = -Math.atan2(delta_x, delta_y) / 0.0174532925199433 + R;
xDist = _root['part' + (NUMBER + 1)]._x - _x;
yDist = _root['part' + (NUMBER + 1)]._y - _y;
angle = Math.atan2(yDist, xDist);
};
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
}
instance part1 of movieClip 5260 {
onClipEvent (load) {
NUMBER = 1;
}
}
movieClip 5273 {
frame 1 {
onEnterFrame = function () {
FRAME = Math.round(10 + _parent.fallspeed / 10);
gotoAndStop(FRAME);
};
}
}
movieClip 5274 {
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
}
instance part0 of movieClip 5274 {
onClipEvent (load) {
MAXhealth = 150;
health = MAXhealth;
Y = _y;
X = _x;
fallspeed = -90;
speed = 10 - Math.random() * 20;
onscreen = false;
SIN = 0;
JUMPcount = 3;
STOP = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (onscreen) {
_root.bossMAXhealth = MAXhealth;
_root.bosshealth = health;
SIN += 90;
if (_y < _root.horizon._y && groundDISTANCE < 0) {
if (_root.DIFFICULTY == 'HARD') {
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _x;
_root['Cball' + _root.Cballcount]._y = _y - 20;
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _x;
_root['Cball' + _root.Cballcount]._y = _y - 20;
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _x;
_root['Cball' + _root.Cballcount]._y = _y - 20;
}
_root.hellspike.start(0, 1);
if (Math.random() < 0.3) {
_root.growl1.start(0, 1);
} else {
if (Math.random() < 0.3) {
_root.growl2.start(0, 1);
} else {
_root.growl3.start(0, 1);
}
}
}
groundDISTANCE = _root.horizon._y - _y;
gDISTANCE = Math.sqrt(groundDISTANCE * groundDISTANCE) / 10;
camshake = 100 - gDISTANCE;
if (camshake < 0) {
camshake = 0;
}
if (!STOP) {
_y = _y + fallspeed;
fallspeed += 2;
if (_y < _root.horizon._y) {
_x = _x + speed;
}
}
if (speed > 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if (JUMPcount == 0) {
if (fallspeed >= 20) {
STOP = true;
fallspeed = 10;
}
}
if (_y > Y) {
if (JUMPcount < 5) {
++JUMPcount;
_y = Y;
fallspeed = -85 - Math.random() * 10;
_x = X + 500 - Math.random() * 1000;
speed = (X - _x) * 0.05;
_root.reverseboom.start(0, 1);
} else {
JUMPcount = 0;
_y = Y;
fallspeed = -87;
_x = X + 500;
speed = -10;
}
}
xDist = _root.part1._x - _x;
yDist = _root.part1._y - _y;
angle = Math.atan2(yDist, xDist);
} else {
if (_root.cam._x > _x - 200) {
onscreen = true;
}
}
}
}
}
movieClip 5282 {
frame 1 {
FRAME = 1 + Math.round(Math.random() * 6);
gotoAndStop(FRAME);
}
}
movieClip 5283 {
frame 1 {
rockCount = 0;
onEnterFrame = function () {
if (SHAKE) {
++rockCount;
duplicateMovieClip(this.rock, 'rock' + rockCount, rockCount);
this['rock' + rockCount]._x = 0;
this['rock' + rockCount]._y = 0;
}
};
}
instance rock of movieClip 5282 {
onClipEvent (load) {
_rotation = Math.random() * 360;
Rspeed = 5 - Math.random() * 10;
speed = 10 - Math.random() * 20;
fallspeed = -5 - Math.random();
}
onClipEvent (enterFrame) {
if (_name != 'rock') {
_visible = true;
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
if (_y > 100) {
this.removeMovieClip();
}
} else {
_visible = false;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.part0)) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.guy.impact = 20;
_root.guy.health -= 20;
if (_root.guy._x < _root.part0._x) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.4;
_root.guy.fallspeed = -20;
}
}
}
}
}
}
instance of movieClip 5283 {
onClipEvent (enterFrame) {
_x = _root.part0._x;
if (_root.part0._y > _y) {
SHAKE = true;
} else {
SHAKE = false;
}
}
}
instance fireshot of movieClip 5029 {
onClipEvent (load) {
speed = 20;
if (_root.DIFFICULTY == 'HARD') {
speed = 30;
}
_xscale = 50;
xdistance = _x - _root.guy._x;
ydistance = _y - _root.guy._y;
_rotation = -Math.atan2(xdistance, ydistance) / 0.0174532925199433 + 180;
Xspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
Yspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
NUMBER = _root.firecount + 5;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != 'fireshot') {
_x = _x - Xspeed;
_y = _y + Yspeed;
if (_root.ground.hitTest(_x, _y, true) || _root.guy.body.hitTest(_x, _y, true)) {
duplicateMovieClip(_root.bomb, 'bomb' + NUMBER, NUMBER);
_root['bomb' + NUMBER]._x = _x;
_root['bomb' + NUMBER]._y = _y;
_root['bomb' + NUMBER].gotoAndPlay(2);
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
}
movieClip 5341 {
frame 2 {
if (!onscreen) {
gotoAndPlay(1);
}
}
frame 4 {
if (fallspeed < 0) {
gotoAndPlay(3);
}
}
frame 6 {
if (!_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay(5);
}
}
frame 7 {
SKID = true;
if (_root.guy._x < _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
frame 16 {
SKID = false;
speed = 0;
}
frame 30 {
if (_root.guy._x < _x) {
speed = -10;
_xscale = 100;
} else {
speed = 10;
_xscale = -100;
}
if (_x - _root.guy._x < 200 && _xscale > 0) {
} else {
if (_x - _root.guy._x > -200 && _xscale < 0) {
} else {
RUN = true;
}
}
}
frame 40 {
if (_root.guy._x < _x) {
speed = -10;
_xscale = 100;
} else {
speed = 10;
_xscale = -100;
}
if (_x - _root.guy._x < 200 && _xscale > 0) {
} else {
if (_x - _root.guy._x > -200 && _xscale < 0) {
} else {
RUN = true;
}
}
}
frame 48 {
if (RUN) {
gotoAndPlay(30);
}
}
frame 49 {
fallspeed = -8;
}
frame 51 {
if (!_root.ground.hitTest(_x, _y + 1, true)) {
gotoAndPlay(50);
}
}
frame 52 {
SKID = true;
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.health -= 20;
if (_parent.speed > 0) {
_root.guy._xscale = -100;
} else {
_root.guy._xscale = 100;
}
_root.guy.speed = -_root.guy._xscale * 0.1;
_root.guy.fallspeed = -10;
}
}
}
}
frame 55 {
if (speed > 0.01 || speed < -0.01) {
gotoAndPlay(54);
} else {
SKID = false;
fallspeed = -28;
if (_x < _root.part0._x) {
_xscale = -100;
} else {
_xscale = 100;
}
speed = (_root.part0._x - _x) / 40;
}
}
frame 57 {
if (fallspeed < 0) {
gotoAndPlay(56);
}
}
frame 59 {
if (!this.hitTest(_root.part1.WRATH.WRATH)) {
gotoAndPlay(58);
} else {
fallspeed = 0;
speed = 0;
_visible = false;
onscreen = false;
}
}
}
instance WRATH of movieClip 5341 {
onClipEvent (load) {
speed = 0;
fallspeed = 0;
SKID = 0;
RUN = 0;
_visible = false;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (onscreen) {
_visible = true;
_x = _x + speed;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y + 1, true)) {
++fallspeed;
} else {
if (_currentframe <= 55) {
fallspeed = 0;
}
}
if (SKID) {
speed *= 0.9;
}
if (RUN) {
if (_x - _root.guy._x < 200 && _xscale > 0) {
gotoAndPlay('ATTACK');
RUN = false;
}
if (_x - _root.guy._x > -200 && _xscale < 0) {
gotoAndPlay('ATTACK');
RUN = false;
}
}
}
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (_y > 500) {
health = 0;
}
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y - 5;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (_y >= 1300) {
health = 0;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (_root.cam.hitTest(_root.boss fight)) {
BOSSshot = true;
_root.bulletmax = 20;
_root.enemymax = 71;
} else {
BOSSshot = false;
_root.bulletmax = 20;
_root.enemymax = 80;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
if (BOSSshot) {
xshot = i * 80 * Math.cos(R * 0.0174532925199433);
yshot = i * 80 * Math.sin(R * 0.0174532925199433);
} else {
xshot = i * 35 * Math.cos(R * 0.0174532925199433);
yshot = i * 35 * Math.sin(R * 0.0174532925199433);
}
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax + 10) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
if (BOSSshot) {
xshot = i * 80 * Math.cos(R * 0.0174532925199433);
yshot = i * 80 * Math.sin(R * 0.0174532925199433);
} else {
xshot = i * 35 * Math.cos(R * 0.0174532925199433);
yshot = i * 35 * Math.sin(R * 0.0174532925199433);
}
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax + 10) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 5343 {
frame 1 {
_visible = false;
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance body of movieClip 145 {
onClipEvent (load) {
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.WRATH.onscreen) {
_x = _root.WRATH._x - _root.part1._x;
_y = _root.WRATH._y - 70 - _root.part1._y;
} else {
_x = X;
_y = Y;
}
}
}
}
instance of movieClip 5343 {
onClipEvent (load) {
onscreen = false;
MAXhealth = 150;
health = MAXhealth;
}
onClipEvent (enterFrame) {
_x = _root.part1._x;
_y = _root.part1._y;
if (onscreen) {
impact = 0;
_root.part0.health = health;
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy71';
}
}
}
}
movieClip 5363 {
frame 25 {
gotoAndPlay(1);
}
frame 26 {
speed = 0;
}
frame 40 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance civ of movieClip 5363 {
onClipEvent (load) {
speed = -7.8;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
if (_root.cam.hitTest(this)) {
onscreen = true;
}
if (onscreen) {
_x = _x + speed;
}
} else {
stop();
}
}
}
movieClip 5381 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
COIN();
}
frame 33 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 5381 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 5387 {
frame 1 {
stop();
}
frame 4 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - 30;
}
_root.ground.Bcar.swapDepths(999);
_root.ground.Bcar.removeMovieClip();
shot = true;
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
}
frame 4 {
NUMBER = _root.missilecount;
duplicateMovieClip(_root.bomb, 'bomb' + NUMBER, NUMBER);
_root['bomb' + NUMBER]._x = _parent._x;
_root['bomb' + NUMBER]._y = _parent._y;
_root['bomb' + NUMBER].gotoAndPlay(2);
NUMBER = _root.missilecount + 1;
duplicateMovieClip(_root.bomb, 'bomb' + NUMBER, NUMBER);
_root['bomb' + NUMBER]._x = _parent._x - 20;
_root['bomb' + NUMBER]._y = _parent._y;
_root['bomb' + NUMBER].gotoAndPlay(2);
NUMBER = _root.missilecount + 2;
duplicateMovieClip(_root.bomb, 'bomb' + NUMBER, NUMBER);
_root['bomb' + NUMBER]._x = _parent._x + 20;
_root['bomb' + NUMBER]._y = _parent._y;
_root['bomb' + NUMBER].gotoAndPlay(2);
}
}
movieClip 5388 {
instance body of movieClip 145 {
onClipEvent (enterFrame) {
if (_parent.car._currentframe >= 4) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance car of movieClip 5387 {
onClipEvent (load) {
elasticness = 0.9;
quickness = 0.1;
OLDYSPEED = 0;
Y = _y;
point1 = Y;
}
onClipEvent (enterFrame) {
YDISTANCE = point1 - _y;
YSPEED = OLDYSPEED * elasticness + YDISTANCE * quickness;
_y = _y + YSPEED;
OLDYSPEED = YSPEED;
if (_root.guy.hitTest(this) && _root.guy._y < _parent._y - 10 && _root.guy.fallspeed >= 0) {
point1 = Y + 3;
} else {
point1 = Y;
}
}
}
}
instance car of movieClip 5388 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
if (health < 60 && health > 40) {
car.gotoAndStop(2);
}
if (health < 40 && health > 0) {
car.gotoAndStop(3);
}
if (health < 0) {
car.gotoAndStop(4);
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
if (_root.guy._x > _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
mc.stop();
}
}
}
instance car2 of movieClip 5174 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
if (impact > 0) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
if (health < 60 && health > 40) {
car.gotoAndStop(2);
}
if (health < 40 && health > 0) {
car.gotoAndStop(3);
}
if (health < 0) {
car.gotoAndStop(4);
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
if (_root.guy._x > _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
mc.stop();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.body.hitTest(this)) {
_root.CONTROLS.play();
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y > _y) {
_root.guy.health = 0;
}
}
}
movieClip 5390 {
}
movieClip 5395 {
}
movieClip 5422 {
}
movieClip 5424 {
frame 1 {
SMOKECOUNT = 0;
stop();
onEnterFrame = function () {
if (_currentframe == 1) {
if (_root.ground.hitTest(_x, _y + 20, true)) {
play();
}
if (_root.guy.body.hitTest(_x, _y, true)) {
play();
}
++SMOKECOUNT;
duplicateMovieClip(smoke, 'smoke' + SMOKECOUNT, SMOKECOUNT);
}
};
}
instance smoke of movieClip 5390 {
onClipEvent (load) {
fallspeed = -2 - Math.random() * 3;
_xscale = 100 + Math.random() * 20;
_yscale = _xscale;
SIZE = 5 + Math.random() * 5;
}
onClipEvent (enterFrame) {
if (_name != 'smoke') {
_x = _x - _parent.speed;
if (!_parent.dead) {
_y = _y - _parent.fallspeed;
}
_y = _y + fallspeed;
_xscale = _xscale - SIZE;
_yscale = _xscale;
if (_xscale < 0) {
this.removeMovieClip();
}
}
}
}
instance of movieClip 5422 {
onClipEvent (load) {
this.swapDepths(300);
FRAME = Math.round(1 + Math.random() * 15);
gotoAndPlay(FRAME);
}
onClipEvent (enterFrame) {
if (_parent._currentframe != 1) {
this.removeMovieClip();
}
}
}
frame 2 {
_root.cam._x += 5;
dead = true;
_root.explosion1.start(0, 1);
}
frame 2 {
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
i = 100;
while (i < 105) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 700 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 40 + Math.random() * 5;
_xscale = 700 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 20;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 20;
_xscale = 200;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy._y -= 3;
_root.guy.fallspeed = -10;
_root.guy.health -= 15;
_root.guy.speed = -(_parent._x - _root.guy._x) / 3;
if (_root.guy._x > _x) {
_root.guy._xscale = -100;
} else {
_root.guy._xscale = 100;
}
}
}
}
}
frame 3 {
_root.cam._x -= 10;
}
frame 4 {
_root.cam._x += 8;
}
frame 5 {
_root.cam._x -= 6;
}
frame 6 {
_root.cam._x += 4;
}
frame 7 {
_root.cam._x -= 2;
}
frame 8 {
_root.cam._x += 1;
stop();
}
}
instance cannonball of movieClip 5424 {
onClipEvent (load) {
if (_root.DIFFICULTY == 'MEDIUM') {
this.swapDepths(999);
this.removeMovieClip();
} else {
fallspeed = -10 - Math.random() * 5;
}
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != 'cannonball') {
if (!dead) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
}
}
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
movieClip 5455 {
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
}
movieClip 5564 {
frame 1 {
_visible = false;
}
frame 2 {
if (_root.cam.hitTest(_root.boss fight) && _root.part0.STOP) {
play();
_visible = true;
_root.HUD._visible = false;
_root.PAUSE = true;
_root._quality = 'HIGH';
} else {
gotoAndPlay(1);
}
}
frame 43 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' WHO THE HELL ARE \nYOU AND WHERE\'S MY \nGIRL?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 44 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 79 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'CALM DOWN THERE \nJIMMY, WE\'RE JUST AVIN \nA LAUGH!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 80 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 81 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'AND ONCE I GET BACK, \nYOUR LADY\'S MINE!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 82 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 83 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' DON\'T SCREW ME \nAROUND!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 84 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 85 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' WHAT\'S GOING ON? AND \nWHY IS YOUR FACE ON \nFIRE?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == ' WHAT\'S GOING ON?') {
speedchecker -= 50;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 86 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 87 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'HA! I LIKE YOU KID. \nLET\'S RUMBLE.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 88 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 113 {
_root.PAUSE = false;
_root._quality = 'LOW';
_root.HUD._visible = true;
_root.BOSSbar.onscreen = true;
stop();
}
frame 114 {
_visible = true;
_root.HUD._visible = false;
_root.BOSSbar._visible = false;
_root.PAUSE = true;
this.swapDepths(900);
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.WRATH = 'beat';
}
frame 226 {
_root.cam._y -= 5;
}
frame 227 {
_root.cam._y += 10;
}
frame 228 {
_root.cam._y -= 8;
}
frame 229 {
_root.cam._y += 6;
}
frame 230 {
_root.cam._y -= 4;
}
frame 231 {
_root.cam._y += 2;
}
frame 250 {
_root.cam._x -= 5;
}
frame 251 {
_root.cam._x += 10;
}
frame 252 {
_root.cam._x -= 8;
}
frame 253 {
_root.cam._x += 6;
}
frame 254 {
_root.cam._x -= 4;
}
frame 255 {
_root.cam._x += 2;
}
frame 453 {
_root.money += 50;
_root.gotoAndStop('pub');
}
}
instance convo of movieClip 5564 {
onClipEvent (load) {
THISFRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root._currentframe != THISFRAME) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_currentframe < 165) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
}
movieClip 5577 {
frame 1 {
X = _x;
Y = _y;
onEnterFrame = function () {
if (_root.bosshealth != oldHealth) {
_x = _x + Math.random() * 5;
_y = _y + Math.random() * 5;
}
oldHealth = _root.bosshealth;
_x = _x - (_x - X) / 3;
_y = _y - (_y - Y) / 3;
};
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance of movieClip 5177 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (X / _root.bossMAXhealth) * _root.bosshealth;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
_xscale = (X / _root.bossMAXhealth) * _root.bosshealth;
}
}
}
movieClip 5578 {
}
instance BOSSbar of movieClip 5578 {
onClipEvent (load) {
_alpha = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (_root.bosshealth < 0) {
_root.convo.play();
}
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
instance CONTROLS of movieClip 3397 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 5581 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
gotoAndStop(3);
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
gotoAndPlay(1);
}
}
};
}
}
instance of movieClip 5581 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 1981 {
onClipEvent (enterFrame) {
this.swapDepths(999);
this.removeMovieClip();
}
}
frame 25 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 80;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
skellingtoncount = 130;
skellingtoncountmax = 140;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 5583 {
}
instance of movieClip 5583 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _xscale;
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 5585 {
}
instance of movieClip 5585 {
onClipEvent (load) {
speed = 0;
maxspeed = 5;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x + _width / 2 < _root.cam._x - _root.cam._width / 2) {
_x = _x + _width * 2;
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5585 {
onClipEvent (load) {
speed = 0;
maxspeed = 5;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x + _width / 2 < _root.cam._x - _root.cam._width / 2) {
_x = _x + _width * 2;
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
movieClip 5588 {
}
instance of movieClip 5588 {
onClipEvent (load) {
speed = 0;
maxspeed = 10;
if (Math.random() > 0.5) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 600) {
_x = _x + 1300;
if (Math.random() > 0.5) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5588 {
onClipEvent (load) {
speed = 0;
maxspeed = 10;
if (Math.random() > 0.5) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 600) {
_x = _x + 1300;
if (Math.random() > 0.5) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
SIN = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.BG.speed >= _root.BG.maxspeed) {
SIN += 90;
_y = _y + Math.sin(SIN);
}
if (this.hitTest(_root.fight1) && _root.bodycount < 3) {
} else {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
if (_x + _width / 2 > _root.barrier._x) {
_x = _root.barrier._x - _width / 2;
}
}
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
_root.TUNNEL._x = _x;
_root.TUNNEL._y = _y;
}
}
}
movieClip 5613 {
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
instance circle of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 10;
}
onClipEvent (enterFrame) {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = Math.cos(_rotation * 0.0174532925199433) * speed;
yspeed = Math.sin(_rotation * 0.0174532925199433) * speed;
speed *= 0.9;
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 0;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 500) {
_x = _x + 1000;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 0;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 500) {
_x = _x + 1000;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 0;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 500) {
_x = _x + 1000;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 0;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 500) {
_x = _x + 1000;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 0;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 500) {
_x = _x + 1000;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 0;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 500) {
_x = _x + 1000;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 0;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 500) {
_x = _x + 1000;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
movieClip 5616 {
}
movieClip 5617 {
frame 1 {
lightcount = 0;
seconds = -30;
}
instance light of movieClip 5616 {
onClipEvent (enterFrame) {
if (_name != 'light') {
_x = _x - _parent.SPEED;
if (_x < -2100) {
this.removeMovieClip();
}
}
}
}
}
instance TUNNEL of movieClip 5617 {
onClipEvent (load) {
onscreen = false;
_visible = false;
SPEED = 30;
}
onClipEvent (enterFrame) {
if (onscreen) {
_visible = true;
++seconds;
if (seconds / 50 == Math.round(seconds / 50)) {
++lightcount;
duplicateMovieClip(light, 'light' + lightcount, lightcount);
this['light' + lightcount]._x = light._x;
this['light' + lightcount]._y = light._y;
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 10;
}
duplicateMovieClip(_root.DARKNESS, 'DARKNESS' + _root.skellingtoncount, _root.skellingtoncount);
_root['DARKNESS' + _root.skellingtoncount]._x = _x + light._x;
_root['DARKNESS' + _root.skellingtoncount]._x = _root['DARKNESS' + _root.skellingtoncount - 1]._x + _width;
_root['DARKNESS' + _root.skellingtoncount]._y = _root.DARKNESS._y;
}
}
}
}
movieClip 5619 {
}
instance TUNNELentrance of movieClip 5619 {
onClipEvent (load) {
onscreen = false;
seconds = 0;
}
onClipEvent (enterFrame) {
if (onscreen) {
++seconds;
if (seconds > 30) {
_root.TUNNEL.onscreen = true;
}
_x = _x - 30;
if (!this.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
}
}
movieClip 5621 {
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
movieClip 5623 {
frame 1 {
_visible = false;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < 20) {
speed += 0.1;
}
} else {
speed = 0;
}
if (!this.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < 20) {
speed += 0.1;
}
} else {
speed = 0;
}
if (!this.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.bodycount > 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
movieClip 5625 {
}
instance BG of movieClip 5625 {
onClipEvent (load) {
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 1000) {
_x = _x + 72;
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
movieClip 5628 {
}
instance of movieClip 5628 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - 50;
if (!this.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
}
}
movieClip 5632 {
}
movieClip 5635 {
}
movieClip 5641 {
}
movieClip 5643 {
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
movieClip 5660 {
frame 1 {
if (_parent.fallspeed < 0) {
gotoAndPlay(6);
_parent.xspeed = -_parent._xscale * 0.1;
}
}
frame 5 {
_parent.xspeed = _parent._xscale * (-0.1 - Math.random() / 10);
_parent.fallspeed = -8 - Math.random() * 5;
_root.woosh.start(0, 1);
}
frame 7 {
FRAME = _currentframe - 1;
if (_parent.fallspeed < 0) {
gotoAndPlay(FRAME);
}
}
frame 10 {
FRAME = _currentframe - 1;
if (_parent.fallspeed != 0) {
if (_root.guy.body.hitTest(this)) {
gotoAndPlay('attack');
} else {
gotoAndPlay(FRAME);
}
}
}
frame 11 {
_root.landing.start(0, 1);
}
frame 17 {
_root.swishH.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop2.start(0, 1);
_root.guy.impact = 5;
_root.guy.health -= 10;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
}
frame 24 {
gotoAndPlay(9);
}
}
movieClip 5668 {
frame 2 {
if (_root.guy.body.hitTest(this)) {
play();
} else {
gotoAndPlay(1);
}
}
frame 3 {
_root.swishH.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop3.start(0, 1);
_root.guy.impact = 5;
_root.guy.health -= 10;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
}
}
movieClip 5676 {
frame 5 {
_root.swishH.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.chop3.start(0, 1);
_root.guy.impact = 5;
_root.guy.health -= 10;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
}
}
movieClip 5686 {
}
movieClip 5695 {
frame 1 {
onEnterFrame = function () {
FRAME = _parent.impact + 15;
if (FRAME > 15 && _parent.impact > 0) {
gotoAndPlay(FRAME);
}
if (_currentframe > 15 && _currentframe < 25) {
if (_parent.impact <= 1) {
gotoAndPlay(25);
}
}
};
}
frame 14 {
gotoAndPlay(14);
}
}
movieClip 5702 {
}
movieClip 5725 {
frame 1 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - 30;
}
_root.puff.start(0, 1);
_root.woosh.start(0, 1);
++_root.bodycount;
COIN();
COIN();
COIN();
COIN();
COIN();
COIN();
}
frame 77 {
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 5726 {
frame 1 {
if (onscreen) {
xspeed -= xspeed / 5;
--seconds;
if (_root.guy._x < _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if (!_root.ground.hitTest(_x + xspeed * 2, _y + 1, true)) {
xspeed = 0;
}
}
}
frame 2 {
if (seconds <= 0) {
if (XDISTANCE < 100 && XDISTANCE > -100) {
gotoAndPlay('slash');
} else {
gotoAndPlay('jump');
}
} else {
if (impact > 3) {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
gotoAndPlay('stand');
}
}
}
frame 3 {
if (_root.ground.hitTest(_x - _xscale / 2, _y - 10, true)) {
gotoAndPlay('wall jump');
seconds = 20;
}
}
frame 4 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (_root.ground.hitTest(_x, _y, true) && mc._currentframe > 10 && mc._currentframe < 12) {
if (_root.DIFFICULTY == 'MEDIUM') {
seconds = 10;
} else {
seconds = 3;
}
gotoAndPlay(1);
} else {
gotoAndPlay('jump');
}
}
}
frame 5 {
xspeed = 0;
fallspeed = 0;
--seconds;
if (_root.ground.hitTest(_x + _xscale / 2, _y - 10, true)) {
_y = _y - 2;
}
}
frame 6 {
if (seconds < 0) {
gotoAndPlay('jump');
fallspeed = -10;
_xscale = _xscale * -1;
} else {
gotoAndPlay('wall jump');
}
}
frame 7 {
xspeed = 0;
seconds = 10;
}
frame 8 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe < 14) {
gotoAndPlay('slash');
} else {
gotoAndPlay('stand');
if (_root.DIFFICULTY == 'MEDIUM') {
seconds = 10;
} else {
seconds = 3;
}
}
}
}
frame 9 {
if (!_root.PAUSE) {
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
xspeed *= 0.8;
}
}
frame 10 {
if (health <= 0) {
speed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
seconds = 0;
gotoAndPlay('stand');
}
}
}
frame 11 {
xspeed = 0;
}
frame 12 {
if (_root.ground.hitTest(_x, _y, true)) {
if (health <= 0) {
speed = -5;
gotoAndPlay('dead');
} else {
gotoAndPlay('land');
}
} else {
if (_root.ground.hitTest(_x - _xscale / 2, _y - 10, true)) {
gotoAndPlay('wall jump');
if (_root.DIFFICULTY == 'MEDIUM') {
seconds = 20;
} else {
seconds = 10;
}
}
gotoAndPlay('air hit');
}
}
frame 13 {
xspeed = 0;
}
frame 14 {
if (mc._currentframe < 11) {
gotoAndPlay('land');
} else {
seconds = 0;
gotoAndPlay('stand');
}
}
frame 15 {
xspeed = 0;
}
frame 16 {
gotoAndPlay('dead');
}
}
instance of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 1;
seconds = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (_y > 1000) {
_y = -100;
xspeed *= -1;
_xscale = _xscale * -1;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
movieClip 5727 {
frame 1 {
Ccount = 0;
onEnterFrame = function () {
++Ccount;
duplicateMovieClip(circle, 'circle' + Ccount, Ccount);
this['circle' + Ccount]._x = _root.skull._x;
this['circle' + Ccount]._y = _root.skull._y;
};
}
instance circle of movieClip 883 {
onClipEvent (load) {
if (_parent._name == 'light') {
_xscale = 100;
} else {
_xscale = 200;
}
_yscale = _xscale;
_rotation = Math.random() * 360;
speed = 5;
}
onClipEvent (enterFrame) {
if (_name != 'circle') {
_x = _x + xspeed;
_y = _y + yspeed;
xspeed = speed * Math.cos(_rotation * 0.0174532925199433);
yspeed = speed * Math.sin(_rotation * 0.0174532925199433);
speed *= 0.9;
_xscale = _xscale * 0.95;
_yscale = _xscale;
}
}
}
}
movieClip 5762 {
frame 1 {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (health != oldhealth) {
gotoAndPlay('hit');
}
oldhealth = health;
}
}
frame 2 {
if (seconds < SPAWNtime - 10) {
gotoAndPlay(1);
}
}
frame 15 {
gotoAndPlay(1);
}
frame 16 {
oldhealth = health;
}
frame 25 {
gotoAndPlay(1);
}
frame 26 {
_root.skull._y -= 200;
++_root.bodycount;
}
frame 52 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - 30;
}
_root.cam._x += 5;
COIN();
}
frame 52 {
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
i = 100;
while (i < 105) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 10 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 500 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
frame 53 {
_root.cam._x -= 10;
COIN();
}
frame 54 {
_root.cam._x += 8;
COIN();
}
frame 55 {
_root.cam._x -= 6;
COIN();
}
frame 56 {
_root.cam._x += 4;
COIN();
}
frame 57 {
_root.cam._x -= 2;
COIN();
}
frame 58 {
_root.cam._x += 1;
}
frame 90 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 5762 {
onClipEvent (load) {
MAXhealth = 100;
health = 50;
xspeed = 10;
yspeed = 5;
SIN = 90;
COS = 0;
onscreen = false;
seconds = 0;
SPAWNtime = 100;
X = 200 - Math.random() * 400;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
_root.skull._x = _x;
_root.skull._y = _y;
XPOSITION = _root.guy._x + Math.cos(COS) * 100;
_x = _x - (_x - XPOSITION) / 10;
_y = _y + yspeed;
SIN += 0.2;
COS += 0.1;
yspeed = Math.sin(SIN) * 5;
if (_x - oldX < 0) {
_xscale = -100;
}
if (_x - oldX > 0) {
_xscale = 100;
}
oldX = _x;
_rotation = (_y - oldY) * (_xscale / 100) * 2;
oldY = _y;
this.line.removeMovieClip();
this.line2.removeMovieClip();
++seconds;
if (seconds == SPAWNtime || seconds == SPAWNtime + 2) {
this.createEmptyMovieClip('line', 11);
this.line.lineStyle(15, 6836340);
this.createEmptyMovieClip('line2', 12);
this.line2.lineStyle(5, 16777215);
if (_root.ground.hitTest(_x + X, _y + 250, true)) {
i = 0;
while (i < 10) {
this.createEmptyMovieClip('node' + i, i);
this['node' + i]._x = X * (i / 10) + (10 - Math.random() * 20) * (_xscale / 100);
this['node' + i]._y = 250 * (i / 10);
if (!_root.ground.hitTest(this['node' + i]._x + _x, this['node' + i]._y - 10 + _y, true)) {
this.line.lineTo(this['node' + i]._x, this['node' + i]._y);
this.line2.lineTo(this['node' + i]._x, this['node' + i]._y);
}
++i;
}
}
}
if (seconds == SPAWNtime + 2) {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 10;
}
duplicateMovieClip(_root.skellington, 'skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _x + X;
_root['skellington' + _root.skellingtoncount]._y = _root.FLOOR._y;
X = 200 - Math.random() * 400;
seconds = 0;
}
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 5766 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
}
frame 38 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 5766 {
onClipEvent (load) {
impact = 0;
onscreen = false;
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5766 {
onClipEvent (load) {
impact = 0;
onscreen = false;
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (_y >= 1300) {
health = 0;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 35 * Math.cos(R * 0.0174532925199433);
yshot = i * 35 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
if (BOSSshot) {
xshot = i * 80 * Math.cos(R * 0.0174532925199433);
yshot = i * 80 * Math.sin(R * 0.0174532925199433);
} else {
xshot = i * 35 * Math.cos(R * 0.0174532925199433);
yshot = i * 35 * Math.sin(R * 0.0174532925199433);
}
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 5784 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
COIN();
}
frame 37 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 5784 {
onClipEvent (load) {
impact = 0;
onscreen = false;
speed = 0;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 0;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
if (_root.TUNNELentrance.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance skellington of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 50;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 4;
seconds = 0;
FUSE = 50;
if (_name != 'skellington') {
_root.lightningS.start(0, 1);
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 5788 {
}
instance DARKNESS of movieClip 5788 {
onClipEvent (load) {
lightcount = _root.TUNNEL.lightcount;
LEVEL = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_name != 'DARKNESS') {
_visible = true;
_x = _root.cam._x + _root.TUNNEL['light' + lightcount]._x;
if (_x < _root.cam._x - 2000) {
this.removeMovieClip();
}
} else {
_visible = false;
}
if (_root._currentframe != LEVEL) {
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.cam._x > _x) {
if (_root.bodycount == 0) {
_root.cam._x = _x;
}
}
if (_root.bodycount > 0) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 5792 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 3 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _x;
_root['coin' + _root.coincount]._y = _y - _height / 2;
}
COIN();
COIN();
COIN();
COIN();
}
frame 22 {
this.swapDepths(999);
this.removeMovieClip();
}
}
instance of movieClip 5792 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.health = 0;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
instance of movieClip 1981 {
onClipEvent (enterFrame) {
this.swapDepths(999);
this.removeMovieClip();
}
}
movieClip 5795 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance of movieClip 5795 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
frame 27 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 80;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
skellingtoncount = 130;
skellingtoncountmax = 140;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
instance TUNNEL of movieClip 5617 {
onClipEvent (load) {
onscreen = true;
SPEED = 50;
}
onClipEvent (enterFrame) {
if (onscreen) {
++seconds;
if (seconds / 40 == Math.round(seconds / 40)) {
++lightcount;
duplicateMovieClip(light, 'light' + lightcount, lightcount);
this['light' + lightcount]._x = light._x;
this['light' + lightcount]._y = light._y;
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 10;
}
duplicateMovieClip(_root.DARKNESS, 'DARKNESS' + _root.skellingtoncount, _root.skellingtoncount);
_root['DARKNESS' + _root.skellingtoncount]._x = _x + light._x;
_root['DARKNESS' + _root.skellingtoncount]._x = _root['DARKNESS' + _root.skellingtoncount - 1]._x + _width;
_root['DARKNESS' + _root.skellingtoncount]._y = _root.DARKNESS._y;
}
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
SINE = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
SINE += 90;
_y = _y + Math.sin(SINE) * 5;
if (this.hitTest(_root.fight1) && _root.bodycount < 3) {
} else {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
if (_x + _width / 2 > _root.barrier._x) {
_x = _root.barrier._x - _width / 2;
}
}
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
_root.TUNNEL._x = _x;
}
}
}
movieClip 5799 {
}
movieClip 5802 {
}
movieClip 5834 {
frame 3 {
if (_root.cam._x < _x - 300) {
gotoAndPlay(1);
}
}
frame 62 {
_root.REDguy.onscreen = true;
++_root.enemycount;
_root.REDguy._name = 'enemy' + _root.enemycount;
}
frame 63 {
this.swapDepths(999);
this.removeMovieClip();
}
}
movieClip 5841 {
}
instance of movieClip 5841 {
onClipEvent (load) {
gotoAndPlay(5);
}
}
movieClip 5843 {
frame 1 {
_visible = false;
}
instance CIELING of movieClip 145 {
onClipEvent (load) {
X = _x;
_x = _x + _width;
}
}
instance CIELING2 of movieClip 145 {
onClipEvent (load) {
X = _x;
_x = _x + _width;
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 20;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance REDguy of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = -10;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 1;
seconds = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 70, true)) {
_y = _y + 1;
}
if (_root.ground.hitTest(_x, _y - 71, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
_visible = true;
} else {
_visible = false;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3214 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 80;
impact = 0;
shot = false;
CHARGE = 1;
RANDOMHIT = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
++CHARGE;
_x = _x - xspeed;
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance CAMy of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y < _y) {
_root.cam.Y = -5;
} else {
_root.cam.Y = _root.cam.originY;
}
}
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
fallspeed = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_y == Y) {
fallspeed = 0;
if (_root.guy.hitTest(this)) {
fallspeed = 6;
}
}
}
}
}
instance of movieClip 5762 {
onClipEvent (load) {
MAXhealth = 100;
health = 50;
xspeed = 10;
yspeed = 5;
SIN = 90;
COS = 0;
onscreen = false;
seconds = 0;
SPAWNtime = 100;
X = 200 - Math.random() * 400;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
_root.skull._x = _x;
_root.skull._y = _y;
XPOSITION = _root.guy._x + Math.cos(COS) * 100;
_x = _x - (_x - XPOSITION) / 10;
_y = _y + yspeed;
SIN += 0.2;
COS += 0.1;
yspeed = Math.sin(SIN) * 5;
if (_x - oldX < 0) {
_xscale = -100;
}
if (_x - oldX > 0) {
_xscale = 100;
}
oldX = _x;
_rotation = (_y - oldY) * (_xscale / 100) * 2;
oldY = _y;
this.line.removeMovieClip();
this.line2.removeMovieClip();
++seconds;
if (seconds == SPAWNtime || seconds == SPAWNtime + 2) {
this.createEmptyMovieClip('line', 11);
this.line.lineStyle(15, 6836340);
this.createEmptyMovieClip('line2', 12);
this.line2.lineStyle(5, 16777215);
if (_root.ground.hitTest(_x + X, _y + 250, true)) {
i = 0;
while (i < 10) {
this.createEmptyMovieClip('node' + i, i);
this['node' + i]._x = X * (i / 10) + (10 - Math.random() * 20) * (_xscale / 100);
this['node' + i]._y = 250 * (i / 10);
if (!_root.ground.hitTest(this['node' + i]._x + _x, this['node' + i]._y - 10 + _y, true)) {
this.line.lineTo(this['node' + i]._x, this['node' + i]._y);
this.line2.lineTo(this['node' + i]._x, this['node' + i]._y);
}
++i;
}
}
}
if (seconds == SPAWNtime + 2) {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 10;
}
duplicateMovieClip(_root.skellington, 'skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _x + X;
_root['skellington' + _root.skellingtoncount]._y = _root.FLOOR._y;
X = 200 - Math.random() * 400;
seconds = 0;
}
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance skellington of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 50;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 4;
seconds = 0;
FUSE = 50;
if (_name != 'skellington') {
_root.lightningS.start(0, 1);
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y > _y + 100 && _root.guy._x > _x) {
_root.ground.CIELING2._x = _root.ground.CIELING2.X;
_root.HOPout.swapDepths(999);
_root.HOPout.removeMovieClip();
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 15;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
fallspeed = -5;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (_y >= 1300) {
_x = continueX;
_y = continueY;
fallspeed = 0;
speed = 0;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 35 * Math.cos(R * 0.0174532925199433);
yshot = i * 35 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
if (BOSSshot) {
xshot = i * 80 * Math.cos(R * 0.0174532925199433);
yshot = i * 80 * Math.sin(R * 0.0174532925199433);
} else {
xshot = i * 35 * Math.cos(R * 0.0174532925199433);
yshot = i * 35 * Math.sin(R * 0.0174532925199433);
}
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance HOPout of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y < _y) {
_root.ground.CIELING._x = _root.ground.CIELING.X;
_root.cam._y -= (_root.cam._y - _root.CAMy._y) / 5;
}
}
}
instance of movieClip 5792 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 29 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 75;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
Cballcount = 130;
Cballcountmax = 140;
BOSSarmour = 100;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
instance of movieClip 5583 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _xscale;
if (_root.TUNNEL.lightcount > 2) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 5585 {
onClipEvent (load) {
speed = 5;
maxspeed = 5;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x + _width / 2 < _root.cam._x - _root.cam._width / 2) {
_x = _x + _width * 2;
}
}
}
}
instance of movieClip 5585 {
onClipEvent (load) {
speed = 5;
maxspeed = 5;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x + _width / 2 < _root.cam._x - _root.cam._width / 2) {
_x = _x + _width * 2;
}
}
}
}
instance of movieClip 5588 {
onClipEvent (load) {
speed = 10;
maxspeed = 10;
if (Math.random() > 0.5) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 800) {
_x = _x + 1800;
if (Math.random() > 0.5) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
}
instance of movieClip 5588 {
onClipEvent (load) {
speed = 10;
maxspeed = 10;
if (Math.random() > 0.5) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 800) {
_x = _x + 1800;
if (Math.random() > 0.5) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!this.hitTest(_root.BOSSTIME)) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
}
_x = _x - (_x - X) / 3;
}
if (!this.hitTest(_root.BOSSTIME)) {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
}
_y = _y - (_y - Y) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 20;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 700) {
_x = _x + 1500;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_x < _root.BOSS._x + 50) {
gotoAndPlay('smash');
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 20;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 700) {
_x = _x + 1500;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_x < _root.BOSS._x + 50) {
gotoAndPlay('smash');
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 20;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 700) {
_x = _x + 1500;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_x < _root.BOSS._x + 50) {
gotoAndPlay('smash');
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 20;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 700) {
_x = _x + 1500;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_x < _root.BOSS._x + 50) {
gotoAndPlay('smash');
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 20;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 700) {
_x = _x + 1500;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_x < _root.BOSS._x + 50) {
gotoAndPlay('smash');
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 20;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 700) {
_x = _x + 1500;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_x < _root.BOSS._x + 50) {
gotoAndPlay('smash');
}
}
}
}
instance of movieClip 5613 {
onClipEvent (load) {
speed = 20;
maxspeed = 20;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < _root.cam._x - 500) {
_x = _x + 1200;
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
if (_x < _root.BOSS._x + 50) {
gotoAndPlay('smash');
}
}
}
}
movieClip 5849 {
}
movieClip 5861 {
frame 2 {
if (!_parent.onscreen) {
gotoAndPlay(1);
}
}
frame 16 {
_root.cam._x += 5;
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _root.guy._x - _root['Cball' + _root.Cballcount].speed * 30 + 30 - Math.random() * 60;
_root['Cball' + _root.Cballcount]._y = _root.cam._y - 500;
}
frame 17 {
_root.cam._x -= 10;
}
frame 18 {
_root.cam._x += 8;
}
frame 19 {
_root.cam._x -= 6;
}
frame 20 {
_root.cam._x += 4;
}
frame 21 {
_root.cam._x -= 2;
}
}
movieClip 5864 {
}
movieClip 5949 {
instance of movieClip 5849 {
onClipEvent (enterFrame) {
_rotation = _rotation + 20;
}
}
instance of movieClip 5849 {
onClipEvent (enterFrame) {
_rotation = _rotation + 20;
}
}
frame 2 {
_root.Rwhirring.start(0, 1);
}
frame 11 {
_root.rubble.start(0, 1);
}
frame 12 {
_root.Rwhirring.start(0, 1);
}
frame 20 {
_root.rubble.start(0, 1);
}
frame 21 {
if (seconds > 0) {
gotoAndPlay(1);
}
}
frame 38 {
_root.BOSS2.onscreen = true;
++_root.enemycount;
_root.BOSS2._name = 'enemy' + _root.enemycount;
this.swapDepths(999);
this.removeMovieClip();
}
}
instance BOSS of movieClip 5949 {
onClipEvent (load) {
Y = _y;
SINE = 0;
onscreen = false;
seconds = 300;
}
onClipEvent (enterFrame) {
if (!_root.cam.hitTest(_root.BOSSTIME)) {
_x = _root.cam._x - 700;
stop();
} else {
play();
onscreen = true;
_x = _x - (_x - _root.BOSSTIME._x - 400) / 100;
}
SINE += 18;
if (SINE > 180) {
SINE = 0;
}
_y = Y + Math.sin(SINE) * 10;
if (onscreen) {
--seconds;
}
}
}
instance TUNNELentrance of movieClip 5619 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - 30;
if (!this.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 300) {
_x = _x + 300;
}
}
}
}
movieClip 5951 {
frame 1 {
_visible = false;
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _parent._y - 5) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
instance BOSSblockade of movieClip 145 {
onClipEvent (load) {
onscreen = false;
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (onscreen) {
_xscale = X;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _parent._y - 5) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(_root.BOSSTIME)) {
_xscale = X;
}
}
}
}
instance of movieClip 5625 {
onClipEvent (load) {
speed = 30;
maxspeed = 30;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.1;
}
}
if (_x < X - 1000) {
_x = _x + 72;
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
instance of movieClip 5628 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x - 50;
if (!this.hitTest(_root.cam)) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
}
}
movieClip 5955 {
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
instance of movieClip 5641 {
onClipEvent (load) {
FRAME = 1 + Math.round(Math.random() * 3);
gotoAndStop(FRAME);
}
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_y >= 1300) {
health = 0;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 35 * Math.cos(R * 0.0174532925199433);
yshot = i * 35 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
if (BOSSshot) {
xshot = i * 80 * Math.cos(R * 0.0174532925199433);
yshot = i * 80 * Math.sin(R * 0.0174532925199433);
} else {
xshot = i * 35 * Math.cos(R * 0.0174532925199433);
yshot = i * 35 * Math.sin(R * 0.0174532925199433);
}
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance BOSSTIME of movieClip 145 {
onClipEvent (load) {
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_root.cam._x -= (_root.cam._x - _x) / 5;
_root.cam._y -= (_root.cam._y - _y) / 3;
_root.ground.BOSSblockade.onscreen = true;
if (_root.cam._xscale < 199) {
_root.cam._xscale -= (_root.cam._xscale - 200) / 10;
}
}
}
}
movieClip 5960 {
}
movieClip 5962 {
frame 1 {
SMOKECOUNT = 0;
stop();
onEnterFrame = function () {
if (_currentframe == 1) {
if (_root.ground.hitTest(_x, _y + 20, true)) {
play();
}
if (!_root.PAUSE) {
++SMOKECOUNT;
duplicateMovieClip(smoke, 'smoke' + SMOKECOUNT, SMOKECOUNT);
}
}
};
}
instance smoke of movieClip 5390 {
onClipEvent (load) {
fallspeed = -2 - Math.random() * 3;
_xscale = 100 + Math.random() * 20;
_yscale = _xscale;
SIZE = 5 + Math.random() * 5;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != 'smoke') {
_x = _x - _parent.speed;
if (!_parent.dead) {
_y = _y - _parent.fallspeed;
}
_y = _y + fallspeed;
_xscale = _xscale - SIZE;
_yscale = _xscale;
if (_xscale < 0) {
this.removeMovieClip();
}
}
}
}
}
instance of movieClip 5960 {
onClipEvent (load) {
this.swapDepths(300);
FRAME = Math.round(1 + Math.random() * 15);
gotoAndPlay(FRAME);
}
onClipEvent (enterFrame) {
if (_parent._currentframe != 1) {
this.removeMovieClip();
}
}
}
frame 2 {
_root.cam._x += 5;
dead = true;
_root.explosion1.start(0, 1);
}
frame 2 {
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
i = 100;
while (i < 105) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 700 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 40 + Math.random() * 5;
_xscale = 700 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 20;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 20;
_xscale = 200;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy._y -= 3;
_root.guy.fallspeed = -10;
_root.guy.health -= 15;
_root.guy.speed = -(_parent._x - _root.guy._x) / 3;
if (_root.guy._x > _x) {
_root.guy._xscale = -100;
} else {
_root.guy._xscale = 100;
}
}
}
}
}
frame 3 {
_root.cam._x -= 10;
}
frame 4 {
_root.cam._x += 8;
}
frame 5 {
_root.cam._x -= 6;
}
frame 6 {
_root.cam._x += 4;
}
frame 7 {
_root.cam._x -= 2;
}
frame 8 {
_root.cam._x += 1;
stop();
}
}
instance cannonball of movieClip 5962 {
onClipEvent (load) {
fallspeed = 0;
if (_root.DIFFICULTY == 'HARD') {
fallspeed = 5;
}
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != 'cannonball') {
if (!dead) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
}
}
}
}
}
movieClip 5971 {
frame 1 {
onEnterFrame = function () {
if (!_root.PAUSE) {
play();
} else {
stop();
}
FRAME = Math.round(_parent._parent.AMMO);
gotoAndStop(FRAME);
if (_parent._parent.AMMO >= 88) {
_parent._parent.AMMO = 0;
}
};
}
frame 2 {
if (!_parent._parent.onscreen) {
gotoAndPlay(1);
}
}
frame 66 {
_root.gunshotbig.start(0, 1);
_root.cam._x += 5;
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _root.guy._x - _root['Cball' + _root.Cballcount].speed * 30 + 30 - Math.random() * 60;
_root['Cball' + _root.Cballcount]._y = _root.cam._y - 500;
}
frame 67 {
_root.cam._x -= 10;
}
frame 68 {
_root.cam._x += 8;
}
frame 69 {
_root.cam._x -= 6;
}
frame 70 {
_root.cam._x += 4;
}
frame 71 {
_root.cam._x -= 2;
}
frame 80 {
_root.guncock.start(0, 1);
}
frame 88 {
_parent._parent.AMMO = 0;
}
}
movieClip 6171 {
frame 14 {
FRAME = _currentframe - 1;
if (!_root.ground.hitTest(_parent._x, _parent._y + 5, true)) {
gotoAndPlay(FRAME);
}
}
frame 15 {
_root.cam._y -= 30;
_root.BOSSTIME._y -= 30;
_root.rubble.start(0, 1);
_root.rubble.start(0, 1);
_root.steam.start(0, 1);
}
frame 16 {
_root.cam._y += 27;
_root.BOSSTIME._y += 27;
}
frame 17 {
_root.cam._y -= 24;
_root.BOSSTIME._y -= 24;
}
frame 18 {
_root.cam._y += 21;
_root.BOSSTIME._y += 21;
}
frame 18 {
Scount = 0;
Kcount = 20;
Wcount = 40;
onEnterFrame = function () {
if (Scount < 20) {
++Scount;
if (Scount / 2 == Math.round(Scount / 2)) {
duplicateMovieClip(smoke, 'smoke' + Scount, Scount);
this['smoke' + Scount]._x = smoke._x;
this['smoke' + Scount]._y = smoke._y;
}
}
if (Kcount < 40) {
++Kcount;
if (Kcount / 2 == Math.round(Kcount / 2)) {
duplicateMovieClip(koffing, 'koffing' + Kcount, Kcount);
this['koffing' + Kcount]._x = koffing._x;
this['koffing' + Kcount]._y = koffing._y;
}
}
if (Wcount < 60) {
++Wcount;
if (Wcount / 2 == Math.round(Wcount / 2)) {
duplicateMovieClip(wheezing, 'wheezing' + Wcount, Wcount);
this['wheezing' + Wcount]._x = wheezing._x;
this['wheezing' + Wcount]._y = wheezing._y;
}
}
};
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = -20 - Math.random() * 30;
speed = Math.cos(_rotation * 0.0174532925199433) * 20;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 20;
seconds = 0;
stop();
if (_name == 'smoke') {
gotoAndPlay(1);
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != 'smoke') {
++seconds;
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.9;
fallspeed *= 0.9;
if (_name != 'smoke') {
_visible = true;
}
if (seconds / 2 == Math.round(seconds / 2)) {
nextFrame();
}
}
}
}
instance koffing of movieClip 883 {
onClipEvent (load) {
_rotation = -20 - Math.random() * 30;
speed = Math.cos(_rotation * 0.0174532925199433) * 20;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 20;
seconds = 0;
stop();
if (_name == 'koffing') {
gotoAndPlay(1);
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != 'koffing') {
++seconds;
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.9;
fallspeed *= 0.9;
if (_name != 'koffing') {
_visible = true;
}
if (seconds / 2 == Math.round(seconds / 2)) {
nextFrame();
}
}
}
}
instance wheezing of movieClip 883 {
onClipEvent (load) {
_rotation = -20 - Math.random() * 30;
speed = Math.cos(_rotation * 0.0174532925199433) * 20;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 20;
seconds = 0;
stop();
if (_name == 'wheezing') {
gotoAndPlay(1);
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != 'wheezing') {
++seconds;
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.9;
fallspeed *= 0.9;
if (_name != 'wheezing') {
_visible = true;
}
if (seconds / 2 == Math.round(seconds / 2)) {
nextFrame();
}
}
}
}
frame 19 {
_root.cam._y -= 18;
_root.BOSSTIME._y -= 18;
}
frame 20 {
_root.cam._y += 15;
_root.BOSSTIME._y += 15;
}
frame 21 {
_root.cam._y -= 12;
_root.BOSSTIME._y -= 12;
}
frame 22 {
_root.cam._y += 9;
_root.BOSSTIME._y += 9;
}
frame 23 {
_root.cam._y -= 6;
_root.BOSSTIME._y -= 6;
}
frame 24 {
_root.cam._y += 3;
_root.BOSSTIME._y = _root.BOSSTIME.Y;
}
frame 62 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
_root.godzilla.start(0, 1);
_root.beam.start(0, 1);
}
frame 63 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 64 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 65 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 66 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 67 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 68 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 69 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 70 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 71 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 72 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 73 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 74 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 75 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 76 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 77 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 78 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 79 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 80 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 81 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 82 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 83 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 84 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 85 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 86 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 87 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 88 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 89 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 90 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 91 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 92 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 93 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 94 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 95 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 96 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 97 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 98 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 99 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 100 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 101 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 102 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 103 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 104 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 105 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 106 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 107 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 108 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 109 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 110 {
_root.cam._y -= 18;
_root.BOSSTIME._y -= 18;
}
frame 111 {
_root.cam._y += 15;
_root.BOSSTIME._y += 15;
}
frame 112 {
_root.cam._y -= 12;
_root.BOSSTIME._y -= 12;
}
frame 113 {
_root.cam._y += 9;
_root.BOSSTIME._y += 9;
}
frame 114 {
_root.cam._y -= 6;
_root.BOSSTIME._y -= 6;
}
frame 115 {
_root.cam._y += 3;
_root.BOSSTIME._y = _root.BOSSTIME.Y;
}
frame 140 {
_root.guncock.start(0, 1);
_root.Rexecute.start(0, 1);
}
frame 145 {
_root.convo.play();
}
}
movieClip 6175 {
}
movieClip 6189 {
}
movieClip 6192 {
instance of movieClip 6189 {
onClipEvent (enterFrame) {
_rotation = -_parent._rotation;
}
}
}
movieClip 6194 {
}
movieClip 6245 {
}
movieClip 6268 {
instance of movieClip 5849 {
}
frame 12 {
_root.Rwhirring.start(0, 1);
}
frame 22 {
_root.guncock.start(0, 1);
_root.Rinitiatecountdown.start(0, 1);
}
frame 25 {
_parent.body._x = _parent.body.X;
}
frame 26 {
if (_root.DIFFICULTY == 'HARD') {
gotoAndPlay(28);
}
}
frame 30 {
if (_root.DIFFICULTY == 'HARD') {
gotoAndPlay(32);
}
}
frame 33 {
if (_root.DIFFICULTY == 'HARD') {
gotoAndPlay(36);
}
}
frame 38 {
if (_root.DIFFICULTY == 'HARD') {
gotoAndPlay(42);
}
}
frame 44 {
if (_root.DIFFICULTY == 'HARD') {
gotoAndPlay(46);
}
}
frame 55 {
_root.Rcountdown.start(0, 1);
}
frame 81 {
_parent.body._x += 1000;
}
frame 82 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
_root.godzilla.start(0, 1);
_root.beam.start(0, 1);
}
frame 83 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.health -= 0.5;
_root.guy.fallspeed = 0;
_root.guy._y = _parent.parent._y - _y;
_root.guy.speed = -45;
++_root.slashcount;
if (_root.slashcount >= _root.slashmax) {
_root.slashcount -= 5;
}
duplicateMovieClip(_root.slash, 'slash' + _root.slashcount, _root.slashcount);
_root['slash' + _root.slashcount]._x = _root.guy._x;
_root['slash' + _root.slashcount]._y = _root.guy._y - 40;
_root['slash' + _root.slashcount]._rotation = Math.random() * 360;
}
}
}
frame 84 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 85 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 86 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 87 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 88 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 89 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 90 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 91 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 92 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 93 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 94 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 95 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 96 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 97 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 98 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 99 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 100 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 101 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 102 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 103 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 104 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 105 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 106 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 107 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 108 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 109 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 110 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 111 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 112 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 113 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 114 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 115 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 116 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 117 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 118 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 119 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 120 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 121 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 122 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 123 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 124 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 125 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 126 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 127 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 128 {
_root.cam._y += 20;
_root.BOSSTIME._y += 20;
}
frame 129 {
_root.cam._y -= 20;
_root.BOSSTIME._y -= 20;
}
frame 130 {
_root.cam._y -= 18;
_root.BOSSTIME._y -= 18;
}
frame 131 {
_root.cam._y += 15;
_root.BOSSTIME._y += 15;
}
frame 132 {
_root.cam._y -= 12;
_root.BOSSTIME._y -= 12;
}
frame 133 {
_root.cam._y += 9;
_root.BOSSTIME._y += 9;
}
frame 134 {
_root.cam._y -= 6;
_root.BOSSTIME._y -= 6;
}
frame 135 {
_root.cam._y += 3;
_root.BOSSTIME._y = _root.BOSSTIME.Y;
}
frame 190 {
_root.Rwhirring.start(0, 1);
}
}
movieClip 6317 {
frame 1 {
_root.Rwhirring.start(0, 1);
}
frame 14 {
_root.chomp.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (this.hitTest(_root.guy.body)) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
_root.guy.fallspeed = -10;
_root.guy.health -= 20;
_root.guy.speed = -30;
_root.guy._xscale = _parent._parent._xscale;
}
}
}
}
movieClip 6339 {
frame 13 {
_root.gunshotbig.start(0, 1);
}
frame 20 {
_root.gunshotbig.start(0, 1);
}
frame 27 {
_root.gunshotbig.start(0, 1);
}
frame 34 {
_root.gunshotbig.start(0, 1);
}
frame 41 {
_root.gunshotbig.start(0, 1);
}
frame 50 {
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _root.cam._x - _root.cam._width / 2 + _root.cam._width * 0.2;
_root['Cball' + _root.Cballcount]._y = _root.cam._y - 500;
}
frame 51 {
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _root.cam._x - _root.cam._width / 2 + _root.cam._width * 0.4;
_root['Cball' + _root.Cballcount]._y = _root.cam._y - 500;
}
frame 52 {
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _root.cam._x - _root.cam._width / 2 + _root.cam._width * 0.6;
_root['Cball' + _root.Cballcount]._y = _root.cam._y - 500;
}
frame 53 {
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _root.cam._x - _root.cam._width / 2 + _root.cam._width * 0.8;
_root['Cball' + _root.Cballcount]._y = _root.cam._y - 500;
}
frame 54 {
_root.guncock.start(0, 1);
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _root.cam._x - _root.cam._width / 2 + _root.cam._width * 0.5;
_root['Cball' + _root.Cballcount]._y = _root.cam._y - 500;
}
}
movieClip 6403 {
frame 9 {
_root.Rexecute.start(0, 1);
}
frame 49 {
_parent.speed = -160;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body)) {
if (_root.guy.impact == 0) {
_root.guy._xscale = 100;
_root.guy.impact = 20;
_root.guy.health -= 25;
_root.guy.fallspeed = -10;
_root.guy._y = _parent.parent._y - _y;
_root.guy.speed = -45;
}
}
}
}
}
movieClip 6440 {
frame 1 {
_root.Rwhirring.start(0, 1);
}
instance of movieClip 5849 {
onClipEvent (enterFrame) {
_rotation = _rotation + 20;
}
}
instance of movieClip 5849 {
onClipEvent (enterFrame) {
_rotation = _rotation + 20;
}
}
frame 11 {
_root.rubble.start(0, 1);
}
frame 12 {
_root.Rwhirring.start(0, 1);
}
frame 20 {
_root.rubble.start(0, 1);
}
}
movieClip 6492 {
frame 10 {
_root.BOSSarmour += 5;
}
}
movieClip 6533 {
frame 1 {
if (Math.random() < 0.5) {
_root.Rwarning.start(0, 1);
} else {
_root.Ralert.start(0, 1);
}
}
frame 31 {
_root.cam._x += 5;
_root.explosion1.start(0, 1);
_root.steam.start(0, 1);
}
frame 31 {
i = 30;
while (i < 33) {
line.duplicateMovieClip('circle' + i, i);
++i;
}
i = 80;
while (i < 90) {
fire.duplicateMovieClip('circle' + i, i);
++i;
}
i = 90;
while (i < 100) {
blaze.duplicateMovieClip('circle' + i, i);
++i;
}
i = 100;
while (i < 105) {
smoke.duplicateMovieClip('circle' + i, i);
++i;
}
}
instance line of movieClip 425 {
onClipEvent (load) {
_rotation = Math.random() * 360;
_xscale = 500 + Math.random() * 100;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance fire of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 20 + Math.random() * 5;
_xscale = 700 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'fire') {
_visible = true;
}
}
}
instance blaze of movieClip 697 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
SIZEred = 40 + Math.random() * 5;
_xscale = 700 + Math.random() * 50;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
_xscale = _xscale - SIZEred;
_yscale = _xscale;
speed *= 0.6;
fallspeed *= 0.6;
if (_xscale <= 0) {
this.swapDepths(999);
this.removeMovieClip();
}
if (_name != 'blaze') {
_visible = true;
}
}
}
instance of movieClip 421 {
onClipEvent (load) {
this.swapDepths(200);
_rotation = Math.random() * 360;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 20;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 20;
_xscale = 200;
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
frame 32 {
_root.cam._x -= 10;
}
frame 33 {
_root.cam._x += 8;
}
frame 34 {
_root.cam._x -= 6;
}
frame 35 {
_root.cam._x += 4;
}
frame 36 {
_root.cam._x -= 2;
}
frame 37 {
_root.cam._x += 1;
stop();
}
frame 119 {
_root.landing.start(0, 1);
}
frame 135 {
_parent.weakspot._x = _parent.weakspot.X;
}
instance of movieClip 6245 {
onClipEvent (enterFrame) {
_alpha = 100 - _root.BOSSarmour;
}
}
instance of movieClip 6492 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
_alpha = _parent._parent.impact * 10;
}
}
frame 136 {
if (_root.BOSSarmour < 100) {
gotoAndPlay(135);
}
}
frame 182 {
_root.Rwhirring.start(0, 1);
}
}
movieClip 6534 {
frame 2 {
if (mc._currentframe < 145) {
gotoAndPlay(1);
}
}
frame 3 {
speed = 0;
--seconds;
if (_root.guy._x > _x - 180) {
gotoAndPlay('chomp');
}
}
frame 4 {
if (seconds > 0) {
gotoAndPlay('standing');
} else {
if (Math.random() > 0.6) {
gotoAndPlay('big shot');
} else {
if (Math.random() < 0.3) {
gotoAndPlay('air strike');
} else {
gotoAndPlay('zoom forward');
Y = _y;
}
}
}
}
frame 5 {
if (_root.BOSSarmour <= 0) {
gotoAndPlay('breakdown');
}
}
instance body of movieClip 145 {
onClipEvent (load) {
X = _x;
_x = _x + 1000;
}
}
frame 6 {
if (mc._currentframe < 200) {
gotoAndPlay('big shot');
} else {
seconds = 20;
gotoAndPlay('standing');
}
}
frame 8 {
if (mc._currentframe < 23) {
gotoAndPlay('chomp');
} else {
seconds = 40;
gotoAndPlay('standing');
}
}
frame 10 {
if (mc._currentframe < 87) {
gotoAndPlay('air strike');
} else {
seconds = 50;
gotoAndPlay('standing');
}
}
frame 11 {
_y = Y;
}
frame 12 {
_y = Y;
if (mc._currentframe < 82) {
gotoAndPlay('zoom forward');
}
}
frame 13 {
mc.seconds = 1000;
fallspeed = 0;
speed = 17;
SINE += 18;
if (SINE > 180) {
SINE = 0;
}
_y = Y;
}
frame 14 {
_y = Y;
if (_x > X) {
_x = X;
_y = Y;
gotoAndPlay('standing');
} else {
gotoAndPlay('run back');
}
}
frame 15 {
if (_root.bosshealth <= 0) {
_root.convo.play();
}
}
instance weakspot of movieClip 145 {
onClipEvent (load) {
X = _x;
_x = _x + 1000;
}
}
frame 16 {
if (mc._currentframe < 195) {
gotoAndPlay('breakdown');
} else {
gotoAndPlay('standing');
}
}
}
instance BOSS2 of movieClip 6534 {
onClipEvent (load) {
onscreen = false;
fallspeed = 0;
seconds = 20;
speed = 0;
X = _x;
SINE = 0;
impact = 0;
AMMO = 0;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
++AMMO;
if (_root.DIFFICULTY == 'HARD') {
++AMMO;
}
_x = _x + speed;
speed *= 0.8;
if (!_root.ground.hitTest(_x, _y, true)) {
_y = _y + fallspeed;
fallspeed += 3;
} else {
fallspeed = 0;
}
if (impact > 0) {
--impact;
}
if (shot) {
_root.BOSSarmour -= 10;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
} else {
mc.gotoAndPlay(1);
}
} else {
mc.stop();
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 50;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 50;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 50;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 50;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 50;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 5621 {
onClipEvent (load) {
speed = 50;
maxspeed = 50;
X = _x;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x > _root.GO._x) {
_x = _x - speed;
if (speed < maxspeed) {
speed += 0.2;
}
}
if (_x < X - 500) {
_x = _x + 500;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.health = 0;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
movieClip 6537 {
}
movieClip 6547 {
}
movieClip 6549 {
frame 2 {
if (_root.BOSSarmour > 66) {
gotoAndPlay(1);
}
}
frame 5 {
if (_root.BOSSarmour > 33) {
gotoAndPlay(4);
}
}
frame 8 {
if (_root.BOSSarmour > 0) {
gotoAndPlay(7);
}
}
instance of movieClip 6547 {
onClipEvent (load) {
fallspeed = -10;
speed = 2;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + 40;
}
}
frame 11 {
if (_root.BOSSarmour < 100) {
gotoAndPlay(10);
}
}
}
movieClip 6550 {
instance of movieClip 6537 {
onClipEvent (enterFrame) {
if (_root.BOSSarmour > 0) {
_rotation = _rotation + 10;
}
}
}
instance of movieClip 6537 {
onClipEvent (enterFrame) {
if (_root.BOSSarmour > 0) {
_rotation = _rotation + 10;
}
}
}
instance of movieClip 6537 {
onClipEvent (enterFrame) {
if (_root.BOSSarmour > 0) {
_rotation = _rotation + 6;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (X / _root.bossMAXhealth) * _root.bosshealth;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
_xscale = (X / _root.bossMAXhealth) * _root.bosshealth;
}
}
}
movieClip 6551 {
}
instance BOSSbar of movieClip 6551 {
onClipEvent (load) {
_alpha = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
movieClip 6593 {
}
movieClip 6600 {
}
movieClip 6604 {
}
movieClip 6688 {
frame 1 {
SINE = 0;
onEnterFrame = function () {
SINE += 90;
_y = _y + Math.sin(SINE) * 2;
};
}
}
movieClip 6730 {
frame 1 {
_visible = false;
stop();
}
frame 2 {
_visible = true;
_root.HUD._visible = false;
_root.PAUSE = true;
}
frame 35 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'A BIG ROBOT? ARE YOU \nKIDDING ME?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'A BIG ROBOT?') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 36 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 37 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'WHERES THE BIG FLASHING \nWEAK SPOT I SHOULD AIM \nFOR THIS TIME?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 38 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 73 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'HA- SO YOURE THE LAD \nCOMIN AFTER THE SINS!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'HA- ') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 74 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 75 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'WELL YOU WONT GET \nPASSED ME, SON.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 76 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 77 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'THIS THINGS GOT AN \nOUTER HULL COATED IN \nSTRONGTANIUM ALLOY.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 78 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 79 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'ITS IMPENETRABLE!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 80 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 90 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' LETS SEE JUST HOW \nIMPENETRABLE YOUR ASS IS \nWHEN I BUST MY WAY IN \nTHERE!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'HA- ') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 91 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 103 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'I- WHAT?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'I-') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 104 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 105 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' ALL ABOARD THE \nDEADMAN\'S EXPRESS- NEXT \nSTOP... DEAD TOWN. \nPOPULATION YOU.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == ' ALL ABOARD THE \nDEADMAN\'S EXPRESS-') {
speedchecker -= 30;
}
if (str.text == ' ALL ABOARD THE \nDEADMAN\'S EXPRESS- NEXT \nSTOP... DEAD TOWN. ') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 106 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 129 {
if (_root.DIFFICULTY == 'MEDIUM') {
_root.bosshealth = 200;
_root.bossMAXhealth = 200;
} else {
_root.bosshealth = 300;
_root.bossMAXhealth = 300;
}
_root.PAUSE = false;
_root._quality = 'LOW';
_root.HUD._visible = true;
_root.BOSSbar.onscreen = true;
stop();
}
frame 130 {
_root.PAUSE = true;
_root.HUD._visible = false;
_root.BOSSbar._visible = false;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.GREED = 'beat';
}
frame 295 {
SINE = 0;
onEnterFrame = function () {
SINE += 90;
_y = _y + Math.sin(SINE) * 2;
};
}
frame 415 {
_root.gotoAndStop('pub');
}
}
instance convo of movieClip 6730 {
onClipEvent (enterFrame) {
if (_currentframe < 165) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
if (_root.bosshealth <= 0 && _root.bossmaxhealth > 0) {
play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 6733 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance of movieClip 6733 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
frame 31 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.5;
_y = _y - (OLDY - _root.cam._y) * 0.5;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
if (_root.guy._y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 3962 {
onClipEvent (load) {
Y = _y;
X = _x;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
}
onClipEvent (enterFrame) {
_x = _x - (OLDX - _root.cam._x) * 0.5;
_y = _y - (OLDY - _root.cam._y) * 0.5;
OLDX = _root.cam._x;
OLDY = _root.cam._y;
if (_x < X) {
_x = X;
}
if (_root.guy._y >= 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _root.camY._y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
Cnumber = 0;
BOSSfight = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!BOSSfight) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 2;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 2;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
if (_y > originY) {
_y = originY;
}
if (_y - _height / 2 < _root['cieling' + Cnumber]._y) {
_y = _root['cieling' + Cnumber]._y + _height / 2;
}
} else {
_x = _root.BOSScentre._x;
if (_y > _root.BOSScentre._y + 1) {
_y = _y - (_y - _root.BOSScentre._y) / 5;
} else {
_y = _root.BOSScentre._y;
}
if (_xscale < 249) {
_xscale = _xscale - (_xscale - 250) / 5;
_yscale = _xscale;
}
}
}
}
}
movieClip 6755 {
}
movieClip 6763 {
frame 1 {
stop();
onEnterFrame = function () {
if (_currentframe == 1 && _root.bodycount >= 2) {
play();
}
};
}
frame 35 {
stop();
_root.ground.cieling1.swapDepths(999);
_root.ground.cieling1.removeMovieClip();
}
}
movieClip 6766 {
}
movieClip 6767 {
}
instance of movieClip 6767 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y && _root.guy._x > _x) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
movieClip 6770 {
frame 1 {
stop();
}
frame 2 {
_root.smash.start(0, 1);
}
}
movieClip 6771 {
}
instance of movieClip 6771 {
onClipEvent (load) {
MAXhealth = 1;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (_root.ENVYspot.dead == true && _root.ENVYspot._x < _root.side._x) {
health = 5;
}
if (health < MAXhealth) {
health = 300;
}
if (health > MAXhealth) {
--health;
}
if (health == MAXhealth) {
_root.LIGHT4.gotoAndStop('dark');
} else {
_root.LIGHT4.gotoAndStop('light');
}
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 6771 {
onClipEvent (load) {
MAXhealth = 1;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (_root.ENVYspot.dead == true && _root.ENVYspot._x < _root.side._x) {
health = 5;
}
if (health < MAXhealth) {
health = 300;
}
if (health > MAXhealth) {
--health;
}
if (health == MAXhealth) {
_root.LIGHT3.gotoAndStop('dark');
} else {
_root.LIGHT3.gotoAndStop('light');
}
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 6771 {
onClipEvent (load) {
MAXhealth = 1;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (_root.ENVYspot.dead == true && _root.ENVYspot._x < _root.side._x) {
health = 5;
}
if (health < MAXhealth) {
health = 300;
}
if (health > MAXhealth) {
--health;
}
if (health == MAXhealth) {
_root.LIGHT1.gotoAndStop('dark');
} else {
_root.LIGHT1.gotoAndStop('light');
}
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 6771 {
onClipEvent (load) {
MAXhealth = 1;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (_root.ENVYspot.dead == true && _root.ENVYspot._x > _root.side._x) {
health = 5;
}
if (health < MAXhealth) {
health = 300;
}
if (health > MAXhealth) {
--health;
}
if (health == MAXhealth) {
_root.LIGHT8.gotoAndStop('dark');
} else {
_root.LIGHT8.gotoAndStop('light');
}
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 6771 {
onClipEvent (load) {
MAXhealth = 1;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (_root.ENVYspot.dead == true && _root.ENVYspot._x > _root.side._x) {
health = 5;
}
if (health < MAXhealth) {
health = 300;
}
if (health > MAXhealth) {
--health;
}
if (health == MAXhealth) {
_root.LIGHT7.gotoAndStop('dark');
} else {
_root.LIGHT7.gotoAndStop('light');
}
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 6771 {
onClipEvent (load) {
MAXhealth = 1;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (_root.ENVYspot.dead == true && _root.ENVYspot._x > _root.side._x) {
health = 5;
}
if (health < MAXhealth) {
health = 300;
}
if (health > MAXhealth) {
--health;
}
if (health == MAXhealth) {
_root.LIGHT6.gotoAndStop('dark');
} else {
_root.LIGHT6.gotoAndStop('light');
}
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 6771 {
onClipEvent (load) {
MAXhealth = 1;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (_root.ENVYspot.dead == true && _root.ENVYspot._x > _root.side._x) {
health = 5;
}
if (health < MAXhealth) {
health = 300;
}
if (health > MAXhealth) {
--health;
}
if (health == MAXhealth) {
_root.LIGHT5.gotoAndStop('dark');
} else {
_root.LIGHT5.gotoAndStop('light');
}
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 6771 {
onClipEvent (load) {
MAXhealth = 1;
health = MAXhealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (_root.ENVYspot.dead == true && _root.ENVYspot._x < _root.side._x) {
health = 5;
}
if (health < MAXhealth) {
health = 300;
}
if (health > MAXhealth) {
--health;
}
if (health == MAXhealth) {
_root.LIGHT2.gotoAndStop('dark');
} else {
_root.LIGHT2.gotoAndStop('light');
}
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
if (impact > 0) {
--impact;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 6776 {
frame 1 {
LENGTH = 20;
i = 0;
onEnterFrame = function () {
this.createEmptyMovieClip('LINE', 1);
this.LINE.moveTo(_root.ENVY._x - 30 * _root.ENVY._xscale / 100, _root.ENVY._y - 20);
++i;
duplicateMovieClip(node, 'node' + i, i);
this['node' + i]._x = _root.ENVY._x - 30 * _root.ENVY._xscale / 100;
this['node' + i]._y = _root.ENVY._y - 30;
this['node' + i].NUMBER = i / 2;
this['node' + i]._xscale = _root.ENVY._xscale;
F = i;
while (F > i - LENGTH) {
this.LINE.lineStyle(F - i + LENGTH, 0);
this.LINE.lineTo(this['node' + F]._x, this['node' + F]._y);
--F;
}
};
}
instance node of movieClip 145 {
onClipEvent (load) {
SECONDS = 0;
SIN = NUMBER;
}
onClipEvent (enterFrame) {
_x = _x - 5 * _xscale / 100;
SIN += 0.1;
_y = _y + Math.sin(SIN);
++SECONDS;
if (SECONDS > _parent.LENGTH) {
this.removeMovieClip();
}
}
}
}
movieClip 6779 {
}
movieClip 6795 {
}
movieClip 6803 {
}
movieClip 6813 {
}
movieClip 6816 {
frame 3 {
if (_root.ENVYspot._y < _parent._y - 50) {
_parent.fallspeed = -30;
} else {
_parent.fallspeed = -5;
}
if (_root.ENVYspot._y > _parent._y - 50 && _root.ENVYspot._y < _parent._y + 50) {
_parent.fallspeed = -15;
_parent.speed = 15 * _parent._xscale / 100;
} else {
_parent.speed = 7 * _parent._xscale / 100;
}
}
frame 5 {
gotoAndPlay(4);
}
}
movieClip 6997 {
frame 1 {
_root.ENVYspot.dead = true;
}
frame 162 {
if (_parent._x < _root.side._x) {
_root.ENVYspot.NUMBER = 5;
} else {
_root.ENVYspot.NUMBER = 1;
}
_root.ENVYspot.dead = false;
}
}
movieClip 6998 {
frame 1 {
speed *= 0.7;
}
frame 2 {
if (_x < _root.side._x && _root.LIGHT1._currentframe == 2 && _root.LIGHT2._currentframe == 2 && _root.LIGHT3._currentframe == 2 && _root.LIGHT4._currentframe == 2) {
gotoAndPlay('weak');
} else {
if (_x > _root.side._x && _root.LIGHT5._currentframe == 2 && _root.LIGHT6._currentframe == 2 && _root.LIGHT7._currentframe == 2 && _root.LIGHT8._currentframe == 2) {
gotoAndPlay('weak');
} else {
if (!this.body.hitTest(_root.ENVYspot)) {
if (_x < _root.ENVYspot._x) {
gotoAndPlay('run');
speed = 20;
_xscale = 100;
}
if (_x > _root.ENVYspot._x) {
gotoAndPlay('run');
speed = -20;
_xscale = -100;
}
} else {
gotoAndPlay(1);
}
}
}
}
frame 3 {
if (_x < _root.side._x && _root.LIGHT1._currentframe == 2 && _root.LIGHT2._currentframe == 2 && _root.LIGHT3._currentframe == 2 && _root.LIGHT4._currentframe == 2) {
gotoAndPlay('weak');
} else {
if (_x > _root.side._x && _root.LIGHT5._currentframe == 2 && _root.LIGHT6._currentframe == 2 && _root.LIGHT7._currentframe == 2 && _root.LIGHT8._currentframe == 2) {
gotoAndPlay('weak');
} else {
if (_root.ENVYspot._y < _y - 50) {
if (!_root.ground.hitTest(_x, _y - 150, true)) {
if (_root.ground.hitTest(_x + 100, _y - 150, true) && _x < _root.ENVYspot._x) {
gotoAndPlay('jump');
}
if (_root.ground.hitTest(_x - 100, _y - 150, true) && _x < _root.ENVYspot._x) {
gotoAndPlay('jump');
}
}
}
if (_root.ground.hitTest(_x, _y + 10, true)) {
if (!_root.ground.hitTest(_x + 50, _y + 10, true) && _xscale == 100) {
gotoAndPlay('jump');
}
if (!_root.ground.hitTest(_x - 50, _y + 10, true) && _xscale == -100) {
gotoAndPlay('jump');
}
}
if (_root.ENVYspot._y > _y - 100 && _root.ENVYspot._y < _y + 100) {
if (_root.ENVYspot._x > _x) {
speed = 20;
_xscale = 100;
} else {
speed = -20;
_xscale = -100;
}
}
if (_y > _root.floor1._y) {
if (_root.ground.hitTest(_x + 50 < _y - 10, true)) {
gotoAndPlay('jump');
}
if (_root.ground.hitTest(_x - 50 < _y - 10, true)) {
gotoAndPlay('jump');
}
}
}
}
}
frame 4 {
if (_x < _root.side._x && _root.LIGHT1._currentframe == 2 && _root.LIGHT2._currentframe == 2 && _root.LIGHT3._currentframe == 2 && _root.LIGHT4._currentframe == 2) {
gotoAndPlay('weak');
} else {
if (_x > _root.side._x && _root.LIGHT5._currentframe == 2 && _root.LIGHT6._currentframe == 2 && _root.LIGHT7._currentframe == 2 && _root.LIGHT8._currentframe == 2) {
gotoAndPlay('weak');
} else {
if (!this.body.hitTest(_root.ENVYspot)) {
gotoAndPlay('run');
} else {
gotoAndPlay(1);
}
}
}
}
frame 5 {
if (_xscale == 100 && _root.ground.hitTest(_x + 22, _y - 10, true) && _root.ENVYspot._x < _x) {
_xscale = -100;
speed = -10;
if (_root.ENVYspot._y > _y) {
fallspeed = -5;
} else {
fallspeed = -20;
}
}
if (_xscale == -100 && _root.ground.hitTest(_x - 22, _y - 10, true) && _root.ENVYspot._x > _x) {
_xscale = 100;
speed = 10;
if (_root.ENVYspot._y > _y) {
fallspeed = -5;
} else {
fallspeed = -20;
}
}
}
frame 6 {
if (_root.ground.hitTest(_x, _y, true) && mc._currentframe >= 4) {
if (_y < _root.floor0._y) {
if (_root.ENVYspot._x > _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
gotoAndPlay(1);
} else {
gotoAndPlay('jump');
}
}
frame 7 {
speed = 0;
fallspeed = 0;
if (_root.bosshealth <= 0) {
_root.convo.play();
}
}
frame 8 {
if (mc._currentframe < 175) {
gotoAndPlay('weak');
} else {
gotoAndPlay(1);
}
}
}
instance ENVY of movieClip 6998 {
onClipEvent (load) {
onscreen = false;
fallspeed = 0;
speed = 0;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _x + speed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed += 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 21, _y - 10, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 21, _y - 10, true)) {
_x = _x + 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
}
}
}
}
movieClip 7000 {
frame 1 {
_visible = false;
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _parent._y && _root.cam.Cnumber > 1) {
_xscale = X;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _parent._y && _root.cam.Cnumber > 1) {
_xscale = X;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _parent._y && _root.cam.Cnumber > 1) {
_xscale = X;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _parent._y && _root.cam.Cnumber > 1) {
_xscale = X;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _parent._y && _root.cam.Cnumber > 1) {
_xscale = X;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
_xscale = 0;
}
onClipEvent (enterFrame) {
if (_root.guy._y < _y + _parent._y && _root.cam.Cnumber > 1) {
_xscale = X;
}
}
}
instance WALL of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
_height = 1;
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance SURPRISE of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 0;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
if (_root.guy._x >= _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
}
} else {
mc.stop();
}
}
}
movieClip 7003 {
}
movieClip 7011 {
}
movieClip 7014 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.guy._x > _x && _currentframe < 2) {
play();
_root.convo.play();
}
};
}
frame 15 {
++_root.enemycount;
_root.SURPRISE.onscreen = true;
_root.SURPRISE._name = 'enemy' + _root.enemycount;
++_root.enemycount;
_root.SURPRISE2.onscreen = true;
_root.SURPRISE2._name = 'enemy' + _root.enemycount;
_root.ground.WALL._height = _root.ground.WALL.HEIGHT;
_root.RISER.onscreen = true;
}
frame 26 {
gotoAndPlay(25);
}
}
instance of movieClip 7014 {
onClipEvent (enterFrame) {
if (_currentframe > 1) {
if (_root.PAUSE) {
stop();
} else {
play();
}
}
}
}
instance SURPRISE2 of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 0;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_visible = true;
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
if (_root.guy._x >= _x + 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
_visible = false;
}
} else {
mc.stop();
}
}
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
fallspeed = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.health = 0;
}
}
}
instance of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 5;
seconds = 30;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling2.BC;
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 5;
seconds = 30;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling2.BC;
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling2.BC;
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling2.BC;
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance of movieClip 1729 {
onClipEvent (load) {
stuck = false;
xspeed = 0;
fallspeed = 0;
SIN = 0;
health = 20;
shot = 0;
onscreen = false;
SIZE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling2.BC;
play();
if (onscreen) {
if (health <= 0) {
gotoAndPlay('dead');
} else {
if (shot) {
fallspeed = 0;
health -= 2;
shot = false;
}
if (!stuck) {
_x = _x - xspeed;
_y = _y + fallspeed;
X = _x - _root.guy._x;
Y = _y - _root.guy._y;
if (_currentframe < 10) {
SIN += 0.1;
if (_x >= _root.guy._x) {
xspeed = 2.5 + Math.sin(SIN) * 2;
} else {
xspeed = -2.5 - Math.sin(SIN) * 2;
}
}
if (_root.guy.body.hitTest(_x, _y - _height / 2, true) && fallspeed != 0) {
stuck = true;
}
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 20, _y - 1, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 1, true)) {
_x = _x + 1;
}
} else {
_x = _root.guy._x + X;
_y = _root.guy._y + Y;
}
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
stop();
}
}
}
instance of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 30;
Y = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling6.BC;
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 45, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
if (_y > Y + 20 || _y < Y - 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 3214 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 80;
impact = 0;
shot = false;
CHARGE = 1;
RANDOMHIT = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling6.BC;
mc.play();
if (onscreen) {
++CHARGE;
_x = _x - xspeed;
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 30;
Y = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling6.BC;
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 45, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
if (_y > Y + 20 || _y < Y - 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 20;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling4.BC;
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 825 {
onClipEvent (load) {
health = 80;
seconds = 60;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling4.BC;
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance cieling2 of movieClip 145 {
onClipEvent (load) {
BC = 10;
i = 0;
}
onClipEvent (enterFrame) {
++i;
if (BC <= 0 && _root.cam.Cnumber == 2) {
_root.ground[_name].swapDepths(999);
_root.ground[_name].removeMovieClip();
++_root.cam.Cnumber;
}
if (i / 5 == Math.round(i / 5)) {
BC = 0;
}
}
}
instance cieling4 of movieClip 145 {
onClipEvent (load) {
BC = 10;
i = 0;
}
onClipEvent (enterFrame) {
++i;
if (BC <= 0 && _root.cam.Cnumber == 4) {
_root.ground[_name].swapDepths(999);
_root.ground[_name].removeMovieClip();
++_root.cam.Cnumber;
}
if (i / 5 == Math.round(i / 5)) {
BC = 0;
}
}
}
instance cieling6 of movieClip 145 {
onClipEvent (load) {
BC = 10;
i = 0;
}
onClipEvent (enterFrame) {
++i;
if (BC <= 0 && _root.cam.Cnumber == 6) {
_root.ground[_name].swapDepths(999);
_root.ground[_name].removeMovieClip();
++_root.cam.Cnumber;
}
if (i / 5 == Math.round(i / 5)) {
BC = 0;
}
}
}
instance cieling1 of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.cam._x > _x && _root.cam.Cnumber == 0) {
++_root.cam.Cnumber;
}
if (_root.guy._y < _y && _root.cam.Cnumber == 1) {
++_root.cam.Cnumber;
}
}
}
instance cieling3 of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y < _y && _root.cam.Cnumber == 3) {
++_root.cam.Cnumber;
}
}
}
instance cieling5 of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y < _y && _root.cam.Cnumber == 5) {
++_root.cam.Cnumber;
}
}
}
instance of movieClip 5762 {
onClipEvent (load) {
MAXhealth = 100;
health = 50;
xspeed = 10;
yspeed = 5;
SIN = 0;
COS = 0;
onscreen = false;
seconds = 0;
SPAWNtime = 100;
X = 200 - Math.random() * 400;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling8.BC;
mc.play();
if (onscreen) {
if (health > 0) {
_root.skull._x = _x;
_root.skull._y = _y;
XPOSITION = _root.guy._x + Math.cos(COS) * 100;
_x = _x - (_x - XPOSITION) / 10;
_y = _y + yspeed;
SIN += 0.2;
COS += 0.1;
yspeed = Math.sin(SIN) * 5;
if (_x - oldX < 0) {
_xscale = -100;
}
if (_x - oldX > 0) {
_xscale = 100;
}
oldX = _x;
_rotation = (_y - oldY) * (_xscale / 100) * 2;
oldY = _y;
this.line.removeMovieClip();
this.line2.removeMovieClip();
++seconds;
if (seconds == SPAWNtime || seconds == SPAWNtime + 2) {
this.createEmptyMovieClip('line', 11);
this.line.lineStyle(15, 6836340);
this.createEmptyMovieClip('line2', 12);
this.line2.lineStyle(5, 16777215);
if (_root.ground.hitTest(_x + X, _y + 250, true)) {
i = 0;
while (i < 10) {
this.createEmptyMovieClip('node' + i, i);
this['node' + i]._x = X * (i / 10) + (10 - Math.random() * 20) * (_xscale / 100);
this['node' + i]._y = 250 * (i / 10);
if (!_root.ground.hitTest(this['node' + i]._x + _x, this['node' + i]._y - 10 + _y, true)) {
this.line.lineTo(this['node' + i]._x, this['node' + i]._y);
this.line2.lineTo(this['node' + i]._x, this['node' + i]._y);
}
++i;
}
}
}
if (seconds == SPAWNtime + 2) {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 10;
}
duplicateMovieClip(_root.skellington, 'skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _x + X;
_root['skellington' + _root.skellingtoncount]._y = _root.cieling7._y;
--_root.bodycount;
X = 200 - Math.random() * 400;
seconds = 0;
}
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance skellington of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 50;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 5;
seconds = 0;
FUSE = 50;
if (_root.ground.hitTest(_x, _y - 50, true)) {
if (_x < _root.guy._x) {
_x = _root.guy._x + 100;
}
if (_x > _root.guy._x) {
_x = _root.guy._x - 100;
}
}
if (_name != 'skellington') {
_root.lightningS.start(0, 1);
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
_visible = true;
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 4243 {
onClipEvent (load) {
if (_root.DIFFICULTY == 'MEDIUM') {
this.swapDepths(999);
this.removeMovieClip();
}
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling8.BC;
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 4243 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling8.BC;
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 5762 {
onClipEvent (load) {
MAXhealth = 100;
health = 50;
xspeed = 10;
yspeed = 5;
SIN = 0;
COS = 0;
onscreen = false;
seconds = 0;
SPAWNtime = 100;
X = 200 - Math.random() * 400;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling10.BC;
mc.play();
if (onscreen) {
if (health > 0) {
_root.skull._x = _x;
_root.skull._y = _y;
XPOSITION = _root.guy._x + Math.cos(COS) * 100;
_x = _x - (_x - XPOSITION) / 10;
_y = _y + yspeed;
SIN += 0.2;
COS += 0.1;
yspeed = Math.sin(SIN) * 5;
if (_x - oldX < 0) {
_xscale = -100;
}
if (_x - oldX > 0) {
_xscale = 100;
}
oldX = _x;
_rotation = (_y - oldY) * (_xscale / 100) * 2;
oldY = _y;
this.line.removeMovieClip();
this.line2.removeMovieClip();
++seconds;
if (seconds == SPAWNtime || seconds == SPAWNtime + 2) {
this.createEmptyMovieClip('line', 11);
this.line.lineStyle(15, 6836340);
this.createEmptyMovieClip('line2', 12);
this.line2.lineStyle(5, 16777215);
if (_root.ground.hitTest(_x + X, _y + 250, true)) {
i = 0;
while (i < 10) {
this.createEmptyMovieClip('node' + i, i);
this['node' + i]._x = X * (i / 10) + (10 - Math.random() * 20) * (_xscale / 100);
this['node' + i]._y = 250 * (i / 10);
if (!_root.ground.hitTest(this['node' + i]._x + _x, this['node' + i]._y - 10 + _y, true)) {
this.line.lineTo(this['node' + i]._x, this['node' + i]._y);
this.line2.lineTo(this['node' + i]._x, this['node' + i]._y);
}
++i;
}
}
}
if (seconds == SPAWNtime + 2) {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 10;
}
duplicateMovieClip(_root.skellington, 'skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _x + X;
_root['skellington' + _root.skellingtoncount]._y = _root.cieling9._y;
--_root.bodycount;
X = 200 - Math.random() * 400;
seconds = 0;
}
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 30;
Y = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling10.BC;
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 45, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
if (_y > Y + 20 || _y < Y - 1000) {
this.swapDepths(999);
this.removeMovieClip();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 825 {
onClipEvent (load) {
if (_root.DIFFICULTY == 'MEDIUM') {
this.swapDepths(999);
this.removeMovieClip();
}
health = 80;
seconds = 80;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling10.BC;
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 25, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 25, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance cieling8 of movieClip 145 {
onClipEvent (load) {
BC = 10;
i = 0;
}
onClipEvent (enterFrame) {
++i;
if (BC <= 0 && _root.cam.Cnumber == 8) {
_root.ground[_name].swapDepths(999);
_root.ground[_name].removeMovieClip();
++_root.cam.Cnumber;
}
if (i / 5 == Math.round(i / 5)) {
BC = 0;
}
}
}
instance cieling7 of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y < _y && _root.cam.Cnumber == 7) {
++_root.cam.Cnumber;
}
}
}
instance cieling10 of movieClip 145 {
onClipEvent (load) {
BC = 10;
i = 0;
}
onClipEvent (enterFrame) {
++i;
if (BC <= 0 && _root.cam.Cnumber == 10) {
_root.ground[_name].swapDepths(999);
_root.ground[_name].removeMovieClip();
++_root.cam.Cnumber;
}
if (i / 5 == Math.round(i / 5)) {
BC = 0;
}
}
}
instance cieling11 of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y < _y && _root.cam.Cnumber == 11) {
++_root.cam.Cnumber;
}
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance of movieClip 938 {
onClipEvent (enterFrame) {
seconds = 30;
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
movieClip 7018 {
}
instance of movieClip 7018 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
if (_alpha > 0) {
_alpha = _alpha - 5;
}
} else {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(_root.PLATFORM)) {
if (_root.cam._x < _x) {
_root.cam._x = _x;
_root.cam._y = _y;
}
_x = _x - (_x - _root.centrescreen._x) / 5;
}
}
}
instance of movieClip 5766 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + 500) {
this.swapDepths(999);
this.removeMovieClip();
}
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance BOSScentre of movieClip 145 {
onClipEvent (load) {
seconds = 0;
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_root.cam.BOSSfight = true;
if (seconds < 30) {
++seconds;
}
}
if (seconds == 20) {
_root.convo.play();
}
}
}
movieClip 7037 {
}
instance ENVYspot of movieClip 145 {
onClipEvent (load) {
seconds = 200;
NUMBER = 1;
dead = false;
}
onClipEvent (enterFrame) {
if (_root.ENVY.onscreen) {
--seconds;
if (seconds <= 0) {
if (_x < _root.side._x) {
NUMBER = Math.round(0.5 + Math.random() * 4);
} else {
NUMBER = Math.round(4.5 + Math.random() * 4);
}
seconds = 300;
}
_x = _root['LIGHT' + NUMBER]._x;
_y = _root['LIGHT' + NUMBER]._y;
if (_root['LIGHT' + NUMBER]._currentframe == 2) {
if (_x < _root.side._x) {
NUMBER = Math.round(0.5 + Math.random() * 4);
} else {
NUMBER = Math.round(4.5 + Math.random() * 4);
}
seconds = 300;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body)) {
_root.guy.health -= 0.5;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body)) {
_root.guy.health -= 0.5;
}
}
}
instance of movieClip 6771 {
onClipEvent (load) {
_root.bossMAXhealth = 300;
_root.bosshealth = _root.bossMAXhealth;
health = _root.bosshealth;
onscreen = false;
impact = 0;
RANDOMHIT = 0;
SIZE = 6;
}
onClipEvent (enterFrame) {
if (onscreen) {
_x = _root.ENVY._x;
_y = _root.ENVY._y - 50;
if (_root.ENVY._currentframe < 7) {
_x = 0;
_y = 0;
}
_root.bosshealth = health;
if (impact > 0) {
--impact;
}
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 3;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
}
}
movieClip 7040 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.guy._x > _x && _currentframe < 2) {
play();
}
};
}
frame 25 {
stop();
}
}
instance of movieClip 6593 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_y = _y + (_root.cam._y - oldY) * 0.4;
oldY = _root.cam._y;
}
if (_root.cam._y > _y + 500) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 6593 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_y = _y + (_root.cam._y - oldY) * 0.3;
oldY = _root.cam._y;
}
if (_root.cam._y > _y + 500) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 6593 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_y = _y + (_root.cam._y - oldY) * 0.4;
oldY = _root.cam._y;
}
if (_root.cam._y > _y + 500) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 6593 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_y = _y + (_root.cam._y - oldY) * 0.1;
oldY = _root.cam._y;
}
if (_root.cam._y > _y + 500) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 7042 {
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.guy.body)) {
_root.guy.health -= 0.5;
}
}
}
}
instance RISER of movieClip 7042 {
onClipEvent (load) {
onscreen = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (onscreen) {
if (_y > _root.CIELING._y) {
_y = _y - 0.3;
}
if (_y > _root.cam._y + _root.cam._height / 2) {
_y = _root.cam._y + _root.cam._height / 2;
}
}
}
}
}
instance cieling9 of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy._y < _y && _root.cam.Cnumber == 9) {
++_root.cam.Cnumber;
}
}
}
instance of movieClip 825 {
onClipEvent (load) {
if (_root.DIFFICULTY == 'MEDIUM') {
this.swapDepths(999);
this.removeMovieClip();
}
health = 80;
seconds = 60;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
++_root.cieling4.BC;
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
movieClip 7104 {
}
movieClip 7210 {
frame 1 {
_visible = false;
stop();
}
frame 2 {
_visible = true;
_root.HUD._visible = false;
_root.PAUSE = true;
}
frame 35 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'HEY, ARENT YOU THAT \nBOY WHO JUST MADE A \nDEAL WITH THE DEVIL?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'HEY, ') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 36 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 37 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'I REMEMBER MY DEAL.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 38 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 39 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'I HAVEN\'T SEEN \nSUNLIGHT SINCE.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 40 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 70 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' WHAT\'RE YOU TALKING \nABOUT?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 71 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 72 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'OH WAIT- WHY AM I \nASKIN YOU?';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'OH WAIT-') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 73 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 74 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'I\'LL JUST GO TALK TO \nYOUR GIRL JESSIE.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'OH WAIT-') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 75 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 83 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' HEY, STOP RIGHT \nTHERE!!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 84 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 110 {
_root.PAUSE = false;
_root._quality = 'LOW';
_root.HUD._visible = true;
stop();
}
frame 111 {
_visible = true;
_root.HUD._visible = false;
_root.PAUSE = true;
}
frame 144 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'SERIOUSLY, LEAVE ME \nALONE.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'SERIOUSLY,') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 145 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 146 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'YOU\'VE DONE WELL TO \nGET THIS FAR, NOW \nJUST STOP.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'OH WAIT-') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 147 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 148 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'I\'M NOT GOING BACK TO \nHELL.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'OH WAIT-') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 149 {
stop();
onPress = function () {
if (_currentframe < 160) {
play();
}
};
}
frame 179 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' I DIDN\'T DRAG MYSELF \nTHROUGH THE SEWER TO JUST \nTURN AROUND AND GO HOME.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 180 {
stop();
onPress = function () {
play();
};
}
frame 181 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' ONE OF YOU FREAKY \nMONSTER GUYS STOLE MY \nGIRL AND BUSTED UP MY \nLOCAL.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 182 {
stop();
onPress = function () {
play();
};
}
frame 183 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = ' I WON\'T STOP UNTIL \nYOURE ALL DEAD.';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 184 {
stop();
onPress = function () {
play();
};
}
frame 185 {
stop();
DIP = new Sound(this);
DIP.attachSound('DIP');
myText = 'I DIDN\'T WANT THIS!';
c = 1;
speedchecker = 1;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe == FRAME) {
if (c < myText.length && speedchecker >= c) {
str.htmlText = myText.substr(0, c);
c += 2;
if ((c - 1) / 2 == Math.round((c - 1) / 2)) {
DIP.start(0, 1);
}
if (str.text == 'NONE') {
speedchecker -= 30;
}
}
speedchecker += 2;
if (c >= myText.length) {
play();
}
}
};
onPress = function () {
play();
};
}
frame 186 {
stop();
onPress = function () {
play();
};
}
frame 219 {
_root.PAUSE = false;
_root._quality = 'LOW';
_root.HUD._visible = true;
_root.BOSSbar.onscreen = true;
stop();
}
frame 220 {
_visible = true;
_root.HUD._visible = false;
_root.BOSSbar._visible = false;
_root.PAUSE = true;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.ENVY = 'beat';
}
frame 464 {
_root.gotoAndStop('pub');
}
}
instance convo of movieClip 7210 {
onClipEvent (enterFrame) {
if (_currentframe < 165) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
}
movieClip 7216 {
}
movieClip 7217 {
frame 1 {
X = _x;
Y = _y;
onEnterFrame = function () {
if (_root.bosshealth != oldHealth) {
_x = _x + Math.random() * 5;
_y = _y + Math.random() * 5;
}
oldHealth = _root.bosshealth;
_x = _x - (_x - X) / 3;
_y = _y - (_y - Y) / 3;
if (_root.ENVY._currentframe < 7) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
};
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (X / _root.bossMAXhealth) * _root.bosshealth;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
_xscale = (X / _root.bossMAXhealth) * _root.bosshealth;
}
}
}
movieClip 7218 {
}
instance BOSSbar of movieClip 7218 {
onClipEvent (load) {
_alpha = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 7221 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
gotoAndPlay(1);
}
}
};
}
}
instance of movieClip 1981 {
onClipEvent (enterFrame) {
this.swapDepths(999);
this.removeMovieClip();
}
}
frame 33 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 7223 {
}
instance of movieClip 7223 {
onClipEvent (load) {
X = _x - _root.cam._x;
Y = _y - _root.cam._y;
}
onClipEvent (enterFrame) {
_x = X + _root.cam._x * 0.95;
_y = Y + _root.cam._y * 0.95;
}
}
movieClip 7227 {
}
instance of movieClip 7227 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(1);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X * 0.8;
_y = _y + Y * 0.8;
}
}
instance of movieClip 7227 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(2);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X * 0.85;
_y = _y + Y * 0.85;
}
}
instance of movieClip 7227 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(3);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X * 0.9;
_y = _y + Y * 0.9;
}
}
movieClip 7232 {
}
instance of movieClip 7232 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(2);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X / 5;
_y = _y + Y / 3;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(1);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X / 5;
_y = _y + Y / 3;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(2);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X / 5;
_y = _y + Y / 3;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(1);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X / 5;
_y = _y + Y / 3;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(2);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X / 5;
_y = _y + Y / 3;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
oldX = _root.cam._x;
oldY = _root.cam._y;
gotoAndStop(1);
}
onClipEvent (enterFrame) {
Y = _root.cam._y - oldY;
oldY = _root.cam._y;
X = _root.cam._x - oldX;
oldX = _root.cam._x;
_x = _x + X / 5;
_y = _y + Y / 3;
}
}
movieClip 7236 {
}
instance of movieClip 7236 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_x = _x - (_root.cam._x - oldX) * 0.1;
oldX = _root.cam._x;
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _root.camY._y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
Cnumber = 0;
BOSSfight = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (!BOSSfight) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 2;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 2;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
if (_y > originY) {
_y = originY;
}
if (_y - _height / 2 < _root['cieling' + Cnumber]._y) {
_y = _root['cieling' + Cnumber]._y + _height / 2;
}
} else {
_x = _root.BOSScentre._x;
if (_y > _root.BOSScentre._y + 1) {
_y = _y - (_y - _root.BOSScentre._y) / 5;
} else {
_y = _root.BOSScentre._y;
}
if (_xscale < 249) {
_xscale = _xscale - (_xscale - 250) / 5;
_yscale = _xscale;
}
}
}
}
}
movieClip 7241 {
}
instance of movieClip 7241 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_x = _x - (_root.cam._x - oldX) * 0.1;
oldX = _root.cam._x;
}
}
}
movieClip 7243 {
frame 1 {
_visible = false;
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
movieClip 7246 {
instance of movieClip 145 {
onClipEvent (enterFrame) {
_visible = true;
_x = _root.guy._x - _parent._x;
_y = _root.guy._y - _parent._y;
}
}
}
instance of movieClip 7241 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_x = _x + (_root.cam._x - oldX) * 0.1;
oldX = _root.cam._x;
}
}
}
instance of movieClip 7236 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_x = _x + (_root.cam._x - oldX) * 0.1;
oldX = _root.cam._x;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_root.cam._y = _y;
_y = _y - (_y - _root.centrescreen._y) / 5;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
_root.HEALTH = _root.guy.health;
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 7250 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance of movieClip 7250 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
frame 35 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 7253 {
frame 1 {
_visible = false;
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
_height = 0;
}
onClipEvent (enterFrame) {
if (_root.cam.STOP) {
_height = HEIGHT;
} else {
_height = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
_height = 0;
}
onClipEvent (enterFrame) {
if (_root.cam.STOP) {
_height = HEIGHT;
} else {
_height = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
_height = 0;
}
onClipEvent (enterFrame) {
if (_root.cam.STOP) {
_height = HEIGHT;
} else {
_height = 0;
}
}
}
}
movieClip 7255 {
}
instance of movieClip 7255 {
onClipEvent (load) {
X = _x;
}
onClipEvent (enterFrame) {
_x = X + (X - _root.cam._x) / 10;
if (_x < X - 50) {
_x = X - 50;
}
if (_x > X + 50) {
_x = X + 50;
}
}
}
movieClip 7257 {
}
instance of movieClip 7257 {
onClipEvent (load) {
X = _x;
}
onClipEvent (enterFrame) {
_x = X + (X - _root.cam._x) / 15;
if (_x < X - 20) {
_x = X - 20;
}
if (_x > X + 20) {
_x = X + 20;
}
}
}
movieClip 7261 {
}
movieClip 7262 {
instance of movieClip 7261 {
onClipEvent (load) {
if (_root.DIFFICULTY == 'MEDIUM') {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 2;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 2;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_x < originX) {
_x = originX + 1;
}
if (_y > originY) {
_y = originY;
}
if (_y < originY - 60) {
_y = originY - 60;
}
}
if (STOP) {
_x = _root.centrescreen._x;
}
}
}
movieClip 7266 {
frame 1 {
onEnterFrame = function () {
_rotation = -_parent._rotation;
};
}
}
movieClip 7284 {
frame 1 {
stop();
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.body.hitTest(this)) {
_parent.play();
}
}
}
frame 12 {
_root.cam._y += 10;
_root.smash.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.body.hitTest(this)) {
_root.guy.impact = 15;
_root.guy.fallspeed = -10;
_root.guy.speed = (_root.guy._xscale / 100) * -5;
_root.guy.health -= 20;
}
}
}
frame 13 {
_root.cam._y -= 20;
}
frame 14 {
_root.cam._y += 18;
}
frame 15 {
_root.cam._y -= 15;
}
frame 16 {
_root.cam._y += 12;
}
frame 17 {
_root.cam._y -= 10;
}
frame 18 {
_root.cam._y += 8;
}
frame 19 {
_root.cam._y -= 5;
}
frame 20 {
_root.cam._y += 3;
}
frame 21 {
_root.cam._y -= 1;
}
frame 23 {
stop();
}
}
movieClip 7324 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 38 {
stop();
}
}
instance of movieClip 7324 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = _root.HEALTH;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.cam.STOP) {
if (_root.guy.hitTest(this)) {
_root.centrescreen._x = _root.cam._x;
_root.centrescreen._y = _root.cam._y;
_root.cam.STOP = true;
++_root.enemycount;
_root.RIGHTguy.onscreen = true;
_root.RIGHTguy._visible = true;
_root.RIGHTguy._name = 'enemy' + _root.enemycount;
++_root.enemycount;
_root.LEFTguy.onscreen = true;
_root.LEFTguy._visible = true;
_root.LEFTguy._name = 'enemy' + _root.enemycount;
}
}
if (_root.bodycount >= 2) {
_root.cam.STOP = false;
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance RIGHTguy of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 1;
_visible = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
}
} else {
mc.stop();
}
}
}
instance LEFTguy of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 1;
_visible = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
}
} else {
mc.stop();
}
}
}
movieClip 7349 {
frame 2 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 42 {
stop();
}
}
instance of movieClip 7349 {
onClipEvent (load) {
impact = 0;
onscreen = false;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
movieClip 7350 {
}
instance of movieClip 7350 {
onClipEvent (load) {
impact = 0;
onscreen = false;
SIN = 0;
}
onClipEvent (enterFrame) {
if (impact > 0) {
impact -= 0.1;
}
SIN += 0.1;
if (SIN >= 360) {
SIN = 0;
}
_rotation = Math.sin(SIN) * (impact * 2);
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance of movieClip 7350 {
onClipEvent (load) {
impact = 0;
onscreen = false;
SIN = 0;
}
onClipEvent (enterFrame) {
if (impact > 0) {
impact -= 0.1;
}
SIN += 0.1;
if (SIN >= 360) {
SIN = 0;
}
_rotation = Math.sin(SIN) * (impact * 2);
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
}
}
}
instance BOOBAH of movieClip 145 {
onClipEvent (load) {
BC = 10;
i = 0;
}
onClipEvent (enterFrame) {
if (!_root.cam.STOP) {
if (_root.guy.hitTest(this)) {
_root.centrescreen._x = _root.cam._x;
_root.centrescreen._y = _root.cam._y;
_root.cam.STOP = true;
}
} else {
++i;
if (BC <= 0) {
_root.cam.STOP = false;
this.swapDepths(999);
this.removeMovieClip();
}
if (i / 5 == Math.round(i / 5)) {
BC = 0;
}
}
}
}
instance SKELL1 of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 0;
NUMBER = 1;
FUSE = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
++_root.BOOBAH.BC;
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
if (_root.ground2.hitTest(_x, _y, true)) {
if (!_root.ground2.hitTest(_x + 5, _y + 3, true)) {
if (xspeed > 0) {
xspeed = 0;
}
}
if (!_root.ground2.hitTest(_x - 5, _y + 3, true)) {
if (xspeed < 0) {
xspeed = 0;
}
}
}
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground2.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (_y > 500) {
health = 0;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.STOP && _root.guy.hitTest(_root.BOOBAH)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance SKELL2 of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 0;
NUMBER = 2;
FUSE = 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
++_root.BOOBAH.BC;
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
if (_root.ground2.hitTest(_x, _y, true)) {
if (!_root.ground2.hitTest(_x + 5, _y + 3, true)) {
if (xspeed > 0) {
xspeed = 0;
}
}
if (!_root.ground2.hitTest(_x - 5, _y + 3, true)) {
if (xspeed < 0) {
xspeed = 0;
}
}
}
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground2.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (_y > 500) {
health = 0;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.STOP && _root.guy.hitTest(_root.BOOBAH)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance SKELL4 of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 0;
NUMBER = 2;
FUSE = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
++_root.BOOBAH.BC;
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
if (_root.ground2.hitTest(_x, _y, true)) {
if (!_root.ground2.hitTest(_x + 5, _y + 3, true)) {
if (xspeed > 0) {
xspeed = 0;
}
}
if (!_root.ground2.hitTest(_x - 5, _y + 3, true)) {
if (xspeed < 0) {
xspeed = 0;
}
}
}
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground2.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (_y > 500) {
health = 0;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.STOP && _root.guy.hitTest(_root.BOOBAH)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance SKELL0 of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 0;
NUMBER = 1;
FUSE = 20;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
++_root.BOOBAH.BC;
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
if (_root.ground2.hitTest(_x, _y, true)) {
if (!_root.ground2.hitTest(_x + 5, _y + 3, true)) {
if (xspeed > 0) {
xspeed = 0;
}
}
if (!_root.ground2.hitTest(_x - 5, _y + 3, true)) {
if (xspeed < 0) {
xspeed = 0;
}
}
}
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground2.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (_y > 500) {
health = 0;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.STOP && _root.guy.hitTest(_root.BOOBAH)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance SKELL3 of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 0;
NUMBER = 3;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
++_root.BOOBAH.BC;
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
if (_root.ground2.hitTest(_x, _y, true)) {
if (!_root.ground2.hitTest(_x + 5, _y + 3, true)) {
if (xspeed > 0) {
xspeed = 0;
}
}
if (!_root.ground2.hitTest(_x - 5, _y + 3, true)) {
if (xspeed < 0) {
xspeed = 0;
}
}
}
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground2.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (_y > 500) {
health = 0;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.STOP && _root.guy.hitTest(_root.BOOBAH)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
_root.HEALTH = _root.guy.health;
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 37 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 7353 {
frame 1 {
_visible = false;
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10 && _x >= originX + 1) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
if (_x < originX) {
_x = originX;
}
if (_x > originX + 300) {
_x = originX + 300;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
movieClip 7356 {
}
instance of movieClip 825 {
onClipEvent (load) {
health = 80;
seconds = 80;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 25, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 25, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 825 {
onClipEvent (load) {
health = 80;
seconds = 80;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 25, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 25, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = _root.HEALTH;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
movieClip 7362 {
frame 1 {
FRAME = Math.round(0.5 + Math.random() * 5);
gotoAndStop(FRAME);
if (Math.random() > 0.5) {
_xscale = _xscale * -1;
}
onEnterFrame = function () {
if (_root.cam.hitTest(this)) {
_x = _x + (_root.cam._x - oldX) * (-_yscale / 100 + 1);
oldX = _root.cam._x;
}
};
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.bodycount >= 3) {
_name = 'EXIT';
}
}
}
instance of movieClip 3214 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 80;
impact = 0;
shot = false;
CHARGE = 1;
RANDOMHIT = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
++CHARGE;
_x = _x - xspeed;
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 726 {
onClipEvent (load) {
impact = 0;
onscreen = false;
fallspeed = 0;
Y = _y;
}
onClipEvent (enterFrame) {
if (!onscreen) {
if (_root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_y == Y) {
fallspeed = 0;
if (_root.guy.hitTest(this)) {
fallspeed = 6;
}
}
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
_root.HEALTH = _root.guy.health;
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 39 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
skellingtoncount = 130;
skellingtonmax = 140;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 7365 {
}
instance of movieClip 7365 {
onClipEvent (enterFrame) {
_x = _root.BACK._x;
}
}
movieClip 7367 {
frame 1 {
_visible = false;
}
}
movieClip 7369 {
}
instance of movieClip 7369 {
onClipEvent (load) {
X = _x - _root.BACK._x;
originX = _x;
WIDTH = _width;
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_x = _root.BACK._x + X;
_width = WIDTH + (originX - _x) * 8;
}
}
}
instance of movieClip 7369 {
onClipEvent (load) {
X = _x - _root.BACK._x;
originX = _x;
WIDTH = _width;
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_x = _root.BACK._x + X;
_width = WIDTH - (originX - _x) * 8;
}
}
}
movieClip 7372 {
frame 1 {
onEnterFrame = function () {
if (_root.cam.hitTest(this)) {
_x = _x + (_root.cam._x - oldX) * (-_yscale / 100 + 1);
oldX = _root.cam._x;
}
};
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = _root.HEALTH;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.bodycount >= 2) {
_name = 'EXIT';
}
}
}
instance of movieClip 5762 {
onClipEvent (load) {
MAXhealth = 100;
health = 50;
xspeed = 10;
yspeed = 5;
SIN = 0;
COS = 0;
onscreen = false;
seconds = 0;
SPAWNtime = 50;
X = 200 - Math.random() * 400;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
if (health > 0) {
_root.skull._x = _x;
_root.skull._y = _y;
XPOSITION = _root.guy._x + Math.cos(COS) * 100;
_x = _x - (_x - XPOSITION) / 10;
_y = _y + yspeed;
SIN += 0.2;
COS += 0.1;
yspeed = Math.sin(SIN) * 5;
if (_x - oldX < 0) {
_xscale = -100;
}
if (_x - oldX > 0) {
_xscale = 100;
}
oldX = _x;
_rotation = (_y - oldY) * (_xscale / 100) * 2;
oldY = _y;
this.line.removeMovieClip();
this.line2.removeMovieClip();
++seconds;
if (seconds == SPAWNtime || seconds == SPAWNtime + 2) {
if (_root.ground.hitTest(_x + X, _y + 100, true)) {
if (_x + X < _root.guy._x) {
X = 100;
} else {
X = -100;
}
}
this.createEmptyMovieClip('line', 11);
this.line.lineStyle(15, 6836340);
this.createEmptyMovieClip('line2', 12);
this.line2.lineStyle(5, 16777215);
if (_root.ground.hitTest(_x + X, _y + 250, true)) {
i = 0;
while (i < 10) {
this.createEmptyMovieClip('node' + i, i);
this['node' + i]._x = (X * (i / 10) + (10 - Math.random() * 20)) * (_xscale / 100);
this['node' + i]._y = 250 * (i / 10);
if (!_root.ground.hitTest(this['node' + i]._x + _x, this['node' + i]._y - 10 + _y, true)) {
this.line.lineTo(this['node' + i]._x, this['node' + i]._y);
this.line2.lineTo(this['node' + i]._x, this['node' + i]._y);
}
++i;
}
}
}
if (seconds == SPAWNtime + 2) {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 10;
}
duplicateMovieClip(_root.skellington, 'skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _x + X;
_root['skellington' + _root.skellingtoncount]._y = _root.FLOOR._y;
--_root.bodycount;
X = 200 - Math.random() * 400;
seconds = 0;
}
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance skellington of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 50;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 5;
seconds = 0;
FUSE = 50;
if (_name != 'skellington') {
_root.lightningS.start(0, 1);
}
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 3214 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 80;
impact = 0;
shot = false;
CHARGE = 1;
RANDOMHIT = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
++CHARGE;
_x = _x - xspeed;
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
_root.HEALTH = _root.guy.health;
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 41 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 2;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 2;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
if (_root.guy._y > originY - 200) {
_y = originY;
}
}
if (STOP) {
_x = _root.centrescreen._x;
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = _root.HEALTH;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
instance end of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.BLUEKEY.play();
}
}
}
movieClip 7379 {
frame 1 {
_visible = false;
stop();
}
frame 2 {
_visible = true;
}
frame 165 {
_root.BLACKOUT.dead = true;
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.body.hitTest(this)) {
_root.gotoAndStop('harmonica');
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance BLACKOUT of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (dead) {
_root.HEALTH = _root.guy.health;
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 43 {
stopAllSounds();
stop();
}
movieClip 7452 {
}
movieClip 7475 {
}
movieClip 7610 {
frame 2432 {
_root.play();
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
_visible = false;
}
}
button 7611 {
on (press) {
_root.play();
}
}
frame 45 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
_root.bosshealth = 100;
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
movieClip 7616 {
frame 1 {
stop();
}
}
instance of movieClip 7616 {
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.25;
oldX = _root.cam._x;
}
}
movieClip 7620 {
}
instance FLOOR of movieClip 7620 {
onClipEvent (load) {
function updateMovieClip() {
var v2 = new flash.geom.Matrix();
v2.c = SKEW;
_root.FLOOR.transform.matrix = v2;
_root.FLOOR._x += mcP.x;
_root.FLOOR._y += mcP.y;
}
SKEW = 0;
var mcP = new flash.geom.Point(_root.FLOOR._x, _root.FLOOR._y);
}
onClipEvent (enterFrame) {
SKEW = (_root.FLOOR._x - _root.cam._x) / 400;
updateMovieClip();
}
}
movieClip 7625 {
frame 1 {
stop();
}
}
instance of movieClip 7625 {
onClipEvent (load) {
originX = _x;
WIDTH = _width;
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.25;
oldX = _root.cam._x;
_width = WIDTH - (originX - _x) * 3;
}
}
instance of movieClip 7625 {
onClipEvent (load) {
originX = _x;
WIDTH = _width;
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.25;
oldX = _root.cam._x;
_width = WIDTH + (originX - _x) * 3;
}
}
movieClip 7631 {
frame 1 {
stop();
}
}
instance of movieClip 7631 {
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.2;
oldX = _root.cam._x;
}
}
instance of movieClip 7631 {
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.2;
oldX = _root.cam._x;
}
}
instance of movieClip 7350 {
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.15;
oldX = _root.cam._x;
}
}
instance of movieClip 7350 {
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.15;
oldX = _root.cam._x;
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
seconds = 100;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (seconds < 0) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
} else {
--seconds;
}
}
}
}
instance of movieClip 7631 {
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.1;
oldX = _root.cam._x;
}
}
instance of movieClip 7631 {
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.1;
oldX = _root.cam._x;
}
}
movieClip 7635 {
}
movieClip 7637 {
frame 1 {
_visible = false;
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = _root.HEALTH;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 7640 {
}
movieClip 7642 {
}
movieClip 7659 {
}
movieClip 7666 {
}
movieClip 7677 {
frame 1 {
_parent.speed = 0;
}
frame 2 {
_parent.speed = 0;
}
frame 19 {
gotoAndPlay(3);
}
}
movieClip 7695 {
frame 1 {
if (_parent.fallspeed < 0) {
gotoAndPlay(3);
_parent.xspeed = -_parent._xscale * 0.1;
}
onEnterFrame = function () {
if (this.hitTest(_root.guy.body) && _currentframe <= 10) {
gotoAndPlay('melee');
_parent.fallspeed = -5;
_parent.xspeed = _parent._xscale / 20;
}
};
}
frame 3 {
_parent.xspeed = 5 * -_parent._xscale / 100;
_parent.fallspeed = _parent.jumpheight - Math.random() * 5;
}
frame 5 {
FRAME = _currentframe - 1;
if (_parent.fallspeed < 0) {
if (this.hitTest(_root.guy.body)) {
gotoAndPlay('melee');
_parent.fallspeed = -5;
_parent.xspeed = _parent._xscale / 20;
} else {
gotoAndPlay(FRAME);
}
}
}
frame 10 {
FRAME = _currentframe - 1;
if (!this.hitTest(_root.guy.body)) {
gotoAndPlay(FRAME);
} else {
_parent.fallspeed = -5;
_parent.xspeed = _parent._xscale / 20;
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 5;
_root.guy.health -= 10;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
}
frame 22 {
FRAME = _currentframe - 1;
gotoAndPlay(FRAME);
}
}
movieClip 7697 {
}
movieClip 7719 {
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 5;
_root.guy.health -= 10;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.05;
}
}
}
}
}
movieClip 7729 {
frame 1 {
_parent.xspeed = _parent.runspeed * -_parent._xscale / 50;
}
frame 2 {
_parent.xspeed = _parent.runspeed * -_parent._xscale / 50;
}
frame 3 {
_parent.xspeed = _parent.runspeed * -_parent._xscale / 50;
}
frame 4 {
_parent.xspeed = _parent.runspeed * -_parent._xscale / 50;
}
frame 5 {
_parent.xspeed = _parent.runspeed * -_parent._xscale / 50;
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.health -= 20;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.1;
_root.guy.fallspeed = -5;
}
}
}
}
}
movieClip 7747 {
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 100;
_root.guy._xscale = _parent._parent._xscale;
}
}
}
}
}
movieClip 7761 {
frame 1 {
_parent.xspeed *= -1;
_parent.fallspeed = _parent.jumpheight / 3;
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 30;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = 10 * -_parent._parent._xscale / 100;
_root.guy.fallspeed = -5;
}
}
}
}
frame 16 {
FRAME = _currentframe - 1;
gotoAndPlay(FRAME);
}
}
movieClip 7762 {
frame 2 {
if (mc._currentframe < 85) {
gotoAndPlay(1);
}
}
frame 3 {
if (onscreen) {
xspeed -= xspeed / 5;
--seconds;
if (_root.guy._x < _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if (!_root.ground.hitTest(_x + xspeed * 2, _y + 1, true)) {
xspeed = 0;
}
}
}
frame 4 {
if (seconds >= 0) {
if (impact > 3) {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('deflect');
}
} else {
gotoAndPlay('stand');
}
} else {
if (XDISTANCE < 100 && XDISTANCE > -100) {
if (XDISTANCE < 50 && XDISTANCE > -50) {
gotoAndPlay('slash');
} else {
gotoAndPlay('striker');
}
} else {
gotoAndPlay('run');
}
}
}
frame 5 {
if (_xscale == 100) {
if (xspeed > -10) {
--xspeed;
}
} else {
if (xspeed < 10) {
++xspeed;
}
}
}
frame 6 {
if (XDISTANCE < -100 || XDISTANCE > 100) {
if (XDISTANCE > -150 && XDISTANCE < 150) {
if (_root.guy._y < _y - 10) {
gotoAndPlay('jump');
} else {
gotoAndPlay('striker');
}
} else {
gotoAndPlay('run');
}
} else {
if (_root.guy._y < _y - 10) {
gotoAndPlay('jump');
} else {
gotoAndPlay('striker');
}
}
}
frame 7 {
if (_root.ground.hitTest(_x - _xscale / 2, _y - 10, true)) {
gotoAndPlay('wall jump');
seconds = 20;
}
}
frame 8 {
if (impact > 3) {
gotoAndPlay('air deflect');
} else {
if (_root.ground.hitTest(_x, _y, true) && mc._currentframe > 7) {
seconds = 10;
gotoAndPlay('stand');
} else {
gotoAndPlay('jump');
}
}
}
frame 9 {
xspeed = 0;
fallspeed = 0;
seconds -= 2;
if (_root.ground.hitTest(_x + _xscale / 2, _y - 10, true)) {
_y = _y - 2;
}
}
frame 10 {
if (seconds < 0) {
gotoAndPlay('jump');
fallspeed = -15;
_xscale = _xscale * -1;
} else {
gotoAndPlay('wall jump');
}
}
frame 11 {
xspeed *= 0.9;
seconds = 10;
}
frame 12 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air deflect');
} else {
gotoAndPlay('deflect');
}
} else {
if (mc._currentframe < 20) {
gotoAndPlay('slash');
} else {
gotoAndPlay('stand');
seconds = 20;
}
}
}
frame 13 {
xspeed *= 0.8;
seconds = 20;
}
frame 14 {
if (mc._currentframe < 25) {
if (impact > 3) {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('air deflect');
} else {
gotoAndPlay('deflect');
}
} else {
gotoAndPlay('striker');
}
} else {
gotoAndPlay('stand');
}
}
frame 15 {
xspeed = 0;
}
frame 16 {
if (mc._currentframe < 15) {
gotoAndPlay('deflect');
} else {
gotoAndPlay('stand');
seconds = 20;
}
}
frame 18 {
if (_root.ground.hitTest(_x, _y, true)) {
seconds = 10;
gotoAndPlay('stand');
} else {
gotoAndPlay('air deflect');
}
}
}
instance of movieClip 7762 {
onClipEvent (load) {
_root.bossMAXhealth = 100;
_root.bosshealth = _root.bossMAXhealth;
health = _root.bossMAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 30;
jumpheight = -20;
runspeed = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
_root.bosshealth = health;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed += 2;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
movieClip 7776 {
frame 1 {
_visible = false;
stop();
}
frame 2 {
_visible = true;
}
}
movieClip 7777 {
frame 1 {
X = _x;
Y = _y;
onEnterFrame = function () {
if (_root.bosshealth != oldHealth) {
R = Math.random() * 360;
RANDOM = 2 + Math.random() * 5;
_x = _x + RANDOM * Math.cos(R * 0.0174532925199433);
_y = _y + RANDOM * Math.sin(R * 0.0174532925199433);
this.schwing.play();
}
oldHealth = _root.bosshealth;
_x = _x - (_x - X) / 3;
_y = _y - (_y - Y) / 3;
};
}
}
movieClip 7778 {
}
movieClip 7910 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.bosshealth <= 0) {
play();
}
};
}
frame 2 {
_root.PAUSE = true;
}
frame 46 {
_root.HUD._visible = false;
}
frame 785 {
_root.play();
}
}
instance boss convo of movieClip 7910 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 7913 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance of movieClip 7913 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
frame 47 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 140;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7232 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
_x = _x + (_root.cam._x - oldX) * 0.4;
oldX = _root.cam._x;
}
}
instance of movieClip 7616 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 7625 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 7625 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 7631 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 7631 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
seconds = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (seconds < 0) {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
} else {
--seconds;
}
}
}
}
instance of movieClip 7631 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 7631 {
onClipEvent (load) {
gotoAndStop(4);
}
}
movieClip 7919 {
}
movieClip 7920 {
frame 1 {
_visible = false;
}
}
movieClip 7927 {
}
movieClip 7930 {
}
movieClip 7932 {
}
movieClip 7934 {
}
movieClip 7960 {
}
movieClip 7973 {
frame 10 {
_root.woosh.start(0, 1);
}
frame 18 {
_root.rubble.start(0, 1);
_root.cam._y -= 25;
++_root.leechcount;
if (_root.leechcount > _root.leechmax) {
_root.leechcount = 130;
}
duplicateMovieClip(_root.WHIP, 'whip' + _root.leechcount, _root.leechcount);
DIRECTION = _parent._xscale / 100;
_root['whip' + _root.leechcount].DIRECTION = _parent._xscale / 100;
_root['whip' + _root.leechcount]._x = _parent._x - 150 * DIRECTION;
_root['whip' + _root.leechcount]._y = _parent._y;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
_root.guy.health -= 20;
if (_root.guy._x < _parent._parent._x) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.4;
_root.guy.fallspeed = -20;
}
}
}
}
frame 19 {
_root.cam._y += 22;
}
frame 20 {
_root.cam._y -= 20;
}
frame 21 {
_root.cam._y += 18;
}
frame 22 {
_root.cam._y -= 15;
}
frame 23 {
_root.cam._y += 12;
}
frame 24 {
_root.cam._y -= 10;
}
frame 25 {
_root.cam._y += 8;
}
frame 26 {
_root.cam._y -= 5;
}
frame 27 {
_root.cam._y += 3;
}
frame 28 {
_root.cam._y -= 1;
}
}
movieClip 7996 {
frame 1 {
if (_parent.fallspeed < 0) {
gotoAndPlay(3);
_parent.xspeed = -_parent._xscale * 0.1;
}
}
frame 3 {
_parent.xspeed = 5 * -_parent._xscale / 100;
_parent.fallspeed = _parent.jumpheight - Math.random() * 5;
_root.swishL.start(0, 1);
}
frame 11 {
FRAME = _currentframe - 1;
if (_parent.fallspeed < 0) {
gotoAndPlay(FRAME);
}
}
frame 16 {
FRAME = _currentframe - 1;
if (!_root.ground.hitTest(_parent._x, _parent._y, true)) {
gotoAndPlay(FRAME);
}
}
frame 17 {
_parent.xspeed = 0;
_root.rockslam1.start(0, 1);
}
frame 17 {
_root.cam._y -= 40;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.guy.impact = 20;
_root.guy.health -= 20;
if (_root.guy._x < _parent._parent._x) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.4;
_root.guy.fallspeed = -20;
}
}
}
}
frame 18 {
_root.cam._y += 35;
}
frame 19 {
_root.cam._y -= 30;
}
frame 20 {
_root.cam._y += 28;
}
frame 21 {
_root.cam._y -= 25;
}
frame 22 {
_root.cam._y += 22;
}
frame 23 {
_root.cam._y -= 20;
}
frame 24 {
_root.cam._y += 18;
}
frame 25 {
_root.cam._y -= 15;
}
frame 26 {
_root.cam._y += 12;
}
frame 27 {
_root.cam._y -= 10;
}
frame 28 {
_root.cam._y += 8;
}
frame 29 {
_root.cam._y -= 5;
}
frame 30 {
_root.cam._y += 3;
}
frame 31 {
_root.cam._y -= 1;
}
}
movieClip 8031 {
frame 3 {
_root.growl1.start(0, 1);
_root.lightningS.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.guy.impact = 20;
_root.guy.health -= 10;
if (_root.guy._x < _parent._parent._x) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.4;
_root.guy.fallspeed = 0;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.biff1.start(0, 1);
_root.guy.impact = 20;
if (_root.guy._x < _parent._parent._x) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.4;
_root.guy.fallspeed = 0;
}
}
}
}
frame 7 {
_root.cam._y += 4;
}
frame 8 {
_root.cam._y -= 4;
}
frame 9 {
_root.cam._y += 4;
}
frame 10 {
_root.cam._y -= 4;
}
frame 11 {
_root.cam._y += 4;
}
frame 12 {
_root.cam._y -= 4;
}
frame 13 {
_root.cam._y += 4;
}
frame 14 {
_root.cam._y -= 4;
}
frame 15 {
_root.cam._y += 4;
}
frame 16 {
_root.cam._y -= 4;
}
frame 17 {
_root.cam._y += 4;
}
frame 18 {
_root.cam._y -= 4;
}
frame 19 {
_root.cam._y += 4;
}
frame 20 {
_root.cam._y -= 4;
}
frame 21 {
_root.cam._y += 4;
}
frame 22 {
_root.cam._y -= 4;
}
frame 23 {
_root.cam._y += 4;
}
frame 24 {
_root.cam._y -= 4;
}
frame 25 {
_root.cam._y += 4;
}
frame 26 {
_root.cam._y -= 4;
}
frame 27 {
_root.cam._y += 4;
}
frame 28 {
_root.cam._y -= 4;
}
frame 29 {
_root.cam._y += 4;
}
frame 30 {
_root.cam._y -= 4;
}
}
movieClip 8069 {
frame 22 {
_root.ignite.start(0, 1);
}
frame 23 {
_parent.xspeed = -20 * _parent._xscale / 100;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.biff1.start(0, 1);
_root.guy.health -= 10;
_root.guy.impact = 20;
if (_root.guy._x < _parent._parent._x) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.4;
_root.guy.fallspeed = 10;
}
}
}
}
frame 29 {
_root.cam._y -= 15;
}
frame 30 {
_root.cam._y += 25;
}
frame 41 {
_root.cam._y -= 15;
}
frame 42 {
_root.cam._y += 25;
}
frame 45 {
gotoAndPlay('run');
}
}
movieClip 8070 {
frame 1 {
if (onscreen) {
xspeed -= xspeed / 5;
--seconds;
if (_root.guy._x < _x) {
_xscale = 100;
} else {
_xscale = -100;
}
if (!_root.ground.hitTest(_x + xspeed * 2, _y + 1, true)) {
xspeed = 0;
}
}
}
frame 2 {
if (seconds >= 0) {
gotoAndPlay('stand');
} else {
if (XDISTANCE > 300 || XDISTANCE < -300) {
if (XDISTANCE > 600 || XDISTANCE < -600) {
gotoAndPlay('rush');
} else {
gotoAndPlay('wave');
}
} else {
if (_root.guy._y < _y - 100) {
gotoAndPlay('roar');
} else {
gotoAndPlay('jump');
}
}
}
}
frame 3 {
if (_root.DIFFICULTY == 'MEDIUM') {
seconds = 20;
} else {
seconds = 10;
}
}
frame 4 {
if (mc._currentframe < 30) {
gotoAndPlay('wave');
} else {
gotoAndPlay('stand');
}
}
frame 6 {
if (_root.ground.hitTest(_x, _y, true) && mc._currentframe > 45) {
if (_root.DIFFICULTY == 'MEDIUM') {
seconds = 20;
} else {
seconds = 10;
}
gotoAndPlay('stand');
} else {
gotoAndPlay('jump');
}
}
frame 7 {
xspeed = 0;
}
frame 8 {
if (mc._currentframe > 40) {
if (_root.DIFFICULTY == 'MEDIUM') {
seconds = 20;
} else {
seconds = 10;
}
gotoAndPlay('stand');
} else {
gotoAndPlay('roar');
}
}
frame 10 {
if (_root.ground.hitTest(_x - _xscale * 1.8, _y - 10, true)) {
gotoAndPlay('stand');
} else {
gotoAndPlay('rush');
}
}
}
instance of movieClip 8070 {
onClipEvent (load) {
MAXhealth = 150;
health = MAXhealth;
_root.bossMAXhealth = 150;
_root.bosshealth = _root.bossMAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 50;
jumpheight = -5;
runspeed = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
_root.ground.PRIDE._x = _x + mc.torso._x * _xscale / 100 - _root.ground._x;
_root.ground.PRIDE._y = _y + mc.torso._y - _root.ground._y;
_root.ground.PRIDE._xscale = _xscale;
if (onscreen) {
_root.bosshealth = health;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
fallspeed += 0.5;
}
if (impact > 0) {
--impact;
}
if (shot) {
health -= 5;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 10;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x + 150, _y - 5, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 150, _y - 5, true)) {
_x = _x + 1;
}
if (_root.bosshealth <= 0) {
_root.play();
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
nosword = true;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
SWORDCHARGE = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
_x = _x + speed;
_y = _y + fallspeed;
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
movieClip 8080 {
frame 1 {
if (Math.random() > 0.5) {
_xscale = 100;
} else {
_xscale = -100;
}
if (_name == 'WHIP') {
_visible = false;
} else {
_visible = true;
}
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body)) {
_root.guy.impact = 20;
_root.guy.fallspeed = -20;
_root.guy.speed = 0;
_root.guy.health -= 20;
}
}
}
}
frame 6 {
if (!_root.ground.hitTest(_x, _y - 10, true)) {
++_root.leechcount;
if (_root.leechcount > _root.leechmax) {
_root.leechcount = 130;
}
this.duplicateMovieClip('whip' + _root.leechcount, _root.leechcount);
_root['whip' + _root.leechcount].DIRECTION = DIRECTION;
_root['whip' + _root.leechcount]._x = _x - 70 * DIRECTION;
_root['whip' + _root.leechcount]._y = _y;
}
}
frame 19 {
FRAME = _currentframe - 1;
gotoAndPlay(FRAME);
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
movieClip 8087 {
frame 1 {
X = _x;
Y = _y;
stop();
onEnterFrame = function () {
if (_root.bosshealth != oldHealth) {
R = Math.random() * 360;
RANDOM = 2 + Math.random() * 5;
_x = _x + RANDOM * Math.cos(R * 0.0174532925199433);
_y = _y + RANDOM * Math.sin(R * 0.0174532925199433);
}
oldHealth = _root.bosshealth;
_x = _x - (_x - X) / 3;
_y = _y - (_y - Y) / 3;
if (_root.bosshealth < 140) {
gotoAndStop(2);
}
if (_root.bosshealth < 90) {
gotoAndStop(3);
}
if (_root.bosshealth < 50) {
gotoAndStop(4);
}
};
}
}
movieClip 8088 {
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 8090 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance of movieClip 8090 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
frame 49 {
stopAllSounds();
stop();
}
movieClip 8149 {
}
movieClip 8248 {
frame 306 {
_root.play();
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
_visible = false;
}
}
frame 51 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
NODEATH = true;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe != FRAME) {
NODEATH = false;
}
};
}
movieClip 8251 {
frame 1 {
_visible = false;
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x - 100) {
_x = _x - (_x - _root.guy._x - 100) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 2;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
movieClip 8255 {
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
nosword = true;
control = true;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
_root.line.removeMovieClip();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
SWORDCHARGE = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!control) {
_root.UP = 0;
_root.DOWN = 0;
_root.LEFT = 0;
_root.RIGHT = 0;
mousedist = 0;
_xscale = 100;
}
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
movieClip 8292 {
frame 1 {
stop();
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_parent.play();
}
}
}
frame 3 {
_root.guy.health = 0;
_root.rubble.start(0, 1);
_root.cam._y -= 25;
++_root.leechcount;
if (_root.leechcount > _root.leechmax) {
_root.leechcount = 130;
}
duplicateMovieClip(_root.WHIP, 'whip' + _root.leechcount, _root.leechcount);
DIRECTION = _parent._xscale / 100;
_root['whip' + _root.leechcount].DIRECTION = _parent._xscale / 100;
_root['whip' + _root.leechcount]._x = _parent._x - 150 * DIRECTION;
_root['whip' + _root.leechcount]._y = _parent._y;
}
frame 3 {
_root.guy.control = false;
}
frame 4 {
_root.cam._y += 22;
}
frame 5 {
_root.cam._y -= 20;
}
frame 6 {
_root.cam._y += 18;
}
frame 7 {
_root.cam._y -= 15;
}
frame 8 {
_root.cam._y += 12;
}
frame 9 {
_root.cam._y -= 10;
}
frame 10 {
_root.cam._y += 8;
}
frame 11 {
_root.cam._y -= 5;
}
frame 12 {
_root.cam._y += 3;
}
frame 13 {
_root.cam._y -= 1;
}
frame 34 {
_root.cam._y -= 10;
_root.biff1.start(0, 1);
}
frame 35 {
_root.cam._y += 8;
}
frame 36 {
_root.cam._y -= 5;
}
frame 37 {
_root.cam._y += 3;
}
frame 38 {
_root.cam._y -= 1;
}
frame 44 {
_root.cam._y -= 10;
_root.biff1.start(0, 1);
}
frame 45 {
_root.cam._y += 8;
}
frame 46 {
_root.cam._y -= 5;
}
frame 47 {
_root.cam._y += 3;
}
frame 48 {
_root.cam._y -= 1;
}
frame 54 {
_root.cam._y -= 10;
_root.biff1.start(0, 1);
}
frame 55 {
_root.cam._y += 8;
}
frame 56 {
_root.cam._y -= 5;
}
frame 57 {
_root.cam._y += 3;
}
frame 58 {
_root.cam._y -= 1;
}
frame 76 {
_root.woosh.play();
}
frame 135 {
_root.play();
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 53 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 8296 {
}
instance of movieClip 8296 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.7;
oldX = _root.cam._x;
}
}
}
movieClip 8299 {
}
instance of movieClip 8299 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.9;
oldX = _root.cam._x;
}
}
}
instance of movieClip 8299 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.9;
oldX = _root.cam._x;
}
}
}
instance of movieClip 8299 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.7;
oldX = _root.cam._x;
}
}
}
instance of movieClip 8299 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.7;
oldX = _root.cam._x;
}
}
}
instance of movieClip 8299 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.7;
oldX = _root.cam._x;
}
}
}
movieClip 8303 {
}
instance of movieClip 8303 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.5;
oldX = _root.cam._x;
}
}
}
instance of movieClip 8303 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.5;
oldX = _root.cam._x;
}
}
}
instance of movieClip 8303 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.5;
oldX = _root.cam._x;
}
}
}
movieClip 8306 {
frame 1 {
_visible = false;
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
_height = 0;
}
onClipEvent (enterFrame) {
if (_root.cam.STOP) {
_height = HEIGHT;
_x = _root.cam._x - _root.cam._width / 2 - _parent._x;
} else {
_height = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
HEIGHT = _height;
_height = 0;
}
onClipEvent (enterFrame) {
if (_root.cam.STOP) {
_height = HEIGHT;
_x = _root.cam._x + _root.cam._width / 2 - _parent._x;
} else {
_height = 0;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _x;
_x = _x + 1000;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y + _parent._y + 100) {
_x = X;
}
}
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_x > _root.START._x) {
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 2;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 2;
Y = _y;
}
}
}
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
if (STOP) {
_x = _root.centrescreen._x;
}
}
}
movieClip 8312 {
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.body.hitTest(this)) {
_root.shing2.start(0, 1);
_root.guy.nosword = 'axe';
_root.melee = 100;
FRAME = _parent._currentframe + 45;
_parent.gotoAndPlay(FRAME);
}
}
}
frame 45 {
gotoAndPlay(1);
}
frame 90 {
gotoAndPlay(46);
}
}
instance of movieClip 8296 {
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x) {
_x = _x + (_root.cam._x - oldX) * 0.2;
oldX = _root.cam._x;
}
}
}
movieClip 8313 {
frame 1 {
firecount = 0;
}
instance of movieClip 145 {
onClipEvent (load) {
fallspeed = -15 - Math.random() * 15;
speed = 10 - Math.random() * 20;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
if (_x <= 10) {
_root.ignite.start(0, 1);
_root.hellspike.start(0, 1);
_x = _x + (100 + Math.random() * 700);
}
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
++_parent.firecount;
duplicateMovieClip(_parent.fire, 'fire' + _parent.firecount, _parent.firecount);
_parent['fire' + _parent.firecount]._x = _x;
_parent['fire' + _parent.firecount]._y = _y;
if (_y > Y + 200) {
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
}
}
instance fire of movieClip 5028 {
onClipEvent (load) {
if (_name == 'fire') {
_visible = false;
}
fallspeed = -2;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
if (_name != 'fire') {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
}
}
movieClip 8316 {
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.cam.STOP) {
if (_root.guy.hitTest(this)) {
_root.centrescreen._x = _root.cam._x;
_root.centrescreen._y = _root.cam._y;
_root.cam.STOP = true;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.cam.STOP) {
if (_root.guy.hitTest(this)) {
_root.centrescreen._x = _root.cam._x;
_root.centrescreen._y = _root.cam._y;
_root.cam.STOP = true;
}
}
if (_root.bodycount >= 15) {
_root.cam.STOP = false;
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 4243 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_root.cam.XSCALE = 150;
_root.cam.YSCALE = 150;
_root.cam._y = _y;
_root.cam.Y = _y;
_root.cam.OLDY = _y;
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy._x = _root.guy.continueX;
_root.guy._y = _root.guy.continueY;
_root.guy.fallspeed = -5;
_root.guy.speed = 0;
}
}
}
instance of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 825 {
onClipEvent (load) {
health = 80;
seconds = 500;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 25, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 25, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 825 {
onClipEvent (load) {
health = 80;
seconds = 500;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
tooclose = 0;
upfortoolong = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
--seconds;
if (_root.guy.hitTest(this)) {
++tooclose;
} else {
tooclose = 0;
}
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
++upfortoolong;
} else {
upfortoolong = 0;
}
_visible = true;
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 25, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 25, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 8330 {
frame 27 {
function COIN() {
++_root.coincount;
if (_root.coincount > _root.coinmax) {
_root.coincount -= 30;
}
duplicateMovieClip(_root.coin, 'coin' + _root.coincount, _root.coincount);
_root['coin' + _root.coincount]._x = _parent._x;
_root['coin' + _root.coincount]._y = _parent._y - _parent._height / 2;
}
_root.puff.start(0, 1);
++_root.bodycount;
COIN();
COIN();
COIN();
COIN();
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance of movieClip 5162 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = 3 - Math.random() * 6;
fallspeed = -3 - Math.random() * 15;
Rspeed = 5 - Math.random() * 10;
_x = _x + (10 - Math.random() * 20);
_y = _y - Math.random() * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
_rotation = _rotation + Rspeed;
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
instance smoke of movieClip 883 {
onClipEvent (load) {
_rotation = Math.random() * 360;
speed = Math.cos(_rotation * 0.0174532925199433) * 10;
fallspeed = Math.sin(_rotation * 0.0174532925199433) * 10;
}
onClipEvent (enterFrame) {
_x = _x + speed;
_y = _y + fallspeed;
speed *= 0.8;
fallspeed *= 0.8;
if (_name != 'circle') {
_visible = true;
}
}
}
frame 55 {
if (_parent.NUMBER < 6) {
++_root.bodycount;
}
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
movieClip 8331 {
frame 1 {
xspeed = 0;
fallspeed = 0;
}
instance body of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
if (_parent.mc._currentframe >= 78) {
_xscale = X;
} else {
_xscale = 0;
}
}
}
frame 2 {
if (impact > 3) {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe < 85) {
gotoAndPlay(1);
}
}
}
frame 3 {
xspeed = 0;
}
frame 4 {
if (seconds <= 0) {
gotoAndPlay('run');
} else {
if (impact > 3) {
if (fallspeed < 0 && _root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
--seconds;
gotoAndPlay('stand');
}
}
}
frame 5 {
xspeed = -2 * _xscale / 100;
if (!_root.ground.hitTest(_x - _xscale / 2, _y + 20, true)) {
xspeed = 0;
}
if (_x < _root.guy._x) {
_xscale = -100;
} else {
_xscale = 100;
}
}
frame 6 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (XDISTANCE > 50 && _xscale == 100) {
gotoAndPlay('run');
} else {
if (XDISTANCE < -50 && _xscale == -100) {
gotoAndPlay('run');
} else {
gotoAndPlay('slash');
}
}
}
}
frame 7 {
xspeed = 0;
}
frame 8 {
if (impact > 3) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
if (mc._currentframe < 19) {
gotoAndPlay('slash');
} else {
gotoAndPlay('stand');
}
}
}
frame 9 {
if (!_root.PAUSE) {
FRAME = impact + RANDOMHIT * 10;
mc.gotoAndPlay(FRAME);
xspeed *= 0.8;
}
}
frame 10 {
if (health <= 0) {
speed = -5;
gotoAndPlay('dead');
} else {
if (impact > 0) {
if (fallspeed < 0) {
gotoAndPlay('air hit');
} else {
gotoAndPlay('hit');
}
} else {
gotoAndPlay('stand');
}
}
}
frame 12 {
if (_root.ground.hitTest(_x, _y + 2, true)) {
if (health <= 0) {
speed = -5;
gotoAndPlay('dead');
} else {
gotoAndPlay('land');
}
} else {
gotoAndPlay('air hit');
}
}
frame 13 {
xspeed = 0;
}
frame 14 {
if (mc._currentframe < 20) {
gotoAndPlay('land');
} else {
gotoAndPlay('stand');
}
}
frame 15 {
xspeed = 0;
fallspeed = 0;
}
frame 16 {
gotoAndPlay('dead');
}
}
instance of movieClip 8331 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 4;
seconds = 30;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 8331 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 4;
seconds = 30;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 3214 {
onClipEvent (load) {
seconds = 50;
xspeed = 0;
health = 80;
impact = 0;
shot = false;
CHARGE = 1;
RANDOMHIT = 0;
onscreen = false;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
++CHARGE;
_x = _x - xspeed;
if (shot) {
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 4243 {
onClipEvent (load) {
MAXhealth = 120;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 8331 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 4;
seconds = 30;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 8331 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 4;
seconds = 30;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 8331 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 4;
seconds = 30;
FUSE = 50;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 20;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 3032 {
onClipEvent (load) {
MAXhealth = 80;
health = MAXhealth;
seconds = 20;
impact = 0;
RANDOMHIT = 0;
fallspeed = 0;
onscreen = false;
SIZE = 10;
JUMPHEIGHT = -25;
XDIST = 30 + Math.random() * 40;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (onscreen) {
_x = _x - speed * _xscale / 100;
_y = _y + fallspeed;
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
}
if (_root.ground.hitTest(_x, _y - 41, true)) {
fallspeed = 0;
}
_visible = true;
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.cam.STOP) {
if (_root.guy.hitTest(this)) {
_root.centrescreen._x = _root.cam._x;
_root.centrescreen._y = _root.cam._y;
_root.cam.STOP = true;
}
}
if (_root.bodycount >= 8) {
_root.cam.STOP = false;
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.cam.STOP) {
if (_root.guy.hitTest(this)) {
_root.centrescreen._x = _root.cam._x;
_root.centrescreen._y = _root.cam._y;
_root.cam.STOP = true;
}
}
if (_root.bodycount >= 5) {
_root.cam.STOP = false;
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.cam.STOP) {
if (_root.guy.hitTest(this)) {
_root.centrescreen._x = _root.cam._x;
_root.centrescreen._y = _root.cam._y;
_root.cam.STOP = true;
}
}
if (_root.bodycount >= 12) {
_root.cam.STOP = false;
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
fallspeed = 10;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 30;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
nosword = true;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
_root.line.removeMovieClip();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
if (nosword == true) {
SWORDCHARGE = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
instance of movieClip 5726 {
onClipEvent (load) {
MAXhealth = 100;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
seconds = 30;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 49, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 49, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
}
}
} else {
mc.stop();
}
}
}
movieClip 8336 {
frame 1 {
FRAME = 1 + Math.round(Math.random() * 2);
gotoAndStop(FRAME);
if (Math.random() > 0.5) {
_xscale = -100;
}
}
}
movieClip 8339 {
}
movieClip 8340 {
instance of movieClip 8339 {
onClipEvent (load) {
SIN = 0;
}
onClipEvent (enterFrame) {
_y = _y + Math.sin(SIN) / 2;
SIN += 0.1;
}
}
}
instance of movieClip 145 {
onClipEvent (load) {
SECONDS = 5;
}
onClipEvent (enterFrame) {
--SECONDS;
if (SECONDS < 0) {
_root.DEVIL.start(0, 1);
this.swapDepths(999);
this.removeMovieClip();
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
_visible = false;
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 8343 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance of movieClip 8343 {
onClipEvent (load) {
FRAME = _root._currentframe;
stop();
}
onClipEvent (enterFrame) {
if (_root.guy._x < _root.START._x && _currentframe == 1) {
play();
}
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 8345 {
}
instance of movieClip 8345 {
onClipEvent (load) {
_alpha = 0;
seconds = 300;
}
onClipEvent (enterFrame) {
if (_root.guy._y > _y) {
--seconds;
if (seconds < 0) {
_alpha = _alpha - (100 - _alpha) / 5;
}
}
}
}
frame 55 {
stopAllSounds();
stop();
_root.COMPLETED = true;
}
movieClip 8348 {
}
movieClip 8452 {
}
movieClip 8587 {
}
movieClip 8683 {
frame 1757 {
_root.play();
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
_visible = false;
}
}
frame 57 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
skellingtoncount = 130;
skellingtoncountmax = 150;
Cballcount = 140;
Cballmax = 150;
bodycount = 0;
_quality = 'LOW';
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
RESPAWN = true;
FRAME = _currentframe;
onEnterFrame = function () {
if (_currentframe != FRAME) {
RESPAWN = false;
}
};
}
movieClip 8687 {
frame 1 {
_visible = false;
stop();
}
frame 10 {
stop();
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
seconds = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
_x = _x - (_x - X) / 3;
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
_y = _y - (_y - Y) / 3;
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
movieClip 8689 {
frame 1 {
firecount = 0;
}
instance of movieClip 145 {
onClipEvent (load) {
fallspeed = -30 - Math.random() * 3;
speed = 5 - Math.random() * 10;
Y = _y;
}
onClipEvent (enterFrame) {
if (_root.cam.hitTest(this)) {
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
++_parent.firecount;
duplicateMovieClip(_parent.fire, 'fire' + _parent.firecount, _parent.firecount);
_parent['fire' + _parent.firecount]._x = _x;
_parent['fire' + _parent.firecount]._y = _y;
if (_y > Y + 200) {
_parent.swapDepths(999);
_parent.removeMovieClip();
}
}
}
}
instance fire of movieClip 5028 {
onClipEvent (load) {
if (_name == 'fire') {
_visible = false;
}
fallspeed = -2;
speed = 3 - Math.random() * 6;
}
onClipEvent (enterFrame) {
if (_name != 'fire') {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.5;
}
}
}
}
movieClip 8694 {
frame 1 {
_y = _y + Math.random() * 300;
R = Math.random();
if (R > 0.7) {
gotoAndStop(2);
} else {
if (R < 0.3) {
gotoAndStop(3);
} else {
stop();
}
}
if (Math.random() > 0.5) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
movieClip 8702 {
frame 1 {
R = Math.random();
if (R > 0.75) {
gotoAndStop(2);
} else {
if (R < 0.25) {
gotoAndStop(3);
} else {
if (R < 0.5) {
gotoAndStop(4);
} else {
stop();
}
}
}
if (Math.random() > 0.5) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
movieClip 8708 {
frame 1 {
_visible = false;
stop();
}
frame 3 {
_visible = true;
}
instance of movieClip 8702 {
onClipEvent (load) {
fallspeed = -100;
seconds = 40;
}
onClipEvent (enterFrame) {
_y = _y + fallspeed;
if (seconds > 0) {
--seconds;
if (_y < 0) {
if (fallspeed < 0) {
fallspeed = 5;
}
fallspeed *= 0.7;
}
} else {
++fallspeed;
}
}
}
frame 40 {
_root.cam._y -= 5;
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.guy.impact = 20;
_root.guy.health -= 20;
_root.guy.speed = -_root.guy._xscale * 0.1;
_root.guy.fallspeed = -30;
}
}
}
}
frame 41 {
_root.cam._y += 4;
}
frame 42 {
_root.cam._y -= 3;
}
frame 43 {
_root.cam._y += 2;
}
frame 44 {
_root.cam._y -= 1;
}
}
movieClip 8735 {
frame 1 {
if (Math.random() > 0.5) {
_xscale = 100;
} else {
_xscale = -100;
}
_x = X + 50 - Math.random() * 100;
_visible = false;
stop();
}
frame 2 {
_visible = true;
}
frame 5 {
++_root.Cballcount;
if (_root.Cballcount > _root.Cballmax) {
_root.Cballcount -= 10;
}
duplicateMovieClip(_root.cannonball, 'Cball' + _root.Cballcount, _root.Cballcount);
_root['Cball' + _root.Cballcount].speed = 10 - Math.random() * 20;
_root['Cball' + _root.Cballcount]._x = _root.guy._x - _root['Cball' + _root.Cballcount].speed * 30 + 30 - Math.random() * 60;
_root['Cball' + _root.Cballcount]._y = _root.cam._y - 300;
}
}
instance spawnRIGHT of movieClip 8735 {
onClipEvent (load) {
X = _x;
}
}
instance spawnLEFT of movieClip 8735 {
onClipEvent (load) {
X = _x;
}
}
movieClip 8771 {
frame 1 {
stop();
if (_parent._parent.impact > 1) {
FRAME = _parent._parent.impact + 1;
gotoAndStop(FRAME);
} else {
if (_root.guy._x < _parent._parent._x - 200 && _parent._parent._xscale == 100) {
gotoAndStop(2);
} else {
if (_root.guy._x > _parent._parent._x + 200 && _parent._parent._xscale == -100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
onEnterFrame = function () {
if (_parent._parent.impact > 1) {
FRAME = _parent._parent.impact + 1;
gotoAndStop(FRAME);
} else {
if (_root.guy._x < _parent._parent._x - 200 && _parent._parent._xscale == 100) {
gotoAndStop(2);
} else {
if (_root.guy._x > _parent._parent._x + 200 && _parent._parent._xscale == -100) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
_parent._parent.body._x = (_x + 50) * _parent._parent._xscale / 100;
_parent._parent.body._y = _y;
};
}
}
movieClip 8772 {
frame 16 {
_root.cam._y -= 10;
_root.rockslam1.start(0, 1);
}
frame 17 {
_root.cam._y += 20;
}
frame 18 {
_root.cam._y -= 15;
}
frame 19 {
_root.cam._y += 10;
}
frame 20 {
_root.cam._y -= 5;
}
frame 21 {
_root.cam._y += 3;
}
frame 22 {
_root.cam._y -= 2;
}
frame 23 {
_root.cam._y += 1;
}
frame 31 {
_root.cam._x -= 5;
_root.rockslam2.start(0, 1);
}
frame 32 {
_root.cam._x += 3;
}
frame 33 {
_root.cam._x -= 2;
}
frame 34 {
_root.cam._x += 1;
}
frame 47 {
_root.roar.start(0, 1);
}
frame 50 {
i = 0;
while (i < 12) {
_root['FIRE' + i]._y -= 30;
++i;
}
}
frame 51 {
_root.cam._y -= 5;
}
frame 52 {
_root.cam._y += 5;
}
frame 53 {
_root.cam._y -= 5;
}
frame 54 {
_root.cam._y += 5;
}
frame 55 {
_root.cam._y -= 5;
}
frame 56 {
_root.cam._y += 5;
}
frame 57 {
_root.cam._y -= 5;
}
frame 58 {
_root.cam._y += 5;
}
frame 59 {
_root.cam._y -= 5;
}
frame 60 {
_root.cam._y += 5;
}
frame 61 {
_root.cam._y -= 5;
}
frame 62 {
_root.cam._y += 5;
}
frame 63 {
_root.cam._y -= 5;
}
frame 64 {
_root.cam._y += 5;
}
frame 65 {
_root.cam._y -= 5;
}
frame 66 {
_root.cam._y += 5;
}
frame 67 {
_root.cam._y -= 5;
}
frame 68 {
_root.cam._y += 5;
}
frame 69 {
_root.cam._y -= 5;
}
frame 70 {
_root.cam._y += 5;
}
frame 71 {
_root.cam._y -= 5;
}
frame 72 {
_root.cam._y += 5;
}
frame 73 {
_root.cam._y -= 5;
}
frame 74 {
_root.cam._y += 5;
}
frame 75 {
_root.cam._y -= 5;
}
frame 76 {
_root.cam._y += 5;
}
}
movieClip 8783 {
}
movieClip 8812 {
frame 15 {
_root.cam._y -= 40;
_root.rubble.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.guy.impact = 20;
_root.guy.health -= 20;
if (_root.guy._x < _parent._parent._x + _x) {
_root.guy._xscale = 100;
} else {
_root.guy._xscale = -100;
}
_root.guy.speed = -_root.guy._xscale * 0.4;
_root.guy.fallspeed = -20;
}
}
}
}
frame 16 {
_root.cam._y += 35;
}
frame 17 {
_root.cam._y -= 30;
}
frame 18 {
_root.cam._y += 28;
}
frame 19 {
_root.cam._y -= 25;
}
frame 20 {
_root.cam._y += 22;
}
frame 21 {
_root.cam._y -= 20;
}
frame 22 {
_root.cam._y += 18;
}
frame 23 {
_root.cam._y -= 15;
}
frame 24 {
_root.cam._y += 12;
}
frame 25 {
_root.cam._y -= 10;
}
frame 26 {
_root.cam._y += 8;
}
frame 27 {
_root.cam._y -= 5;
}
frame 28 {
_root.cam._y += 3;
}
}
movieClip 8829 {
frame 13 {
_root.cam._x += 8;
}
frame 14 {
_root.cam._x -= 5;
}
frame 15 {
_root.cam._x += 3;
}
frame 16 {
_root.cam._x -= 1;
}
frame 19 {
_root.cam._y += 8;
}
frame 20 {
_root.cam._y -= 5;
}
frame 21 {
_root.cam._y += 3;
}
frame 22 {
_root.cam._y -= 1;
}
}
movieClip 8831 {
}
movieClip 8911 {
frame 9 {
_root.cam._y -= 5;
_root.growl2.start(0, 1);
}
frame 10 {
_root.cam._y += 5;
}
frame 11 {
_root.cam._y -= 5;
}
frame 12 {
_root.cam._y += 5;
}
frame 13 {
_root.cam._y -= 5;
}
frame 14 {
_root.cam._y += 5;
}
frame 15 {
_root.cam._y -= 5;
}
frame 15 {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 20;
}
_root.skellington.duplicateMovieClip('skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _root.SKELL1._x;
_root['skellington' + _root.skellingtoncount]._y = _root.SKELL1._y;
}
frame 16 {
_root.cam._y += 5;
}
frame 17 {
_root.cam._y -= 5;
}
frame 18 {
_root.cam._y += 5;
}
frame 19 {
_root.cam._y -= 5;
}
frame 20 {
_root.cam._y += 5;
}
frame 21 {
_root.cam._y -= 5;
}
frame 22 {
_root.cam._y += 5;
}
frame 23 {
_root.cam._y -= 5;
}
frame 24 {
_root.cam._y += 5;
}
frame 25 {
_root.cam._y -= 5;
}
frame 25 {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 20;
}
_root.skellington.duplicateMovieClip('skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _root.SKELL2._x;
_root['skellington' + _root.skellingtoncount]._y = _root.SKELL2._y;
}
frame 26 {
_root.cam._y += 5;
}
frame 27 {
_root.cam._y -= 5;
}
frame 28 {
_root.cam._y += 5;
}
frame 29 {
_root.cam._y -= 5;
}
frame 30 {
_root.cam._y += 5;
}
frame 31 {
_root.cam._y -= 5;
}
frame 32 {
_root.cam._y += 5;
}
frame 33 {
_root.cam._y -= 5;
}
frame 34 {
_root.cam._y += 5;
}
frame 35 {
_root.cam._y -= 5;
}
frame 35 {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 20;
}
_root.skellington.duplicateMovieClip('skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _root.SKELL3._x;
_root['skellington' + _root.skellingtoncount]._y = _root.SKELL3._y;
}
frame 36 {
_root.cam._y += 5;
}
frame 37 {
_root.cam._y -= 5;
}
frame 38 {
_root.cam._y += 5;
}
frame 39 {
_root.cam._y -= 5;
}
frame 40 {
_root.cam._y += 5;
}
frame 41 {
_root.cam._y -= 5;
}
frame 42 {
_root.cam._y += 5;
}
frame 43 {
_root.cam._y -= 5;
}
frame 44 {
_root.cam._y += 5;
}
frame 45 {
_root.cam._y -= 5;
}
frame 45 {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 20;
}
_root.skellington.duplicateMovieClip('skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _root.SKELL4._x;
_root['skellington' + _root.skellingtoncount]._y = _root.SKELL4._y;
}
frame 46 {
_root.cam._y += 5;
}
frame 47 {
_root.cam._y -= 5;
}
frame 48 {
_root.cam._y += 5;
}
frame 49 {
_root.cam._y -= 5;
}
frame 50 {
_root.cam._y += 5;
}
frame 51 {
_root.cam._y -= 5;
}
frame 52 {
_root.cam._y += 5;
}
frame 53 {
_root.cam._y -= 5;
}
frame 54 {
_root.cam._y += 5;
}
frame 55 {
_root.cam._y -= 5;
}
frame 55 {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 20;
}
_root.skellington.duplicateMovieClip('skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _root.SKELL5._x;
_root['skellington' + _root.skellingtoncount]._y = _root.SKELL5._y;
}
frame 56 {
_root.cam._y += 5;
}
frame 57 {
_root.cam._y -= 5;
}
frame 58 {
_root.cam._y += 5;
}
frame 59 {
_root.cam._y -= 5;
}
frame 60 {
_root.cam._y += 5;
}
frame 61 {
_root.cam._y -= 5;
}
frame 62 {
_root.cam._y += 5;
}
frame 63 {
_root.cam._y -= 5;
}
frame 64 {
_root.cam._y += 5;
}
frame 65 {
_root.cam._y -= 5;
}
frame 65 {
++_root.skellingtoncount;
if (_root.skellingtoncount > _root.skellingtoncountmax) {
_root.skellingtoncount -= 20;
}
_root.skellington.duplicateMovieClip('skellington' + _root.skellingtoncount, _root.skellingtoncount);
_root['skellington' + _root.skellingtoncount]._x = _root.SKELL6._x;
_root['skellington' + _root.skellingtoncount]._y = _root.SKELL6._y;
}
frame 66 {
_root.cam._y += 5;
}
frame 67 {
_root.cam._y -= 5;
}
frame 68 {
_root.cam._y += 5;
}
frame 69 {
_root.cam._y -= 5;
}
frame 70 {
_root.cam._y += 5;
}
frame 71 {
_root.cam._y -= 5;
}
frame 72 {
_root.cam._y += 5;
}
frame 73 {
_root.cam._y -= 5;
}
}
movieClip 8930 {
frame 12 {
_root.cam._x -= 40;
_root.rubble.start(0, 1);
}
instance of movieClip 145 {
onClipEvent (load) {
if (!_root.PAUSE) {
if (this.hitTest(_root.guy.body) && _root.guy.impact == 0) {
_root.guy._x = _parent._parent._x + (_x - _width / 2) * (_parent._parent._xscale / 100);
_root.guy._y = _parent._parent._y + _y;
_root.guy.impact = 20;
_root.guy.health -= 20;
_root.guy._xscale = _parent._parent._xscale;
_root.guy.speed = -_root.guy._xscale * 0.4;
_root.guy.fallspeed = -20;
}
}
}
}
frame 13 {
_root.cam._x += 35;
}
frame 14 {
_root.cam._x -= 30;
}
frame 15 {
_root.cam._x += 28;
}
frame 16 {
_root.cam._x -= 25;
}
frame 17 {
_root.cam._x += 22;
}
frame 18 {
_root.cam._x -= 20;
}
frame 19 {
_root.cam._x += 18;
}
frame 20 {
_root.cam._x -= 15;
}
frame 21 {
_root.cam._x += 12;
}
frame 22 {
_root.cam._x -= 10;
}
frame 23 {
_root.cam._x += 8;
}
frame 24 {
_root.cam._x -= 5;
}
frame 25 {
_root.cam._x += 3;
}
frame 26 {
_root.cam._x -= 1;
}
}
movieClip 9041 {
frame 7 {
_root.swishL.start(0, 1);
}
frame 50 {
_parent._xscale = 100;
}
frame 56 {
_root.cam._y -= 10;
_root.rockslam2.start(0, 1);
}
frame 57 {
_root.cam._y += 20;
}
frame 58 {
_root.cam._y -= 15;
}
frame 59 {
_root.cam._y += 10;
}
frame 60 {
_root.cam._y -= 5;
}
frame 61 {
_root.cam._y += 3;
}
frame 62 {
_root.cam._y -= 2;
}
frame 63 {
_root.cam._y += 1;
}
frame 73 {
_root.woosh.start(0, 1);
}
frame 100 {
if (Math.random() > 0.5) {
gotoAndPlay('SPIKES');
}
}
frame 110 {
_root.spawnRIGHT.gotoAndPlay(2);
_root.ignite.start(0, 1);
}
frame 127 {
_root.spawnLEFT.gotoAndPlay(2);
_root.ignite.start(0, 1);
}
frame 143 {
_root.spawnRIGHT.gotoAndPlay(2);
_root.ignite.start(0, 1);
}
frame 159 {
_root.spawnLEFT.gotoAndPlay(2);
_root.ignite.start(0, 1);
}
frame 175 {
_root.spawnRIGHT.gotoAndPlay(2);
_root.ignite.start(0, 1);
}
frame 208 {
_root.swishH.start(0, 1);
}
frame 236 {
_root.rubble.start(0, 1);
_root.rockslam1.start(0, 1);
_root.cam._y -= 40;
if (_root.background._currentframe == 1 && _parent.health < 30) {
_root.background.play();
_root.ground.play();
}
}
frame 237 {
_root.cam._y += 35;
}
frame 238 {
_root.cam._y -= 30;
}
frame 239 {
_root.cam._y += 28;
}
frame 240 {
_root.cam._y -= 25;
}
frame 241 {
_root.cam._y += 22;
}
frame 242 {
_root.cam._y -= 20;
}
frame 243 {
_root.cam._y += 18;
}
frame 244 {
_root.cam._y -= 15;
}
frame 245 {
_root.cam._y += 12;
}
frame 246 {
_root.cam._y -= 10;
}
frame 247 {
_root.cam._y += 8;
}
frame 248 {
_root.cam._y -= 5;
}
frame 249 {
_root.cam._y += 3;
}
frame 250 {
_parent.seconds = 0;
}
frame 260 {
_root.Rwhirring.start(0, 1);
}
frame 275 {
i = 0;
while (i < 10) {
_root['SPIKE' + i].gotoAndPlay(2);
++i;
}
}
frame 308 {
_root.hellspike.start(0, 1);
_root.hellspike.start(0, 1);
}
frame 328 {
gotoAndPlay('return');
}
}
movieClip 9042 {
frame 1 {
seconds = 20;
}
frame 2 {
if (mc._currentframe < 80) {
gotoAndPlay(1);
}
}
frame 3 {
--seconds;
}
frame 4 {
if (seconds > 0) {
gotoAndPlay('stand');
} else {
if (Math.random() < 0.1) {
gotoAndPlay('summon');
} else {
if (Math.random() < 0.3) {
seconds = 10;
gotoAndPlay('jump');
} else {
if (_root.guy._y < _y) {
gotoAndPlay('punch');
} else {
if (_root.guy._x < _x && _xscale == 100) {
gotoAndPlay('crush');
} else {
if (_root.guy._x > _x && _xscale == -100) {
gotoAndPlay('crush');
} else {
gotoAndPlay('switch');
}
}
}
}
}
}
}
frame 6 {
if (mc._currentframe <= 26) {
gotoAndPlay('crush');
} else {
seconds = 20;
gotoAndPlay('stand');
}
}
frame 8 {
if (mc._currentframe < 22) {
gotoAndPlay('switch');
} else {
_xscale = _xscale * -1;
seconds = 0;
gotoAndPlay('stand');
}
}
frame 10 {
if (mc._currentframe <= 80) {
gotoAndPlay('summon');
} else {
seconds = 50;
gotoAndPlay('stand');
}
}
frame 12 {
if (mc._currentframe <= 43) {
gotoAndPlay('punch');
} else {
seconds = 20;
gotoAndPlay('stand');
}
}
frame 14 {
if (seconds > 0) {
gotoAndPlay('jump');
} else {
gotoAndPlay('stand');
}
}
}
instance enemy95 of movieClip 9042 {
onClipEvent (load) {
MAXhealth = 200;
health = MAXhealth;
_root.bossMAXhealth = 200;
_root.bosshealth = _root.bossMAXhealth;
onscreen = true;
impact = 1;
RANDOMHIT = 0;
SIZE = 500;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
_root.bosshealth = health;
if (impact > 0) {
--impact;
}
if (shot) {
health -= 3;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 6;
}
}
shot = false;
impact = 2;
}
} else {
mc.stop();
}
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 0;
fallspeed = 0;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = healthMAX;
SUPER = 0;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
nosword = 'axe';
originX = _x;
originY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
_root.line.removeMovieClip();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = originX;
continueY = originY;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
if (_root.DIFFICULTY == 'MEDIUM') {
if (health > 1) {
health = healthMAX;
}
LIVES = 99;
_root.LIVES = 99;
}
if (_y > 600) {
health = 0;
gotoAndPlay('dead');
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
instance skellington of movieClip 5164 {
onClipEvent (load) {
MAXhealth = 5;
health = MAXhealth;
onscreen = false;
xspeed = 0;
fallspeed = 0;
impact = 0;
RANDOMHIT = 0;
SIZE = 3;
NUMBER = 4;
seconds = 0;
FUSE = 50;
LEVEL = _root._currentframe;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
_visible = true;
XDISTANCE = _x - _root.guy._x;
if (onscreen) {
++FUSE;
XDISTANCE = _x - _root.guy._x;
_x = _x + xspeed;
_y = _y + fallspeed;
if (_root.ground.hitTest(_x, _y, true)) {
fallspeed = 0;
} else {
++fallspeed;
}
if (impact > 0) {
--impact;
}
if (shot) {
fallspeed = 0;
health -= 2;
XDISTANCE = _x - _root.guy._x;
YDISTANCE = _y - _root.guy._y - 40;
if (_root.point blankequipped) {
if (Math.sqrt(XDISTANCE * XDISTANCE + YDISTANCE * YDISTANCE) < 200) {
health -= 5;
}
}
shot = false;
impact = 2;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 20, true)) {
_x = _x + 1;
}
while (_root.ground.hitTest(_x + 50, _y - 20, true)) {
_x = _x - 1;
}
} else {
if (_root.cam.hitTest(this)) {
onscreen = true;
S = _root.skellingtoncount - 50;
_name = 'enemy' + S;
}
}
} else {
mc.stop();
}
if (_root._currentframe != LEVEL) {
this.removeMovieClip();
}
}
}
instance cannonball of movieClip 5424 {
onClipEvent (load) {
if (_root.DIFFICULTY == 'MEDIUM') {
fallspeed = 0;
} else {
fallspeed = 5;
}
dead = false;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_name != 'cannonball') {
if (!dead) {
_x = _x + speed;
_y = _y + fallspeed;
fallspeed += 0.2;
if (_root.ground.hitTest(_x - 20, _y, true) && speed < 0) {
speed *= -1;
}
if (_root.ground.hitTest(_x + 20, _y, true) && speed > 0) {
speed *= -1;
}
}
}
}
}
}
movieClip 9049 {
frame 1 {
stop();
}
frame 8 {
stop();
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.guy.health = 0;
_root.guy.gotoAndPlay('dead');
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
if (_root.DIFFICULTY == 'MEDIUM') {
_visible = false;
}
}
}
movieClip 9054 {
frame 1 {
X = _x;
Y = _y;
onEnterFrame = function () {
if (_root.bosshealth != oldHealth) {
R = Math.random() * 360;
RANDOM = 2 + Math.random() * 5;
_x = _x + RANDOM * Math.cos(R * 0.0174532925199433);
_y = _y + RANDOM * Math.sin(R * 0.0174532925199433);
}
oldHealth = _root.bosshealth;
_x = _x - (_x - X) / 3;
_y = _y - (_y - Y) / 3;
};
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
XSCALE = (X / _root.bossMAXhealth) * _root.bosshealth;
_xscale = _xscale - (_xscale - XSCALE) / 10;
}
}
instance of movieClip 145 {
onClipEvent (load) {
X = _xscale;
}
onClipEvent (enterFrame) {
_xscale = (X / _root.bossMAXhealth) * _root.bosshealth;
}
}
}
movieClip 9055 {
}
instance BOSSbar of movieClip 9055 {
onClipEvent (load) {
_alpha = 0;
onscreen = true;
}
onClipEvent (enterFrame) {
if (onscreen) {
if (_alpha < 100) {
_alpha = _alpha + 5;
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 9058 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance of movieClip 9058 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}
movieClip 9061 {
frame 1 {
stop();
_visible = false;
stopAllSounds();
onEnterFrame = function () {
if (_parent.ENDING.MUSIC == true) {
if (_currentframe < 2) {
play();
}
}
if (_parent.ENDING._currentframe >= 450 && this._currentframe < 2) {
play();
}
};
}
frame 4 {
stop();
}
}
movieClip 9062 {
frame 1 {
this.loadMovie('http://tombrien.co.uk/the end!.swf', this);
}
}
movieClip 9093 {
}
movieClip 9096 {
}
movieClip 9108 {
}
movieClip 9119 {
}
movieClip 9122 {
}
movieClip 9125 {
}
movieClip 9161 {
frame 2086 {
_root.play();
}
}
movieClip 9164 {
frame 2 {
_root.PAUSE = true;
}
frame 45 {
_root.gotoAndStop('CREDITS');
}
frame 46 {
_root.HUD._visible = false;
stop();
_root._quality = 'HIGH';
onEnterFrame = function () {
if (_currentframe == 46) {
ENDING._x = -350;
ENDING._y = -200;
if (ENDING._currentframe >= 1270) {
play();
}
if (ENDING._currentframe > 30 && ENDING._width < 5) {
play();
}
}
};
}
frame 47 {
stop();
}
frame 47 {
stop();
}
}
instance boss convo of movieClip 9164 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.bosshealth <= 0) {
play();
}
if (_currentframe < 165) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
} else {
_x = _x + 1;
}
}
}
movieClip 9171 {
frame 1 {
_visible = false;
if (_root.DIFFICULTY == 'MEDIUM') {
this.swapDepths(999);
this.removeMovieClip();
}
}
frame 5 {
_root.PAUSE = true;
_visible = true;
_root._quality = 'MEDIUM';
}
frame 14 {
stop();
onPress = function () {
play();
};
}
frame 27 {
_root._quality = 'LOW';
_root.PAUSE = false;
this.swapDepths(999);
this.removeMovieClip();
}
}
instance CONTROLS of movieClip 9171 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
frame 59 {
stopAllSounds();
stop();
}
instance of movieClip 2705 {
onClipEvent (enterFrame) {
if (this._currentframe < 10) {
gotoAndPlay(10);
_visible = true;
_root.PAUSE = false;
}
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
frame 61 {
stopAllSounds();
stop();
_root.COMPLETED = true;
var savefile = SharedObject.getLocal('JOHNNY');
savefile.data.COMPLETED = true;
}
instance boss convo of movieClip 9164 {
onClipEvent (load) {
this.gotoAndStop('READY');
}
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
_visible = false;
}
}
frame 62 {
stop();
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
originX = _x;
originY = _y;
XSCALE = _xscale;
YSCALE = _yscale;
OLDX = _x;
OLDY = _y;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
if (_root.guy._x >= _x + _width / 10) {
_x = _x - (_x - _root.guy._x + _width / 10) / 3;
X = _x;
} else {
if (_root.guy._x <= _x - _width / 10) {
_x = _x - (_x - _root.guy._x - _width / 10) / 3;
X = _x;
} else {
if (_x - OLDX <= 0.1 && _x - OLDX >= -0.1) {
X = _x;
}
OLDX = _x;
_x = _x - (_x - X) / 3;
}
}
if (_root.guy._y >= _y + _height / 3) {
_y = _y - (_y - _root.guy._y + _height / 3) / 3;
Y = _y;
} else {
if (_root.guy._y <= _y) {
_y = _y - (_y - _root.guy._y) / 3;
Y = _y;
} else {
if (_y - OLDY <= 0.1 && _y - OLDY >= -0.1) {
Y = _y;
}
OLDY = _y;
_y = _y - (_y - Y) / 3;
}
}
if (_xscale < XSCALE - 1 || _xscale > XSCALE + 1) {
_xscale = _xscale - (_xscale - XSCALE) / 3;
}
_yscale = _xscale;
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
_visible = false;
}
}
button 9176 {
on (press) {
_root.gotoAndStop(1);
}
}
frame 64 {
stop();
RIGHT = 68;
LEFT = 65;
UP = 87;
DOWN = 83;
bulletcount = 0;
bulletmax = 30;
missilecount = 50;
missilemax = 70;
enemycount = 70;
enemymax = 95;
slashcount = 90;
slashmax = 95;
shotcount = 95;
shotmax = 100;
coincount = 100;
coinmax = 130;
leechcount = 130;
leechmax = 135;
bodycount = 0;
_quality = QUALITY;
PAUSE = false;
special = 'radial';
melee = 1;
if (_root.sharp edgesequipped == true) {
melee = 1.5;
}
defense = 1;
}
movieClip 9179 {
frame 1 {
_visible = false;
}
}
movieClip 9181 {
}
instance cam of movieClip 256 {
onClipEvent (load) {
X = _x;
Y = _y;
}
onClipEvent (enterFrame) {
_x = _x - (_x - X) / 3;
_y = _y - (_y - Y) / 3;
}
}
instance beam of movieClip 974 {
onClipEvent (load) {
DAMAGE = 5;
}
onClipEvent (enterFrame) {
_x = _root.guy._x;
_y = _root.guy._y - 40;
if (_currentframe > 5 && _currentframe < 30) {
_root.guy.speed = 0;
_root.guy.fallspeed = 0;
}
if (_currentframe <= 2) {
_rotation = _root.guy.R + 90;
}
}
}
instance guy of movieClip 1707 {
onClipEvent (load) {
speed = 5;
fallspeed = -20;
jumpshot = 0;
SWORDCHARGE = 1;
impact = 0;
DoubleTapRight = 0;
DoubleTapLeft = 0;
RIGHTDOWN = false;
LEFTDOWN = false;
DOWNDOWN = false;
healthMAX = 100;
i = 0;
while (i <= 5) {
if (_root['SLOT' + i] == 'more health') {
healthMAX += 50;
}
if (_root['SLOT' + i] == 'even more health') {
healthMAX += 50;
}
++i;
}
health = _root.HEALTH;
SUPER = 0;
nosword = false;
lastwalljump = 0;
autofiring = false;
autofirecount = 0;
COMBOchain = 0;
COMBO = 1;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
oldCOMBO = COMBO;
--COMBOchain;
if (COMBOchain <= 0) {
COMBOchain = 0;
COMBO = 1;
}
if (speed >= 15 || speed <= -15) {
while (_root.ground.hitTest(_x + 50, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 50, _y - 15, true)) {
_x = _x + 1;
}
}
_x = _x + speed;
_y = _y + fallspeed;
if (Key.isDown(1)) {
++SWORDCHARGE;
} else {
SWORDCHARGE = 1;
}
if (lastwalljump > 0) {
--lastwalljump;
}
_root.gunflash._x = _x;
_root.gunflash._y = _y - 40;
deltax = _root._xmouse - _x;
deltay = _root._ymouse - (_y - 40);
R = Math.atan2(deltay, deltax) / 0.0174532925199433;
xdist = _root._xmouse - _x;
ydist = _root._ymouse - (_y - 40);
mousedist = Math.sqrt(xdist * xdist + ydist * ydist);
if (!_root.ground.hitTest(_x, _y, true)) {
fallspeed += 2;
} else {
jumpshot = 0;
fallspeed = 0;
continueX = _x;
continueY = _y;
}
if (_x > _root.boatstart._x && _x < _root.boatend._x) {
continueX = _root.boat._x;
}
if (impact > 1) {
SWORDCHARGE = 1;
}
if (_root.ground.hitTest(_x + 20 * _xscale / 100, _y - 40, true)) {
speed = 0;
}
if (_root.ground.hitTest(_x, _y - 61, true)) {
fallspeed = 1;
}
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 60, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 15, _y - 15, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 15, _y - 15, true)) {
_x = _x + 1;
}
if (_x + 15 > _root.barrier._x) {
_x = _root.barrier._x - 15;
}
if (health < 0) {
health = 0;
}
if (SUPER > 0) {
--SUPER;
}
if (autofiring) {
if (autofirecount < 0) {
autofirecount += 5;
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 70;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
} else {
--autofirecount;
}
}
} else {
mc.stop();
}
}
onClipEvent (mouseDown) {
function SHOOT() {
_root.createEmptyMovieClip('line', _root.bulletmax);
_root.line.lineStyle(4, 16777215, 100);
_root.line.moveTo(_root['shot' + i]._x, _root['shot' + i]._y);
LINEX = 23 * Math.cos(R * 0.0174532925199433);
LINEY = 23 * Math.sin(R * 0.0174532925199433);
_root.line.lineTo(_x + LINEX, _y + LINEY - 40);
hit = true;
_root.gunfire.start(0, 1);
}
function BULLET() {
++_root.shotcount;
if (_root.shotcount >= _root.shotmax) {
_root.shotcount = 95;
}
duplicateMovieClip(_root.bullet, 'bullet' + _root.shotcount, _root.shotcount);
_root['bullet' + _root.shotcount]._x = _root['shot' + i]._x;
_root['bullet' + _root.shotcount]._y = _root['shot' + i]._y;
}
if (_root.autofireequipped) {
autofiring = true;
}
if (!_root.PAUSE) {
hit = false;
if (mousedist >= 100) {
if (jumpshot <= 5) {
if (!_root.ground.hitTest(_x, _y, true)) {
if (Math.sin(R * 0.0174532925199433) >= 0.5) {
fallspeed = -2;
}
++jumpshot;
}
}
_root.cam._x += 10 * Math.cos(R * 0.0174532925199433);
_root.cam._y += 10 * Math.sin(R * 0.0174532925199433);
i = _root.bulletcount;
while (i <= _root.bulletmax) {
if (!hit) {
duplicateMovieClip(_root.shot, 'shot' + i, i);
xshot = i * 30 * Math.cos(R * 0.0174532925199433);
yshot = i * 30 * Math.sin(R * 0.0174532925199433);
_root['shot' + i]._x = _x + xshot;
_root['shot' + i]._y = _y - 40 + yshot;
if (_root.ground.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
}
o = 50;
while (o <= _root.enemymax) {
if (_root['enemy' + o].body.hitTest(_root['shot' + i]._x, _root['shot' + i]._y, true)) {
SHOOT();
BULLET();
_root['enemy' + o].impact = 1;
_root['enemy' + o].RANDOMHIT = Math.round(Math.random() * 2);
_root['enemy' + o].shot = true;
}
++o;
}
if (!_root.cam.hitTest(_root['shot' + i])) {
SHOOT();
}
}
++i;
}
} else {
if (_root.guy.lastwalljump <= 0) {
if (_root._xmouse >= _x) {
_xscale = 100;
} else {
_xscale = -100;
}
}
}
}
}
onClipEvent (mouseUp) {
if (!_root.PAUSE) {
if (_root.autofireequipped) {
autofiring = false;
}
if (SWORDCHARGE >= 100) {
if (_root.sword burstequipped) {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
i = _root.missilecount;
while (i <= _root.missilemax) {
duplicateMovieClip(_root.missile, 'missile' + i, i);
_root['missile' + i]._rotation = 18 * i;
_root['missile' + i]._x = _x + 20 * Math.cos(_root['missile' + i]._rotation * 0.0174532925199433);
_root['missile' + i]._y = _y - 40 + 20 * Math.sin(_root['missile' + i]._rotation * 0.0174532925199433);
++i;
}
}
if (_root.special == 'super') {
_root.cam._xscale *= 0.9;
_root.cam._yscale *= 0.9;
SUPER = 200;
}
if (_root.blade beamequipped == true) {
_root.beam.play();
}
}
}
}
}
instance shot of movieClip 145 {
onClipEvent (load) {
S = 1;
}
onClipEvent (enterFrame) {
if (S <= 0) {
this.removeMovieClip();
}
--S;
}
}
instance bullet of movieClip 433 {
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
play();
} else {
stop();
}
}
}
instance missile of movieClip 832 {
onClipEvent (load) {
hit = false;
SIN = 0;
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.boss convo._currentframe > 210) {
this.removeMovieClip();
}
if (!_root.PAUSE) {
mc.play();
if (_name != 'missile') {
_visible = true;
if (!hit) {
++SIN;
_rotation = _rotation + 20 * Math.sin(SIN);
xspeed = 25 * Math.cos(_rotation * 0.0174532925199433);
yspeed = 25 * Math.sin(_rotation * 0.0174532925199433);
_x = _x + xspeed;
_y = _y + yspeed;
if (_root.ground.hitTest(_x, _y, true)) {
gotoAndPlay('hit');
hit = true;
}
if (!_root.cam.hitTest(this)) {
gotoAndPlay('hit');
hit = true;
}
i = 50;
while (i <= _root.enemymax) {
if (this.hitTest(_root['enemy' + i].body)) {
_root['enemy' + i].impact = 15;
_root['enemy' + i].health -= 15;
_root['enemy' + i].R = Math.round(Math.random() * 2);
if (_root['enemy' + i].SIZE < 3) {
if (_x >= _root.guy._x) {
_root['enemy' + i]._xscale = 100;
}
if (_x <= _root.guy._x) {
_root['enemy' + i]._xscale = -100;
}
}
_root['enemy' + i].speed = -10;
_root['enemy' + i].fallspeed = -10;
gotoAndPlay('hit');
hit = true;
}
++i;
}
}
}
} else {
mc.stop();
}
}
}
instance coin of movieClip 938 {
onClipEvent (load) {
fallspeed = -5 - Math.random() * 5;
speed = 10 - Math.random() * 20;
}
onClipEvent (enterFrame) {
if (_name != 'coin') {
_visible = true;
if (_currentframe == 1) {
_x = _x + speed;
_y = _y + fallspeed;
++fallspeed;
speed *= 0.9;
}
} else {
_visible = false;
}
while (_root.ground.hitTest(_x, _y + 10, true)) {
_y = _y - 1;
}
while (_root.ground.hitTest(_x, _y - 10, true)) {
_y = _y + 1;
}
while (_root.ground.hitTest(_x + 10, _y, true)) {
_x = _x - 1;
}
while (_root.ground.hitTest(_x - 10, _y, true)) {
_x = _x + 1;
}
if (_root.ground.hitTest(_x, _y + 11, true)) {
fallspeed *= -0.7;
}
}
}
instance bomb of movieClip 4279 {
onClipEvent (load) {
fallspeed = 0;
speed = 3 - Math.random() * 6;
Rspeed = 10 - Math.random() * 20;
seconds = 0;
}
onClipEvent (enterFrame) {
if (_name != 'bomb') {
if (seconds <= 0) {
if (_currentframe < 8) {
play();
}
speed = 0;
fallspeed = 0;
Rspeed = 0;
}
--seconds;
_rotation = _rotation + Rspeed;
_y = _y + fallspeed;
++fallspeed;
_x = _x + speed;
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = _y - 1;
}
if (_root.ground.hitTest(_x, _y, true)) {
speed = 5 - Math.random() * 10;
fallspeed *= -0.5;
}
}
}
}
movieClip 9194 {
frame 1 {
++_root.missilecount;
if (_root.missilecount > _root.missilemax) {
_root.missilecount -= 20;
}
_root.music note.duplicateMovieClip('note', _root.missilecount, _root.missilecount);
_root['note' + _root.missilecount]._x = _root.music note._x;
_root['note' + _root.missilecount]._y = _root.music note._y;
}
frame 34 {
if (impact < 3) {
gotoAndPlay(1);
}
}
frame 35 {
_root.MUSICBOX.play();
}
frame 36 {
_root.MUSICBOX.swapDepths(999);
_root.MUSICBOX.removeMovieClip();
}
frame 46 {
gotoAndPlay(45);
}
}
instance of movieClip 9194 {
onClipEvent (load) {
health = 4;
impact = 0;
shot = false;
RANDOMHIT = 0;
onscreen = false;
SIZE = 10;
}
onClipEvent (enterFrame) {
if (!_root.PAUSE) {
mc.play();
if (_currentframe <= 34 && impact > 4) {
gotoAndPlay('dead');
}
if (onscreen == false && _root.cam.hitTest(this)) {
++_root.enemycount;
_name = 'enemy' + _root.enemycount;
onscreen = true;
}
} else {
mc.stop();
}
}
}
movieClip 9197 {
frame 1 {
stop();
if (Math.random() > 0.6) {
gotoAndStop(2);
}
}
}
instance music note of movieClip 9197 {
onClipEvent (load) {
fallspeed = -1;
speed = 1;
SIN = Math.random() * 180;
_rotation = -45 + Math.random() * 90;
SECONDS = 20;
}
onClipEvent (enterFrame) {
if (_name != 'music note') {
SIN += 0.1;
_y = _y + fallspeed;
_x = _x + Math.sin(SIN) * speed;
_x = _x - 0.5;
--SECONDS;
if (SECONDS < 0) {
_alpha = _alpha - 1;
}
if (_alpha < 0) {
this.removeMovieClip();
}
} else {
_visible = false;
}
}
}
instance of movieClip 145 {
onClipEvent (enterFrame) {
if (_root.guy.hitTest(this)) {
_root.gotoAndStop('mansion lobby');
}
}
}
instance HUD of movieClip 292 {
onClipEvent (enterFrame) {
UNITS = 10 - (Math.round(0.5 + _root.money / 10) * 10 - _root.money);
TENS = Math.round(_root.money / 10 - 0.5);
}
}
instance of movieClip 145 {
onClipEvent (load) {
dead = false;
_width = _root.cam._width * 1.5;
_height = _root.cam._height * 1.5;
_alpha = 0;
}
onClipEvent (enterFrame) {
_visible = true;
_x = _root.cam._x;
_y = _root.cam._y;
if (_root.guy.hitTest(_root.EXIT)) {
dead = true;
}
if (dead) {
_root.PAUSE = true;
_alpha = _alpha + 10;
if (_alpha >= 100) {
_root.PAUSE = false;
_root.play();
}
}
}
}
instance of movieClip 1975 {
onClipEvent (enterFrame) {
_x = _root.cam._x;
_y = _root.cam._y;
_xscale = _root.cam._xscale;
_yscale = _root.cam._yscale;
}
}
movieClip 9200 {
frame 1 {
stopAllSounds();
_visible = false;
}
frame 2 {
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
if (_root.MUSICMUTE) {
play();
}
}
};
}
frame 3 {
stopAllSounds();
stop();
onEnterFrame = function () {
if (_currentframe == 3) {
if (!_root.MUSICMUTE) {
play();
}
}
};
}
}
instance MUSICBOX of movieClip 9200 {
onClipEvent (load) {
FRAME = _root._currentframe;
}
onClipEvent (enterFrame) {
if (FRAME != _root._currentframe) {
this.swapDepths(999);
this.removeMovieClip();
}
}
}