Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.stufftoset = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
_root.percentloaded_txt.text = Math.floor(this.stufftoset) + "%";
setProperty(this, _xscale , this.stufftoset);
}
Frame 4
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
gotoAndPlay (2);
} else {
gotoAndPlay (10);
}
Frame 12
stop();
Frame 13
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("1cd3c255", this, 10301, true);
function soundeffects(soundeffectname, soundvolume) {
if (_global.sfxon == true) {
soundeffect.attachSound(soundeffectname);
soundeffect.start(0, 1);
soundeffect.setVolume(soundvolume);
}
}
_global.autofire = false;
_global.best_score = SharedObject.getLocal("user_data");
if (_global.best_score.data.user_highscore == undefined) {
_global.best_score.data.user_highscore = 0;
}
_global.menumusicstopping = false;
menumusic = new Sound(MusicPlayer);
menumusic.attachSound("Menu Music");
menumusic.start(0, 999);
_global.musicvolume = 8;
menumusic.setVolume(8);
currentmusic = "menu";
_global.musicon = true;
_global.sfxon = true;
soundeffect = new Sound(_root.SoundEffectPlayer);
Instance of Symbol 267 MovieClip "MusicPlayer" in Frame 13
onClipEvent (enterFrame) {
if (_global.menumusicstopping == true) {
if (_global.musicvolume > 0) {
_global.musicvolume = _global.musicvolume - 5;
_root.menumusic.setVolume(_global.musicvolume);
}
}
}
Instance of Symbol 267 MovieClip "StoryTeller" in Frame 774
onClipEvent (enterFrame) {
if (_global.musicvolume < 60) {
_global.musicvolume++;
_root.menumusic.setVolume(_global.musicvolume);
}
}
Frame 789
if ((_global.playthemusic == true) && (_global.musicon == true)) {
_root.soundeffects("Click", 50);
menumusic.start(_global.musicposition / 1000, 0);
_root.menumusic.onSoundComplete = function () {
menumusic.start(0, 999);
};
_global.musicvolume = 60;
menumusic.setVolume(60);
_global.playthemusic = false;
}
Frame 812
stop();
Frame 824
stop();
Frame 838
stop();
Frame 856
menumusic.stop();
_global.menumusicstopping = false;
Frame 857
function anglefrommouse(movieclipx, movieclipy) {
x = _xmouse - movieclipx;
y = (_ymouse - movieclipy) * -1;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
angle = angle * -1;
return(angle);
}
function anglefromhero(movieclipx, movieclipy) {
x = (_root.Porcupine._x + 50) - movieclipx;
y = ((_root.Porcupine._y + 50) - movieclipy) * -1;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
angle = angle * -1;
return(angle);
}
function soundeffects(soundeffectname, soundvolume) {
if (_global.sfxon == true) {
soundeffect.attachSound(soundeffectname);
soundeffect.start(0, 1);
soundeffect.setVolume(soundvolume);
}
}
_global.score = 0;
_global.canmove = true;
_root.maxhealth = 30;
_root.health = _root.maxhealth;
_root.rage = 0;
_root.ragelimit = 30;
_root.cloudname = 300;
_root.shotname = 1;
_root.enemyshotname = 51;
_root.smokename = 100;
_root.enemyname = 0;
_root.explosionname = 300;
_root.powerupname = 200;
_root.powerupclock = 0;
_root.shotreset = 5;
_root.trishot = false;
_root.laser = false;
_root.missile = false;
_root.enemycount = 0;
_root.corpseArrayx = new Array();
_root.corpseArrayy = new Array();
menumusic.stop();
gamemusic = new Sound(MusicPlayer);
gamemusic.attachSound("Game Music");
if (_global.musicon == true) {
gamemusic.start(0, 999);
}
_global.musicvolume = 50;
gamemusic.setVolume(50);
currentmusic = "menu";
_root.attachMovie("Porcudeath", "Porcupine", 10000);
_root.Porcudeath._x = 37;
_root.attachMovie("HUD", "HUD", 20000);
_root.HUD._x = 350 - (_root.HUD._width / 2);
_root.HUD._y = (_root.HUD._height / 2) + 5;
soundeffect = new Sound(_root.SoundEffectPlayer);
stop();
Instance of Symbol 391 MovieClip in Frame 857
onClipEvent (load) {
cloudrandomchance = 100;
}
onClipEvent (enterFrame) {
if (Math.floor(random(cloudrandomchance)) == 1) {
_root.cloudname++;
if (_root.cloudname > 400) {
_root.cloudname = 300;
}
_root.attachMovie("cloud", "cloud" add _root.cloudname, _root.Porcupine.getDepth() - _root.cloudname);
}
}
Instance of Symbol 393 MovieClip in Frame 857
onClipEvent (load) {
enemybasetimer = 50;
enemyrandomchance = 50;
enemytimer = enemybasetimer + Math.floor(random(enemyrandomchance));
countup = 0;
enemynumber = 1;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
countup++;
if (countup > 500) {
enemynumber = 2;
}
if (countup > 1000) {
enemynumber = 3;
}
if (countup > 1500) {
enemynumber = 4;
}
if (countup > 2000) {
enemynumber = 5;
}
if (countup > 2500) {
enemynumber = 6;
}
if (countup > 3000) {
enemynumber = 7;
}
if (countup > 3500) {
enemynumber = 8;
}
if (countup > 4000) {
enemynumber = 9;
}
if (countup > 4500) {
enemynumber = 10;
}
if (countup > 6000) {
enemynumber = 11;
}
if (countup > 7500) {
enemynumber = 12;
}
enemytimer--;
if (enemyrandomchance > 25) {
enemyrandomchance = enemyrandomchance - 0.0015;
_root.randomchance_txt.text = enemyrandomchance;
}
if ((enemytimer < 1) && (_root.enemycount < 4)) {
_root.enemycount++;
randomnumber = Math.floor(random(enemynumber)) + 1;
_root.enemyname++;
if (_root.enemyname > 100) {
_root.enemyname = 1;
}
if ((randomnumber == 1) or (randomnumber == 2)) {
_root.attachMovie("Alligator", "enemy" add _root.enemyname, _root.Porcupine.getDepth() + _root.enemyname);
}
if ((randomnumber == 3) or (randomnumber == 4)) {
_root.attachMovie("Rat", "enemy" add _root.enemyname, _root.Porcupine.getDepth() + _root.enemyname);
}
if ((randomnumber == 5) or (randomnumber == 6)) {
_root.attachMovie("Vulture", "enemy" add _root.enemyname, _root.Porcupine.getDepth() + _root.enemyname);
}
if ((randomnumber == 7) or (randomnumber == 8)) {
_root.attachMovie("Wolf", "enemy" add _root.enemyname, _root.Porcupine.getDepth() + _root.enemyname);
}
if ((randomnumber == 9) or (randomnumber == 10)) {
_root.attachMovie("Bat", "enemy" add _root.enemyname, _root.Porcupine.getDepth() + _root.enemyname);
}
if ((randomnumber == 11) or (randomnumber == 12)) {
_root.attachMovie("Shark", "enemy" add _root.enemyname, _root.Porcupine.getDepth() + _root.enemyname);
_root.enemycount++;
}
enemytimer = enemybasetimer + Math.floor(random(enemyrandomchance));
}
}
}
Instance of Symbol 397 MovieClip in Frame 857
onClipEvent (load) {
if (_global.autofire == true) {
gotoAndStop (858);
}
stop();
}
on (release) {
if (_global.autofire == false) {
this.gotoAndStop(2);
_global.autofire = true;
} else {
this.gotoAndStop(1);
_global.autofire = false;
}
}
Instance of Symbol 400 MovieClip in Frame 857
onClipEvent (load) {
stop();
if (_global.musicon == false) {
gotoAndStop (858);
}
}
on (release) {
if (_global.musicon == true) {
this.gotoAndStop(2);
_global.musicon = false;
_root.gamemusic.stop();
} else {
this.gotoAndStop(1);
_global.musicon = true;
_root.gamemusic.attachSound("Game Music");
_root.gamemusic.start(0, 999);
}
}
Instance of Symbol 403 MovieClip in Frame 857
onClipEvent (load) {
stop();
if (_global.sfxon == false) {
gotoAndStop (858);
}
}
on (release) {
if (_global.sfxon == true) {
this.gotoAndStop(2);
_global.sfxon = false;
} else {
this.gotoAndStop(1);
_global.sfxon = true;
}
}
Instance of Symbol 405 MovieClip in Frame 857
on (release) {
if ((_quality == "HIGH") or (_quality == "BEST")) {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Instance of Symbol 267 MovieClip "MusicPlayer" in Frame 857
onClipEvent (enterFrame) {
if (_global.menumusicstopping == true) {
if (_global.musicvolume > 0) {
_global.musicvolume--;
_root.menumusic.setVolume(_global.musicvolume);
}
}
}
Frame 858
function soundeffects(soundeffectname, soundvolume) {
if (_global.sfxon == true) {
soundeffect.attachSound(soundeffectname);
soundeffect.start(0, 1);
soundeffect.setVolume(soundvolume);
}
}
play();
soundeffect = new Sound(_root.SoundEffectPlayer);
Frame 859
_root.soundeffects("Crash", 100);
Frame 966
stop();
if (_global.score > _global.best_score.data.user_highscore) {
_global.best_score.data.user_highscore = _global.score;
_global.best_score.flush();
}
bestscore_txt.text = _global.best_score.data.user_highscore;
score_txt.text = _global.score;
score = _global.score;
_root.command = "init";
_root.loadVariables("highscores.php?" + int(Math.random() * 100000), "POST");
Frame 974
stop();
Symbol 13 Button
on (release) {
getURL ("http://www.soggyrocks.com", "_blank");
}
Symbol 35 MovieClip Frame 10
this.gotoAndPlay(2);
Symbol 42 MovieClip Frame 12
this.gotoAndPlay(2);
Symbol 49 MovieClip Frame 12
this.gotoAndPlay(2);
Symbol 76 MovieClip Frame 10
this.gotoAndPlay(2);
Instance of Symbol 35 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
this.stufftoset = (_root.health / _root.maxhealth) * 100;
setProperty(this, _xscale , this.stufftoset);
if (_root.health < (_root.maxhealth / 3)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 42 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
this.stufftoset = (_root.rage / _root.ragelimit) * 100;
setProperty(this, _xscale , this.stufftoset);
if (_root.rage == _root.ragelimit) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 49 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.rage == _root.ragelimit) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 66 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.trishot == true) {
this.gotoAndStop(2);
} else if (_root.shotreset == 1) {
this.gotoAndStop(3);
} else if (_root.laser == true) {
this.gotoAndStop(4);
} else if (_root.missile == true) {
this.gotoAndStop(5);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 71 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
this.stufftoset = (_root.powerupclock / 500) * 100;
setProperty(this, _xscale , this.stufftoset);
if (_root.trishot == true) {
this.gotoAndStop(2);
} else if (_root.shotreset == 1) {
this.gotoAndStop(3);
} else if (_root.laser == true) {
this.gotoAndStop(4);
} else if (_root.missile == true) {
this.gotoAndStop(5);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 76 MovieClip in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.health < (_root.maxhealth / 3)) {
this.play();
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 77 MovieClip in Symbol 78 MovieClip [HUD] Frame 1
onClipEvent (load) {
_parent.swapDepths(20000);
}
onClipEvent (enterFrame) {
charnumberofscore = String(_global.score).length;
if (charnumberofscore == 1) {
this.score_txt.text = "00000" add String(_global.score);
}
if (charnumberofscore == 2) {
this.score_txt.text = "0000" add String(_global.score);
}
if (charnumberofscore == 3) {
this.score_txt.text = "000" add String(_global.score);
}
if (charnumberofscore == 4) {
this.score_txt.text = "00" add String(_global.score);
}
if (charnumberofscore == 5) {
this.score_txt.text = "0" add String(_global.score);
}
if (charnumberofscore == 6) {
this.score_txt.text = String(_global.score);
}
this.rage_txt.text = _root.rage;
if (_root.health < 1) {
_root.gamemusic.stop();
_root.gotoAndPlay(_root._currentframe + 2);
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (this);
}
}
Symbol 84 MovieClip Frame 6
unloadMovie (_parent);
Instance of Symbol 84 MovieClip in Symbol 85 MovieClip [Shark_Corpse] Frame 1
onClipEvent (load) {
_parent._x = _root.corpseArrayx[_parent._name];
_parent._y = _root.corpseArrayy[_parent._name];
}
onClipEvent (enterFrame) {
if (this._currentframe == 7) {
unloadMovie (_parent);
}
}
Symbol 90 MovieClip Frame 1
stop();
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip Frame 1
onClipEvent (load) {
shotreset = 10;
timetillnextshot = shotreset;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this._rotation = _root.anglefromhero(_parent._parent._x + 50, _parent._parent._y);
if (timetillnextshot == 0) {
_root.enemyshotname++;
if (_root.enemyshotname > 99) {
_root.enemyshotname = 51;
}
_root.enemyshotrotation = this._rotation;
_root.enemyshotx = _parent._parent._x + 75;
_root.enemyshoty = _parent._parent._y - 45;
_root.attachMovie("SharkEnemyBullet", "enemyshot" add _root.enemyshotname, _root.Porcupine.getDepth() - _root.enemyshotname);
this.gotoAndPlay(2);
timetillnextshot = shotreset;
} else {
timetillnextshot--;
}
}
}
Instance of Symbol 91 MovieClip in Symbol 94 MovieClip [Shark] Frame 1
onClipEvent (load) {
speed = 3;
flyout = 400 + Math.floor(random(200));
floatheight = 150;
floatspeed = 3;
gravity = 1.1;
yspeed = 0;
_parent._x = 800;
_parent._y = 50 + Math.floor(random(350));
basefloat = _parent._y;
health = 20;
hitpause = 0;
powerupchance = 10;
scoreworth = 1500;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this.play();
this.jet.play();
if (_parent._x > flyout) {
_parent._x = _parent._x - speed;
}
yspeed = yspeed + gravity;
_parent._y = _parent._y + yspeed;
if (_parent._y > (basefloat + floatheight)) {
yspeed = yspeed - floatspeed;
}
if (_parent.hitTest(_root.Porcupine) && (health > 0)) {
if (hitpause == 0) {
hitpause = 10;
_root.health--;
_root.rage = _root.rage + 3;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = (_root.Porcupine._x - 45) + Math.floor(random(90));
_root.bloodytogoto = (_root.Porcupine._y - 25) + Math.floor(random(50));
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
}
hitpause--;
}
i = 0;
while (i < 52) {
if (_parent.hit_tester.hitTest("_root.shot" add i) == true) {
_global.score++;
_root.bloodname++;
_root.bloodxtogoto = eval (("_root.shot" add i) add "._x");
_root.bloodytogoto = eval (("_root.shot" add i) add "._y");
checkdamage = eval (("_root.shot" add i) add ".damage");
_root.display_txt.text = checkdamage;
if (checkdamage != 3) {
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
} else {
_root.explosionname++;
if (_root.explosionname > 399) {
_root.explosionname = 300;
}
_root.attachMovie("MissileExplosion", "Explosion" add _root.explosionname, _parent.getDepth() + _root.explosionname);
}
health = health - eval (("_root.shot" add i) add ".damage");
unloadMovie ("_root.shot" add i);
}
i++;
}
if (_parent.hit_tester.hitTest("_root.Explosion" add _root.explosionname) == true) {
health = health - 0.3;
}
if (health < 1) {
_global.score = _global.score + scoreworth;
_root.bloodname++;
_root.corpseArrayx["Corpse" add _root.bloodname] = _parent._x;
_root.corpseArrayy["Corpse" add _root.bloodname] = _parent._y;
if (Math.floor(random(powerupchance)) == 1) {
_root.powerupname++;
if (_root.powerupname > 225) {
_root.powerupname = 201;
}
_root.attachMovie("ShotPowerUps", "PowerUps" add _root.powerupname, _root.Porcupine.getDepth() - _root.powerupname);
}
_root.rage++;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.enemycount = _root.enemycount - 2;
_root.attachMovie("Shark_Corpse", "Corpse" add _root.bloodname, _parent.getDepth());
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (_parent);
}
} else {
this.stop();
this.jet.stop();
health = 0;
}
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 7
this.gotoAndPlay(4);
Symbol 107 MovieClip Frame 1
stop();
Instance of Symbol 99 MovieClip "Leg" in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
if (rotationgoal > _rotation) {
_rotation = (_rotation + 10);
}
if (rotationgoal < _rotation) {
_rotation = (_rotation - 10);
}
}
Instance of Symbol 107 MovieClip "Arm" in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = _root.anglefrommouse(_root.Porcupine._x, _root.Porcupine._y);
if ((_root.shooting == true) or (_global.autofire == true)) {
if (timetillnextshot == 0) {
_root.shotname++;
if (_root.shotname > 50) {
_root.shotname = 1;
}
if ((_root.laser == false) && (_root.missile == false)) {
_root.soundeffects("Gun", 50);
_root.attachMovie("Bullet", "shot" add _root.shotname, _root.Porcupine.getDepth() - _root.shotname);
} else if (_root.laser == true) {
_root.soundeffects("LaserFx", 75);
_root.attachMovie("Laser", "shot" add _root.shotname, _root.Porcupine.getDepth() - _root.shotname);
} else if (_root.missile == true) {
_root.attachMovie("Missile", "shot" add _root.shotname, _root.Porcupine.getDepth() - _root.shotname);
}
if (_root.trishot == true) {
_root.shotname++;
_root.attachMovie("Trishot_1", "shot" add _root.shotname, _root.Porcupine.getDepth() - _root.shotname);
_root.shotname++;
_root.attachMovie("Trishot_2", "shot" add _root.shotname, _root.Porcupine.getDepth() - _root.shotname);
}
this.gotoAndPlay(2);
this.gotoAndPlay(2);
timetillnextshot = _root.shotreset;
} else {
timetillnextshot--;
}
}
}
onClipEvent (mouseDown) {
_root.shooting = true;
this.gotoAndPlay(2);
if ((_root.laser == false) && (_root.missile == false)) {
timetillnextshot = 2;
} else if (_root.missile == false) {
timetillnextshot = 15;
} else {
timetillnextshot = 20;
}
}
onClipEvent (mouseUp) {
this.gotoAndStop(1);
_root.shooting = false;
}
onClipEvent (load) {
if (_global.autofire == true) {
timetillnextshot = 2;
_root.shooting = true;
}
}
Instance of Symbol 108 MovieClip "inner" in Symbol 109 MovieClip [Porcudeath] Frame 1
onClipEvent (load) {
startedjetting = false;
_parent.swapDepths(10000);
xspeed = 0;
yspeed = 0;
timetillnextsmoke = 3;
}
onClipEvent (enterFrame) {
if ((Key.isDown(16) == true) && (_root.rage == _root.ragelimit)) {
_global.canmove = false;
_root.attachMovie("RageAnimation", "Rage", 10000000000);
_root.Rage._y = 250;
unloadMovie (_parent);
}
if (_root.powerupclock > 0) {
_root.powerupclock--;
}
if (_root.powerupclock == 0) {
_root.shotreset = 5;
_root.trishot = 0;
_root.laser = 0;
_root.missile = 0;
}
if (Key.isDown(65)) {
xspeed = xspeed - 1;
this.Leg.rotationgoal = 30;
if (xspeed < -10) {
xspeed = -10;
}
}
if (Key.isDown(68)) {
xspeed = xspeed + 1;
this.Leg.rotationgoal = 140;
if (xspeed > 10) {
xspeed = 10;
}
}
if (Key.isDown(87)) {
if (_global.canmove == true) {
_root.smokename++;
if (_root.smokename > 200) {
_root.smokename = 100;
}
_root.attachMovie("Smoke", "smoke" add _root.smokename, _root.Porcupine.getDepth() - _root.smokename);
}
yspeed = yspeed - 2;
if (startedjetting == false) {
this.JetPac.gotoAndPlay(2);
startedjetting = true;
}
if (yspeed < -10) {
yspeed = -10;
}
} else if ((this.JetPac._currentframe > 1) && (this.JetPac._currentframe < 8)) {
this.JetPac.gotoAndPlay(8);
startedjetting = false;
}
yspeed++;
if (yspeed > 10) {
yspeed = 10;
}
if ((xspeed < 0) && (_parent._x < ((xspeed * -1) + 0))) {
_parent._x = 0;
xspeed = 0;
} else if ((xspeed > 0) && (_parent._x > ((Stage.width - xspeed) - 80))) {
_parent._x = Stage.width - 80;
xspeed = 0;
} else {
_parent._x = _parent._x + xspeed;
}
if ((yspeed < 0) && (_parent._y < ((yspeed * -1) + 43))) {
if (_parent._y > 40) {
_parent._y = 43;
yspeed = 0;
} else {
yspeed = 5;
}
} else {
_parent._y = _parent._y + yspeed;
}
if (_root.health < 1) {
unloadMovie (this.JetPac);
unloadMovie (_parent);
}
if (_parent._y > 600) {
_root.health = 0;
}
}
Symbol 114 MovieClip [RageAnimation] Frame 13
_root.soundeffects("RageCharge", 100);
Symbol 114 MovieClip [RageAnimation] Frame 28
_root.soundeffects("RageShots", 100);
Symbol 114 MovieClip [RageAnimation] Frame 37
_root.soundeffects("RageShots", 100);
Symbol 114 MovieClip [RageAnimation] Frame 46
_root.soundeffects("RageShots", 100);
Symbol 114 MovieClip [RageAnimation] Frame 55
_root.soundeffects("RageShots", 100);
Symbol 114 MovieClip [RageAnimation] Frame 93
_root.soundeffects("RageRelease", 100);
Symbol 114 MovieClip [RageAnimation] Frame 108
_global.canmove = true;
_root.rage = 0;
_root.attachMovie("Porcudeath", "Porcupine", 10000);
_root.Porcupine._x = 302.1;
_root.Porcupine._y = 250;
unloadMovie (this);
Instance of Symbol 65 MovieClip in Symbol 115 MovieClip [Missile] Frame 1
onClipEvent (load) {
_parent.damage = 3;
shotspeed = 5;
rotation = _root.Porcupine.inner.Arm._rotation + 90;
_parent._rotation = rotation - 90;
if (rotation > 360) {
rotation = (360 - rotation) * -1;
}
xmov = Math.sin(rotation * (Math.PI/180)) * shotspeed;
ymov = (Math.cos(rotation * (Math.PI/180)) * shotspeed) * -1;
_parent._x = (_root.Porcupine._x + 35) + (xmov * 4);
_parent._y = (_root.Porcupine._y - 10) + (ymov * 4);
}
onClipEvent (enterFrame) {
xmov = xmov * 1.2;
ymov = ymov * 1.2;
_parent._x = _parent._x + xmov;
_parent._y = _parent._y + ymov;
if ((((_parent._x < -10) or (_parent._y < -10)) or (_parent._x > 700)) or (_parent._y > 500)) {
unloadMovie (_parent);
}
}
Symbol 121 MovieClip Frame 6
unloadMovie (this);
Instance of Symbol 121 MovieClip in Symbol 122 MovieClip [Bat_Corpse] Frame 1
onClipEvent (load) {
_parent._x = _root.corpseArrayx[_parent._name];
_parent._y = _root.corpseArrayy[_parent._name];
}
onClipEvent (enterFrame) {
if (this._currentframe == 7) {
unloadMovie (_parent);
}
}
Symbol 133 MovieClip Frame 1
_root.soundeffects("Explosion", 75);
Instance of Symbol 133 MovieClip in Symbol 134 MovieClip [GrenadeExplosion] Frame 1
onClipEvent (load) {
this.bloodname = _root.bloodname;
_parent._x = _root.bloodxtogoto;
_parent._y = _root.bloodytogoto + 6;
}
onClipEvent (enterFrame) {
if (this._currentframe == 11) {
unloadMovie (_parent);
}
}
Instance of Symbol 133 MovieClip in Symbol 135 MovieClip [MissileExplosion] Frame 1
onClipEvent (load) {
this.bloodname = _root.bloodname;
_parent._x = _root.bloodxtogoto;
_parent._y = _root.bloodytogoto;
}
onClipEvent (enterFrame) {
if (this._currentframe == 11) {
unloadMovie (_parent);
}
}
Symbol 137 MovieClip Frame 20
stop();
Instance of Symbol 138 MovieClip in Symbol 139 MovieClip [Grenade] Frame 1
onClipEvent (load) {
fallspeed = 12;
_parent._x = _root.enemyshotx;
_parent._y = _root.enemyshoty;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + fallspeed;
if ((((_parent._x < -10) or (_parent._y < -10)) or (_parent._x > 700)) or (_parent._y > 500)) {
unloadMovie (_parent);
}
if (_parent.hitTest(_root.Porcupine)) {
_root.health = _root.health - 2;
_root.rage = _root.rage + 6;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = _parent._x;
_root.bloodytogoto = _parent._y;
_root.attachMovie("GrenadeExplosion", "GrenadeExplosion" add _root.bloodname, (_parent.getDepth() + 100000) + _root.bloodname);
unloadMovie (_parent);
}
}
Symbol 145 MovieClip Frame 1
stop();
Instance of Symbol 152 MovieClip in Symbol 153 MovieClip [Bat] Frame 1
onClipEvent (load) {
speed = 8;
_parent._x = 800;
_parent._y = 50 + Math.floor(random(100));
health = 5;
hitpause = 0;
powerupchance = 10;
shotbase = 20;
timetillnextshot = shotbase + Math.floor(random(40));
scoreworth = 350;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this.play();
this.jet.play();
this.wing.play();
_parent._x = _parent._x - speed;
if (_parent._x < -250) {
_root.enemycount--;
unloadMovie (_parent);
}
timetillnextshot--;
if (timetillnextshot < 1) {
_root.enemyshotname++;
if (_root.enemyshotname > 99) {
_root.enemyshotname = 51;
}
_root.enemyshotrotation = 180;
_root.enemyshotx = _parent._x + 10;
_root.enemyshoty = _parent._y + 20;
this.bombbay.gotoAndPlay(2);
_root.attachMovie("Grenade", "enemyshot" add _root.enemyshotname, _root.Porcupine.getDepth() - _root.enemyshotname);
timetillnextshot = shotbase + Math.floor(random(40));
}
if (_parent.hitTest(_root.Porcupine) && (health > 0)) {
if (hitpause == 0) {
hitpause = 10;
_root.health--;
_root.rage = _root.rage + 3;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = (_root.Porcupine._x - 45) + Math.floor(random(90));
_root.bloodytogoto = (_root.Porcupine._y - 25) + Math.floor(random(50));
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
}
hitpause--;
}
i = 0;
while (i < 52) {
if (_parent.hit_tester.hitTest("_root.shot" add i) == true) {
_global.score++;
_root.bloodname++;
_root.bloodxtogoto = eval (("_root.shot" add i) add "._x");
_root.bloodytogoto = eval (("_root.shot" add i) add "._y");
checkdamage = eval (("_root.shot" add i) add ".damage");
_root.display_txt.text = checkdamage;
if (checkdamage != 3) {
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
} else {
_root.explosionname++;
if (_root.explosionname > 399) {
_root.explosionname = 300;
}
_root.attachMovie("MissileExplosion", "Explosion" add _root.explosionname, _parent.getDepth() + _root.explosionname);
}
health = health - eval (("_root.shot" add i) add ".damage");
unloadMovie ("_root.shot" add i);
}
i++;
}
if (_parent.hit_tester.hitTest("_root.Explosion" add _root.explosionname) == true) {
health = health - 0.3;
}
if (health < 1) {
_global.score = _global.score + scoreworth;
_root.bloodname++;
_root.corpseArrayx["Corpse" add _root.bloodname] = _parent._x;
_root.corpseArrayy["Corpse" add _root.bloodname] = _parent._y;
if (Math.floor(random(powerupchance)) == 1) {
_root.powerupname++;
if (_root.powerupname > 225) {
_root.powerupname = 201;
}
_root.attachMovie("ShotPowerUps", "PowerUps" add _root.powerupname, _root.Porcupine.getDepth() - _root.powerupname);
}
_root.rage++;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.enemycount--;
_root.attachMovie("Bat_Corpse", "Corpse" add _root.bloodname, _parent.getDepth());
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (_parent);
}
} else {
this.stop();
this.jet.stop();
this.wing.stop();
health = 0;
}
}
Symbol 159 MovieClip Frame 6
unloadMovie (_parent);
Instance of Symbol 159 MovieClip in Symbol 160 MovieClip [Wolf_Corpse] Frame 1
onClipEvent (load) {
_parent._x = _root.corpseArrayx[_parent._name];
_parent._y = _root.corpseArrayy[_parent._name];
}
onClipEvent (enterFrame) {
if (this._currentframe == 7) {
unloadMovie (_parent);
}
}
Symbol 164 MovieClip Frame 1
stop();
Instance of Symbol 164 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (load) {
shotreset = 20;
timetillnextshot = shotreset;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this._rotation = _root.anglefromhero(_parent._parent._x, _parent._parent._y);
if (timetillnextshot == 0) {
_root.enemyshotname++;
if (_root.enemyshotname > 99) {
_root.enemyshotname = 51;
}
_root.enemyshotrotation = this._rotation;
_root.enemyshotx = _parent._parent._x + 55;
_root.enemyshoty = _parent._parent._y - 45;
_root.attachMovie("EnemyBullet", "enemyshot" add _root.enemyshotname, _root.Porcupine.getDepth() - _root.enemyshotname);
this.gotoAndPlay(2);
timetillnextshot = shotreset;
} else {
timetillnextshot--;
}
}
}
Instance of Symbol 165 MovieClip in Symbol 166 MovieClip [Wolf] Frame 1
onClipEvent (load) {
speed = 3;
flyout = 400 + Math.floor(random(200));
floatheight = 100;
floatspeed = 2;
gravity = 1;
yspeed = 0;
_parent._x = 800;
_parent._y = 50 + Math.floor(random(350));
basefloat = _parent._y;
health = 15;
hitpause = 0;
powerupchance = 10;
scoreworth = 500;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this.play();
this.jet.play();
if (_parent._x > flyout) {
_parent._x = _parent._x - speed;
}
yspeed = yspeed + gravity;
_parent._y = _parent._y + yspeed;
if (_parent._y > (basefloat + floatheight)) {
yspeed = yspeed - floatspeed;
}
if (_parent.hitTest(_root.Porcupine) && (health > 0)) {
if (hitpause == 0) {
hitpause = 10;
_root.health--;
_root.rage = _root.rage + 3;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = (_root.Porcupine._x - 45) + Math.floor(random(90));
_root.bloodytogoto = (_root.Porcupine._y - 25) + Math.floor(random(50));
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
}
hitpause--;
}
i = 0;
while (i < 52) {
if (_parent.hit_tester.hitTest("_root.shot" add i) == true) {
_global.score++;
_root.bloodname++;
_root.bloodxtogoto = eval (("_root.shot" add i) add "._x");
_root.bloodytogoto = eval (("_root.shot" add i) add "._y");
checkdamage = eval (("_root.shot" add i) add ".damage");
_root.display_txt.text = checkdamage;
if (checkdamage != 3) {
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
} else {
_root.explosionname++;
if (_root.explosionname > 399) {
_root.explosionname = 300;
}
_root.attachMovie("MissileExplosion", "Explosion" add _root.explosionname, _parent.getDepth() + _root.explosionname);
}
health = health - eval (("_root.shot" add i) add ".damage");
unloadMovie ("_root.shot" add i);
}
i++;
}
if (_parent.hit_tester.hitTest("_root.Explosion" add _root.explosionname) == true) {
health = health - 0.3;
}
if (health < 1) {
_global.score = _global.score + scoreworth;
_root.bloodname++;
_root.corpseArrayx["Corpse" add _root.bloodname] = _parent._x;
_root.corpseArrayy["Corpse" add _root.bloodname] = _parent._y;
if (Math.floor(random(powerupchance)) == 1) {
_root.powerupname++;
if (_root.powerupname > 225) {
_root.powerupname = 201;
}
_root.attachMovie("ShotPowerUps", "PowerUps" add _root.powerupname, _root.Porcupine.getDepth() - _root.powerupname);
}
_root.rage++;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.enemycount--;
_root.attachMovie("Wolf_Corpse", "Corpse" add _root.bloodname, _parent.getDepth());
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (_parent);
}
} else {
this.stop();
this.jet.stop();
health = 0;
}
}
Symbol 172 MovieClip Frame 6
unloadMovie (_parent);
Instance of Symbol 172 MovieClip in Symbol 173 MovieClip [Vulture_Corpse] Frame 1
onClipEvent (load) {
_parent._x = _root.corpseArrayx[_parent._name];
_parent._y = _root.corpseArrayy[_parent._name];
}
onClipEvent (enterFrame) {
if (this._currentframe == 7) {
unloadMovie (_parent);
}
}
Symbol 182 MovieClip Frame 1
stop();
Instance of Symbol 183 MovieClip in Symbol 184 MovieClip [Vulture] Frame 1
onClipEvent (load) {
speed = 4;
_parent._x = 800;
_parent._y = 50 + Math.floor(random(400));
health = 7;
hitpause = 0;
powerupchance = 10;
shotreset = 40;
timetillnextshot = shotreset;
scoreworth = 250;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this.play();
this.jet.play();
this.wing.play();
_parent._x = _parent._x - speed;
if (_parent._x < -250) {
_root.enemycount--;
unloadMovie (_parent);
}
timetillnextshot--;
if (timetillnextshot < 1) {
_root.enemyshotname++;
if (_root.enemyshotname > 99) {
_root.enemyshotname = 51;
}
_root.enemyshotrotation = 180;
_root.enemyshotx = _parent._x + 57;
_root.enemyshoty = _parent._y - 40;
this.gunhelmet.gotoAndPlay(2);
_root.attachMovie("EnemyBullet", "enemyshot" add _root.enemyshotname, _root.Porcupine.getDepth() - _root.enemyshotname);
timetillnextshot = shotreset;
}
if (_parent.hitTest(_root.Porcupine) && (health > 0)) {
if (hitpause == 0) {
hitpause = 10;
_root.health--;
_root.rage = _root.rage + 3;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = (_root.Porcupine._x - 45) + Math.floor(random(90));
_root.bloodytogoto = (_root.Porcupine._y - 25) + Math.floor(random(50));
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
}
hitpause--;
}
i = 0;
while (i < 52) {
if (_parent.hit_tester.hitTest("_root.shot" add i) == true) {
_global.score++;
_root.bloodname++;
_root.bloodxtogoto = eval (("_root.shot" add i) add "._x");
_root.bloodytogoto = eval (("_root.shot" add i) add "._y");
checkdamage = eval (("_root.shot" add i) add ".damage");
_root.display_txt.text = checkdamage;
if (checkdamage != 3) {
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
} else {
_root.explosionname++;
if (_root.explosionname > 399) {
_root.explosionname = 300;
}
_root.attachMovie("MissileExplosion", "Explosion" add _root.explosionname, _parent.getDepth() + _root.explosionname);
}
health = health - eval (("_root.shot" add i) add ".damage");
unloadMovie ("_root.shot" add i);
}
i++;
}
if (_parent.hit_tester.hitTest("_root.Explosion" add _root.explosionname) == true) {
health = health - 0.3;
}
if (health < 1) {
_global.score = _global.score + scoreworth;
_root.bloodname++;
_root.corpseArrayx["Corpse" add _root.bloodname] = _parent._x;
_root.corpseArrayy["Corpse" add _root.bloodname] = _parent._y;
if (Math.floor(random(powerupchance)) == 1) {
_root.powerupname++;
if (_root.powerupname > 225) {
_root.powerupname = 201;
}
_root.attachMovie("ShotPowerUps", "PowerUps" add _root.powerupname, _root.Porcupine.getDepth() - _root.powerupname);
}
_root.rage++;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.enemycount--;
_root.attachMovie("Vulture_Corpse", "Corpse" add _root.bloodname, _parent.getDepth());
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (_parent);
}
} else {
this.stop();
this.jet.stop();
this.wing.stop();
health = 0;
}
}
Instance of Symbol 60 MovieClip in Symbol 185 MovieClip [Laser] Frame 1
onClipEvent (load) {
_parent.damage = 5;
shotspeed = 50;
rotation = _root.Porcupine.inner.Arm._rotation + 90;
_parent._rotation = rotation - 90;
if (rotation > 360) {
rotation = (360 - rotation) * -1;
}
xmov = Math.sin(rotation * (Math.PI/180)) * shotspeed;
ymov = (Math.cos(rotation * (Math.PI/180)) * shotspeed) * -1;
_parent._x = (_root.Porcupine._x + 35) + (xmov * 1);
_parent._y = (_root.Porcupine._y - 10) + (ymov * 1);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + xmov;
_parent._y = _parent._y + ymov;
if ((((_parent._x < -10) or (_parent._y < -10)) or (_parent._x > 700)) or (_parent._y > 500)) {
unloadMovie (_parent);
}
}
Symbol 191 MovieClip Frame 6
unloadMovie (this);
Instance of Symbol 191 MovieClip in Symbol 192 MovieClip [Rat_Corpse] Frame 1
onClipEvent (load) {
_parent._x = _root.corpseArrayx[_parent._name];
_parent._y = _root.corpseArrayy[_parent._name];
}
onClipEvent (enterFrame) {
if (this._currentframe == 7) {
unloadMovie (_parent);
}
}
Symbol 196 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
shotreset = 40;
timetillnextshot = shotreset;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this._rotation = _root.anglefromhero(_parent._parent._x, _parent._parent._y);
if (timetillnextshot == 0) {
_root.enemyshotname++;
if (_root.enemyshotname > 99) {
_root.enemyshotname = 51;
}
_root.enemyshotrotation = this._rotation;
_root.enemyshotx = _parent._parent._x + 50;
_root.enemyshoty = _parent._parent._y - 30;
_root.attachMovie("EnemyBullet", "enemyshot" add _root.enemyshotname, _root.Porcupine.getDepth() - _root.enemyshotname);
this.gotoAndPlay(2);
timetillnextshot = shotreset;
} else {
timetillnextshot--;
}
}
}
Instance of Symbol 198 MovieClip in Symbol 199 MovieClip [Rat] Frame 1
onClipEvent (load) {
speed = 3;
flyout = 400 + Math.floor(random(200));
floatheight = 40;
floatspeed = 1.5;
gravity = 1;
yspeed = 0;
_parent._x = 800;
_parent._y = 50 + Math.floor(random(350));
basefloat = _parent._y;
health = 10;
hitpause = 0;
powerupchance = 10;
scoreworth = 300;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this.play();
this.jet.play();
if (_parent._x > flyout) {
_parent._x = _parent._x - speed;
}
yspeed = yspeed + gravity;
_parent._y = _parent._y + yspeed;
if (_parent._y > (basefloat + floatheight)) {
yspeed = yspeed - floatspeed;
}
if (_parent.hitTest(_root.Porcupine) && (health > 0)) {
if (hitpause == 0) {
hitpause = 10;
_root.health--;
_root.rage = _root.rage + 3;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = (_root.Porcupine._x - 45) + Math.floor(random(90));
_root.bloodytogoto = (_root.Porcupine._y - 25) + Math.floor(random(50));
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
}
hitpause--;
}
i = 0;
while (i < 52) {
if (_parent.hit_tester.hitTest("_root.shot" add i) == true) {
_global.score++;
_root.bloodname++;
_root.bloodxtogoto = eval (("_root.shot" add i) add "._x");
_root.bloodytogoto = eval (("_root.shot" add i) add "._y");
checkdamage = eval (("_root.shot" add i) add ".damage");
_root.display_txt.text = checkdamage;
if (checkdamage != 3) {
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
} else {
_root.explosionname++;
if (_root.explosionname > 399) {
_root.explosionname = 300;
}
_root.attachMovie("MissileExplosion", "Explosion" add _root.explosionname, _parent.getDepth() + _root.explosionname);
}
health = health - eval (("_root.shot" add i) add ".damage");
unloadMovie ("_root.shot" add i);
}
i++;
}
if (_parent.hit_tester.hitTest("_root.Explosion" add _root.explosionname) == true) {
health = health - 0.3;
}
if (health < 1) {
_global.score = _global.score + scoreworth;
_root.bloodname++;
_root.corpseArrayx["Corpse" add _root.bloodname] = _parent._x;
_root.corpseArrayy["Corpse" add _root.bloodname] = _parent._y;
if (Math.floor(random(powerupchance)) == 1) {
_root.powerupname++;
if (_root.powerupname > 225) {
_root.powerupname = 201;
}
_root.attachMovie("ShotPowerUps", "PowerUps" add _root.powerupname, _root.Porcupine.getDepth() - _root.powerupname);
}
_root.rage++;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.enemycount--;
_root.attachMovie("Rat_Corpse", "Corpse" add _root.bloodname, _parent.getDepth());
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (_parent);
}
} else {
this.stop();
this.jet.stop();
health = 0;
}
}
Instance of Symbol 206 MovieClip in Symbol 207 MovieClip [ShotPowerUps] Frame 1
onClipEvent (load) {
speed = 5;
_parent._x = _root.corpseArrayx["Corpse" add _root.bloodname];
_parent._y = _root.corpseArrayy["Corpse" add _root.bloodname];
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - speed;
_root.display_txt.text = _parent._x;
if ((_parent._x < -50) or (_root.health < 1)) {
unloadMovie (_parent);
}
if (_parent.hitTest(_root.Porcupine)) {
_root.powerupclock = 500;
if ((this._currentframe > 0) && (this._currentframe < 11)) {
_root.shotreset = 5;
_root.trishot = true;
_root.laser = false;
_root.missile = false;
}
if ((this._currentframe > 10) && (this._currentframe < 21)) {
_root.shotreset = 1;
_root.trishot = false;
_root.laser = false;
_root.missile = false;
}
if ((this._currentframe > 20) && (this._currentframe < 31)) {
_root.shotreset = 20;
_root.trishot = false;
_root.laser = true;
_root.missile = false;
}
if ((this._currentframe > 30) && (this._currentframe < 41)) {
_root.shotreset = 30;
_root.trishot = false;
_root.laser = false;
_root.missile = true;
}
unloadMovie (_parent);
}
}
Symbol 214 MovieClip Frame 7
unloadMovie (this);
Instance of Symbol 214 MovieClip in Symbol 215 MovieClip [Alligator_Corpse] Frame 1
onClipEvent (load) {
_parent._x = _root.corpseArrayx[_parent._name];
_parent._y = _root.corpseArrayy[_parent._name];
}
onClipEvent (enterFrame) {
if (this._currentframe == 7) {
unloadMovie (_parent);
}
}
Symbol 220 MovieClip Frame 5
stop();
Instance of Symbol 220 MovieClip in Symbol 221 MovieClip [BloodSplatter] Frame 1
onClipEvent (load) {
this.bloodname = _root.bloodname;
_parent._x = _root.bloodxtogoto;
_parent._y = _root.bloodytogoto;
}
onClipEvent (enterFrame) {
if (this._currentframe == 4) {
unloadMovie (_parent);
}
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip [Alligator] Frame 1
onClipEvent (load) {
speed = 5;
_parent._x = 800;
_parent._y = 50 + Math.floor(random(400));
health = 5;
hitpause = 0;
powerupchance = 10;
scoreworth = 100;
}
onClipEvent (enterFrame) {
if (_global.canmove == true) {
this.play();
this.jet.play();
this.tail.play();
_parent._x = _parent._x - speed;
if (_parent._x < -250) {
_root.enemycount--;
unloadMovie (_parent);
}
if (_parent.hitTest(_root.Porcupine) && (health > 0)) {
if (hitpause == 0) {
hitpause = 10;
_root.health--;
_root.rage = _root.rage + 3;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = (_root.Porcupine._x - 45) + Math.floor(random(90));
_root.bloodytogoto = (_root.Porcupine._y - 25) + Math.floor(random(50));
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
}
hitpause--;
}
i = 0;
while (i < 52) {
if (_parent.hit_tester.hitTest("_root.shot" add i) == true) {
_global.score++;
_root.bloodname++;
_root.bloodxtogoto = eval (("_root.shot" add i) add "._x");
_root.bloodytogoto = eval (("_root.shot" add i) add "._y");
checkdamage = eval (("_root.shot" add i) add ".damage");
_root.display_txt.text = checkdamage;
if (checkdamage != 3) {
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
} else {
_root.explosionname++;
if (_root.explosionname > 399) {
_root.explosionname = 300;
}
_root.attachMovie("MissileExplosion", "Explosion" add _root.explosionname, _parent.getDepth() + _root.explosionname);
}
health = health - eval (("_root.shot" add i) add ".damage");
unloadMovie ("_root.shot" add i);
}
i++;
}
if (_parent.hit_tester.hitTest("_root.Explosion" add _root.explosionname) == true) {
health = health - 0.3;
}
if (health < 1) {
_global.score = _global.score + scoreworth;
_root.bloodname++;
_root.corpseArrayx["Corpse" add _root.bloodname] = _parent._x;
_root.corpseArrayy["Corpse" add _root.bloodname] = _parent._y;
if (Math.floor(random(powerupchance)) == 1) {
_root.powerupname++;
if (_root.powerupname > 225) {
_root.powerupname = 201;
}
_root.attachMovie("ShotPowerUps", "PowerUps" add _root.powerupname, _root.Porcupine.getDepth() - _root.powerupname);
}
_root.rage++;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.enemycount--;
_root.attachMovie("Alligator_Corpse", "Corpse" add _root.bloodname, _parent.getDepth());
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (_parent);
}
} else {
this.stop();
this.jet.stop();
this.tail.stop();
health = 0;
}
}
Instance of Symbol 237 MovieClip in Symbol 238 MovieClip [cloud] Frame 1
onClipEvent (load) {
_parent._x = 800;
_parent._y = Math.floor(random(550));
randomnumber = Math.floor(random(3)) + 1;
_root.randomnumber_txt.text = randomnumber;
this.gotoAndStop(randomnumber);
randomnumber = Math.floor(random(3));
if (randomnumber == 0) {
_parent._width = _parent._width * 0.5;
_parent._height = _parent._height * 0.5;
speed = 2;
}
if (randomnumber == 1) {
_parent._width = _parent._width * 0.75;
_parent._height = _parent._height * 0.75;
speed = 4;
}
if (randomnumber == 2) {
speed = 6;
}
}
onClipEvent (enterFrame) {
_parent._x = _parent._x - speed;
if (_parent._x < -220) {
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (_parent);
}
}
Instance of Symbol 240 MovieClip in Symbol 241 MovieClip [Smoke] Frame 1
onClipEvent (load) {
_parent._x = ((_root.Porcupine._x - 13) + 35) + Math.floor(random(5));
_parent._y = (_root.Porcupine._y + 30) + 10;
yspeed = 15 + random(3);
xspeed = random(2) - random(4);
randomnumber = Math.random(10) + 0.5;
_parent._width = _parent._width * randomnumber;
_parent._height = _parent._height * randomnumber;
}
onClipEvent (enterFrame) {
yspeed = yspeed - 0.15;
_parent._y = _parent._y + yspeed;
_parent._x = _parent._x + xspeed;
if (_parent._y > 520) {
unloadMovie (_parent);
}
}
Instance of Symbol 54 MovieClip "Bullet_Inner" in Symbol 242 MovieClip [Bullet] Frame 1
onClipEvent (load) {
_parent.damage = 1;
shotspeed = 15;
rotation = _root.Porcupine.inner.Arm._rotation + 90;
if (rotation > 360) {
rotation = (360 - rotation) * -1;
}
xmov = Math.sin(rotation * (Math.PI/180)) * shotspeed;
ymov = (Math.cos(rotation * (Math.PI/180)) * shotspeed) * -1;
_parent._x = (_root.Porcupine._x + 35) + (xmov * 4);
_parent._y = (_root.Porcupine._y - 10) + (ymov * 4);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + xmov;
_parent._y = _parent._y + ymov;
if ((((_parent._x < -10) or (_parent._y < -10)) or (_parent._x > 700)) or (_parent._y > 500)) {
unloadMovie (_parent);
}
if (_root.health < 1) {
unloadMovie (_parent);
}
}
Instance of Symbol 244 MovieClip "Bullet_Inner" in Symbol 245 MovieClip [EnemyBullet] Frame 1
onClipEvent (load) {
shotspeed = 15;
rotation = _root.enemyshotrotation + 90;
if (rotation > 360) {
rotation = (360 - rotation) * -1;
}
xmov = Math.sin(rotation * (Math.PI/180)) * shotspeed;
ymov = (Math.cos(rotation * (Math.PI/180)) * shotspeed) * -1;
_parent._x = _root.enemyshotx + (xmov * 5);
_parent._y = _root.enemyshoty + (ymov * 5);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + xmov;
_parent._y = _parent._y + ymov;
if ((((_parent._x < -10) or (_parent._y < -10)) or (_parent._x > 700)) or (_parent._y > 500)) {
unloadMovie (_parent);
}
if (_parent.hitTest(_root.Porcupine)) {
_root.health--;
_root.rage = _root.rage + 3;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = _parent._x;
_root.bloodytogoto = _parent._y;
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
unloadMovie (_parent);
}
}
Instance of Symbol 244 MovieClip "Bullet_Inner" in Symbol 246 MovieClip [SharkEnemyBullet] Frame 1
onClipEvent (load) {
shotspeed = 15;
rotation = _root.enemyshotrotation + 90;
if (rotation > 360) {
rotation = (360 - rotation) * -1;
}
xmov = Math.sin(rotation * (Math.PI/180)) * shotspeed;
ymov = (Math.cos(rotation * (Math.PI/180)) * shotspeed) * -1;
_parent._x = _root.enemyshotx + (xmov * 9);
_parent._y = _root.enemyshoty + (ymov * 9);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + xmov;
_parent._y = _parent._y + ymov;
if ((((_parent._x < -10) or (_parent._y < -10)) or (_parent._x > 700)) or (_parent._y > 500)) {
unloadMovie (_parent);
}
if (_parent.hitTest(_root.Porcupine)) {
_root.health--;
_root.rage = _root.rage + 3;
if (_root.rage > _root.ragelimit) {
_root.rage = _root.ragelimit;
}
_root.bloodname++;
_root.bloodxtogoto = _parent._x;
_root.bloodytogoto = _parent._y;
_root.attachMovie("BloodSplatter", "Blood" add _root.bloodname, _parent.getDepth() + _root.bloodname);
unloadMovie (_parent);
}
}
Instance of Symbol 54 MovieClip "Bullet_Inner" in Symbol 247 MovieClip [Trishot_1] Frame 1
onClipEvent (load) {
_parent.damage = 1;
shotspeed = 15;
rotation = _root.Porcupine.inner.Arm._rotation + 100;
if (rotation > 360) {
rotation = (360 - rotation) * -1;
}
xmov = Math.sin(rotation * (Math.PI/180)) * shotspeed;
ymov = (Math.cos(rotation * (Math.PI/180)) * shotspeed) * -1;
_parent._x = (_root.Porcupine._x + 35) + (xmov * 4);
_parent._y = (_root.Porcupine._y - 10) + (ymov * 4);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + xmov;
_parent._y = _parent._y + ymov;
if ((((_parent._x < -10) or (_parent._y < -10)) or (_parent._x > 700)) or (_parent._y > 500)) {
unloadMovie (_parent);
}
}
Instance of Symbol 54 MovieClip "Bullet_Inner" in Symbol 248 MovieClip [Trishot_2] Frame 1
onClipEvent (load) {
_parent.damage = 1;
shotspeed = 15;
rotation = _root.Porcupine.inner.Arm._rotation + 80;
if (rotation > 360) {
rotation = (360 - rotation) * -1;
}
xmov = Math.sin(rotation * (Math.PI/180)) * shotspeed;
ymov = (Math.cos(rotation * (Math.PI/180)) * shotspeed) * -1;
_parent._x = (_root.Porcupine._x + 35) + (xmov * 4);
_parent._y = (_root.Porcupine._y - 10) + (ymov * 4);
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + xmov;
_parent._y = _parent._y + ymov;
if ((((_parent._x < -10) or (_parent._y < -10)) or (_parent._x > 700)) or (_parent._y > 500)) {
unloadMovie (_parent);
}
}
Symbol 256 Button
on (release) {
gotoAndPlay (13);
}
Symbol 266 Button
on (release) {
introtalk.stop();
_root.gotoAndPlay("Skip");
}
Symbol 295 MovieClip Frame 3
stop();
Symbol 299 MovieClip Frame 3
stop();
Symbol 301 MovieClip Frame 3
stop();
Symbol 303 MovieClip Frame 3
stop();
Symbol 310 MovieClip Frame 3
stop();
Symbol 312 MovieClip Frame 3
stop();
Symbol 317 MovieClip Frame 3
stop();
Symbol 321 MovieClip Frame 3
stop();
Symbol 323 MovieClip Frame 3
stop();
Symbol 325 MovieClip Frame 3
stop();
Symbol 328 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
getURL ("http://www.soggyrocks.com", "_blank");
}
Symbol 329 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
_root.soundeffects("Click", 50);
gotoAndPlay ("Credits");
}
Symbol 330 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
_root.soundeffects("Click", 50);
gotoAndPlay ("Instructions");
}
Symbol 331 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
_root.soundeffects("Click", 50);
_global.menumusicstopping = true;
_root.bloodname = 101;
gotoAndPlay ("Transfer");
}
Symbol 332 Button
on (release) {
_root.bloodname = 101;
gotoAndPlay (857);
}
Symbol 343 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
_root.soundeffects("Click", 50);
_root.gotoAndStop(_root._currentframe + 1);
}
Symbol 348 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
_global.playthemusic = true;
_global.musicposition = _root.menumusic.position;
_root.gotoAndPlay("Menu");
}
Symbol 377 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
getURL ("http://www.flasharcardia.com", "_blank");
}
Symbol 384 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
getURL ("http://www.grsites.com", "_blank");
}
Symbol 410 MovieClip Frame 86
unloadMovie (this);
Symbol 412 MovieClip Frame 4
stop();
Symbol 444 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
_root.soundeffects("Click", 50);
if (_root.name != "") {
_root.command = "update";
_root.loadVariables("highscores.php?" + int(Math.random() * 100000), "POST");
gotoAndStop ("highScores");
}
}
Symbol 449 Button
on (rollOver) {
_root.soundeffects("Hover", 100);
}
on (release) {
_root.soundeffects("Click", 50);
_global.playthemusic = true;
_root.gotoAndPlay("Menu");
}