Combined Code
frame 1 {
var savefile = SharedObject.getLocal('yourgamename');
var unlock = savefile.data.whore;
if (savefile.data.whore == undefined) {
var unlock = 1;
}
_quality = 'MEDIUM';
til = 9999;
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 8 {
frame 1 {
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL('http://www.bubblebox.com/', '_blank');
};
}
}
movieClip 11 {
}
movieClip 16 {
}
button 17 {
on (release) {
getURL('http://www.newgrounds.com', '_blank');
}
}
movieClip 18 {
}
button 26 {
on (release) {
_root.play();
}
}
movieClip 27 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v2 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v2;
if (v2 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
return undefined;
}
gotoAndStop('loaded');
return undefined;
}
}
}
function startMovie() {
_root.play();
}
_root.stop();
stop();
var AUTO_PLAY = true;
var loadingComplete = false;
timerHandler();
}
instance of movieClip 18 {
onClipEvent (enterFrame) {
_parent.timerHandler();
}
}
frame 2 {
stop();
}
}
// unknown tag 88 length 64
movieClip 33 {
}
frame 2 {
stop();
onEnterFrame = function () {
if (unlock <= _level0._currentFrame) {
unlock = _currentframe;
}
};
}
movieClip 36 {
}
movieClip 37 {
}
movieClip 39 {
}
instance of movieClip 39 {
onClipEvent (load) {
lay = 12;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_x = _x - _parent.game.xm / lay;
_y = _y - _parent.game.ym / lay;
} else {
go = true;
}
}
}
movieClip 41 {
}
instance of movieClip 41 {
onClipEvent (load) {
lay = 10;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_x = _x - _parent.game.xm / lay;
_y = _y - _parent.game.ym / lay;
} else {
go = true;
}
}
}
movieClip 43 {
}
instance of movieClip 43 {
onClipEvent (load) {
lay = 8;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_x = _x - _parent.game.xm / lay;
_y = _y - _parent.game.ym / lay;
} else {
go = true;
}
}
}
movieClip 45 {
}
instance of movieClip 45 {
onClipEvent (load) {
lay = 5;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_x = _x - _parent.game.xm / lay;
_y = _y - _parent.game.ym / lay;
} else {
go = true;
}
}
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 53 {
}
movieClip 77 {
frame 1 {
stop();
}
}
movieClip 78 {
frame 1 {
this.onRollOver = function () {
this.logo_ro.gotoAndStop(2);
};
this.onRollOut = function () {
this.logo_ro.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.logo_ro.gotoAndStop(1);
};
this.onRelease = function () {
getURL('http://www.bubblebox.com/?utm_source=bubblebox.com&utm_medium=brandedgames&utm_campaign=shotgun_sam&utm_content=bubblebox_link_main', '_blank');
};
}
}
movieClip 81 {
}
instance of movieClip 81 {
onClipEvent (release) {
getURL('http://www.facebook.com/bubbleboxcom', '_blank');
}
}
movieClip 82 {
}
movieClip 84 {
}
button 88 {
on (release) {
_root.gotoAndStop(_level0._currentframe + 2);
}
}
button 92 {
on (release) {
_root.nextFrame();
}
}
button 96 {
on (release) {
getURL('http://www.bubblebox.com/?utm_source=bubblebox.com&utm_medium=brandedgames&utm_campaign=shotgun_sam&utm_content=bubblebox_link_main', '_blank');
}
}
movieClip 101 {
frame 1 {
stop();
}
}
instance music of movieClip 101 {
onClipEvent (load) {
mute = false;
music = 2;
}
onClipEvent (enterFrame) {
this.gotoAndStop(music);
if (_level0._currentFrame <= 6 && mute == false && music != 2 || _level0._currentFrame >= 85 && mute == false && music != 2) {
stopAllSounds();
music = 2;
}
if (mute == true && music != 1) {
music = 1;
stopAllSounds();
}
if (_level0._currentFrame >= 7 && mute == false && music != 3 && _level0._currentFrame < 85) {
stopAllSounds();
music = 3;
}
}
onClipEvent (release) {
if (mute == false) {
mute = true;
} else {
mute = false;
}
}
}
movieClip 104 {
frame 1 {
stop();
}
}
movieClip 106 {
frame 1 {
stop();
}
}
movieClip 108 {
frame 1 {
stop();
}
}
movieClip 110 {
frame 1 {
stop();
}
}
movieClip 112 {
frame 1 {
stop();
}
}
movieClip 114 {
frame 1 {
stop();
}
}
movieClip 116 {
frame 1 {
stop();
}
}
movieClip 118 {
frame 1 {
stop();
}
}
button 122 {
on (release) {
_level0.gotoAndStop(2);
}
}
movieClip 124 {
}
movieClip 125 {
frame 1 {
stop();
if (_level0.unlock >= fr - 1) {
gotoAndStop(2);
}
}
instance of movieClip 124 {
onClipEvent (release) {
_level0.sc = 0;
_level0.gotoAndStop(_parent.fr - 1);
}
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 6;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 8;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 10;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 12;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 14;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 18;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 20;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 22;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 24;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 26;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 30;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 32;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 34;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 36;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 38;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 42;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 44;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 46;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 48;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 50;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 54;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 56;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 58;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 60;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 62;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 66;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 68;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 70;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 72;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 74;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 78;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 80;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 82;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 84;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 16;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 28;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 40;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 52;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 64;
}
}
instance of movieClip 125 {
onClipEvent (load) {
fr = 76;
}
}
frame 4 {
play();
}
button 129 {
on (release) {
_level0.gotoAndStop(2);
}
}
movieClip 132 {
}
movieClip 133 {
}
movieClip 134 {
frame 1 {
stop();
}
}
movieClip 145 {
frame 1 {
stop();
}
}
movieClip 146 {
frame 1 {
this.onRollOver = function () {
this.logo_ro.gotoAndStop(2);
};
this.onRollOut = function () {
this.logo_ro.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.logo_ro.gotoAndStop(1);
};
this.onRelease = function () {
getURL('http://www.bubblebox.com/?utm_source=bubblebox.com&utm_medium=brandedgames&utm_campaign=shotgun_sam&utm_content=bubblebox_link_main', '_blank');
};
}
}
// unknown tag 88 length 68
movieClip 149 {
}
instance of movieClip 149 {
onClipEvent (release) {
getURL('http://www.bubblebox.com/gameinfo/shotgunsam.htm?utm_source=bubblebox.com&utm_medium=brandedgames&utm_campaign=shotgun_sam&utm_content=bubblebox_walkthrough', '_blank');
}
}
frame 5 {
play();
}
instance of movieClip 39 {
onClipEvent (load) {
lay = 12;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_x = _x - _parent.game.xm / lay;
_y = _y - _parent.game.ym / lay;
} else {
go = true;
}
}
}
instance of movieClip 41 {
onClipEvent (load) {
lay = 10;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_x = _x - _parent.game.xm / lay;
_y = _y - _parent.game.ym / lay;
} else {
go = true;
}
}
}
instance of movieClip 43 {
onClipEvent (load) {
lay = 8;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_x = _x - _parent.game.xm / lay;
_y = _y - _parent.game.ym / lay;
} else {
go = true;
}
}
}
instance of movieClip 45 {
onClipEvent (load) {
lay = 5;
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
_x = _x - _parent.game.xm / lay;
_y = _y - _parent.game.ym / lay;
} else {
go = true;
}
}
}
frame 6 {
stop();
}
movieClip 155 {
frame 1 {
if (this._name != 'plat') {
stop();
} else {
gotoAndStop(2);
}
}
}
movieClip 156 {
}
movieClip 159 {
frame 1 {
if (this._name != 'shell') {
tim = 100;
oyh = 1;
yh = oyh;
oxh = 1;
xh = oxh;
sped = 3;
grav = -(random(3) + 3);
if (_parent.char.r._rotation < 0) {
xmov = 4;
rp = random(6) + 4;
} else {
xmov = -4;
rp = -(random(6) + 4);
}
xhit = false;
yhit = false;
_x = _parent.char._x;
_y = _parent.char._y - 20;
gp = 0.1;
_rotation = _parent.char.r._rotation;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'shell') {
--tim;
if (tim <= 0) {
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.swapDepths(999);
removeMovieClip(this);
}
}
_rotation = _rotation + rp;
grav += gp;
_y = _y + grav;
xmov *= 0.98;
_x = _x + xmov;
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y + 5, true) && yhit == false) {
if (grav >= 0.3) {
yhit = true;
grav *= -0.7;
} else {
grav = 0;
}
}
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y - 5, true) && yhit == false) {
yhit = true;
grav *= -0.7;
}
if (_parent.ground.hitTest(_x + _parent._x + 5, _y + _parent._y, true) && xhit == false) {
xhit = true;
xmov *= -0.7;
}
if (_parent.ground.hitTest(_x + _parent._x - 5, _y + _parent._y, true) && xhit == false) {
xhit = true;
xmov *= -0.7;
}
if (yhit == true) {
rp = random(6) - 3;
if (yh <= 0) {
yh = oyh;
yhit = false;
} else {
--yh;
}
}
if (xhit == true) {
if (xh <= 0) {
xh = oyh;
xhit = false;
} else {
--xh;
}
}
}
};
}
}
movieClip 162 {
}
movieClip 163 {
frame 4 {
stop();
}
}
movieClip 164 {
frame 1 {
stop();
if (this._name != 'shot1') {
dead = false;
spd = _parent.spd;
_y = _parent.char._y - _parent.char.hh;
_x = _parent.char._x;
_rotation = _parent.char.r._rotation;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'shot') {
if (dead == false) {
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
this.swapDepths(999);
removeMovieClip(this);
}
if (dead == false) {
_y = _y + grav;
_x = _x + xmov;
}
if (_rotation > 180) {
grav = spd * Math.cos(0.0174532925199433 * _rotation);
xmov = -(spd * Math.sin(0.0174532925199433 * _rotation));
} else {
grav = -(spd * Math.cos(0.0174532925199433 * _rotation));
xmov = spd * Math.sin(0.0174532925199433 * _rotation);
}
}
}
};
}
}
movieClip 166 {
frame 1 {
stop();
if (this._name != 'shot2') {
dead = false;
spd = _parent.spd;
_y = _parent.char._y - _parent.char.hh;
_x = _parent.char._x;
_rotation = _parent.char.r._rotation + _parent.space * 1;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'shot') {
if (dead == false) {
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
this.swapDepths(999);
removeMovieClip(this);
}
if (dead == false) {
_y = _y + grav;
_x = _x + xmov;
}
if (_rotation > 180) {
grav = spd * Math.cos(0.0174532925199433 * _rotation);
xmov = -(spd * Math.sin(0.0174532925199433 * _rotation));
} else {
grav = -(spd * Math.cos(0.0174532925199433 * _rotation));
xmov = spd * Math.sin(0.0174532925199433 * _rotation);
}
}
}
};
}
}
movieClip 167 {
frame 1 {
stop();
if (this._name != 'shot3') {
dead = false;
spd = _parent.spd;
_y = _parent.char._y - _parent.char.hh;
_x = _parent.char._x;
_rotation = _parent.char.r._rotation + _parent.space * 2;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'shot') {
if (dead == false) {
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
this.swapDepths(999);
removeMovieClip(this);
}
if (dead == false) {
_y = _y + grav;
_x = _x + xmov;
}
if (_rotation > 180) {
grav = spd * Math.cos(0.0174532925199433 * _rotation);
xmov = -(spd * Math.sin(0.0174532925199433 * _rotation));
} else {
grav = -(spd * Math.cos(0.0174532925199433 * _rotation));
xmov = spd * Math.sin(0.0174532925199433 * _rotation);
}
}
}
};
}
}
movieClip 168 {
frame 1 {
stop();
if (this._name != 'shot5') {
dead = false;
spd = _parent.spd;
_y = _parent.char._y - _parent.char.hh;
_x = _parent.char._x;
_rotation = _parent.char.r._rotation - _parent.space * 1;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'shot') {
if (dead == false) {
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
this.swapDepths(999);
removeMovieClip(this);
}
if (dead == false) {
_y = _y + grav;
_x = _x + xmov;
}
if (_rotation > 180) {
grav = spd * Math.cos(0.0174532925199433 * _rotation);
xmov = -(spd * Math.sin(0.0174532925199433 * _rotation));
} else {
grav = -(spd * Math.cos(0.0174532925199433 * _rotation));
xmov = spd * Math.sin(0.0174532925199433 * _rotation);
}
}
}
};
}
}
movieClip 169 {
frame 1 {
stop();
if (this._name != 'shot6') {
dead = false;
spd = _parent.spd;
_y = _parent.char._y - _parent.char.hh;
_x = _parent.char._x;
_rotation = _parent.char.r._rotation - _parent.space * 2;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'shot') {
if (dead == false) {
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
this.swapDepths(999);
removeMovieClip(this);
}
if (dead == false) {
_y = _y + grav;
_x = _x + xmov;
}
if (_rotation > 180) {
grav = spd * Math.cos(0.0174532925199433 * _rotation);
xmov = -(spd * Math.sin(0.0174532925199433 * _rotation));
} else {
grav = -(spd * Math.cos(0.0174532925199433 * _rotation));
xmov = spd * Math.sin(0.0174532925199433 * _rotation);
}
}
}
};
}
}
movieClip 170 {
frame 1 {
stop();
if (this._name != 'shot7') {
dead = false;
spd = _parent.spd;
_y = _parent.char._y - _parent.char.hh;
_x = _parent.char._x;
_rotation = _parent.char.r._rotation - _parent.space * 3;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'shot') {
if (dead == false) {
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
this.swapDepths(999);
removeMovieClip(this);
}
if (dead == false) {
_y = _y + grav;
_x = _x + xmov;
}
if (_rotation > 180) {
grav = spd * Math.cos(0.0174532925199433 * _rotation);
xmov = -(spd * Math.sin(0.0174532925199433 * _rotation));
} else {
grav = -(spd * Math.cos(0.0174532925199433 * _rotation));
xmov = spd * Math.sin(0.0174532925199433 * _rotation);
}
}
}
};
}
}
movieClip 171 {
frame 1 {
stop();
if (this._name != 'shot4') {
dead = false;
spd = _parent.spd;
_y = _parent.char._y - _parent.char.hh;
_x = _parent.char._x;
_rotation = _parent.char.r._rotation + _parent.space * 3;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'shot') {
if (dead == false) {
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
this.swapDepths(999);
removeMovieClip(this);
}
if (dead == false) {
_y = _y + grav;
_x = _x + xmov;
}
if (_rotation > 180) {
grav = spd * Math.cos(0.0174532925199433 * _rotation);
xmov = -(spd * Math.sin(0.0174532925199433 * _rotation));
} else {
grav = -(spd * Math.cos(0.0174532925199433 * _rotation));
xmov = spd * Math.sin(0.0174532925199433 * _rotation);
}
}
}
};
}
}
movieClip 172 {
frame 1 {
if (this._name != 'spike') {
stop();
} else {
gotoAndStop(2);
}
}
}
movieClip 173 {
}
movieClip 175 {
}
movieClip 182 {
}
movieClip 184 {
}
movieClip 186 {
}
movieClip 187 {
frame 1 {
stop();
}
}
movieClip 189 {
}
movieClip 192 {
}
movieClip 194 {
}
movieClip 196 {
}
movieClip 198 {
}
movieClip 200 {
}
movieClip 202 {
}
movieClip 208 {
frame 95 {
stop();
}
}
movieClip 210 {
}
movieClip 211 {
frame 20 {
_parent._parent.rlded = true;
}
}
movieClip 212 {
frame 1 {
stop();
onEnterFrame = function () {
Xd = _root._xmouse - _parent._parent._x - _parent._x - _x;
Yd = _root._ymouse - _parent._parent._y - _parent._y - _y;
radAngle = Math.atan2(Yd, Xd);
if (_rotation <= 0) {
_xscale = -100;
} else {
_xscale = 100;
}
_rotation = int(radAngle * 360 / 6.283185307179586 + 90);
};
}
}
movieClip 214 {
}
movieClip 217 {
}
movieClip 224 {
frame 1 {
stop();
xr = 800;
yr = 900;
xmov = (random(xr) - xr / 2) / 100;
grav = -random(yr) / 100;
hit = false;
tim = 300;
onEnterFrame = function () {
if (hit == false) {
myRadian = Math.atan2(grav, xmov);
myDegree = Math.round(myRadian * 180 / 3.14);
anim._rotation = myDegree + 90;
if (_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y, true)) {
if (_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y + 9, true) && !_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y - 9, true)) {
gotoAndStop(random(6) + 2);
hit = true;
}
if (_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y - 9, true) && !_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y + 9, true)) {
_rotation = 180;
gotoAndStop(random(6) + 2);
hit = true;
}
if (xmov >= 0 && hit == false) {
_rotation = 270;
gotoAndStop(random(6) + 2);
hit = true;
}
if (xmov <= 0 && hit == false) {
_rotation = 90;
gotoAndStop(random(6) + 2);
hit = true;
}
}
if (hit == false) {
xmov *= 0.99;
_x = _x + xmov;
_y = _y + grav;
if (grav >= 6) {
grav = 6;
}
grav += 0.15;
}
} else {
if (tim <= 0) {
_alpha = _alpha - 3;
if (_alpha <= 0) {
this.swapDepths(999);
removeMovieClip(this);
}
} else {
--tim;
}
}
};
}
}
movieClip 225 {
frame 1 {
stop();
grav = 0;
qqq = false;
_level0.savefile.data.whore = _level0.unlock;
_level0.savefile.flush();
gravmax = 15;
ymov = 0;
d = 200;
win2 = false;
jump = 5;
xmov = 0;
hh = 25;
orld = 95;
rld = orld;
this.swapDepths(99999);
shot = 0;
xxmov = 0;
win = false;
speed = 0.15;
cons = 0.2;
decay = 0.97;
_x = _parent.star._x;
_y = _parent.star._y;
this.swapDepths(99999999);
gp = 0.2;
hg = false;
jump = 6;
walk = 0;
ttt = 0;
thr = 0.4;
spd = 4;
sped = 8;
b = 0;
shootable = true;
rlded = true;
moving = false;
hp = 1;
dead = false;
onEnterFrame = function () {
if (dead == false) {
if (win2 == false) {
if (win == false) {
if (rlded == true) {
_level0.shots.gotoAndStop(shot + 1);
if (shot < 2) {
shootable = true;
r.gotoAndStop(1);
} else {
r.gotoAndStop(2);
shootable = false;
if (rld <= 0) {
shot = 0;
rld = orld;
} else {
--rld;
}
}
} else {
r.gotoAndStop(3);
}
if (grav <= gravmax) {
grav += gp;
}
if (_parent.spikes.hitTest(_x + _parent._x, _y + _parent._y + 13, true) || _parent.spikes.hitTest(_x + _parent._x - 12, _y + _parent._y, true) || _parent.spikes.hitTest(_x + _parent._x + 12, _y + _parent._y, true) || _parent.spikes.hitTest(_x + _parent._x, _y + _parent._y - 16, true)) {
trace('BS');
dead = true;
}
while (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y + 12, true)) {
_y = _y - 0.1;
}
if (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y + 13, true)) {
hg = true;
grav = 0;
} else {
hg = false;
}
while (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y - 34, true)) {
_y = _y + 0.1;
if (grav < 0) {
grav = 0;
}
}
while (_parent.ground.hitTest(_x + _parent._x - 12, _y + _parent._y, true)) {
_x = _x + 0.1;
xmov = 0;
walk = 0;
}
while (_parent.ground.hitTest(_x + _parent._x + 12, _y + _parent._y, true)) {
_x = _x - 0.1;
xmov = 0;
walk = 0;
}
if (Key.isDown(38) || Key.isDown(87)) {
upd = true;
} else {
upd = false;
}
if (Key.isDown(37) || Key.isDown(65)) {
lpd = true;
} else {
lpd = false;
}
if (Key.isDown(39) || Key.isDown(68)) {
rpd = true;
} else {
rpd = false;
}
if (upd == true && hg == true) {
grav = -jump;
}
if (lpd == true && rpd == true || lpd == false && rpd == false) {
moving = false;
} else {
if (rpd == true) {
panim._xscale = 100;
walk += thr;
moving = true;
}
if (lpd == true) {
panim._xscale = -100;
walk -= thr;
moving = true;
}
}
if (walk >= spd) {
walk = spd;
}
if (walk <= -spd) {
walk = -spd;
}
if (hg == false) {
if (grav <= 0) {
panim.gotoAndStop(4);
} else {
panim.gotoAndStop(3);
}
} else {
if (moving == true) {
panim.gotoAndStop(2);
} else {
panim.gotoAndStop(1);
}
}
xmov *= 0.975;
walk *= 0.9300000000000001;
_y = _y + grav;
_x = _x + (xmov + walk);
} else {
_level0.win.play();
panim.gotoAndStop(1);
r.gotoAndStop(2);
_x = _x + (_parent.fin._x - _x) / 10;
_y = _y + (_parent.fin._y + 20 - _y) / 10;
if (_level0.music.mute == false && qqq == false) {
_level0.de.play();
qqq = true;
}
}
} else {
if (ttt >= 3) {
_level0.win.play();
}
panim.gotoAndStop(3);
r.gotoAndStop(1);
_rotation = _rotation + ttt * 2;
ttt += 0.02;
_y = _y - ttt * 3;
_x = _x + (_parent.fin._x - _x) / 100;
}
} else {
if (grav <= gravmax) {
grav += gp;
}
if (win == false) {
gotoAndStop(2);
}
}
};
onMouseDown = function () {
if (shootable == true && rlded == true) {
rlded = false;
if (_level0.music.mute == false) {
_level0.shot.play();
}
duplicateMovieClip(_parent.shell, 'f' + d, b + 1);
++d;
duplicateMovieClip(_parent.shot1, 'l' + b, b + 2);
++d;
duplicateMovieClip(_parent.shot2, 'l' + (b + 1), b + 3);
++d;
duplicateMovieClip(_parent.shot3, 'l' + (b + 2), b + 4);
++d;
duplicateMovieClip(_parent.shot4, 'l' + (b + 3), b + 5);
++d;
duplicateMovieClip(_parent.shot5, 'l' + (b + 4), b + 6);
++d;
duplicateMovieClip(_parent.shot6, 'l' + (b + 5), b + 7);
++d;
duplicateMovieClip(_parent.shot7, 'l' + (b + 6), b + 8);
++d;
if (b == 0) {
b = 8;
} else {
b = 0;
}
shot += 1;
if (_rotation > 180) {
grav = -(sped * Math.cos(0.0174532925199433 * r._rotation));
xmov = sped * Math.sin(0.0174532925199433 * r._rotation);
} else {
grav = sped * Math.cos(0.0174532925199433 * r._rotation);
xmov = -(sped * Math.sin(0.0174532925199433 * r._rotation));
}
_y = _y + grav;
_x = _x + (xmov + walk);
}
};
}
frame 2 {
ot = 270;
time = ot;
if (_level0.music.mute == false) {
_level0.sdead.play();
}
onEnterFrame = function () {
--time;
if (time <= 0) {
_level0.prevFrame();
}
};
onMouseDown = function () {
if (time <= ot - 20) {
_level0.prevFrame();
}
};
}
}
movieClip 227 {
frame 1 {
onEnterFrame = function () {
if (_parent.char.hit.hitTest(this)) {
_parent.char.win2 = true;
}
};
}
}
movieClip 229 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 229 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 400);
this._y -= ym / 1;
}
}
movieClip 233 {
frame 29 {
stop();
}
frame 116 {
_level0.nextFrame();
}
}
frame 7 {
play();
}
frame 8 {
stop();
}
movieClip 240 {
}
movieClip 243 {
frame 1 {
++_parent.pn;
duplicateMovieClip(_parent.ground.plat, 'hh' + _parent.pn, 1 + _parent.pn);
_parent.ground['hh' + _parent.pn]._x = _x - _parent.ground._x;
_parent.ground['hh' + _parent.pn]._y = _y - _parent.ground._y;
_parent.ground['hh' + _parent.pn]._width = _width;
_parent.ground['hh' + _parent.pn]._height = _height;
var dist = 0;
onEnterFrame = function () {
dist = Math.sqrt(Math.pow(_x - _parent.char._x, 2) + Math.pow(_y - _parent.char._y, 2));
if (dist >= 1500) {
_visible = false;
} else {
_visible = true;
}
};
}
}
movieClip 245 {
}
movieClip 246 {
frame 58 {
stop();
}
}
movieClip 248 {
}
movieClip 249 {
}
movieClip 251 {
}
movieClip 252 {
frame 1 {
stop();
winnable = false;
}
frame 61 {
stop();
onEnterFrame = function () {
if (_parent.char.hit.hitTest(this.hit)) {
_parent.char.win = true;
}
};
}
}
movieClip 264 {
}
movieClip 265 {
frame 1 {
stop();
hit = false;
onEnterFrame = function () {
if (this.hitTest(_parent.char.hit) && hit == false) {
play();
hit = true;
if (_level0.music.mute == false) {
_level0.kg.play();
}
}
};
}
frame 33 {
_parent.fin.play();
_parent.fin.winnable = true;
this.swapDepths(999);
removeMovieClip(this);
}
}
movieClip 267 {
}
movieClip 268 {
frame 1 {
++_parent.pn;
duplicateMovieClip(_parent.spikes.spike, 'hh' + _parent.pn, 1 + _parent.pn);
_parent.spikes['hh' + _parent.pn]._x = _x - _parent.spikes._x;
_parent.spikes['hh' + _parent.pn]._y = _y - _parent.spikes._y;
_parent.spikes['hh' + _parent.pn]._width = _width;
_parent.spikes['hh' + _parent.pn]._height = _height;
_parent.spikes['hh' + _parent.pn]._rotation = _rotation;
var dist = 0;
onEnterFrame = function () {
dist = Math.sqrt(Math.pow(_x - _parent.char._x, 2) + Math.pow(_y - _parent.char._y, 2));
if (dist >= 1500) {
_visible = false;
} else {
_visible = true;
}
};
}
}
movieClip 271 {
}
movieClip 272 {
frame 1 {
++_parent.pn;
duplicateMovieClip(_parent.ground.plat, 'hh' + _parent.pn, 1 + _parent.pn);
_parent.ground['hh' + _parent.pn]._x = _x - _parent.ground._x;
_parent.ground['hh' + _parent.pn]._y = _y - _parent.ground._y;
_parent.ground['hh' + _parent.pn]._width = _width;
_parent.ground['hh' + _parent.pn]._height = _height;
_parent.ground['hh' + _parent.pn]._rotation = r._rotation;
var dist = 0;
onEnterFrame = function () {
dist = Math.sqrt(Math.pow(_x - _parent.char._x, 2) + Math.pow(_y - _parent.char._y, 2));
if (dist >= 1500) {
_visible = false;
} else {
_visible = true;
}
};
}
}
movieClip 273 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 273 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 9 {
play();
}
frame 10 {
stop();
}
movieClip 277 {
frame 1 {
++_parent.pn;
duplicateMovieClip(_parent.ground.plat, 'hh' + _parent.pn, 1 + _parent.pn);
_parent.ground['hh' + _parent.pn]._x = _x - _parent.ground._x;
_parent.ground['hh' + _parent.pn]._y = _y - _parent.ground._y;
_parent.ground['hh' + _parent.pn]._width = _width;
_parent.ground['hh' + _parent.pn]._height = _height;
var dist = 0;
onEnterFrame = function () {
dist = Math.sqrt(Math.pow(_x - _parent.char._x, 2) + Math.pow(_y - _parent.char._y, 2));
if (dist >= 1500) {
_visible = false;
} else {
_visible = true;
}
};
}
}
movieClip 279 {
frame 1 {
++_parent.pn;
duplicateMovieClip(_parent.ground.plat, 'hh' + _parent.pn, 1 + _parent.pn);
_parent.ground['hh' + _parent.pn]._x = _x - _parent.ground._x;
_parent.ground['hh' + _parent.pn]._y = _y - _parent.ground._y;
_parent.ground['hh' + _parent.pn]._width = _width;
_parent.ground['hh' + _parent.pn]._height = _height;
_parent.ground['hh' + _parent.pn]._rotation = r._rotation;
var dist = 0;
onEnterFrame = function () {
dist = Math.sqrt(Math.pow(_x - _parent.char._x, 2) + Math.pow(_y - _parent.char._y, 2));
if (dist >= 1500) {
_visible = false;
} else {
_visible = true;
}
};
}
}
movieClip 281 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 281 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 11 {
play();
}
frame 12 {
stop();
}
movieClip 286 {
}
movieClip 287 {
}
movieClip 288 {
frame 1 {
stop();
}
}
movieClip 290 {
frame 1 {
vvv = 90;
this.swapDepths(99999);
onEnterFrame = function () {
if (_parent._currentframe != 1) {
removeMovieClip(this);
}
if (rr > -90 && rr < 90) {
_xscale = -100;
} else {
_xscale = 100;
}
Xd = _parent._parent.char._x - _parent._x - _x;
Yd = _parent._parent.char._y - _parent._y - _y;
radAngle = Math.atan2(Yd, Xd);
rr = int(radAngle * 360 / 6.283185307179586);
_rotation = rr + vvv;
};
}
}
movieClip 292 {
}
movieClip 307 {
frame 29 {
stop();
}
}
movieClip 315 {
frame 1 {
stop();
xr = 800;
yr = 900;
xmov = (random(xr) - xr / 2) / 100;
grav = -random(yr) / 100;
hit = false;
tim = 300;
onEnterFrame = function () {
if (hit == false) {
myRadian = Math.atan2(grav, xmov);
myDegree = Math.round(myRadian * 180 / 3.14);
anim._rotation = myDegree + 90;
if (_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y, true)) {
if (_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y + 9, true) && !_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y - 9, true)) {
gotoAndStop(random(6) + 2);
hit = true;
}
if (_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y - 9, true) && !_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y + 9, true)) {
_rotation = 180;
gotoAndStop(random(6) + 2);
hit = true;
}
if (xmov >= 0 && hit == false) {
_rotation = 270;
gotoAndStop(random(6) + 2);
hit = true;
}
if (xmov <= 0 && hit == false) {
_rotation = 90;
gotoAndStop(random(6) + 2);
hit = true;
}
}
if (hit == false) {
xmov *= 0.99;
_x = _x + xmov;
_y = _y + grav;
if (grav >= 6) {
grav = 6;
}
grav += 0.15;
}
} else {
if (tim <= 0) {
_alpha = _alpha - 3;
if (_alpha <= 0) {
this.swapDepths(999);
removeMovieClip(this);
}
} else {
--tim;
}
}
};
}
}
movieClip 316 {
frame 1 {
stop();
this.swapDepths(_level0.til + 1000);
_level0.til += 1;
ot = 20;
t = ot;
hitbl = true;
xxx = 0;
yyy = 0;
dist = 1000;
health = 3;
range = 250;
turn = 0.08;
spd = 5;
bp = 4;
inrange = false;
hp = 10;
dead = false;
onEnterFrame = function () {
if (dead == false) {
i = 0;
while (i < 20) {
if (this.hit.hitTest(_parent['l' + i].anim.hit)) {
hp -= 1;
inrange = true;
_parent['l' + i].swapDepths(999);
removeMovieClip(_parent['l' + i]);
if (gun._rotation > 180) {
yyy = -(bp * Math.cos(0.0174532925199433 * gun._rotation));
xxx = bp * Math.sin(0.0174532925199433 * gun._rotation);
} else {
yyy = bp * Math.cos(0.0174532925199433 * gun._rotation);
xxx = -(bp * Math.sin(0.0174532925199433 * gun._rotation));
}
}
++i;
}
if (this.hit.hitTest(_parent.char.hit)) {
_parent.char.dead = true;
xxx *= -1;
yyy *= -1;
}
_x = _x + xxx;
_y = _y + yyy;
if (xxx >= 2) {
anim._xscale = -100;
} else {
anim._xscale = 100;
}
if (hp <= 0) {
if (_level0.music.mute == false) {
_level0.adead.play();
}
gotoAndStop(2);
dead = true;
}
while (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y + 34, true)) {
_y = _y - 0.1;
yyy = 0;
}
while (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y - 34, true)) {
_y = _y + 0.1;
yyy = 0;
}
while (_parent.ground.hitTest(_x + _parent._x + 12, _y + _parent._y - 12, true)) {
_x = _x - 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x - 12, _y + _parent._y - 12, true)) {
_x = _x + 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x + 12, _y + _parent._y + 12, true)) {
_x = _x - 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x - 12, _y + _parent._y + 12, true)) {
_x = _x + 0.1;
xxx = 0;
}
dist = Math.sqrt(Math.pow(_x - _parent.char._x, 2) + Math.pow(_y - _parent.char._y, 2));
if (dist <= range) {
inrange = true;
}
if (inrange == true) {
anim.gotoAndStop(2);
if (gun._rotation > 180) {
yy = spd * Math.cos(0.0174532925199433 * gun._rotation);
xx = -(spd * Math.sin(0.0174532925199433 * gun._rotation));
} else {
yy = -(spd * Math.cos(0.0174532925199433 * gun._rotation));
xx = spd * Math.sin(0.0174532925199433 * gun._rotation);
}
if (xx > xxx) {
xxx += turn;
} else {
xxx -= turn;
}
if (yy > yyy) {
yyy += turn;
} else {
yyy -= turn;
}
} else {
anim.gotoAndStop(1);
xxx *= 0.95;
yyy *= 0.95;
}
}
};
}
frame 2 {
time = 0;
onEnterFrame = function () {
++time;
if (time >= 1000) {
this.swapDepths(999);
removeMovieClip(this);
}
};
}
}
movieClip 317 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
til = 200;
}
}
instance game of movieClip 317 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 13 {
play();
}
frame 14 {
stop();
}
movieClip 319 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 319 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 15 {
play();
}
frame 16 {
stop();
}
movieClip 320 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 320 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 17 {
play();
}
frame 18 {
stop();
}
movieClip 322 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 322 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 19 {
play();
}
frame 20 {
stop();
}
movieClip 325 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 325 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 21 {
play();
}
frame 22 {
stop();
}
movieClip 327 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 327 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 23 {
play();
}
frame 24 {
stop();
}
movieClip 329 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 329 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 25 {
play();
}
frame 26 {
stop();
}
movieClip 335 {
}
movieClip 338 {
}
movieClip 339 {
frame 35 {
stop();
}
}
movieClip 341 {
}
movieClip 343 {
}
movieClip 347 {
}
movieClip 349 {
}
movieClip 350 {
frame 1 {
stop();
if (this._name != 'blast') {
thrust = _parent.rthrust;
maxSpeed = _parent.rmaxspd;
d = _parent.d;
duplicateMovieClip(_parent.ch, 'kk' + _parent.d, _parent.d + 10000);
++_parent.d;
_x = _parent.gun._x;
_y = _parent.gun._y;
rrr = 0;
rrr = hh;
hit = false;
xSpeed = 0;
ySpeed = 0;
hp = 2;
hs = 5;
rrr = 0;
} else {
_visible = false;
}
onEnterFrame = function () {
if (hit == false) {
if (this._name != 'blast') {
i = 0;
while (i < 20) {
if (this.hitar2.hitTest(_parent._parent['l' + i].anim.hit)) {
hp -= 1;
_parent._parent['l' + i].swapDepths(999);
removeMovieClip(_parent._parent['l' + i]);
}
++i;
}
if (this.hitar2.hitTest(_parent._parent.char.hit)) {
_parent._parent.char.dead = true;
hit = true;
play();
}
if (_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y, true)) {
hit = true;
play();
}
if (_parent._parent.starhit.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y, true)) {
hit = true;
play();
}
if (hp <= 0) {
hit = true;
play();
}
}
if (hit == false && !_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
if (hs <= 0) {
myRadians = Math.atan2(_parent['kk' + d]._y - this._y, _parent['kk' + d]._x - this._x);
myDegrees = Math.round(myRadians * 180 / 3.14);
this.rrr = myDegrees + 90;
} else {
--hs;
}
xSpeed += thrust * Math.sin(rrr * 0.0174532925199433);
ySpeed += thrust * Math.cos(rrr * 0.0174532925199433);
speed = Math.sqrt(xSpeed * xSpeed + ySpeed * ySpeed);
if (speed > maxSpeed) {
xSpeed *= maxSpeed / speed;
ySpeed *= maxSpeed / speed;
}
_y = _y - ySpeed;
_x = _x + xSpeed;
} else {
rrr = 0;
}
}
};
}
frame 2 {
_parent['kk' + d].swapDepths(999);
removeMovieClip(_parent['kk' + d]);
}
instance of movieClip 349 {
onClipEvent (load) {
if (_level0.music.mute == false) {
play();
} else {
this.swapDepths(99);
removeMovieClip(this);
stop();
}
}
}
frame 49 {
this.swapDepths(999);
removeMovieClip(this);
}
}
movieClip 352 {
frame 1 {
xdif = 0;
ydif = 0;
onEnterFrame = function () {
if (_parent.gun.inrange == true && _parent.gun.activated == true) {
xdif = -_parent._parent.char._x + this._x + _parent._x;
this._x -= xdif / _parent.aimspeed;
ydif = -_parent._parent.char._y + this._y + _parent._y;
this._y -= ydif / _parent.aimspeed;
} else {
xdif = -_parent.gun._x + this._x;
this._x -= xdif / _parent.aimspeed;
ydif = -_parent.gun._y + this._y + 10;
this._y -= ydif / _parent.aimspeed;
}
};
}
}
movieClip 354 {
frame 1 {
if (this._name != 'ch') {
_x = 0;
_y = 0;
xdif = 0;
ydif = 0;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'ch') {
xdif = -_parent._parent.char._x + this._x + _parent._x;
this._x -= xdif / _parent.raimspeed;
ydif = -_parent._parent.char._y + this._y + _parent._y;
this._y -= ydif / _parent.raimspeed;
}
};
}
}
movieClip 355 {
}
movieClip 356 {
frame 1 {
var t = _parent.reloadspeed;
this.swapDepths(999999);
var inrange = true;
var ot = _parent.reloadspeed;
var dist = 0;
var rang = _parent.range;
var d = 100000;
var g = 0;
var gs = false;
if (_parent.activated != true) {
var activated = true;
} else {
activated = true;
}
var b = 60;
onEnterFrame = function () {
if (activated == true) {
dist = Math.sqrt(Math.pow(_x + _parent._x - _parent._parent.char._x, 2) + Math.pow(_y + _parent._y - _parent._parent.char._y, 2));
if (dist <= rang) {
inrange = true;
} else {
inrange = false;
}
if (inrange == true) {
if (t <= 0) {
gs = false;
++d;
duplicateMovieClip(_parent.blast, 'l' + d, d + 5000);
t = ot;
} else {
--t;
}
}
myRadians = Math.atan2(_parent.target._y - _y, _parent.target._x - _x);
myDegrees = Math.round(myRadians * 180 / 3.14);
this._rotation = myDegrees + 90;
}
};
onMouseDown = function () {
activated = true;
};
}
}
movieClip 358 {
frame 1 {
this.swapDepths(_level0.til + 1000);
_level0.til += 1;
d = 1;
sm = 1;
hp = 9;
stop();
onEnterFrame = function () {
if (hp <= 0) {
if (_level0.music.mute == false) {
_level0.adead.play();
}
blast.swapDepths(999);
removeMovieClip(blast);
gun.swapDepths(999);
removeMovieClip(gun);
body.swapDepths(999);
removeMovieClip(body);
gotoAndStop(2);
}
i = 0;
while (i < 20) {
if (this.body.hitTest(_parent['l' + i].anim.hit)) {
hp -= 1;
_parent['l' + i].swapDepths(999);
removeMovieClip(_parent['l' + i]);
}
++i;
}
};
}
frame 2 {
time = 0;
onEnterFrame = function () {
++time;
if (time >= 1000) {
this.swapDepths(999);
removeMovieClip(this);
}
};
}
}
movieClip 359 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 359 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 27 {
play();
}
frame 28 {
stop();
}
movieClip 360 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 900;
raimspeed = 20;
rthrust = 0.15;
rmaxspd = 4;
}
}
}
instance game of movieClip 360 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 29 {
play();
}
frame 30 {
stop();
}
movieClip 362 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 362 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 31 {
play();
}
frame 32 {
stop();
}
movieClip 364 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 1000;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 364 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 33 {
play();
}
frame 34 {
stop();
}
movieClip 365 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 700;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 365 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 35 {
play();
}
frame 36 {
stop();
}
movieClip 367 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 367 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 37 {
play();
}
frame 38 {
stop();
}
movieClip 369 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 40;
aimspeed = 30;
bulletspeed = 2;
range = 600;
raimspeed = 20;
rthrust = 0.2;
rmaxspd = 4;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 40;
aimspeed = 30;
bulletspeed = 2;
range = 600;
raimspeed = 20;
rthrust = 0.2;
rmaxspd = 4;
}
}
}
instance game of movieClip 369 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 39 {
play();
}
frame 40 {
stop();
}
movieClip 371 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 371 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 41 {
play();
}
frame 42 {
stop();
}
movieClip 373 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 1200;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 373 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 43 {
play();
}
frame 44 {
stop();
}
movieClip 375 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 375 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 45 {
play();
}
frame 46 {
stop();
}
movieClip 382 {
}
movieClip 384 {
}
movieClip 390 {
frame 17 {
stop();
}
}
movieClip 391 {
frame 1 {
stop();
}
}
movieClip 392 {
frame 1 {
stop();
ot = 20;
t = ot;
hitbl = true;
xxx = 0;
yyy = 0;
dist = 1000;
health = 3;
range = 250;
turn = 0.04;
spd = 3;
bp = 3;
inrange = false;
hp = 1000;
dead = false;
onEnterFrame = function () {
if (dead == false) {
i = 0;
while (i < 20) {
if (this.hit.hitTest(_parent['l' + i].anim.hit)) {
hp -= 1;
inrange = true;
_parent['l' + i].swapDepths(999);
removeMovieClip(_parent['l' + i]);
if (gun._rotation > 180) {
yyy = -(bp * Math.cos(0.0174532925199433 * gun._rotation));
xxx = bp * Math.sin(0.0174532925199433 * gun._rotation);
} else {
yyy = bp * Math.cos(0.0174532925199433 * gun._rotation);
xxx = -(bp * Math.sin(0.0174532925199433 * gun._rotation));
}
}
++i;
}
if (this.hit.hitTest(_parent.char.hit)) {
_parent.char.dead = true;
}
_x = _x + xxx;
_y = _y + yyy;
if (xxx >= 2) {
anim._xscale = -100;
} else {
anim._xscale = 100;
}
if (hp <= 0) {
gotoAndStop(2);
dead = true;
}
while (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y + 34, true)) {
_y = _y - 0.1;
yyy = 0;
}
while (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y - 34, true)) {
_y = _y + 0.1;
yyy = 0;
}
while (_parent.ground.hitTest(_x + _parent._x + 12, _y + _parent._y - 12, true)) {
_x = _x - 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x - 12, _y + _parent._y - 12, true)) {
_x = _x + 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x + 12, _y + _parent._y + 12, true)) {
_x = _x - 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x - 12, _y + _parent._y + 12, true)) {
_x = _x + 0.1;
xxx = 0;
}
dist = Math.sqrt(Math.pow(_x - _parent.char._x, 2) + Math.pow(_y - _parent.char._y, 2));
if (dist <= range) {
inrange = true;
}
if (inrange == true) {
anim.gotoAndStop(2);
if (gun._rotation > 180) {
yy = spd * Math.cos(0.0174532925199433 * gun._rotation);
xx = -(spd * Math.sin(0.0174532925199433 * gun._rotation));
} else {
yy = -(spd * Math.cos(0.0174532925199433 * gun._rotation));
xx = spd * Math.sin(0.0174532925199433 * gun._rotation);
}
if (xx > xxx) {
xxx += turn;
} else {
xxx -= turn;
}
if (yy > yyy) {
yyy += turn;
} else {
yyy -= turn;
}
} else {
anim.gotoAndStop(1);
xxx *= 0.95;
yyy *= 0.95;
}
}
};
}
frame 2 {
time = 0;
onEnterFrame = function () {
++time;
if (time >= 1000) {
this.swapDepths(999);
removeMovieClip(this);
}
};
}
}
movieClip 393 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 393 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 47 {
play();
}
frame 48 {
stop();
}
movieClip 395 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 395 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 49 {
play();
}
frame 50 {
stop();
}
movieClip 397 {
frame 1 {
var t = _parent.reloadspeed;
this.swapDepths(999999);
var inrange = true;
var ot = _parent.reloadspeed;
var dist = 0;
var rang = _parent.range;
var d = 0;
g = 999999;
gs = false;
activated = true;
onEnterFrame = function () {
if (activated == true) {
if (_rotation <= 0) {
_xscale = -100;
} else {
_xscale = 100;
}
dist = Math.sqrt(Math.pow(_x + _parent._x - _parent._parent.char._x, 2) + Math.pow(_y + _parent._y - _parent._parent.char._y, 2));
if (dist <= rang) {
inrange = true;
} else {
inrange = false;
}
if (inrange == true) {
if (t <= 25 && gs == false) {
++g;
duplicateMovieClip(_parent.hax, 'y' + g, g + 50000);
gs = true;
}
if (t <= 0) {
gs = false;
++d;
duplicateMovieClip(_parent.blast, 'l' + d, d + 5000);
t = ot;
} else {
--t;
}
}
myRadians = Math.atan2(_parent.target._y - _y, _parent.target._x - _x);
myDegrees = Math.round(myRadians * 180 / 3.14);
this._rotation = myDegrees + 90;
}
};
onMouseDown = function () {
activated = true;
};
}
}
movieClip 402 {
}
movieClip 403 {
frame 1 {
stop();
if (this._name != 'blast') {
spd = 40;
_x = _parent.gun._x;
_y = _parent.gun._y;
hh = _parent.gun._rotation;
_rotation = hh;
hit = false;
} else {
_visible = false;
}
onEnterFrame = function () {
if (this._name != 'blast') {
if (this.hitar.hitTest(_parent._parent.char.hit)) {
_parent._parent.char.dead = true;
}
while (_parent._parent.ground.hitTest(_x + _parent._x + _parent._parent._x, _y + _parent._y + _parent._parent._y, true)) {
spd = 1;
play();
if (_rotation > 180) {
_y = _y - spd * Math.cos(0.0174532925199433 * hh);
_x = _x + spd * Math.sin(0.0174532925199433 * hh);
} else {
_y = _y + spd * Math.cos(0.0174532925199433 * hh);
_x = _x - spd * Math.sin(0.0174532925199433 * hh);
}
hit = true;
}
}
if (hit == false && !_parent.ground.hitTest(_x + _parent._x, _y + _parent._y, true)) {
if (_rotation > 180) {
_y = _y + spd * Math.cos(0.0174532925199433 * hh);
_x = _x - spd * Math.sin(0.0174532925199433 * hh);
} else {
_y = _y - spd * Math.cos(0.0174532925199433 * hh);
_x = _x + spd * Math.sin(0.0174532925199433 * hh);
}
spd = _parent.bulletspeed;
}
};
}
frame 49 {
this.swapDepths(999);
removeMovieClip(this);
}
}
movieClip 404 {
frame 1 {
xdif = 0;
ydif = 0;
onEnterFrame = function () {
if (_parent.gun.inrange == true && _parent.gun.activated == true) {
xdif = -_parent._parent.char._x + this._x + _parent._x;
this._x -= xdif / _parent.aimspeed;
ydif = -_parent._parent.char._y + this._y + _parent._y;
this._y -= ydif / _parent.aimspeed;
} else {
xdif = -_parent.gun._x + this._x;
this._x -= xdif / _parent.aimspeed;
ydif = -_parent.gun._y + this._y + 10;
this._y -= ydif / _parent.aimspeed;
}
};
}
}
movieClip 420 {
frame 1 {
stop();
if (this._name != 'hax') {
_x = 0;
_y = 0;
i = 25;
play();
} else {
this._visible = false;
}
onEnterFrame = function () {
if (this._name != 'hax') {
if (i >= 1) {
--i;
_rotation = 270 + _parent.gun._rotation;
}
}
};
}
}
movieClip 421 {
frame 1 {
stop();
if (this._name != 'hax') {
_x = 0;
_y = 0;
i = 25;
play();
} else {
this._visible = false;
}
onEnterFrame = function () {
if (this._name != 'hax') {
if (i >= 1) {
--i;
_rotation = _parent.gun._rotation;
}
}
};
}
frame 46 {
this.swapDepths(99);
removeMovieClip(this);
}
}
movieClip 423 {
}
movieClip 433 {
frame 43 {
stop();
}
}
movieClip 434 {
frame 1 {
hp = 15;
this.swapDepths(_level0.til);
_level0.til += 1;
stop();
onEnterFrame = function () {
if (hp <= 0) {
if (_level0.music.mute == false) {
_level0.gd.play();
}
blast.swapDepths(999);
removeMovieClip(blast);
gun.swapDepths(9999);
removeMovieClip(gun);
body.swapDepths(99999);
removeMovieClip(body);
gotoAndStop(2);
}
i = 0;
while (i < 20) {
if (this.body.hitTest(_parent['l' + i].anim.hit)) {
hp -= 1;
_parent['l' + i].swapDepths(999);
removeMovieClip(_parent['l' + i]);
}
++i;
}
};
}
frame 2 {
time = 0;
onEnterFrame = function () {
++time;
if (time >= 1000) {
this.swapDepths(999);
removeMovieClip(this);
}
};
}
}
movieClip 435 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 30;
aimspeed = 40;
bulletspeed = 5;
range = 1000;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 70;
aimspeed = 30;
bulletspeed = 2;
range = 700;
raimspeed = 20;
rthrust = 0.2;
rmaxspd = 4;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 70;
aimspeed = 30;
bulletspeed = 2;
range = 700;
raimspeed = 20;
rthrust = 0.2;
rmaxspd = 4;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 70;
aimspeed = 30;
bulletspeed = 2;
range = 700;
raimspeed = 20;
rthrust = 0.2;
rmaxspd = 4;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 70;
aimspeed = 30;
bulletspeed = 2;
range = 700;
raimspeed = 20;
rthrust = 0.2;
rmaxspd = 4;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 70;
aimspeed = 30;
bulletspeed = 2;
range = 700;
raimspeed = 20;
rthrust = 0.2;
rmaxspd = 4;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 70;
aimspeed = 30;
bulletspeed = 2;
range = 700;
raimspeed = 20;
rthrust = 0.2;
rmaxspd = 4;
}
}
}
instance game of movieClip 435 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 51 {
play();
}
frame 52 {
stop();
}
movieClip 437 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 437 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 53 {
play();
}
frame 54 {
stop();
}
movieClip 439 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 439 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 55 {
play();
}
frame 56 {
stop();
}
movieClip 441 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 441 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 57 {
play();
}
frame 58 {
stop();
}
movieClip 442 {
frame 1 {
stop();
ot = 20;
t = ot;
hitbl = true;
xxx = 0;
yyy = 0;
dist = 1000;
health = 3;
range = 400;
turn = 0.1;
spd = 8;
bp = 3;
inrange = false;
hp = 1000;
dead = false;
onEnterFrame = function () {
if (dead == false) {
i = 0;
while (i < 20) {
if (this.hit.hitTest(_parent['l' + i].anim.hit)) {
hp -= 1;
inrange = true;
_parent['l' + i].swapDepths(999);
removeMovieClip(_parent['l' + i]);
if (gun._rotation > 180) {
yyy = -(bp * Math.cos(0.0174532925199433 * gun._rotation));
xxx = bp * Math.sin(0.0174532925199433 * gun._rotation);
} else {
yyy = bp * Math.cos(0.0174532925199433 * gun._rotation);
xxx = -(bp * Math.sin(0.0174532925199433 * gun._rotation));
}
}
++i;
}
if (this.hit.hitTest(_parent.char.hit)) {
_parent.char.dead = true;
}
_x = _x + xxx;
_y = _y + yyy;
if (xxx >= 2) {
anim._xscale = -100;
} else {
anim._xscale = 100;
}
if (hp <= 0) {
gotoAndStop(2);
dead = true;
}
while (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y + 34, true)) {
_y = _y - 0.1;
yyy = 0;
}
while (_parent.ground.hitTest(_x + _parent._x, _y + _parent._y - 34, true)) {
_y = _y + 0.1;
yyy = 0;
}
while (_parent.ground.hitTest(_x + _parent._x + 12, _y + _parent._y - 12, true)) {
_x = _x - 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x - 12, _y + _parent._y - 12, true)) {
_x = _x + 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x + 12, _y + _parent._y + 12, true)) {
_x = _x - 0.1;
xxx = 0;
}
while (_parent.ground.hitTest(_x + _parent._x - 12, _y + _parent._y + 12, true)) {
_x = _x + 0.1;
xxx = 0;
}
dist = Math.sqrt(Math.pow(_x - _parent.char._x, 2) + Math.pow(_y - _parent.char._y, 2));
if (dist <= range) {
inrange = true;
}
if (inrange == true) {
anim.gotoAndStop(2);
if (gun._rotation > 180) {
yy = spd * Math.cos(0.0174532925199433 * gun._rotation);
xx = -(spd * Math.sin(0.0174532925199433 * gun._rotation));
} else {
yy = -(spd * Math.cos(0.0174532925199433 * gun._rotation));
xx = spd * Math.sin(0.0174532925199433 * gun._rotation);
}
if (xx > xxx) {
xxx += turn;
} else {
xxx -= turn;
}
if (yy > yyy) {
yyy += turn;
} else {
yyy -= turn;
}
} else {
anim.gotoAndStop(1);
xxx *= 0.95;
yyy *= 0.95;
}
}
};
}
frame 2 {
time = 0;
onEnterFrame = function () {
++time;
if (time >= 1000) {
this.swapDepths(999);
removeMovieClip(this);
}
};
}
}
movieClip 443 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 443 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 59 {
play();
}
frame 60 {
stop();
}
movieClip 445 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 445 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 61 {
play();
}
frame 62 {
stop();
}
movieClip 447 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 30;
aimspeed = 40;
bulletspeed = 5;
range = 1000;
}
}
}
instance game of movieClip 447 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 63 {
play();
}
frame 64 {
stop();
}
movieClip 449 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 449 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 65 {
play();
}
frame 66 {
stop();
}
movieClip 455 {
}
movieClip 456 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 30;
aimspeed = 40;
bulletspeed = 5;
range = 1000;
}
}
}
instance game of movieClip 456 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 67 {
play();
}
frame 68 {
stop();
}
movieClip 458 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 458 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 69 {
play();
}
frame 70 {
stop();
}
movieClip 460 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 20;
aimspeed = 40;
bulletspeed = 6;
range = 400;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 20;
aimspeed = 40;
bulletspeed = 6;
range = 400;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 20;
aimspeed = 40;
bulletspeed = 6;
range = 400;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 20;
aimspeed = 40;
bulletspeed = 6;
range = 400;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 20;
aimspeed = 40;
bulletspeed = 6;
range = 400;
}
}
}
instance game of movieClip 460 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 71 {
play();
}
frame 72 {
stop();
}
movieClip 462 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 462 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 73 {
play();
}
frame 74 {
stop();
}
movieClip 464 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 30;
aimspeed = 40;
bulletspeed = 5;
range = 1000;
}
}
}
instance game of movieClip 464 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 75 {
play();
}
frame 76 {
stop();
}
movieClip 466 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 67;
aimspeed = 1;
bulletspeed = 6;
range = 3000;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 55;
aimspeed = 1;
bulletspeed = 6;
range = 3000;
}
}
}
instance game of movieClip 466 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 77 {
play();
}
frame 78 {
stop();
}
movieClip 468 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 30;
aimspeed = 40;
bulletspeed = 5;
range = 1000;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 75;
aimspeed = 30;
bulletspeed = 2;
range = 3500;
raimspeed = 20;
rthrust = 0.15;
rmaxspd = 5;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 65;
aimspeed = 30;
bulletspeed = 2;
range = 3500;
raimspeed = 20;
rthrust = 0.15;
rmaxspd = 5;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 55;
aimspeed = 30;
bulletspeed = 2;
range = 3500;
raimspeed = 20;
rthrust = 0.15;
rmaxspd = 5;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 45;
aimspeed = 30;
bulletspeed = 2;
range = 3500;
raimspeed = 20;
rthrust = 0.15;
rmaxspd = 5;
}
}
}
instance game of movieClip 468 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 79 {
play();
}
frame 80 {
stop();
}
movieClip 470 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 1500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 40;
aimspeed = 2;
bulletspeed = 20;
range = 1000;
}
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 60;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 10;
rthrust = 0.1;
rmaxspd = 4;
}
}
instance of movieClip 434 {
onClipEvent (load) {
reloadspeed = 40;
aimspeed = 2;
bulletspeed = 20;
range = 1000;
}
}
}
instance game of movieClip 470 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 81 {
play();
}
frame 82 {
stop();
}
movieClip 474 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
}
instance game of movieClip 474 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
}
onClipEvent (enterFrame) {
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350);
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250);
this._y -= ym / 1;
}
}
frame 83 {
play();
}
frame 84 {
stop();
shake = false;
}
movieClip 478 {
}
movieClip 482 {
frame 1 {
stop();
this.swapDepths(9999);
d = 1;
sm = 1;
hp = 22;
stop();
onEnterFrame = function () {
if (hp <= -1) {
_level0.nextFrame();
}
if (hp <= 16) {
if (hp <= 10) {
if (hp <= 5) {
gotoAndStop(4);
_level0.shake = true;
} else {
gotoAndStop(3);
}
} else {
gotoAndStop(2);
}
}
i = 0;
while (i < 20) {
if (this.hit.hitTest(_parent['l' + i].anim.hit)) {
hp -= 1;
_parent['l' + i].swapDepths(999);
removeMovieClip(_parent['l' + i]);
}
++i;
}
};
}
}
movieClip 483 {
frame 1 {
spd = 10;
space = 5;
var pn = 0;
}
instance of movieClip 358 {
onClipEvent (load) {
reloadspeed = 90;
aimspeed = 30;
bulletspeed = 2;
range = 500;
raimspeed = 20;
rthrust = 0.1;
rmaxspd = 3;
}
}
}
instance game of movieClip 483 {
onClipEvent (load) {
xm = 0;
ym = 0;
i = 10;
sot = 3;
st = sot;
sx = 0;
sy = 0;
}
onClipEvent (enterFrame) {
if (_parent.shake == true) {
if (st <= 0) {
st = sot;
sx = random(20) - 10;
sy = random(20) - 10;
} else {
--st;
}
}
xm = this.char._x + this._x - ((_root._xmouse - 350) / -5 + 350) + sx;
this._x -= xm / 1;
ym = this.char._y + this._y - ((_root._ymouse - 250) / -5 + 250) - sy;
this._y -= ym / 1;
}
}
movieClip 491 {
}
movieClip 493 {
}
movieClip 496 {
}
movieClip 498 {
}
movieClip 500 {
frame 847 {
stop();
}
}