Frame 1
onEnterFrame = function () {
totalbytes = getBytesTotal();
loadedbytes = getBytesLoaded();
if (loadedbytes == totalbytes) {
delete onEnterFrame;
gotoAndPlay ("INTRO");
} else {
stop();
preloader._percentage.text = Math.floor((loadedbytes / totalbytes) * 100) + "%";
preloader.bar._xscale = (loadedbytes / totalbytes) * 100;
}
};
Frame 122
_root.play();
_root.play();
Frame 275
if (_root.menuStarted == undefined) {
var mySound = new Sound();
mySound.attachSound("High Liter.wav");
mySound.setVolume(100);
mySound.start(0, 999);
mySound.onSoundComplete = function () {
this.start();
};
_root.menuStarted = true;
}
play();
Frame 384
stop();
stop();
Frame 385
stop();
Frame 386
stop();
Frame 387
stop();
Frame 388
stop();
_root.hero = new Toast.CHeroEntity(_root, "hero", "you", 50, 300, 4);
PlatformManager.AddEntity(hero);
_root.bgVolume = 100;
_root.fxVolume = 30;
_root._canControl = true;
_root.boatBatCount = 0;
_root.bgSound = new Sound(_root.soundFile);
_root.bgSound.attachSound("GaymTheme");
_root.bgSound.setVolume(_root.bgVolume);
_root.bgSound.start(0, 99999);
_root.camTop = 260;
_root.camBottom = 320;
_root._bgMusic = _root.bgSound;
_root.moveSlug = false;
_root._dispDebugText = false;
_root.mplayer = new Object();
_root.mplayer._muted = false;
_root.level._leftBound = 0;
_root.level._rightBound = 800;
_root.boostCount = 0;
_root.boostLen = 75;
_root.gameOver = false;
var mouseListener = new Object();
Mouse.addListener(mouseListener);
mouseListener.onMouseDown = function () {
};
var keyDown = Key.isDown;
var keyLeft = 37;
var keyRight = 39;
var keyCrouch = 40;
var keyBoost = 16;
var keyJump = 65;
var keyAttack = 83;
var keyPause = 80;
var hmc = hero._mc;
var pm = _root.PlatformManager;
var mabs = Math.abs;
_root._paused = false;
hero._attackOverride = false;
_root._unpauseBlocked = true;
_root.cutscene = false;
_root.lives = _root.hero._lives;
_root.playedOver = false;
hero._mc.swapDepths(1336);
hero._mc.onEnterFrame = function () {
var _local3 = hero;
if (_root.gameOver) {
_root.overScreen._visible = true;
if (!_root.playedOver) {
_root.playedOver = true;
_root.overScreen.play();
}
_root._paused = true;
} else {
_root.lives = _local3._lives;
if (this.hitTest(_root.swimCheck1) || (this.hitTest(_root.swimCheck2))) {
_local3._isSwimming = true;
} else {
_local3._isSwimming = false;
}
if (!_root.cutscene) {
if (keyDown(keyPause) && (_root._unpauseBlocked)) {
_root._paused = !_root._paused;
if (_root._paused == true) {
_root.PauseNotice.play();
} else {
_root.PauseNotice.gotoAndStop(1);
}
if (_root.gameOver) {
_root.PauseNotice._visible = false;
} else {
_root.PauseNotice._visible = _root._paused;
}
if (_root._paused) {
pm._pauseXSpeed = pm._xSpeed;
pm._pauseYSpeed = pm._ySpeed;
pm._xSpeed = 0;
pm._ySpeed = 0;
_local3._pauseXSpeed = _local3._xSpeed;
_local3._pauseYSpeed = _local3._ySpeed;
_local3._xSpeed = 0;
_local3._ySpeed = 0;
_local3._attacking = false;
} else {
pm._xSpeed = pm._pauseXSpeed;
pm._ySpeed = pm._pauseYSpeed;
_local3._xSpeed = _local3._pauseXSpeed;
_local3._ySpeed = _local3._pauseYSpeed;
}
_root._unpauseBlocked = false;
}
if (!keyDown(keyPause)) {
_root._unpauseBlocked = true;
}
}
if (!_root._paused) {
if (_local3._alive) {
var _local4 = new Toast.CAction("NULL");
if (!_local3._crouching) {
_local3._speed = 4;
}
if ((keyDown(keyBoost) && (_root.boostCount < _root.boostLen)) && (!_local3._crouching)) {
_root.boostCount++;
_local3._speed = 6;
} else if (((!keyDown(keyBoost)) && (Math.floor(_root.boostCount) <= _root.boostLen)) && (_root.boostCount > 0)) {
_root.boostCount = _root.boostCount - 0.5;
}
if ((_root.boostCount > 0) && ((1 - (_root.boostCount / _root.boostLen)) > 0)) {
_root.boostMeter._xscale = (1 - (_root.boostCount / _root.boostLen)) * 100;
}
var _local6 = {x:0, y:0};
_root.level.globalToLocal(_local6);
_local6 = _local6.x;
var _local7 = {x:hmc._x, y:hmc._y};
_root.level.globalToLocal(_local7);
_local7 = _local7.x;
if (_root._canControl) {
if (keyDown(keyLeft)) {
if (_local3._curAction._override) {
_local4 = new Toast.CAction("RUN");
hmc._xscale = _local3._scale;
}
if ((hmc._x < 200) && (_local6 > _root.level._leftBound)) {
_local3.SetSpeedX(0);
pm._xSpeed = _local3._speed;
} else {
_local3.SetSpeedX(-_local3._speed);
pm._xSpeed = 0;
}
if ((_local7 - (hmc._width / 2)) <= _root.level._leftBound) {
_local3.SetSpeedX(0);
pm._xSpeed = 0;
}
} else if (keyDown(keyRight)) {
if (_local3._curAction._override) {
_local4 = new Toast.CAction("RUN");
hmc._xscale = -_local3._scale;
}
if ((hmc._x > 350) && ((_local6 + 550) < _root.level._rightBound)) {
_local3.SetSpeedX(0);
pm._xSpeed = -_local3._speed;
} else {
_local3.SetSpeedX(_local3._speed);
pm._xSpeed = 0;
}
if ((_local7 + (hmc._width / 2)) >= _root.level._rightBound) {
_local3.SetSpeedX(0);
_root.killClip.play();
pm._xSpeed = 0;
}
} else {
pm._xSpeed = 0;
}
} else {
pm._xSpeed = 0;
}
if ((keyDown(keyJump) && (!_local3._jumping)) && (_local3._canJump)) {
_local3._jumping = true;
_local3._canJump = false;
_local4 = new Toast.CAction("UP");
_local4._override = false;
} else if (!Key.isDown(65)) {
_local3._canJump = true;
}
if (!_local3._jumping) {
if (keyDown(keyCrouch) && (!_local3._isSwimming)) {
_local3._crouching = true;
} else if ((!keyDown(keyCrouch)) && (!_root.overrideCrouch)) {
_local3._crouching = false;
}
} else {
_local3._crouching = false;
var _local5 = _local3.GetSpeedY();
var _local11 = _local3._jumpCount;
if ((_local5 <= 0) && (_local3._jumpCount == 0)) {
_local3.SetSpeedY(_local3._jumpSpeed);
_local4._name = "UP";
} else if ((_local5 > 0) && (_local11 > 0)) {
_local4._name = "UP";
var _local13 = 0.7;
_local3.SetSpeedY(_local5 * _local13);
} else if ((_local5 <= 0) && (_local11 > 0)) {
_local4._name = "DOWN";
var _local13 = 0.6;
_local3.SetSpeedY(_local5 * _local13);
}
_local3._jumpCount++;
}
if (((keyDown(keyAttack) && (!_local3._attacking)) && (!_local3._crouching)) && (!_local3._isSwimming)) {
_local3._attacking = true;
if (_local3._curWeapon._name == "no-weapon") {
_local4 = new Toast.CAction("HEADBUTT");
_local4._override = false;
pm._xSpeed = 0;
}
} else if ((!keyDown(keyAttack)) && (!_local3._attackOverride)) {
_local3._attacking = false;
_local3._headbuttContact = false;
}
if ((_local3._curWeapon._name != "no-weapon") && (_local3._curWeapon._mc._visible == false)) {
_local3._attacking = false;
}
if (_local3._inToaster) {
_local3._crouching = false;
_local3._attacking = false;
if (_local4._name == "HEADBUTT") {
_local4._name = "NULL";
}
}
if (_root.switchBlockChain == undefined) {
_root.switchBlockChain = false;
}
if (_root.switchBlockHead == undefined) {
_root.switchBlockHead = false;
}
if (_root.switchBlockCross == undefined) {
_root.switchBlockCross = false;
}
if (_root.inButter == undefined) {
if ((keyDown(81) && (!_root.switchBlockChain)) && (_local3._weapons[0]._mc != undefined)) {
_local3.SwitchWeapon(0);
var _local10 = _local3._curWeaponIndex;
if (_local10 == 0) {
_local10 = 3;
}
_local3._attacking = false;
_root.weaponGUI.gotoAndStop(_local10);
_root.switchBlockChain = true;
} else if (keyDown(87) && (!_root.switchBlockHead)) {
_local3.SwitchWeapon(1);
var _local10 = _local3._curWeaponIndex;
if (_local10 == 0) {
_local10 = 3;
}
_local3._attacking = false;
_root.weaponGUI.gotoAndStop(_local10);
_root.switchBlockHead = true;
} else if ((keyDown(69) && (!_root.switchBlockCross)) && (_local3._weapons[2]._mc != undefined)) {
_local3.SwitchWeapon(2);
var _local10 = _local3._curWeaponIndex;
if (_local10 == 0) {
_local10 = 3;
}
_local3._attacking = false;
_root.weaponGUI.gotoAndStop(_local10);
_root.switchBlockCross = true;
} else {
if (!keyDown(81)) {
_root.switchBlockChain = false;
}
if (!keyDown(87)) {
_root.switchBlockHead = false;
}
if (!keyDown(69)) {
_root.switchBlockCross = false;
}
}
}
if (_root._canControl) {
if (_local4._name != "NULL") {
_local3.SetActionEx(_local4);
} else if (_local3._curAction._done || (_local3._curAction._override)) {
_local3.SetAction("IDLE");
}
}
}
_root.curY = hmc._y - (_local3._origHeight / 2);
var _local18 = _root.curY - _root.lastY;
if (_root.yCounter < 0) {
_root.yCounter = 0;
}
if (mabs(pm._ySpeed) < 15) {
var _local9 = 15 - _root.yCounter;
if (_local9 < 10) {
_local9 = 10;
}
if (_root.curY < _root.camTop) {
if (!_local3._jumping) {
pm._ySpeed = (_root.camTop - Math.round(_root.curY)) / _local9;
_root.yCounter++;
}
} else if (_root.curY > _root.camBottom) {
pm._ySpeed = (Math.round(_root.curY) - _root.camBottom) / (-_local9);
_root.yCounter++;
} else {
pm._ySpeed = 0;
_root.yCounter = -1;
}
} else {
pm._ySpeed = 0;
_root.yCounter = -1;
}
if (mabs(pm._ySpeed) < 1) {
pm._ySpeed = 0;
}
var _local12 = hmc._y;
if (_local3._jumping) {
_local3._hLink = undefined;
}
_local3._applyGravity = false;
if ((!_local3._jumping) && (_local3._hLink != undefined)) {
var _local8 = {x:_local3._hLink._x, y:_local3._hLink._y};
_local3._hLink._parent.localToGlobal(_local8);
var _local17 = hmc._x - (hmc._width / 2);
var _local16 = hmc._x + (hmc._width / 2);
var _local15 = _local8.x - (_local3._hLink._width / 2);
var _local14 = _local8.x + (_local3._hLink._width / 2);
if ((_local17 < _local15) || (_local16 > _local14)) {
_local3._hLink = undefined;
_local3._applyGravity = true;
}
_local3._gravityCount = 0;
_local12 = _local8.y - (hmc._height / 2);
} else if (_local3._hLink == undefined) {
_local3._applyGravity = true;
}
hmc._y = _local12;
_root.lastY = _root.curY;
_root.lastSpeed = PlayformManager._ySpeed;
_root.level._lastY = curY;
_local3.Update();
pm.Update();
}
}
};
Instance of Symbol 1173 MovieClip [WeaponNotice] "WeaponNotice" in Frame 388
onClipEvent (load) {
this._visible = false;
this.swapDepths(9075560);
this._counter = 0;
}
onClipEvent (enterFrame) {
if (_root.overWeapon == undefined) {
this._visible = false;
this._counter = 0;
} else {
this._counter++;
if (this._counter > 5) {
this._counter = 0;
this._visible = true;
}
}
}
Instance of Symbol 1176 MovieClip [ToasterNotice] "ToasterNotice" in Frame 388
onClipEvent (load) {
this._visible = false;
this.swapDepths(9075461);
this._counter = 0;
}
Instance of Symbol 1179 MovieClip [PopNotice] "PopNotice" in Frame 388
onClipEvent (load) {
this._visible = false;
this.swapDepths(9075559);
}
Instance of Symbol 1195 MovieClip in Frame 388
onClipEvent (load) {
_root.weaponGUI = this;
this.swapDepths(9075558);
}
Instance of Symbol 1202 MovieClip in Frame 388
onClipEvent (load) {
this.swapDepths(9075570);
this._visible = false;
}
Instance of Symbol 1207 MovieClip in Frame 388
onClipEvent (load) {
_root.health = this;
this.swapDepths(9075557);
}
Instance of Symbol 1209 MovieClip [BoostMeter] in Frame 388
onClipEvent (load) {
_root.boostMeter = this;
this.swapDepths(9075596);
}
Instance of Symbol 448 MovieClip [miniboss - health] in Frame 388
onClipEvent (load) {
_root.miniHB = this;
this._visible = false;
this.swapDepths(9075580);
}
Instance of Symbol 1211 MovieClip in Frame 388
onClipEvent (load) {
_root.goClip = this;
this.swapDepths(9075565);
}
Instance of Symbol 1213 MovieClip in Frame 388
onClipEvent (load) {
_root.killClip = this;
this.swapDepths(9075567);
}
Instance of Symbol 1216 MovieClip [soundFile] "soundFile" in Frame 388
onClipEvent (load) {
this._visible = false;
_root.soundFile = this;
this.swapDepths(9075588);
}
Instance of Symbol 1227 MovieClip [swarmUp] in Frame 388
onClipEvent (load) {
_root.swarmWarn = this;
this._visible = false;
this.swapDepths(9075607);
}
Instance of Symbol 1230 MovieClip [lifecount] in Frame 388
onClipEvent (load) {
_root.lives = this;
this.swapDepths(9075607);
}
Instance of Symbol 1235 MovieClip in Frame 388
onClipEvent (load) {
_root.bossHB = this;
this._visible = false;
this.swapDepths(9075581);
}
Instance of Symbol 1264 MovieClip [PauseNotice] in Frame 388
onClipEvent (load) {
_root.PauseNotice = this;
this._visible = false;
this.stop();
this.swapDepths(9075656);
}
Instance of Symbol 1268 MovieClip in Frame 388
onClipEvent (load) {
this._visible = false;
_root.overScreen = this;
this.swapDepths(9075657);
}
Instance of Symbol 1285 MovieClip [cutscene - chainsaw] in Frame 388
onClipEvent (load) {
_root.ChainsawCutscene = this;
this._visible = false;
this.swapDepths(9075638);
}
Instance of Symbol 1286 MovieClip [caveCutscene] in Frame 388
onClipEvent (load) {
this._visible = false;
_root.caveCutscene = this;
this.swapDepths(9075625);
}
Instance of Symbol 1315 MovieClip [cutscene - crossbow] in Frame 388
onClipEvent (load) {
_root.CrossbowCutscene = this;
this._visible = false;
this.swapDepths(9075688);
}
Instance of Symbol 1335 MovieClip in Frame 388
onClipEvent (load) {
this._visible = false;
_root.outro = this;
this.swapDepths(9075629);
}
Symbol 1336 MovieClip [__Packages.Toast.CEntity] Frame 0
class Toast.CEntity extends MovieClip
{
var _clipType, _hLink, _mc, _name, _savedTree, _id, _alive, _speed, _applyGravity, _gravity, _xSpeed, _ySpeed, _inGameWidth, _inGameHeight, _origHeight, _origWidth, _scale, _boundingBox, _selected, _text;
function CEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed, t_depth) {
super();
if (_global.lvl == undefined) {
_global.lvl = 0;
}
_clipType = t_clip;
_hLink = undefined;
if (t_depth) {
if (_root.getInstanceAtDepth(t_depth) != undefined) {
t_depth = _root.getNextHighestDepth();
}
_mc = t_timeline.attachMovie(t_clip, "", t_depth);
} else {
var _local5 = _global.lvl;
if (_root.getInstanceAtDepth(_local5) != undefined) {
_local5 = _root.getNextHighestDepth();
}
_mc = t_timeline.attachMovie(t_clip, "", _local5);
_global.lvl++;
}
_mc._parent = this;
if (!t_name) {
_mc._name = "UnknownEntity";
} else {
_mc._name = t_clip + _global.lvl;
_name = t_name;
}
_savedTree = new Array();
_id = -1;
_alive = true;
_mc._x = t_x + (_mc._width / 2);
_mc._y = t_y - (_mc._height / 2);
if (!t_speed) {
_speed = 0;
} else {
_speed = t_speed;
}
_applyGravity = false;
_gravity = 0;
_xSpeed = 0;
_ySpeed = 0;
_inGameWidth = _mc._width;
_inGameHeight = _mc._height;
_origHeight = _mc._height;
_origWidth = _mc._width;
_scale = _mc._xscale;
_boundingBox = t_timeline.attachMovie("intersectBox", "box" + _global.lvl, _global.lvl);
_global.lvl++;
_boundingBox._width = _inGameWidth;
_boundingBox._height = _inGameHeight;
_boundingBox._visible = false;
_selected = false;
_text = new Toast.CTextBox(_root, "");
_text._mc._visible = false;
}
function GetName() {
return(_name);
}
function SetName(t_str) {
_name = t_str;
}
function GetAlive() {
return(_alive);
}
function SetAlive(t_alive) {
_alive = t_alive;
}
function setTint(r, g, b, amount) {
var _local5 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local5));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
var _local4 = new Color(_mc);
_local4.setTransform(_local2);
}
function removeTint() {
setTint(0, 0, 0, 0);
}
function GetHeight(t_getMC) {
if (t_getMC) {
return(_mc._height);
}
return(_inGameHeight);
}
function GetWidth(t_getMC) {
if (t_getMC) {
return(_mc._width);
}
return(_inGameWidth);
}
function SetWidth(w) {
_inGameWidth = w;
_mc._width = w;
}
function SetHeight(h) {
_inGameHeight = h;
_mc._height = h;
}
function SetSpeedX(speed) {
_xSpeed = speed;
}
function GetSpeedX() {
return(_xSpeed);
}
function SetSpeedY(speed) {
_ySpeed = -speed;
}
function GetSpeedY() {
return(-_ySpeed);
}
function GetClip() {
return(_mc);
}
function Collides(ent) {
return(CollidesMC(ent.GetClip()));
}
function CollidesMC(mc) {
return(_mc.hitTest(mc));
}
function SetX(t_x) {
_mc._x = t_x;
}
function GetX() {
return(_mc._x);
}
function SetY(t_y) {
_mc._y = t_y;
}
function GetY() {
return(_mc._y);
}
function GetSpeed() {
return(_speed);
}
function GetMouseOver() {
if ((_root._xmouse <= (GetX() + (GetWidth() / 2))) && (_root._xmouse >= (GetX() - (GetWidth() / 2)))) {
if ((_root._ymouse >= (GetY() - (GetHeight() / 2))) && (_root._ymouse <= (GetY() + (GetHeight() / 2)))) {
return(true);
}
}
return(false);
}
function GetProperties() {
_text.ClearText();
_text.AddLine("Name: " + _name);
_text.AddLine(((("(" + GetX()) + ", ") + GetY()) + ")");
_text._mc._x = GetX();
_text._mc._y = (GetY() - (GetHeight() / 2)) - _text._mc._height;
}
function Update() {
if (_alive) {
_mc._x = _mc._x + _xSpeed;
_mc._y = _mc._y + _ySpeed;
if (_root._dispDebugText) {
if (GetMouseOver() || (_selected)) {
_boundingBox._x = GetX() - (GetWidth() / 2);
_boundingBox._y = GetY() - (GetHeight() / 2);
_boundingBox._visible = true;
_text._mc._visible = true;
GetProperties();
} else {
_boundingBox._visible = false;
_text._mc._visible = false;
}
} else {
_boundingBox._visible = false;
_text._mc._visible = false;
}
} else {
_boundingBox.removeMovieClip();
_text._mc.removeMovieClip();
_mc.removeMovieClip();
}
}
}
Symbol 1337 MovieClip [__Packages.Toast.CTextBox] Frame 0
class Toast.CTextBox
{
var _mc, _textWidth, _textLines;
function CTextBox (t_timeline, t_text) {
_mc = t_timeline.attachMovie("textBox", "", 9000 + _global.lvl);
_mc.myText.text = t_text;
_textWidth = 0;
_textLines = 0;
}
function ClearText() {
_mc.myText.text = "";
_textWidth = 0;
_textLines = 0;
}
function SetText(t_text) {
_mc.myText.text = t_text;
}
function AddLine(t_text) {
var _local5 = 8.309;
var _local3 = 15;
var _local2 = _local5 * length(t_text);
_textLines++;
if (_local2 > _textWidth) {
_textWidth = _local2;
_mc._width = _textWidth;
}
_mc.myText._height = _textLines * _local3;
if (_mc.myText.text != "") {
SetText((_mc.myText.text + newline) + t_text);
} else {
SetText(t_text);
}
}
}
Symbol 1338 MovieClip [__Packages.Toast.CEnemyEntity] Frame 0
class Toast.CEnemyEntity extends Toast.CEntity
{
var _jumping, _localGuts, _nextSpawn, _gutCounter, _jumpSpeed, _canJump, _jumpCount, _applyGravity, _overrideDeath, _attacking, _gravity, _alive, _gravityCount, _curAction, _hitPoints, _origPoints, _text, _selected, _mc, GetSpeedY, GetSpeedX, GetHeight, GetY, GetWidth, GetX, SetSpeedY, SetSpeedX;
function CEnemyEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_jumping = false;
_localGuts = undefined;
_nextSpawn = undefined;
_gutCounter = 0;
_jumpSpeed = 30;
_canJump = true;
_jumpCount = 0;
_applyGravity = true;
_overrideDeath = false;
_attacking = false;
_gravity = 0.2;
_alive = true;
_gravityCount = 0;
_curAction = new Toast.CAction("IDLE");
_hitPoints = 1;
_origPoints = _hitPoints;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("Selected: " + _selected);
_text.AddLine("Depth: " + _mc.getDepth());
_text.AddLine((("XS: " + Math.round(GetSpeedX())) + " YS: ") + Math.round(GetSpeedY()));
_text.AddLine("Action: " + _curAction._name);
_text._mc._y = (GetY() - (GetHeight() * 2)) - _text._mc._height;
_text._mc._x = (GetX() - (GetWidth() / 2)) + (_text._mc._width / 2);
}
function Update() {
super.Update();
if (_alive) {
if (_hitPoints <= 0) {
if (!_overrideDeath) {
_alive = false;
SetAction("DIE");
}
}
if (_applyGravity) {
_gravityCount++;
SetSpeedY(GetSpeedY() - _gravity);
} else {
_gravityCount = 0;
}
if (_curAction != "IDLE") {
_HandleAction(_curAction);
} else {
SetAction("IDLE");
}
}
}
function SetAction(t_action) {
t_action = t_action.toUpperCase();
var _local2 = new Toast.CAction(t_action);
_local2._override = true;
SetActionEx(_local2);
return(true);
}
function SetActionEx(t_action) {
switch (t_action._name.toUpperCase()) {
case "IDLE" :
break;
case "RUN" :
break;
case "ROAR" :
break;
case "DIE" :
break;
case "SHOOT" :
break;
case "CHAINSAWED" :
break;
case "HEADBUTTED" :
break;
case "NULL" :
break;
default :
return(false);
}
if (_curAction._name == "IDLE") {
_curAction = new Toast.CAction("NULL");
} else if (_curAction._done) {
_curAction = new Toast.CAction("NULL");
}
if ((_curAction._name == "NULL") || (_curAction._override)) {
_curAction = t_action;
}
}
function _HandleAction(t_action) {
if (t_action._done) {
_curAction = new Toast.CAction("NULL");
}
switch (t_action._name) {
case "IDLE" :
break;
case "RUN" :
break;
case "ROAR" :
break;
case "DIE" :
break;
case "SHOOT" :
break;
case "CHAINSAWED" :
break;
case "HEADBUTTED" :
break;
default :
_curAction = new Toast.CAction("IDLE");
return(false);
}
if (t_action._name != "RUN") {
SetSpeedX(0);
}
if (!t_action._started) {
t_action._started = true;
_mc.gotoAndStop(t_action._name);
}
t_action._frames++;
return(t_action._frames);
}
function SetActionDone(t_action) {
if (_curAction._name == t_action.toUpperCase()) {
_curAction._done = true;
}
}
}
Symbol 1339 MovieClip [__Packages.Toast.CAction] Frame 0
class Toast.CAction
{
var _name, _done, _started, _override, _remove, _frames, _param, _param2, _loops;
function CAction (t_name) {
if (!t_name) {
t_name = "UnknownAction";
}
_name = t_name;
_done = false;
_started = false;
_override = true;
_remove = false;
_frames = 0;
_param = 0;
_param2 = 0;
_loops = -1;
}
}
Symbol 1340 MovieClip [__Packages.Toast.CButterSlugEntity] Frame 0
class Toast.CButterSlugEntity extends Toast.CEnemyEntity
{
var _timeIdled, _roared, _xmoveRange, _xattackRange, _yattackRange, _lastScale, _maxBall, _ballCounter, _alive, _ballIndex, _missCount, _hitPoints, _missTolerance, _roarCount, _text, _curTree, _id, _localGuts, SetAction, GetX, GetY, GetClip, _curAction, _mc, SetX, GetSpeed, GetWidth, SetSpeedX;
function CButterSlugEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_timeIdled = Math.floor(Math.random() * 30);
_roared = false;
_xmoveRange = 650;
_xattackRange = 400;
_yattackRange = 600;
_lastScale = false;
_maxBall = 35;
_ballCounter = _maxBall;
_alive = true;
_ballIndex = 0;
_missCount = 0;
_hitPoints = 2;
_missTolerance = Math.floor(Math.random() * 5) + 1;
_roarCount = 0;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("IdleTime: " + _timeIdled);
_text.AddLine("Tree: " + _curTree);
_text.AddLine("HP: " + _hitPoints);
_text.AddLine("ID: " + _id);
}
function Update() {
if (_localGuts != undefined) {
_localGuts._x = _localGuts._x + _root.PlatformManager._xSpeed;
_localGuts._y = _localGuts._y + _root.PlatformManager._ySpeed;
}
if (_alive) {
super.Update();
if (_missCount >= _missTolerance) {
_roarCount++;
if (_roarCount < 30) {
SetAction("ROAR");
} else if (_roarCount < 80) {
_roarCount = 0;
_missCount = 0;
_missTolerance = Math.floor(Math.random() * 5) + 1;
_ballCounter = _maxBall;
}
} else if (((!_root.hero._inToaster) && (((Math.abs(_root.hero.GetX() - GetX()) < _xattackRange) && (GetX() < 550)) && (GetX() > 0))) && (Math.abs(_root.hero.GetY() - GetY()) < _yattackRange)) {
if ((((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) && (_curAction._name != "CHAINSAWED")) {
_lastScale = true;
_mc._xscale = _mc._xscale * -1;
}
if (_ballCounter == _maxBall) {
SetAction("SHOOT");
}
if (_ballCounter >= (_maxBall + 10)) {
AddBall();
if (_roarCount > 0) {
_ballCounter = _maxBall + 10;
} else {
_ballCounter = 0;
}
}
_ballCounter++;
_lastScale = false;
} else if (((!_root.hero._inToaster) && (Math.abs(_root.hero.GetX() - GetX()) < _xmoveRange)) && (Math.abs(_root.hero.GetY() - GetY()) < _yattackRange)) {
if ((((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) && (_curAction._name != "CHAINSAWED")) {
_lastScale = true;
_mc._xscale = _mc._xscale * -1;
}
SetAction("RUN");
if (_mc._xscale < 0) {
SetX(GetX() + GetSpeed());
} else {
SetX(GetX() - GetSpeed());
}
} else if ((_curAction._name == "IDLE") || (_curAction._name == "RUN")) {
_ballCounter = 0;
onIdle();
}
}
}
function AddBall() {
var _local3 = 8;
var _local4 = (GetWidth() / 2) + 15;
if (_mc._xscale > 0) {
_local3 = _local3 * -1;
_local4 = _local4 * -1;
}
if (_root._ballIndex == undefined) {
_root._ballIndex = 0;
}
_root._ballIndex++;
var _local5;
_local5 = _root.attachMovie("butterBall", "butterBall" + _root._ballIndex, 12000 + _root._ballIndex, {_x:GetX() + _local4, _y:GetY() - 6, _speed:_local3});
_local5._slug = this;
}
function onIdle() {
_timeIdled++;
SetAction("RUN");
if (_timeIdled > 60) {
SetSpeedX(0);
_timeIdled = -50;
} else {
if (_timeIdled < 0) {
SetAction("IDLE");
return(undefined);
}
if ((_timeIdled == 0) && (_curAction._name != "CHAINSAWED")) {
_mc._xscale = _mc._xscale * -1;
}
}
if (_mc._xscale > 0) {
SetX(GetX() + GetSpeed());
} else {
SetX(GetX() - GetSpeed());
}
return(undefined);
}
}
Symbol 1341 MovieClip [__Packages.Toast.CWeapon] Frame 0
class Toast.CWeapon extends Toast.CEntity
{
var _maxMagazines, _roundsPerMag, _heat, _dispName, _curSound, GetClip, _mc, _name;
function CWeapon (t_timeline, t_clip, t_name, t_x, t_y, t_speed, t_depth) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed, t_depth);
_maxMagazines = 0;
_roundsPerMag = 0;
_heat = 0;
_dispName = "weapon";
_curSound = new Sound();
}
function interact(entity) {
if ((substring(GetClip()._name, 0, 15)) == "weapon-chainsaw") {
if (!(entity._clipType.toUpperCase() === "BUTTERSLUG")) {
} else {
if (entity._gutCounter < 1) {
entity._gutCounter = 1;
entity.SetAction("CHAINSAWED");
} else if (entity._gutCounter < 20) {
entity.SetAction("CHAINSAWED");
}
if (_root.guts == undefined) {
_root.guts = _root.attachMovie("butterguts", "butterguts!", 9075555);
_root.guts._x = 275 - (_root.guts._width / 2);
_root.guts._y = 200 + (_root.guts._height / 2);
if (_root.hero.GetX() > entity.GetX()) {
_root.guts._xscale = -Math.abs(_root.guts._xscale);
} else {
_root.guts._xscale = Math.abs(_root.guts._xscale);
}
} else {
if (_root.guts._currentframe == _root.guts._totalframes) {
if (_root.hero.GetX() > entity.GetX()) {
_root.guts._xscale = -Math.abs(_root.guts._xscale);
} else {
_root.guts._xscale = Math.abs(_root.guts._xscale);
}
}
_root.guts.play();
}
if (entity._localGuts == undefined) {
entity._localGuts = _root.attachMovie("butterlocalguts", "localguts" + entity._name, 1100 + entity._mc.getDepth(), {_x:entity._mc._x - 10, _y:_mc._y - 5});
if (_root.hero.GetX() > entity.GetX()) {
entity._localGuts._xscale = -Math.abs(entity._localGuts._xscale);
} else {
entity._localGuts._xscale = Math.abs(entity._localGuts._xscale);
}
}
if (_root.hero.GetX() > entity.GetX()) {
var _local4 = _root.hero._curWeapon._mc._x - (_root.hero._curWeapon._mc._width / 2);
if (_local4 > ((entity._mc._x + (entity._mc._width / 2)) - 20)) {
entity._localGuts._x = (entity._mc._x + (entity._mc._width / 2)) - 20;
} else if (_local4 < (entity._mc._x - (entity._mc._width / 2))) {
entity._localGuts._x = entity._mc._x - (entity._mc._width / 2);
} else {
entity._localGuts._x = _local4;
}
} else {
var _local5 = _root.hero._curWeapon._mc._x + (_root.hero._curWeapon._mc._width / 2);
if (_local5 > (entity._mc._x + (entity._mc._width / 2))) {
entity._localGuts._x = entity._mc._x + (entity._mc._width / 2);
} else if (_local5 < ((entity._mc._x - (entity._mc._width / 2)) + 20)) {
entity._localGuts._x = (entity._mc._x - (entity._mc._width / 2)) + 20;
} else {
entity._localGuts._x = _local5;
}
}
if (entity.GetY() < 100) {
_root.guts._yscale = -Math.abs(_root.guts._yscale);
entity._localGuts._yscale = -Math.abs(entity._localGuts._yscale);
entity._localGuts._y = entity._localGuts._y + 30;
}
}
}
if ((substring(_name, 0, 9)) == "no-weapon") {
if (!(entity._clipType.toUpperCase() === "BUTTERSLUG")) {
}
}
}
}
Symbol 1342 MovieClip [__Packages.Toast.CPlatformManager] Frame 0
class Toast.CPlatformManager
{
var _platforms, _entities, _objects, _index, _entIndex, _objIndex, _recalculateTrees, _activated, _xSpeed, _ySpeed, _range, _dispCollisions, _dispMap, _theLevel, _parallax1, _parallax2, _originalY, _tree, _treeCount, _treeWidth;
function CPlatformManager () {
_platforms = new Array();
_entities = new Array();
_objects = new Array();
_index = 0;
_entIndex = 0;
_objIndex = 0;
_recalculateTrees = true;
_activated = false;
_xSpeed = 0;
_ySpeed = 0;
_range = 650;
_dispCollisions = false;
_dispMap = false;
_theLevel = undefined;
_parallax1 = undefined;
_parallax2 = undefined;
_originalY = 0;
_tree = new Array();
_treeCount = 0;
_treeWidth = 100;
}
function AddPlatform(platform) {
var _local8 = platform._x;
var _local11 = platform._width;
if (platform._parent != _root.level) {
var _local10 = {x:_local8, y:platform._y};
platform._parent.localToGlobal(_local10);
_local8 = _local10.x;
}
var _local12 = _local8 - (_local11 / 2);
var _local13 = _local8 + (_local11 / 2);
var _local4 = Math.floor(_local12 / _treeWidth) - 1;
if (_local4 < 0) {
_local4 = 0;
}
if (_local4 > _treeCount) {
_local4 = _treeCount;
}
var _local9 = Math.ceil((_local13 - (_local4 * _treeWidth)) / _treeWidth);
var _local6 = _local4 + _local9;
if ((_local4 < _treeCount) && (_local6 <= _treeCount)) {
var _local3 = _local4;
while (_local3 <= _local6) {
_tree[_local3]._plats.push(_index);
_local3++;
}
}
platform._id = _index;
platform._tree = _local4;
platform._end = _local6;
_platforms.push(platform);
_index++;
var _local7;
if ((platform._width > 1) && (platform._height > 1)) {
_local7 = (Math.atan(platform._height / platform._width) * 180) / Math.PI;
} else if (platform._height > 1) {
_local7 = 90;
} else if (platform._width > 1) {
_local7 = 0;
}
if (platform._rotation < 0) {
_local7 = _local7 * -1;
}
platform.SetAngle(_local7);
_recalculateTrees = true;
}
function AddEntity(ent) {
ent._id = _entIndex;
ent._manager = this;
_entities.push(ent);
_entIndex++;
}
function AddObject(obj) {
_objects.push(obj);
_objIndex++;
}
function PlatformInRange(platID, entID) {
var _local2 = _platforms[platID];
var _local3 = _entities[entID];
if ((!_local2._defined) || (!_local3._defined)) {
_local2._defined = true;
_local3._defined = true;
_local3.entWidth = _local3.GetWidth() / 2;
_local3.entHeight = _local3.GetHeight() / 2;
_local2._notSlope = true;
_local2.platWidth = _local2._width / 2;
_local2.platHeight = _local2._height / 2;
}
var _local8 = _local3.GetX();
var _local17 = _local8 - _local3.entWidth;
var _local12 = _local8 + _local3.entWidth;
var _local6 = _local3.GetY();
var _local10 = _local6 - _local3.entHeight;
var _local11 = _local6 + _local3.entHeight;
var _local4 = {x:_local2._x, y:_local2._y};
if (_local2._notSlope) {
_local2._parent.localToGlobal(_local4);
}
var _local9 = _local4.x;
var _local16 = _local9 - _local2.platWidth;
var _local15 = _local9 + _local2.platWidth;
var _local7 = _local4.y;
var _local13 = _local7 - _local2.platHeight;
var _local14 = _local7 + _local2.platHeight;
var _local5 = false;
if ((((_local12 + _range) > _local16) && ((_local3.entLeftBound - _range) < _local15)) && (((_local10 - _range) < _local14) && ((_local11 + _range) > _local13))) {
_local5 = true;
}
return(_local5);
}
function HandleCollision(platID, entID) {
var _local4 = _platforms[platID];
var _local3 = _entities[entID];
if ((!_local4._defined) || (!_local3._defined)) {
_local4._defined = true;
_local3._defined = true;
_local4._notSlope = true;
_local3.entWidth = _local3.GetWidth() / 2;
_local3.entHeight = _local3.GetHeight() / 2;
_local4.platWidth = _local4._width / 2;
_local4.platHeight = _local4._height / 2;
}
var _local5 = _local3._mc._x;
var _local20 = _local5 - _local3.entWidth;
var _local21 = _local5 + _local3.entWidth;
var _local13 = _local3._mc._y;
var _local34 = _local13 - _local3.entHeight;
var _local35 = _local13 + _local3.entHeight;
var _local26 = {x:_local4._x, y:_local4._y};
if (_local4._notSlope) {
_local4._parent.localToGlobal(_local26);
} else if (_local4._name.substring(13) != _local3._name) {
return(undefined);
}
var _local7 = _local26.x;
var _local9 = _local7 - _local4.platWidth;
var _local8 = _local7 + _local4.platWidth;
var _local6 = _local26.y;
var _local22 = _local6 - _local4.platHeight;
var _local23 = _local6 + _local4.platHeight;
var _local18 = false;
var _local17 = false;
var _local12 = false;
var _local11 = false;
var _local10 = 10;
var _local19 = 10;
var _local14 = 0;
var _local27 = 0;
var _local25 = 0.1;
var _local29 = _local3._speed;
if ((((_local34 + _local3._ySpeed) + _ySpeed) <= _local23) && (_local13 >= _local6)) {
_local18 = true;
_local19 = _local23 - ((_local34 - _local3._ySpeed) - _ySpeed);
_local27 = _local23;
}
if ((((_local35 + _local3._ySpeed) + _ySpeed) >= _local22) && (_local13 <= _local6)) {
_local17 = true;
_local19 = ((_local35 + _local3._ySpeed) + _ySpeed) - _local22;
_local27 = _local22;
}
var _local15 = 0;
var _local16 = 0;
if (_local3._xSpeed < 0) {
_local15 = _local3._xSpeed;
} else if (_local3._xSpeed > 0) {
_local16 = _local3._xSpeed;
}
if (_xSpeed < 0) {
_local15 = _local15 - _xSpeed;
} else if (_local3._xSpeed > 0) {
_local16 = _local16 - _xSpeed;
}
if ((_local4._angle == 0) || (mabs(_local4._angle) == 90)) {
if (((_local21 + _local16) >= _local9) && (_local5 <= _local7)) {
_local12 = true;
_local10 = _local21 - _local9;
_local14 = _local9;
}
if (((_local20 + _local15) <= _local8) && (_local5 >= _local7)) {
_local11 = true;
_local10 = _local8 - _local20;
_local14 = _local8;
}
} else {
if (((_local5 + _local16) >= _local9) && (_local5 <= _local7)) {
_local12 = true;
_local10 = _local21 - _local9;
_local14 = _local9;
}
if (((_local5 + _local15) <= _local8) && (_local5 >= _local7)) {
_local11 = true;
_local10 = _local8 - _local20;
_local14 = _local8;
}
}
if ((_local17 || (_local18)) && (_local12 || (_local11))) {
if (_root["ib" + platID] == undefined) {
_root["ib" + platID] = new Toast.CEntity(_root, "intersectBox", "intersectBox", _local14, _local27);
_root["ib" + platID].GetClip()._visible = false;
}
if ((_local4._angle == 90) || (_local4._angle == -90)) {
if (_local19 > _local29) {
if (_local12) {
_local3.SetX((_local9 - _local3.entWidth) - _local25);
}
if (_local11) {
_local3.SetX((_local8 + _local3.entWidth) + _local25);
}
}
} else if (_local4._angle == 0) {
if (_local10 > _local29) {
if (_local17) {
if (_local11 || (_local12)) {
if ((_local3._curAction._name == "HEADBUTT") && (_local3._ySpeed != 0)) {
_local3._jumping = false;
_local3._jumpCount = 0;
_local3.SetAction("IDLE");
} else if ((_local3._curAction._name == "DOWN") && (_local3._jumpCount > 0)) {
_local3._jumping = false;
_local3._jumpCount = 0;
_local3.SetAction("IDLE");
}
}
var _local41 = 1;
if (_local3._ySpeed != 0) {
_local3._ySpeed = 0;
}
_local3._gravityCount = 0;
_local3._hLink = _local4;
if (_local4._name != ("slopePlatform" + _local3._name)) {
_root["slopePlatform" + _local3._name]._x = -100000;
_root["slopePlatform" + _local3._name]._y = -100000;
if (_local3._hLink._name == ("slopePlatform" + _local3._name)) {
_local3._hLink = undefined;
}
}
}
if (_local18) {
_local3._mc._y = (_local6 + _local3.entHeight) + _local25;
_local3._ySpeed = 0;
_local3.SetAction("IDLE");
if (_local4._name != ("slopePlatform" + _local3._name)) {
if (_local3._hLink._name == ("slopePlatform" + _local3._name)) {
}
}
}
}
} else if (mabs(_local7 - _local5) < _local4.platWidth) {
var _local30 = {x:_local5, y:_local13};
_root.level.globalToLocal(_local30);
_root["slopePlatform" + _local3._name]._x = _local30.x;
var _local37 = _local7 - _local5;
var _local24 = _local37 * ((_local4._angle * Math.PI) / 180);
var _local32;
var _local31;
var _local39;
var _local38;
_local32 = 0;
_local39 = _local4.platWidth / 2;
_local31 = 0;
_local38 = (-_local4.platHeight) / 2;
var _local36 = (_local38 - _local31) / (_local39 - _local32);
var _local40 = _local31 - (_local36 * _local32);
_local24 = (_local36 * _local37) + _local40;
if (_root["slopePlatform" + _local3._name] == undefined) {
if (_root.numPlats == undefined) {
_root.numPlats = 0;
}
_root.numPlats++;
_root["slopePlatform" + _local3._name] = _root.level.attachMovie("platform", "slopePlatform" + _local3._name, 19120 + _root.numPlats);
AddPlatform(_root["slopePlatform" + _local3._name]);
_root["slopePlatform" + _local3._name]._width = 0.1;
}
var _local28 = {x:_local7, y:_local6};
_root.level.globalToLocal(_local28);
_local6 = _local28.y;
if (_local4._angle < 0) {
_root["slopePlatform" + _local3._name]._y = _local6 - _local24;
} else {
_root["slopePlatform" + _local3._name]._y = _local6 + _local24;
}
_local3._hLink = _root["slopePlatform" + _local3._name];
} else {
_root["slopePlatform" + _local3._name]._x = -100000;
_root["slopePlatform" + _local3._name]._y = -100000;
if (_local3._hLink._name == ("slopePlatform" + _local3._name)) {
_local3._hLink = undefined;
}
}
}
}
function EntityInRange(entID, hero) {
var _local2 = _entities[entID];
var _local8 = {x:_local2._mc._x, y:_local2._mc._y};
if (!_local2._defined) {
_local2._defined = true;
_local2.entWidth = _local2.GetWidth() / 2;
_local2.entHeight = _local2.GetHeight() / 2;
}
var _local7 = _local8.x;
var _local9 = _local7 - _local2.entWidth;
var _local12 = _local7 + _local2.entWidth;
var _local6 = _local8.y;
var _local10 = _local6 - _local2.entHeight;
var _local11 = _local6 + _local2.entHeight;
var _local4 = hero._mc._x;
var _local3 = hero._mc._y;
var _local5 = false;
if ((((_local4 + _range) > _local9) && ((_local4 - _range) < _local12)) && (((_local3 - _range) < _local11) && ((_local3 + _range) > _local10))) {
_local5 = true;
}
return(_local5);
}
function SetLevel(level) {
_theLevel = level;
_originalY = _theLevel._y;
_root.level = _theLevel;
_treeCount = Math.ceil(_theLevel._width / _treeWidth);
var _local3 = 0;
while (_local3 < _treeCount) {
_tree.push(new Toast.CTree());
_local3++;
}
}
function GetTrees(entID, bQuick) {
var _local10 = new Array();
var _local12 = _entities[entID];
var _local14 = _local12._mc._width / 2;
var _local13 = {x:_local12._mc._x, y:_local12._mc._y};
_root.level.globalToLocal(_local13);
var _local15 = _local13.x - _local14;
var _local16 = _local13.x + _local14;
var _local9 = Math.floor(_local15 / _treeWidth) - 1;
if (bQuick) {
_local10.push(_local9);
return(_local10);
}
if (_local9 < 0) {
_local9 = 0;
}
if (_local9 > _treeCount) {
_local9 = _treeCount;
}
_local12._curTree = _local9;
var _local5 = new Array();
if (_recalculateTrees) {
_local12._savedTree = new Array();
_recalculateTrees = false;
}
if (_local12._savedTree[_local9] == undefined) {
_local10.push(_local9);
_local10.push(_local9 + 1);
var _local8 = 2;
while (_local8-- , _local8 > -1) {
var _local6 = _tree[_local10[_local8]];
for (var _local11 in _local6._plats) {
var _local4 = _local6._plats[_local11];
var _local3 = false;
for (var _local7 in _local5) {
if (_local5[_local7] == _local4) {
_local3 = true;
break;
}
}
if (_local3) {
continue;
}
_local5.push(_local4);
}
}
_local12._savedTree[_local9] = _local5;
} else {
_local5 = _local12._savedTree[_local9];
}
return(_local5);
}
function Update() {
var _local3 = _root.hero;
if ((_xSpeed != 0) || (_ySpeed != 0)) {
tellTarget (_theLevel) {
_x = (_x + _xSpeed);
_y = (_y + _ySpeed);
};
_local3._mc._y = _local3._mc._y + _ySpeed;
}
_local3._applyGravity = true;
CheckAgainst(_local3._id);
}
function CheckAgainst(j) {
var _local5 = GetTrees(j);
for (var _local6 in _local5) {
var _local3 = _local5[_local6];
if ((mabs(_platforms[_local3]._angle) != 0) && (mabs(_platforms[_local3]._angle) != 90)) {
HandleCollision(_local3, j);
_local3 = _root["slopePlatform" + _entities[j]._name]._id;
}
HandleCollision(_local3, j);
}
}
var mabs = Math.abs;
}
Symbol 1343 MovieClip [__Packages.Toast.CTree] Frame 0
class Toast.CTree
{
var _plats, _xStart, _xEnd;
function CTree () {
_plats = new Array();
_xStart = 0;
_xEnd = 0;
}
}
Symbol 1344 MovieClip [__Packages.Toast.CMiniBossEntity] Frame 0
class Toast.CMiniBossEntity extends Toast.CEnemyEntity
{
var _timeIdled, _mc, _xmoveRange, _xattackRange, _yattackRange, _afterFall, _lastScale, _lastPoints, _canChainsaw, _beingChainsawed, _alive, _hitPoints, _origPoints, _jRange, _applyGravity, _fallCount, _flash, _tintCount, _flashCount, _maxFall, _mad, _madCount, _platcounter, _platmax, _text, _curTree, _id, _curAction, SetSpeedX, _hLink, _localGuts, setTint, removeTint, SetAction, GetX, GetClip, SetX, GetSpeed;
function CMiniBossEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_timeIdled = Math.floor(Math.random() * 10);
_mc.idle.gotoAndPlay(_timeIdled);
_xmoveRange = 350;
_xattackRange = 150;
_yattackRange = 100;
_afterFall = 0;
_lastScale = false;
_lastPoints = 0;
_canChainsaw = false;
_beingChainsawed = false;
_alive = true;
_hitPoints = 13;
_origPoints = _hitPoints;
_jRange = 20;
_applyGravity = true;
_fallCount = 0;
_flash = false;
_tintCount = 0;
_flashCount = 0;
_maxFall = Math.floor(Math.random() * 90) + 95;
_mad = false;
_madCount = 0;
_platcounter = 0;
_platmax = Math.floor(Math.random() * 25) + 150;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("IdleTime: " + _timeIdled);
_text.AddLine("Tree: " + _curTree);
_text.AddLine("HP: " + _hitPoints);
_text.AddLine("ID: " + _id);
}
function SetActionEx(t_action) {
switch (t_action._name.toUpperCase()) {
case "IDLE" :
break;
case "RUN" :
break;
case "ALMOSTDEAD" :
break;
case "DIE" :
break;
case "FALL" :
break;
case "GETUP" :
break;
case "CHAINSAWED" :
break;
case "HITUP" :
break;
case "HITDOWN" :
break;
case "JUMPIN" :
break;
case "JUMPOUT" :
break;
case "JUMP" :
break;
case "NULL" :
break;
default :
return(false);
}
if (_curAction._name == "IDLE") {
_curAction = new Toast.CAction("NULL");
} else if (_curAction._done) {
_curAction = new Toast.CAction("NULL");
}
if ((_curAction._name == "NULL") || (_curAction._override)) {
_curAction = t_action;
}
}
function _HandleAction(t_action) {
if (t_action._done) {
_curAction = new Toast.CAction("NULL");
}
switch (t_action._name) {
case "IDLE" :
break;
case "RUN" :
break;
case "ALMOSTDEAD" :
break;
case "DIE" :
break;
case "FALL" :
break;
case "CHAINSAWED" :
break;
case "GETUP" :
break;
case "HITUP" :
break;
case "HITDOWN" :
break;
case "JUMPIN" :
break;
case "JUMPOUT" :
break;
case "JUMP" :
break;
default :
_curAction = new Toast.CAction("IDLE");
return(false);
}
if (t_action._name != "RUN") {
SetSpeedX(0);
}
if (!t_action._started) {
t_action._started = true;
_mc.gotoAndStop(t_action._name);
}
t_action._frames++;
return(t_action._frames);
}
function Update() {
_platcounter++;
if (_platcounter >= (_platmax - 50)) {
_root.miniPlat._y = _root.miniPlat._origY;
_root.miniPlatDisp._visible = true;
} else {
if (_root.miniPlat == _root.hero._hLink) {
_root.hero._hLink = undefined;
}
if (_root.miniPlat == _hLink) {
_hLink = undefined;
}
_root.miniPlat._y = -1E16;
_root.miniPlatDisp._visible = false;
}
if (_platcounter >= _platmax) {
_platcounter = 0;
_platmax = Math.floor(Math.random() * 25) + 150;
}
if (_localGuts != undefined) {
_localGuts._x = _localGuts._x + _root.PlatformManager._xSpeed;
_localGuts._y = _localGuts._y + _root.PlatformManager._ySpeed;
}
_root.miniHB.bar._yscale = 100 * (_hitPoints / _origPoints);
if (_hitPoints <= 0) {
_root.miniHB._visible = false;
}
if ((_hitPoints < _lastPoints) || (_flash)) {
_tintCount++;
}
if ((_madCount < 12) && (_madCount > 0)) {
if ((_madCount % 4) < 2) {
setTint(255, 0, 255, 50);
} else {
removeTint();
}
} else if (_tintCount > 0) {
_tintCount++;
if (((_tintCount > 2) && (!_flash)) || ((_tintCount > 180) && (_flash))) {
removeTint();
_tintCount = 0;
_flash = false;
} else if ((_tintCount % 2) == 0) {
if (_flash) {
if ((_tintCount % 6) == 0) {
setTint(255, 255, 255, 50);
} else {
setTint(0, 0, 0, 0);
}
} else {
setTint(255, 0, 0, 50);
}
} else {
removeTint();
}
} else {
removeTint();
}
_lastPoints = _hitPoints;
if (_alive) {
super.Update();
onIdle();
}
}
function onIdle() {
if (_hitPoints < (_origPoints / 2)) {
_mad = true;
_madCount++;
}
var _local6 = _root.hero._mc;
var _local4 = false;
if (_root.holeCover.hitTest(_local6)) {
_local4 = true;
}
_timeIdled++;
if (_timeIdled > 60) {
SetSpeedX(0);
_timeIdled = 0;
} else if (_timeIdled < 0) {
SetAction("IDLE");
return(undefined);
}
if (_afterFall > 0) {
_afterFall++;
}
if (_hitPoints <= 1) {
SetAction("ALMOSTDEAD");
_canChainsaw = true;
} else {
var _local3 = {x:GetX(), y:0};
_root.boss3Right._parent.globalToLocal(_local3);
_local3 = _local3.x;
if (_curAction._name != "FALL") {
if (_local3 > _root.boss3Right._x) {
_mc._xscale = Math.abs(_mc._xscale);
}
if (_local3 < _root.boss1Left._x) {
_mc._xscale = -Math.abs(_mc._xscale);
}
}
if (_local4 && (_root.miniPlatDisp._visible)) {
if (_root.hero._jumping) {
_root.hero._jumping = false;
}
var _local5 = {x:0, y:_root.holeCover._y};
_root.holeCover._parent.localToGlobal(_local5);
_root.hero._mc._y = _local5.y;
_root.hero.SetSpeedY(0);
}
if (_fallCount == (_maxFall - 1)) {
if (((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) {
_mc._xscale = _mc._xscale * -1;
}
}
if ((_fallCount < _maxFall) && (_curAction._name != "FALL")) {
if (_mad) {
if ((Math.abs(_root.hero.GetX() - GetX()) < 30) && (_root.hero._curAction._name != "DIE")) {
SetAction("JUMP");
} else if (((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) {
_lastScale = true;
_mc._xscale = _mc._xscale * -1;
}
if (((Math.abs(_root.hero.GetX() - GetX()) < 30) && (_fallCount > 15)) && (_curAction._name != "JUMP")) {
_fallCount = _maxFall;
}
}
if (_curAction._name != "JUMP") {
if (GetClip()._xscale < 0) {
SetX(GetX() + GetSpeed());
} else {
SetX(GetX() - GetSpeed());
}
SetAction("RUN");
}
_fallCount++;
} else if ((_curAction._name != "JUMP") && (_root.hero._curAction._name != "DIE")) {
_fallCount = 0;
_afterFall++;
_maxFall = Math.floor(Math.random() * 90) + 95;
SetAction("FALL");
}
}
return(undefined);
}
}
Symbol 1345 MovieClip [__Packages.Toast.CButterBatEntity] Frame 0
class Toast.CButterBatEntity extends Toast.CEnemyEntity
{
var _timeIdled, _mc, _xmoveRange, _xattackRange, _yattackRange, _lastScale, _alive, _hitPoints, _yDir, _applyGravity, _diveTime, _stacked, _text, _curTree, _id, _localGuts, SetX, SetY, SetSpeedX, SetAction, GetClip, GetX, GetY, GetSpeed;
function CButterBatEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_timeIdled = Math.floor(Math.random() * 10);
_mc.idle.gotoAndPlay(_timeIdled);
_xmoveRange = 350;
_xattackRange = 50;
_yattackRange = 100;
_lastScale = false;
_alive = true;
_hitPoints = 1;
_yDir = 0;
_applyGravity = false;
_diveTime = 0;
_stacked = undefined;
}
function GetProperties() {
super.GetProperties();
_text.AddLine("IdleTime: " + _timeIdled);
_text.AddLine("Tree: " + _curTree);
_text.AddLine("HP: " + _hitPoints);
_text.AddLine("YDIR: " + _yDir);
_text.AddLine("ID: " + _id);
}
function Update() {
if (_localGuts != undefined) {
_localGuts._x = _localGuts._x + _root.PlatformManager._xSpeed;
_localGuts._y = _localGuts._y + _root.PlatformManager._ySpeed;
}
if (_alive) {
super.Update();
if (_stacked == undefined) {
onIdle();
} else {
SetX(_stacked._x);
SetY(_stacked._y);
}
}
}
function onIdle() {
_timeIdled++;
if (_timeIdled > 60) {
SetSpeedX(0);
_yDir = Math.floor(Math.random() * 6) - 3;
_timeIdled = 0;
} else if (_timeIdled < 0) {
SetAction("IDLE");
return(undefined);
}
if (((_root.hero.GetX() - GetX()) / GetClip()._xscale) > 0) {
_lastScale = true;
_mc._xscale = _mc._xscale * -1;
}
if ((((Math.abs(_root.hero.GetX() - GetX()) < _xattackRange) && (_diveTime >= 0)) && (_diveTime < 15)) && (GetY() < 200)) {
_yDir = 5;
_diveTime++;
} else if (_diveTime < 0) {
_diveTime++;
} else {
_diveTime = -200;
}
if (GetY() < 50) {
_yDir = 2;
} else if (GetY() > 260) {
_yDir = -2;
}
if (Math.abs(_root.hero.GetX() - GetX()) > _xattackRange) {
if (_mc._xscale < 0) {
SetX(GetX() + GetSpeed());
} else {
SetX(GetX() - GetSpeed());
}
} else if (Math.floor(Math.random() * 4) == 0) {
SetX(GetX() + (Math.floor(Math.random() * 4) - 2));
}
SetY(GetY() + _yDir);
return(undefined);
}
}
Symbol 1346 MovieClip [__Packages.Toast.CBossEntity] Frame 0
class Toast.CBossEntity extends Toast.CEnemyEntity
{
var _applyGravity, _meleeRange, _able, _dead, _origPoints, _hitPoints, _lastPoints, _flash, _tintCount, _shootCount, _maxCount, _ballCount, _overrideDeath, _blocked, _alive, _melee, _isParalyzed, _shotsToParalyze, _curParalyzeCount, _canBeDamagedByArrow, _paralysisLength, _paralysisCount, _repsToLaser, _laserRepsCount, _eyeOpen, _flipped, _lasered, _eyeHit, _maxEyeHit, _stayCount, _fullCount, _eyeLaserWait, _eyeLaserWaitCount, SetAction, _text, _curTree, _id, _curAction, SetSpeedX, _mc, _localGuts, removeTint, setTint;
function CBossEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_applyGravity = false;
_meleeRange = 150;
_able = true;
_dead = false;
_origPoints = 60;
_hitPoints = _origPoints;
_lastPoints = _hitPoints;
_flash = false;
_tintCount = 0;
_shootCount = 0;
_maxCount = 40;
_ballCount = 0;
_overrideDeath = true;
_blocked = true;
_alive = true;
_melee = true;
_isParalyzed = false;
_shotsToParalyze = Math.floor(Math.random() * 2) + 2;
_curParalyzeCount = 0;
_canBeDamagedByArrow = true;
_paralysisLength = 350;
_paralysisCount = 0;
_repsToLaser = Math.floor(Math.random() * 2) + 3;
_laserRepsCount = 0;
_eyeOpen = false;
_flipped = false;
_lasered = false;
_eyeHit = 0;
_maxEyeHit = Math.floor(Math.random() * 2) + 2;
_stayCount = 0;
_fullCount = 100;
_eyeLaserWait = 100;
_eyeLaserWaitCount = 0;
SetAction("IDLE");
}
function GetProperties() {
super.GetProperties();
_text.AddLine("Tree: " + _curTree);
_text.AddLine("HP: " + _hitPoints);
_text.AddLine("ID: " + _id);
}
function SetActionEx(t_action) {
switch (t_action._name.toUpperCase()) {
case "IDLE" :
break;
case "FLIP" :
break;
case "FLIPBACK" :
break;
case "LAZER" :
break;
case "MELEE" :
break;
case "PARALYZED" :
break;
case "SHOOT" :
break;
case "HIT" :
break;
case "DIE" :
break;
case "NULL" :
break;
default :
return(false);
}
if (_curAction._name == "IDLE") {
_curAction = new Toast.CAction("NULL");
} else if (_curAction._done) {
_curAction = new Toast.CAction("NULL");
}
if ((_curAction._name == "NULL") || (_curAction._override)) {
_curAction = t_action;
}
}
function _HandleAction(t_action) {
if (t_action._done) {
_curAction = new Toast.CAction("NULL");
}
switch (t_action._name) {
case "IDLE" :
break;
case "FLIP" :
break;
case "FLIPBACK" :
break;
case "LAZER" :
break;
case "MELEE" :
break;
case "PARALYZED" :
break;
case "SHOOT" :
break;
case "HIT" :
break;
case "DIE" :
break;
default :
_curAction = new Toast.CAction("IDLE");
return(false);
}
if (t_action._name != "RUN") {
SetSpeedX(0);
}
if (!t_action._started) {
t_action._started = true;
_mc.gotoAndStop(t_action._name);
}
t_action._frames++;
return(t_action._frames);
}
function Update() {
if (_localGuts != undefined) {
_localGuts._x = _localGuts._x + _root.PlatformManager._xSpeed;
_localGuts._y = _localGuts._y + _root.PlatformManager._ySpeed;
}
_root.bossHB.bar._yscale = 100 * (_hitPoints / _origPoints);
if ((_hitPoints < _lastPoints) || (_flash)) {
_tintCount++;
}
if (_tintCount > 0) {
_tintCount++;
if (((_tintCount > 2) && (!_flash)) || ((_tintCount > 180) && (_flash))) {
removeTint();
_tintCount = 0;
_flash = false;
} else if ((_tintCount % 2) == 0) {
if (_flash) {
if ((_tintCount % 6) == 0) {
if (_isParalyzed) {
setTint(255, 0, 0, 50);
} else {
setTint(0, 0, 255, 50);
}
} else {
setTint(0, 0, 0, 0);
}
} else if (_isParalyzed) {
setTint(255, 0, 0, 50);
} else {
setTint(0, 0, 255, 50);
}
} else {
removeTint();
}
} else {
removeTint();
}
_lastPoints = _hitPoints;
if (_alive) {
super.Update();
_alive = !_dead;
_root.PlatformManager.CheckAgainst(_id);
onIdle();
}
}
function onIdle() {
var _local3 = _root.hero;
if (!_local3._attacking) {
_able = true;
}
if (_hitPoints > 1) {
if (((_mc.hitTest(_local3._curWeapon._mc) && (_able)) && (_local3._attacking)) && (_local3._curWeapon._name.substr(0, 15) == "weapon-chainsaw")) {
var _local4 = new Toast.CAction();
_local4._name = "ELECTRIC";
_local4._override = false;
_local3.SetActionEx(_local4);
_local3._hitPoints--;
_able = false;
}
if (_eyeOpen) {
if (!_flipped) {
SetAction("FLIP");
_flipped = true;
} else if (!_lasered) {
SetAction("LAZER");
_lasered = true;
}
} else {
_lasered = false;
_flipped = false;
if (!_mc.hitTest(_root.hero._mc)) {
_melee = true;
}
if (!_isParalyzed) {
if (_mc.hitTest(_root.hero._mc) && (_blocked)) {
_root.hero._mc._hitPoints = _root.hero._mc._hitPoints - 0.5;
_blocked = false;
} else {
_blocked = true;
}
if (Math.abs(_mc._x - _local3._mc._x) < _meleeRange) {
if (_mc.hitTest(_local3._mc) && (_melee)) {
_melee = false;
_local3._hitPoints = _local3._hitPoints - 2;
}
SetAction("MELEE");
} else {
if (_shootCount >= _maxCount) {
_shootCount = 0;
SetAction("SHOOT");
}
if (_mc.hitTest(_root.crossbowArrow)) {
_hitPoints = _hitPoints - 0.25;
_root.crossbowArrow.removeMovieClip();
_curParalyzeCount++;
SetAction("HIT");
}
if (_curParalyzeCount >= _shotsToParalyze) {
_curParalyzeCount = 0;
_shotsToParalyze = Math.floor(Math.random() * 2) + 3;
_isParalyzed = true;
_laserRepsCount++;
}
_shootCount++;
}
} else {
_blocked = true;
if (_laserRepsCount >= _repsToLaser) {
_isParalyzed = false;
_laserRepsCount = 0;
_repsToLaser = Math.floor(Math.random() * 2) + 3;
SetAction("LAZER");
_eyeOpen = true;
} else {
_stayCount++;
if (_stayCount >= _fullCount) {
_isParalyzed = false;
_stayCount = 0;
}
SetAction("PARALYZED");
if (((_local3._attacking && (_local3._curWeapon._name == "no-weapon")) && (_able)) && (_local3._mc.hitTest(_mc))) {
_hitPoints--;
_able = false;
}
}
}
}
} else {
_isParalyzed = true;
_flash = true;
if ((_mc.hitTest(_local3._curWeapon._mc) && (_local3._attacking)) && (_local3._curWeapon._name.substr(0, 15) == "weapon-chainsaw")) {
_curAction._done = true;
var _local4 = new Toast.CAction();
_local4._name = "DIE";
_local4._override = false;
SetActionEx(_local4);
}
}
return(undefined);
}
}
Symbol 1347 MovieClip [__Packages.Toast.CHeroEntity] Frame 0
class Toast.CHeroEntity extends Toast.CEntity
{
var _jumping, _curSub, _flash, _inToaster, _headbuttContact, _jumpSpeed, _hitPoints, _canJump, _jumpCount, _applyGravity, _attacking, _gravity, _crouching, _crouchIsDown, _gravityCount, _weapons, _curAction, _curWeapon, _curWeaponIndex, _lastPoints, _tintCount, _isSwimming, _maxLives, _lives, _text, _selected, _mc, _ySpeed, _xSpeed, _curTree, GetHeight, GetY, GetWidth, GetX, removeTint, setTint, _inGameHeight, _boundingBox, _speed, _origHeight, _alive, SetSpeedY, GetSpeedY, SetSpeedX;
function CHeroEntity (t_timeline, t_clip, t_name, t_x, t_y, t_speed) {
super(t_timeline, t_clip, t_name, t_x, t_y, t_speed);
_jumping = false;
_curSub = 0;
_flash = false;
_inToaster = false;
_headbuttContact = false;
_jumpSpeed = 30;
_hitPoints = 15;
_canJump = true;
_jumpCount = 0;
_applyGravity = true;
_attacking = false;
_gravity = 0.4;
_crouching = false;
_crouchIsDown = false;
_gravityCount = 0;
_weapons = new Array();
_curAction = new Toast.CAction("IDLE");
_curWeapon = new Toast.CWeapon();
_curWeapon._name = "no-weapon";
_weapons.push(new Toast.CWeapon());
_weapons.push(_curWeapon);
_weapons.push(new Toast.CWeapon());
_curWeaponIndex = 1;
_lastPoints = 0;
_tintCount = 0;
_isSwimming = false;
_maxLives = 3;
_lives = _maxLives;
}
function SwitchWeapon(i) {
if (i < _weapons.length) {
if (_weapons[i] != undefined) {
_curWeapon._mc._visible = false;
_curWeapon = _weapons[i];
_curWeapon._mc._visible = true;
_curWeaponIndex = i;
}
}
}
function GetProperties() {
super.GetProperties();
_text.AddLine("Selected: " + _selected);
_text.AddLine("Depth: " + _mc.getDepth());
_text.AddLine("Jumping? " + _jumping);
_text.AddLine("Jump Count: " + _jumpCount);
_text.AddLine("Grav Count: " + _gravityCount);
_text.AddLine((("XS: " + Math.round(_xSpeed)) + " YS: ") + _ySpeed);
_text.AddLine("Action: " + _curAction._name);
_text.AddLine("Tree: " + _curTree);
_text._mc._y = (GetY() - (GetHeight() / 2)) - _text._mc._height;
_text._mc._x = (GetX() - (GetWidth() / 2)) + (_text._mc._width / 2);
}
function Update() {
super.Update();
if ((_hitPoints < _lastPoints) || (_flash)) {
_tintCount++;
}
if (_tintCount > 0) {
_tintCount++;
if (((_tintCount > 2) && (!_flash)) || ((_tintCount > 180) && (_flash))) {
removeTint();
_tintCount = 0;
_flash = false;
} else if ((_tintCount % 2) == 0) {
if (_flash) {
if ((_tintCount % 6) == 0) {
setTint(255, 255, 255, 50);
} else {
setTint(0, 0, 0, 0);
}
} else {
setTint(255, 0, 0, 50);
}
} else {
removeTint();
}
}
_lastPoints = _hitPoints;
if (_crouching) {
_inGameHeight = 20;
_boundingBox._height = _inGameHeight;
_speed = 1;
} else {
_inGameHeight = _origHeight;
_boundingBox._height = _inGameHeight;
_crouchIsDown = false;
_speed = 3;
}
_root.health.bar._yscale = 100 * (_hitPoints / 15);
if (_hitPoints <= 0) {
SetAction("DIE");
}
if (_alive) {
if (_applyGravity) {
if (_gravityCount < 30) {
_gravityCount++;
}
SetSpeedY(Math.round(GetSpeedY() - ((_gravity * _gravityCount) * 0.9)));
} else {
_gravityCount = 0;
}
if (_curAction != "IDLE") {
_HandleAction(_curAction);
} else {
SetAction("IDLE");
}
}
}
function SetAction(t_action) {
t_action = t_action.toUpperCase();
var _local2 = new Toast.CAction(t_action);
SetActionEx(_local2);
return(true);
}
function SetActionEx(t_action) {
switch (t_action._name.toUpperCase()) {
case "IDLE" :
break;
case "RUN" :
break;
case "HEADBUTT" :
break;
case "DIE" :
break;
case "TOAST" :
break;
case "UP" :
break;
case "DOWN" :
break;
case "ELECTRIC" :
break;
case "NULL" :
break;
default :
return(false);
}
if (_curAction._name == "IDLE") {
_curAction = new Toast.CAction("NULL");
} else if (_curAction._done) {
_curAction = new Toast.CAction("NULL");
}
if ((_curAction._name == "NULL") || (_curAction._override)) {
_curAction = t_action;
}
}
function _HandleAction(t_action) {
if (t_action._done) {
_curAction = new Toast.CAction("NULL");
}
switch (t_action._name) {
case "IDLE" :
break;
case "RUN" :
break;
case "HEADBUTT" :
break;
case "DIE" :
break;
case "TOAST" :
break;
case "UP" :
break;
case "DOWN" :
break;
case "ELECTRIC" :
break;
default :
_curAction = new Toast.CAction("IDLE");
return(false);
}
if (t_action._name != "RUN") {
SetSpeedX(0);
}
if (!t_action._started) {
t_action._started = true;
if (_crouching) {
if (t_action._name == "RUN") {
t_action._name = "CROUCHRUN";
if ((!_root.hero._crouchIsDown) || (!_root.wentDown)) {
t_action._name = "CROUCHIDLE";
}
} else if (t_action._name == "IDLE") {
t_action._name = "CROUCHIDLE";
}
}
if (_isSwimming) {
if (t_action._name == "RUN") {
t_action._name = "SWIMRUN";
} else if (t_action._name == "IDLE") {
t_action._name = "SWIMIDLE";
}
}
_mc.gotoAndStop(t_action._name);
}
t_action._frames++;
return(t_action._frames);
}
function SetActionDone(t_action) {
if (_curAction._name == t_action.toUpperCase()) {
_curAction._done = true;
}
}
}
Symbol 17 MovieClip Frame 24
_parent._parent.SetActionDone("ROAR");
stop();
Symbol 23 MovieClip Frame 25
_parent._parent.SetActionDone("RUN");
Symbol 29 MovieClip Frame 12
_parent._parent.SetActionDone("SHOOT");
Symbol 53 MovieClip Frame 1
this._parent._struck.removeMovieClip();
if (_parent._deadByHead) {
gotoAndPlay ("HEADBUTTED");
} else {
var p = this._parent._parent;
if (p._nextSpawn != undefined) {
var s = p._nextSpawn;
var nam = p._name;
for (var i in s) {
var c = s[i];
if (c._final != undefined) {
_root.level._rightBound = c._final;
_root.goClip.play();
} else {
_root.slugCount++;
if (c._off == undefined) {
c._off = 0;
}
if (c._x < 0) {
c._x = -80 - c._off;
} else {
c._x = 630 + c._off;
}
var co = {x:c._x, y:0};
c._x = co.x;
var temp = (new Toast.CButterSlugEntity(_root, "butterslug", "butterslug" + _root.slugCount, c._x, c._y, 2));
temp.GetClip().swapDepths(500 + _root.slugCount);
temp._nextSpawn = c._nextSpawn;
temp.SetWidth(temp.GetClip()._width * 1.8);
temp.SetHeight(temp.GetClip()._height * 1.8);
_root.PlatformManager.AddEntity(temp);
}
}
}
if (_root.lastDeath == 0) {
_root.lastDeath = 1;
gotoAndPlay ("ALTERNATE");
} else if (_root.lastDeath == undefined) {
_root.lastDeath = 1;
} else {
_root.lastDeath = 0;
}
}
Symbol 53 MovieClip Frame 79
this.gotoAndStop("DEATH");
Symbol 53 MovieClip Frame 148
delete this._parent.onEnterFrame;
this._parent.removeMovieClip();
delete this._parent._parent;
stop();
Symbol 53 MovieClip Frame 149
var coo = new Sound(this);
coo.setVolume(_root.fxVolume);
var g = Math.round(Math.random());
if (g == 0) {
coo.attachSound("punch1");
} else {
coo.attachSound("punch2");
}
coo.start();
Symbol 53 MovieClip Frame 181
_parent._deadByHead = false;
Symbol 63 MovieClip [headbutted] Frame 1
var coo = new Sound(this);
coo.setVolume(_root.fxVolume);
var g = Math.round(Math.random());
if (g == 0) {
coo.attachSound("punch1");
} else {
coo.attachSound("punch2");
}
coo.start();
Symbol 63 MovieClip [headbutted] Frame 4
_parent._parent.SetActionDone("HEADBUTTED");
stop();
Symbol 64 MovieClip [butterslug] Frame 1
if (this.onEnterFrame == undefined) {
this.onEnterFrame = function () {
var _local4 = this._parent;
var _local5 = _local4._manager;
var _local3 = this;
if (!_root._paused) {
if (_local4._alive == undefined) {
_local4._alive = true;
}
if (((_local5._xSpeed != 0) || (_local5._ySpeed != 0)) || (!_root._canControl)) {
_local4._mc._x = _local4._mc._x + _local5._xSpeed;
_local4._mc._y = _local4._mc._y + _local5._ySpeed;
}
var _local10 = this._y;
if ((!_local4._jumping) && (_local4._hLink != undefined)) {
_local4._applyGravity = false;
var _local6 = {x:_local4._hLink._x, y:_local4._hLink._y};
if (_local4._hLink._name == ("slopePlatform" + h._name)) {
_local4._hLink._width = 50;
}
_local4._hLink._parent.localToGlobal(_local6);
this._parent.globalToLocal(_local6);
var _local15 = this._x - (this._width / 2);
var _local14 = this._x + (this._width / 2);
var _local12 = _local6.x - (_local4._hLink._width / 2);
var _local11 = _local6.x + (_local4._hLink._width / 2);
if ((_local15 < _local12) || (_local14 > _local11)) {
_local4._hLink = undefined;
_local4._applyGravity = true;
}
_local4._gravityCount = 0;
_local10 = _local6.y - 19.9;
} else if (_local4._hLink == undefined) {
parent_applyGravity = true;
}
_local4._mc._y = _local10;
if ((((_local3._counter >= 50) || (_local3._counter == undefined)) && (Math.abs(_root.hero._xSpeed + _local5._xSpeed) > 0)) || (_local3._rangeGood == undefined)) {
_local3._rangeGood = _local5.EntityInRange(_local4._id, _root.hero);
_local3._counter = 0;
}
_local3._counter++;
if ((_local4._curAction._name != "DIE") && (_local3._rangeGood)) {
_local4._alive = true;
_local3._alpha = 100;
var _local13 = _local4._id;
_local5.CheckAgainst(_local13);
if ((!_root.hero._attacking) && (_root.hero._curWeapon._name == "no-weapon")) {
_local3._able = true;
}
if ((_root.hero._curWeapon._mc._visible && (_local3.hitTest(_root.hero._curWeapon._mc))) && (_root.hero._attacking)) {
_root.hero._curWeapon.interact(_local4);
} else if (((_root.hero._attacking && (_root.hero._curWeapon._name == "no-weapon")) && (_local3.hitTest(_root.hero._mc))) && (_local3._able)) {
_local3._able = false;
_local4._hitPoints = _local4._hitPoints - 0.5;
_local4.SetAction("HEADBUTTED");
_local4._ballCounter = 0;
_local4._missCount = 0;
var _local7 = _root.hero._mc._x + (_root.hero._mc._width / 2);
if (_root.hero._mc._xscale > 0) {
_local7 = _root.hero._mc._x - (_root.hero._mc._width / 2);
}
var _local9 = _local7 + (_local3._width / 2);
if ((_local7 < (_local3._x - (_local3._width / 2))) || (_root.hero._mc._xscale > 0)) {
_local9 = _local7 - (_local3._width / 2);
}
if (_root.moveSlug) {
_local3._x = _local9;
}
if (_local4._hitPoints <= 0) {
_local3._deadByHead = true;
}
}
if (_local4._gutCounter > 0) {
_local4._gutCounter++;
if (_local4._gutCounter > 20) {
_local4._hitPoints = 0;
_local4.SetAction("DIE");
}
}
if (_local3.hitTest(_root.crossbowArrow) && (!_local3.hitTest(_root.hero._mc))) {
_local4._hitPoints--;
var _local8 = ((-_local3._width) / 2) + 5;
if (_root.hero._mc._x > _local3._x) {
_local8 = (_local3._width / 2) - 5;
}
if ((_local4._hitPoints <= 2) && (_local4._hitPoints >= 1)) {
_root.crossbowArrow._speed = 0;
_local3._struck = _root.attachMovie("crossbow - wiggly arrow", _local3.getDepth() + " arrow", 5900 + _local3.getDepth(), {_x:_local3._x, _y:_local3._y});
if ((_root.crossbowArrow._up != 0) && (!_root.crossbowArrow._dn)) {
_local3._struck._rotation = -90;
_local3._struck._x = _root.crossbowArrow._x;
_local3._struck._y = (_local3._y + (_local3._height / 2)) + 5;
} else if ((_root.crossbowArrow._up != 0) && (_root.crossbowArrow._dn)) {
_local3._struck._rotation = 90;
_local3._struck._x = _root.crossbowArrow._x;
_local3._struck._y = (_local3._y - (_local3._height / 2)) - 5;
} else if (((_local8 < 0) && (_local3._struck._xscale < 0)) || ((_local8 > 0) && (_local3._struck._xscale > 0))) {
_local3._struck._xscale = _local3._struck._xscale * -1;
}
_root.crossbowArrow.removeMovieClip();
}
}
} else if (_local4._curAction._name != "DIE") {
} else {
_local4._alive = false;
}
if (_local3._struck != undefined) {
_local3._curX = _local3._x;
_local3._curY = _local3._y;
diffX = _local3._lastX - _local3._curX;
diffY = _local3._lastY - _local3._curY;
_local3._lastX = _local3._curX;
_local3._lastY = _local3._curY;
_local3._struck._x = _local3._struck._x - diffX;
_local3._struck._y = _local3._struck._y - diffY;
}
if (_local3._rangeGood) {
_local4.Update();
}
}
};
}
stop();
Symbol 64 MovieClip [butterslug] Frame 2
stop();
Symbol 64 MovieClip [butterslug] Frame 3
stop();
Symbol 64 MovieClip [butterslug] Frame 4
stop();
Symbol 64 MovieClip [butterslug] Frame 5
stop();
Symbol 64 MovieClip [butterslug] Frame 6
stop();
Symbol 64 MovieClip [butterslug] Frame 7
stop();
Symbol 71 MovieClip Frame 85
_parent._parent.SetActionDone("IDLE");
Symbol 79 MovieClip Frame 17
_parent._parent.SetActionDone("RUN");
Symbol 85 MovieClip Frame 1
_root.hero._attackOverride = true;
_root.hero._headbuttContact = true;
Symbol 85 MovieClip Frame 11
_root.hero._attackOverride = false;
_parent._parent.SetActionDone("HEADBUTT");
Symbol 97 MovieClip Frame 1
_root._canControl = false;
Symbol 97 MovieClip Frame 90
stop();
var p = _parent._parent;
p.SetActionDone("DIE");
if (p._lives > 1) {
p._lives--;
p._alive = true;
p._hitPoints = 15;
p._flash = true;
_root.hero._hLink = undefined;
_root.hero._mc._y = _root.camTop;
_root._canControl = true;
} else {
_root.gameOver = true;
}
Symbol 113 MovieClip Frame 2
stop();
_parent._parent.SetActionDone("UP");
Symbol 115 MovieClip Frame 3
stop();
_parent._parent.SetActionDone("DOWN");
Symbol 122 MovieClip Frame 1
if (_root.hero._crouchIsDown) {
gotoAndPlay (7);
} else {
_root.wentDown = false;
}
Symbol 122 MovieClip Frame 2
_root.hero._crouchIsDown = true;
Symbol 122 MovieClip Frame 7
_parent._parent.SetActionDone("IDLE");
_root.wentDown = true;
Symbol 128 MovieClip Frame 22
_parent._parent.SetActionDone("RUN");
Symbol 142 MovieClip [swim idle] Frame 25
this._parent._parent.SetActionDone("IDLE");
Symbol 156 MovieClip [swim run] Frame 25
_parent._parent.SetActionDone("RUN");
Symbol 162 MovieClip Frame 8
this._parent._parent.SetActionDone("ELECTRIC");
Symbol 163 MovieClip [hero] Frame 1
stop();
Symbol 163 MovieClip [hero] Frame 2
stop();
Symbol 163 MovieClip [hero] Frame 3
stop();
Symbol 163 MovieClip [hero] Frame 4
stop();
Symbol 163 MovieClip [hero] Frame 5
stop();
Symbol 163 MovieClip [hero] Frame 6
stop();
Symbol 163 MovieClip [hero] Frame 7
stop();
Symbol 163 MovieClip [hero] Frame 8
stop();
Symbol 163 MovieClip [hero] Frame 9
stop();
Symbol 163 MovieClip [hero] Frame 10
stop();
Symbol 163 MovieClip [hero] Frame 11
stop();
Symbol 163 MovieClip [hero] Frame 12
stop();
Symbol 208 MovieClip [weapon-chainsaw] Frame 1
if (this.onEnterFrame == undefined) {
var t = this;
var h = _root.hero;
var keyDown = Key.isDown;
this._attackCount = 0;
this._maxAttack = 30;
this._recharge = 40;
this.onEnterFrame = function () {
if (!_root._paused) {
if (!t._added) {
if (t.hitTest(h._mc) && (_root.overWeapon == undefined)) {
_root.overWeapon = t;
} else if ((!t.hitTest(h._mc)) && ((_root.overWeapon == t._name) || (_root.overWeapon == t))) {
_root.overWeapon = undefined;
}
var _local4 = {x:this._origX, y:this._origY};
this._origParent.localToGlobal(_local4);
this._x = _local4.x;
this._y = _local4.y;
} else {
if (this._attackCount > this._maxAttack) {
h._attacking = false;
this._attackCount++;
this.smoke._visible = this._visible;
if (this._attackCount >= (this._maxAttack + this._recharge)) {
this._attackCount = 0;
}
} else {
this.smoke._visible = false;
}
if ((_root.overWeapon == t._name) || (_root.overWeapon == t)) {
_root.overWeapon = undefined;
}
}
if (t._visible) {
this._c = undefined;
if (h._curWeapon._mc.getDepth() == t.getDepth()) {
h._attackOverride = false;
if (h._attacking && ((t._currentframe < 6) || (t._currentframe > 49))) {
gotoAndPlay ("ATTACK");
} else if ((t._currentframe > 15) && (t._currentframe < 49)) {
h._attackOverride = true;
h._attacking = true;
} else if ((h._curAction._name == "RUN") && (t._currentframe < 6)) {
gotoAndPlay(49 + h._mc.run._currentframe);
} else if ((h._curAction._name == "RUN") && (t._currentframe > 49)) {
gotoAndPlay(49 + h._mc.run._currentframe);
} else if ((h._curAction._name != "RUN") && (t._currentframe > 49)) {
gotoAndPlay (1);
}
if ((t._currentframe > 5) && (t._currentframe < 49)) {
h._attacking = true;
} else {
h._attacking = false;
}
if (t._origScale == undefined) {
t._dispName = "the Breadsaw";
t._origScale = t._xscale;
}
if (t._added == undefined) {
t._added = false;
}
if (_root.overWeapon.getDepth() == t.getDepth()) {
_root.overWeapon = undefined;
}
play();
var _local6;
if (h._mc._xscale < 0) {
_local6 = 1;
t._xscale = t._origScale;
} else {
_local6 = -1;
t._xscale = -t._origScale;
}
t._x = h._mc._x + ((_local6 * 1.4) * h._origWidth);
if (!h._crouching) {
if (h._curAction._name == "RUN") {
t._y = (Math.round(h._mc._y + (h._mc._height / 2)) - (h._origHeight / 2)) - 5;
} else {
t._y = ((h._mc._y - (h._mc._height / 2)) + (h._origHeight / 2)) - 5;
}
} else {
t._y = h._mc._y - 5;
}
} else {
if ((((!t._added) && (t.hitTest(h._mc))) && (keyDown(32))) && (h._curWeapon._mc.getDepth() != t.getDepth())) {
var _local5 = new Toast.CWeapon();
_local5._name = _name;
_local5._mc = t;
_root.level._leftBound = 4300;
var _local3 = new Toast.CButterSlugEntity(_root, "butterslug", "butterslug" + _root.slugCount, 630, 320, 2);
_local3.GetClip().swapDepths(500 + _root.slugCount);
var _local4 = {x:840, y:320};
_local3._nextSpawn = new Array();
_local3._nextSpawn.push({_x:1, _y:_local4.y});
_local3._nextSpawn.push({_x:1, _y:_local4.y, _off:80});
_local3._nextSpawn.push({_x:-1, _y:_local4.y});
_local3._nextSpawn[0]._nextSpawn = new Array();
_local3._nextSpawn[0]._nextSpawn.push({_x:-1, _y:_local4.y, _off:50});
_local3._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
_local3._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:-1, _y:_local4.y, _off:100});
_local3._nextSpawn[0]._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
_local3._nextSpawn[0]._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:_local4.y, _final:7350});
_local3.SetWidth(_local3.GetClip()._width * 1.8);
_local3.SetHeight(_local3.GetClip()._height * 1.8);
_root.PlatformManager.AddEntity(_local3);
h._weapons[0] = _local5;
h.SwitchWeapon(0);
_root.weaponGUI.gotoAndStop(3);
_root.weaponGUI.chain._visible = true;
t._added = true;
}
if ((h._attackOverride && ((t._currentframe > 15) && (t._currentframe < 49))) && (!t._visible)) {
h._attackOverride = false;
h._attacking = false;
}
t.gotoAndStop(1);
}
} else if (this._c == undefined) {
this._c = 0;
_root.hero._attacking = false;
_root.hero._attackOverride = false;
}
}
};
}
Instance of Symbol 194 MovieClip [smoke] "smoke" in Symbol 208 MovieClip [weapon-chainsaw] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 208 MovieClip [weapon-chainsaw] Frame 5
gotoAndPlay (1);
Symbol 208 MovieClip [weapon-chainsaw] Frame 6
var coo = new Sound(this);
coo.setVolume(_root.fxVolume);
coo.attachSound("chain start");
coo.start();
Symbol 208 MovieClip [weapon-chainsaw] Frame 48
if ((Key.isDown(83) && (_root.hero._curWeapon.GetClip().getDepth() == this.getDepth())) && (this._attackCount <= this._maxAttack)) {
this._attackCount++;
gotoAndPlay (47);
}
Symbol 208 MovieClip [weapon-chainsaw] Frame 49
gotoAndPlay (1);
Symbol 211 MovieClip [crossbow - live arrow] Frame 1
#initclip 22
function crossbowArrow() {
if (this._up != 0) {
this._rotation = 90;
if (this._dn) {
this._rotation = -90;
}
}
this.onEnterFrame = function () {
if (!_root._paused) {
if ((this._x < 0) || (this._x > 550)) {
delete this.onEnterFrame;
this.removeMovieClip();
}
this._x = this._x + _root.PlatformManager._xSpeed;
this._y = this._y + _root.PlatformManager._ySpeed;
if (this._up == 0) {
this._x = this._x + this._speed;
} else if (this._dn) {
this._y = this._y + Math.abs(this._speed);
} else {
this._y = this._y - Math.abs(this._speed);
}
}
};
}
crossbowArrow.prototype = new MovieClip();
Object.registerClass("crossbow - live arrow", crossbowArrow);
#endinitclip
stop();
Symbol 211 MovieClip [crossbow - live arrow] Frame 2
stop();
Symbol 223 MovieClip [crossbow - wiggly arrow] Frame 20
stop();
Symbol 233 MovieClip [weapon-crossbow] Frame 1
stop();
if (this.onEnterFrame == undefined) {
var t = this;
var h = _root.hero;
var keyDown = Key.isDown;
this.onEnterFrame = function () {
if (!t._added) {
if (t.hitTest(h._mc) && (_root.overWeapon == undefined)) {
_root.overWeapon = t;
} else if ((!t.hitTest(h._mc)) && ((_root.overWeapon == t._name) || (_root.overWeapon == t))) {
_root.overWeapon = undefined;
}
var _local5 = {x:this._origX, y:this._origY};
this._origParent.localToGlobal(_local5);
this._x = _local5.x;
this._y = _local5.y;
} else if ((_root.overWeapon == t._name) || (_root.overWeapon == t)) {
_root.overWeapon = undefined;
}
if (t._visible) {
if (h._curWeapon._mc.getDepth() == t.getDepth()) {
if (keyDown(38)) {
if (t._xscale < 0) {
t._rotation = 90;
} else {
t._rotation = -90;
}
} else if (keyDown(40) && (h._jumping || (h._gravityCount > 1))) {
if (t._xscale < 0) {
t._rotation = -90;
} else {
t._rotation = 90;
}
t._downRot = true;
} else {
t._rotation = 0;
}
if (t._downRot && ((!h._jumping) || (h._crouching))) {
t._downRot = false;
t._rotation = 0;
}
if (!h._attacking) {
t._able = true;
}
if ((h._attacking && (t._able)) && ((t._currentframe < 2) || (t._currentframe > 29))) {
var _local4 = 1;
if (t._xscale < 0) {
_local4 = -1;
}
if (t._rotation != 0) {
_local4 = -1;
}
var _local7 = _local4 * 30;
_root.crossbowArrow = _root.attachMovie("crossbow - live arrow", "crossbowArrow", 19590, {_x:t._x, _y:t._y, _speed:_local7, _up:t._rotation, _dn:t._downRot});
_root.crossbowArrow._xscale = _root.crossbowArrow._xscale * _local4;
gotoAndPlay ("ATTACK");
t._able = false;
} else if (((h._curAction._name == "RUN") && (t._rotation == 0)) && (t._currentframe < 2)) {
gotoAndPlay(29 + h._mc.run._currentframe);
} else if (((h._curAction._name == "RUN") && (t._rotation == 0)) && (t._currentframe > 29)) {
gotoAndPlay(29 + h._mc.run._currentframe);
} else if ((h._curAction._name != "RUN") && (t._currentframe > 29)) {
gotoAndPlay (1);
}
if (t._origScale == undefined) {
t._dispName = "the Crossbow";
t._origScale = t._xscale;
}
if (t._added == undefined) {
t._added = false;
}
if (_root.overWeapon.getDepth() == t.getDepth()) {
_root.overWeapon = undefined;
}
play();
var _local3;
if (h._mc._xscale < 0) {
_local3 = 1;
t._xscale = t._origScale;
} else {
_local3 = -1;
t._xscale = -t._origScale;
}
if (t._rotation == 0) {
t._x = h._mc._x + ((_local3 * 1.5) * h._origWidth);
if (!h._crouching) {
if (h._curAction._name == "RUN") {
t._y = Math.round(h._mc._y + (h._mc._height / 2)) - (h._origHeight / 2);
} else {
t._y = (h._mc._y - (h._mc._height / 2)) + (h._origHeight / 2);
}
} else {
t._y = h._mc._y;
}
} else if (t._downRot) {
t._x = h._mc._x + (_local3 * h._origWidth);
t._y = ((h._mc._y - (h._mc._height / 2)) + (h._origHeight / 2)) + 20;
} else {
t._x = h._mc._x + (_local3 * h._origWidth);
t._y = ((h._mc._y - (h._mc._height / 2)) + (h._origHeight / 2)) - 20;
}
} else {
if ((((!t._added) && (t.hitTest(h._mc))) && (keyDown(32))) && (h._curWeapon._mc.getDepth() != t.getDepth())) {
var _local6 = new Toast.CWeapon();
_local6._name = _name;
_local6._mc = t;
h._weapons[2] = _local6;
_root.weaponGUI.gotoAndStop(2);
h.SwitchWeapon(2);
_root.weaponGUI.cross._visible = true;
t._added = true;
_root.goClip.play();
_root.level._rightBound = 13167;
}
gotoAndStop (1);
}
}
};
}
Symbol 233 MovieClip [weapon-crossbow] Frame 2
gotoAndPlay (1);
Symbol 233 MovieClip [weapon-crossbow] Frame 12
if (this._rotation != 0) {
gotoAndPlay (19);
}
Symbol 233 MovieClip [weapon-crossbow] Frame 28
gotoAndPlay (1);
Symbol 240 MovieClip [butterBall] Frame 1
#initclip 13
function butterBall() {
this._hit = false;
}
butterBall.prototype = new MovieClip();
butterBall.prototype.onEnterFrame = function () {
if (!_root._paused) {
if ((((!this._hit) && (_root.hero.GetClip().hitTest(this.butterBallColl))) && (!_root.hero._inToaster)) && (!_root.hero._flash)) {
this.removeMovieClip();
delete this.onEnterFrame;
_root.hero._hitPoints--;
this._hit = true;
} else if ((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) {
this._slug._missCount++;
delete this.onEnterFrame;
this.removeMovieClip();
}
if (this._rotation != 0) {
this._x = this._x + _root.PlatformManager._xSpeed;
this._y = this._y + (this._speed + _root.PlatformManager._ySpeed);
} else {
this._x = this._x + (this._speed + _root.PlatformManager._xSpeed);
this._y = this._y + _root.PlatformManager._ySpeed;
}
}
};
Object.registerClass("butterBall", butterBall);
#endinitclip
Instance of Symbol 236 MovieClip [butterBallColl] "butterBallColl" in Symbol 240 MovieClip [butterBall] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 286 MovieClip [butterguts] Frame 1
this._rotation = Math.floor(Math.random() * 360);
Symbol 286 MovieClip [butterguts] Frame 56
stop();
Symbol 306 MovieClip [butterlocalguts] Frame 29
this.removeMovieClip();
this = undefined;
stop();
Symbol 307 MovieClip [jellyGuts] Frame 1
cheese.gotoAndPlay(13);
Symbol 307 MovieClip [jellyGuts] Frame 56
stop();
Symbol 330 MovieClip [Platform] Frame 1
#initclip 14
function Platform() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new CPlatformManager();
_root.PlatformManager._activated = true;
}
_root.PlatformManager.AddPlatform(this);
this._visible = 0;
}
Platform.prototype = new MovieClip();
Platform.prototype.SetAngle = function (ang) {
this._angle = ang;
};
Platform.prototype.GetAngle = function () {
return(this._angle);
};
Object.registerClass("Platform", Platform);
#endinitclip
Symbol 331 MovieClip [butterslug placeholder] Frame 1
#initclip 15
function butterslugPlaceholder() {
this.onEnterFrame = function () {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.slugCount == undefined) {
_root.slugCount = 0;
}
_root.slugCount++;
var _local3 = new Toast.CButterSlugEntity(_root, "butterslug", "butterslug" + _root.slugCount, _local4.x, _local4.y, Math.floor(Math.random() * 2) + 2);
_local3.GetClip().swapDepths(500 + _root.slugCount);
if (this._nextSpawn != undefined) {
_local3._nextSpawn = this._nextSpawn;
}
_local3.SetWidth(_local3.GetClip()._width * 1.8);
_local3.SetHeight(_local3.GetClip()._height * 1.8);
_root.PlatformManager.AddEntity(_local3);
this.swapDepths(0);
this.removeMovieClip();
delete this.onEnterFrame;
};
}
butterslugPlaceholder.prototype = new MovieClip();
Object.registerClass("butterslug placeholder", butterslugPlaceholder);
#endinitclip
Symbol 333 MovieClip [placeholder-chainsaw] Frame 1
#initclip 16
function chainsawPlaceholder() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.weaponCount == undefined) {
_root.weaponCount = 0;
}
_root.weaponCount++;
var _local3 = new Toast.CWeapon(_root, "weapon-chainsaw", "weapon-chainsaw" + _root.weaponCount, _local4.x, _local4.y);
_local3.GetClip().swapDepths(1800 + _root.weaponCount);
_local3._mc._origX = this._x;
_local3._mc._origParent = this._parent;
_local3._mc._origY = this._y;
this.swapDepths(0);
this.removeMovieClip();
}
chainsawPlaceholder.prototype = new MovieClip();
Object.registerClass("placeholder-chainsaw", chainsawPlaceholder);
#endinitclip
Symbol 344 MovieClip [toaster] Frame 1
stop();
Instance of Symbol 330 MovieClip [Platform] in Symbol 344 MovieClip [toaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 344 MovieClip [toaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 344 MovieClip [toaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 345 MovieClip [level1b] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 331 MovieClip [butterslug placeholder] in Symbol 345 MovieClip [level1b] Frame 1
onClipEvent (load) {
var co = {x:840, y:320};
this._nextSpawn = new Array();
this._nextSpawn.push({_x:-1, _y:co.y, _off:70});
this._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn.push({_x:-1, _y:co.y, _off:80});
this._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y, _off:40});
}
Instance of Symbol 331 MovieClip [butterslug placeholder] in Symbol 345 MovieClip [level1b] Frame 1
onClipEvent (load) {
var co = {x:840, y:320};
this._nextSpawn = new Array();
this._nextSpawn.push({_x:1, _y:co.y, _off:20});
this._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn.push({_x:-1, _y:co.y, _off:60});
this._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y, _off:0});
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 345 MovieClip [level1b] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
var _local3 = {x:this._x, y:0};
this._parent.localToGlobal(_local3);
if (_local3.x < 460) {
_root.ChainsawCutscene.play();
delete this.onEnterFrame;
}
};
}
Instance of Symbol 344 MovieClip [toaster] in Symbol 345 MovieClip [level1b] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
_root.level._sect[2]._mc._visible = true;
}
if (this._inside) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
_root.hero._mc._x = coord.x;
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (21 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 345 MovieClip [level1b] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
var _local3 = {x:1975, y:0};
_root.level.localToGlobal(_local3);
if (_local3.x < 0) {
_root.level._leftBound = 1977;
_root.level._rightBound = 4846.1;
_root.level._sect[0]._mc.visible = false;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
Symbol 369 MovieClip [level1 - contraption button] Frame 1
stop();
Symbol 369 MovieClip [level1 - contraption button] Frame 10
gotoAndStop (11);
Symbol 369 MovieClip [level1 - contraption button] Frame 11
stop();
Symbol 397 MovieClip [level1 - fence] Frame 1
stop();
Instance of Symbol 330 MovieClip [Platform] in Symbol 397 MovieClip [level1 - fence] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 397 MovieClip [level1 - fence] Frame 2
_root.level.fence.done = true;
Symbol 397 MovieClip [level1 - fence] Frame 40
stop();
_root.level._sect[1]._mc._visible = true;
Symbol 404 MovieClip Frame 1
stop();
Instance of Symbol 330 MovieClip [Platform] in Symbol 404 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 404 MovieClip Frame 36
stop();
Symbol 407 MovieClip [level1 - broken bridge2] Frame 1
stop();
Instance of Symbol 330 MovieClip [Platform] in Symbol 407 MovieClip [level1 - broken bridge2] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 407 MovieClip [level1 - broken bridge2] Frame 2
stop();
Symbol 425 MovieClip Frame 6
_parent.gotoAndStop("IDLE");
Symbol 426 MovieClip [jelly] Frame 1
stop();
Symbol 426 MovieClip [jelly] Frame 2
stop();
Symbol 427 MovieClip [level1a] Frame 1
Instance of Symbol 360 MovieClip [level1 - midhouse] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - midhouse", "level1 - midehouse", 1299);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 369 MovieClip [level1 - contraption button] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - contraption button", "level1 - contraption button", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((this.button.hitTest(_root.hero._mc) && (_root.hero._curAction._name == "HEADBUTT")) && (!_root.level.fence.done)) {
this.play();
this._mc.play();
_root.level.fence.play();
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 373 MovieClip [level1 - house post 1] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - house post 1", "level1 - house post 1", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 377 MovieClip [level1 - house post 2] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - house post 2", "level1 - house post 2", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 379 MovieClip [level1 - bridge post 1] "bar" in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - bridge post 1", "level1 - bridge post 1", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(_mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 381 MovieClip [level1 - bridge post 2] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - bridge post 2", "level1 - bridge post 2", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 383 MovieClip [level1 - beware sign] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("level1 - beware sign", "level1 - beware sign", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(_mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 397 MovieClip [level1 - fence] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
_root.level.fence = this;
}
Instance of Symbol 344 MovieClip [toaster] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
}
if (this._inside) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
_root.hero._mc._x = coord.x;
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (15 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
}
Instance of Symbol 344 MovieClip [toaster] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
}
if (this._inside) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
_root.hero._mc._x = coord.x;
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (15 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 404 MovieClip in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
_root.bridge1Trigger = false;
}
onClipEvent (enterFrame) {
var coord = {x:_x, y:_y};
this._parent.localToGlobal(coord);
if (((_root.hero.GetX() - 20) >= coord.x) && (!_root.bridge1Trigger)) {
_root.bridge1Trigger = true;
this.play();
}
}
Instance of Symbol 407 MovieClip [level1 - broken bridge2] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 427 MovieClip [level1a] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 426 MovieClip [jelly] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
var sounds = new Array();
sounds.push("aur");
sounds.push("de");
sounds.push("die");
sounds.push("exc");
sounds.push("hay");
sounds.push("lay");
sounds.push("pfmh");
sounds.push("ppt");
sounds.push("pwr");
sounds.push("tar");
this._sounds = sounds;
this._able = true;
this._conv = false;
this._lastSound = -1;
}
onClipEvent (enterFrame) {
if ((substring(_root.hero._curWeapon._name, 8, 8)) == "crossbow") {
if (this.hitTest(_root.crossbowArrow)) {
_root.crossbowArrow._speed = 0;
_root.crossbowArrow.removeMovieClip();
if (this._able) {
this._able = false;
this.gotoAndStop("HIT");
_root.nguts = _root.attachMovie("jellyGuts", "jellyGuts!", 9075500);
_root.nguts._x = 275 - (_root.nguts._width / 2);
_root.nguts._y = 200 + (_root.nguts._height / 2);
var rand = Math.round(Math.random() * (this._sounds.length - 1));
while (rand == this._lastSound) {
rand = Math.round(Math.random() * (this._sounds.length - 1));
}
this._lastSound = rand;
this._mySound = new Sound(this);
this._mySound.attachSound(this._sounds[rand]);
_root.bgSound.setVolume(0);
this._mySound.start();
this._mySound.onSoundComplete = function () {
_root.bgSound.setVolume(_root.bgVolume);
delete this.onSoundComplete;
};
}
} else {
this._able = true;
}
}
if (this.hitTest(_root.hero._mc) && (!this._conv)) {
this._conv = true;
this._mySound = new Sound(this);
this._mySound.attachSound("fruit");
_root.bgSound.setVolume(0);
this._mySound.start();
this._mySound.onSoundComplete = function () {
_root.bgSound.setVolume(_root.bgVolume);
delete this.onSoundComplete;
};
}
}
Instance of Symbol 331 MovieClip [butterslug placeholder] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
var co = {x:840, y:0};
this._parent.localToGlobal(co);
_root.level.globalToLocal(co);
this._nextSpawn = new Array();
this._nextSpawn.push({_x:-1, _y:co.y, _off:100});
this._nextSpawn.push({_x:-1, _y:co.y});
this._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y, _final:3900});
}
Instance of Symbol 331 MovieClip [butterslug placeholder] in Symbol 427 MovieClip [level1a] Frame 1
onClipEvent (load) {
var co = {x:840, y:330};
this._nextSpawn = new Array();
this._nextSpawn.push({_x:1, _y:co.y});
this._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn.push({_x:-1, _y:co.y, _off:150});
this._nextSpawn[0]._nextSpawn.push({_x:-1, _y:co.y});
this._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y});
this._nextSpawn[0]._nextSpawn[0]._nextSpawn[0]._nextSpawn = new Array();
this._nextSpawn[0]._nextSpawn[0]._nextSpawn[0]._nextSpawn.push({_x:1, _y:co.y, _final:1350});
}
Symbol 442 MovieClip Frame 27
_root.boatBatCount++;
delete this._parent.onEnterFrame;
this._parent.removeMovieClip();
delete this._parent._parent;
stop();
Symbol 443 MovieClip [butterbat] Frame 1
if (this.onEnterFrame == undefined) {
this._ball = 0;
this.onEnterFrame = function () {
var _local3 = this._parent;
var _local5 = _local3._manager;
var _local4 = this;
if (_local3._stacked != undefined) {
if ((((this._x < 0) || (this._y < 0)) || (this._x > 550)) || (this._y > 400)) {
_local3._alive = false;
_local3.SetAction("DIE");
_root.crossbowArrow._stacked = 0;
_root.crossbowArrow._stackRef = new Array();
this.removeMovieClip();
}
}
if (!_root._paused) {
if (_local3._alive == undefined) {
_local3._alive = true;
}
if (((_local5._xSpeed != 0) || (_local5._ySpeed != 0)) || (!_root._canControl)) {
_local3._mc._x = _local3._mc._x + _local5._xSpeed;
_local3._mc._y = _local3._mc._y + _local5._ySpeed;
}
if ((((_local4._counter >= 50) || (_local4._counter == undefined)) && (Math.abs(_root.hero._xSpeed + _local5._xSpeed) > 0)) || (_local4._rangeGood == undefined)) {
_local4._rangeGood = _local5.EntityInRange(_local3._id, _root.hero);
_local4._counter = 0;
}
_local4._counter++;
this._ball++;
if ((_local3._curAction._name != "DIE") && (_local4._rangeGood)) {
if ((this._ball >= 100) && (!_root.hero._inToaster)) {
this._ball = 0;
var _local6 = _root.getNextHighestDepth();
_root.attachMovie("butterBall", "batBall" + _local6, _local6, {_x:this._x, _y:this._y + 10, _rotation:90, _speed:6});
}
_local3._alive = true;
_local4._alpha = 100;
var _local7 = _local3._id;
_local5.CheckAgainst(_local7);
if ((!_root.hero._attacking) && (_root.hero._curWeapon._name == "no-weapon")) {
_local4._able = true;
}
if (_root.hero._curWeapon._name.substr(7, 8) == "chainsaw") {
if ((_root.hero._curWeapon._mc._visible && (_local4.hitTest(_root.hero._curWeapon._mc))) && (_root.hero._attacking)) {
_local4._able = false;
_local3._hitPoints = 0;
_local3.SetAction("DIE");
}
} else if (_root.crossbowArrow.hitTest(this) && (!this._parent._stacked)) {
if (_root.crossbowArrow._stacked == undefined) {
_root.crossbowArrow._stacked = 0;
} else if (_root.crossbowArrow._stacked < 4) {
_root.boatBatCount++;
_root.crossbowArrow._stacked++;
_root.crossbowArrow._stackRef.push(this);
this._parent._stacked = _root.crossbowArrow;
}
}
} else if (_local3._curAction._name != "DIE") {
} else {
_local3._alive = false;
}
if (_local4._rangeGood) {
_local3.Update();
}
}
};
}
stop();
Symbol 443 MovieClip [butterbat] Frame 2
stop();
Symbol 489 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._hit == undefined) {
this._hit = false;
}
var _local5 = 1;
if (this._parent._xscale > 0) {
_local5 = -1;
}
var _local4 = _root.hero._curWeapon._mc._x - this._parent._x;
if (_root.hero._curWeapon._name == "no-weapon") {
_local4 = _root.hero._mc._x - this._parent._x;
}
if ((this._currentframe <= 18) || (this._currentframe >= 64)) {
this._hit = false;
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
if ((_local5 * _local4) > 25) {
if ((this._currentframe >= 18) && (this._currentframe <= 30)) {
if (this._currentframe == 18) {
if (((((_local5 * _local4) > 25) && (this._parent.hitTest(_root.hero._mc))) && (!this.feet.hitTest(_root.hero._mc))) && (!this.head.hitTest(_root.hero._mc))) {
if ((!this._hit) && (!_root.hero._flash)) {
_root.inButter = _root.attachMovie("in butter", "ib", 2566, {_x:_root.hero.GetX(), _y:_root.hero.GetY()});
_root.hero._mc._visible = false;
_root.hero._curWeapon._mc._visible = false;
_root.inButter.onEnterFrame = function () {
this._x = this._x + _root.PlatformManager._xSpeed;
this._y = this._y + _root.PlatformManager._ySpeed;
_root.hero.SetX(this._x);
_root.hero.SetY(this._y);
if (this._counter == undefined) {
this._counter = 0;
}
this._counter++;
if (this._counter < 8) {
if ((this._counter % 2) == 0) {
var _local4 = 50;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 255 * _local7;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
} else {
var _local4 = 0;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 0;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
}
} else {
var _local4 = 0;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 0;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
}
if (_root.hero._mc._visible) {
_root.inButter = undefined;
this.removeMovieClip();
this._counter = 0;
delete eval (this.onEnterFrame());
}
};
_root.hero._hitPoints--;
this._hit = true;
}
} else {
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
}
}
} else {
this._hit = false;
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
if (this._parent._parent._beingChainsawed) {
this.gotoAndPlay("CHAIN");
}
};
Symbol 489 MovieClip Frame 18
this._parent._parent._canChainsaw = true;
Symbol 489 MovieClip Frame 50
this._parent._parent._canChainsaw = false;
Symbol 489 MovieClip Frame 101
this._parent._parent.SetActionDone("FALL");
Symbol 489 MovieClip Frame 108
_root.guts = _root.attachMovie("butterguts", "butterguts!", 9075555);
_root.guts._x = 275 - (_root.guts._width / 2);
_root.guts._y = 200 + (_root.guts._height / 2);
if (!this._parent._parent._beingChainsawed) {
gotoAndPlay ("START");
this._parent._parent._canChainsaw = false;
} else {
gotoAndPlay ("CHAIN");
}
Symbol 503 MovieClip Frame 52
this._parent._parent.SetActionDone("GETUP");
Symbol 528 MovieClip Frame 93
this._parent._parent.SetActionDone("JUMPIN");
Symbol 539 MovieClip Frame 29
this._parent._parent.SetActionDone("JUMPOUT");
Symbol 550 MovieClip Frame 1
this._parent._parent._speed = 0;
Symbol 550 MovieClip Frame 9
this._parent._parent._speed = 6;
Symbol 550 MovieClip Frame 19
this._parent._parent._speed = 0;
Symbol 555 MovieClip Frame 6
this._parent._parent.SetActionDone("HITUP");
Symbol 560 MovieClip Frame 6
this._parent._parent.SetActionDone("HITDOWN");
Symbol 580 MovieClip Frame 7
if (this._parent.hitTest(_root.hero._curWeapon._mc)) {
gotoAndPlay (1);
} else {
this._parent._parent._canChainsaw = false;
}
Symbol 580 MovieClip Frame 58
this._parent._parent.SetActionDone("GETUP");
Symbol 604 MovieClip Frame 92
_root.goClip.play();
_root.level._rightBound = 16000;
_root.bgSound.stop();
_root.bgSound.attachSound("GaymTheme");
_root.bgSound.start(0, 99999);
_root.level._sect[3]._mc._visible = true;
Symbol 604 MovieClip Frame 121
delete this._parent.onEnterFrame;
this._parent.removeMovieClip();
this._parent._parent._alive = false;
delete this._parent._parent;
stop();
Symbol 628 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._hit == undefined) {
this._hit = false;
}
var _local8 = 1;
if (this._parent._xscale > 0) {
_local8 = -1;
}
if ((this._currentframe <= 18) || (this._currentframe >= 38)) {
this._hit = false;
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
if ((this._currentframe >= 19) && (this._currentframe <= 37)) {
var _local4 = false;
if (_root.holeCover.hitTest(_root.hero._mc)) {
_local4 = true;
}
if ((!_local4) && (this._parent.hitTest(_root.hero._mc))) {
if ((!this._hit) && (!_root.hero._flash)) {
_root.inButter = _root.attachMovie("in butter", "ib", 2566, {_x:_root.hero.GetX(), _y:_root.hero.GetY()});
_root.hero._mc._visible = false;
_root.hero._curWeapon._mc._visible = false;
_root.inButter.onEnterFrame = function () {
this._x = this._x + _root.PlatformManager._xSpeed;
this._y = this._y + _root.PlatformManager._ySpeed;
_root.hero.SetX(this._x);
_root.hero.SetY(this._y);
if (this._counter == undefined) {
this._counter = 0;
}
this._counter++;
if (this._counter < 8) {
if ((this._counter % 2) == 0) {
var _local4 = 50;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 255 * _local7;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
} else {
var _local4 = 0;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 0;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
}
} else {
var _local4 = 0;
var _local6 = 100 - _local4;
var _local3 = new Object();
_local3.ra = (_local3.ga = (_local3.ba = _local6));
var _local7 = _local4 / 100;
_local3.rb = 0;
_local3.gb = 0;
_local3.bb = 0;
var _local5 = new Color(this);
_local5.setTransform(_local3);
}
if (_root.hero._mc._visible) {
_root.inButter = undefined;
this.removeMovieClip();
this._counter = 0;
delete eval (this.onEnterFrame());
}
};
_root.hero._hitPoints--;
this._hit = true;
}
} else {
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
} else {
this._hit = false;
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
};
Symbol 628 MovieClip Frame 47
this._parent._parent.SetActionDone("JUMP");
Symbol 629 MovieClip [miniboss] Frame 1
if (this.onEnterFrame == undefined) {
var parent = this._parent;
var mgr = parent._manager;
var t = this;
this.onEnterFrame = function () {
if (!_root._paused) {
if ((_root.inButter != undefined) && (!this.hitTest(_root.hero._mc))) {
_root.hero._mc._visible = true;
_root.hero._curWeapon._mc._visible = true;
}
if (parent._alive == undefined) {
parent._alive = true;
}
if ((mgr._xSpeed != 0) || (mgr._ySpeed != 0)) {
parent._mc._x = parent._mc._x + mgr._xSpeed;
parent._mc._y = parent._mc._y + mgr._ySpeed;
}
var _local6 = this._y;
if ((!parent._jumping) && (parent._hLink != undefined)) {
parent._applyGravity = false;
var _local3 = {x:parent._hLink._x, y:parent._hLink._y};
parent._hLink._parent.localToGlobal(_local3);
this._parent.globalToLocal(_local3);
var _local14 = this._x - (this._width / 2);
var _local12 = this._x + (this._width / 2);
var _local10 = _local3.x - (parent._hLink._width / 2);
var _local9 = _local3.x + (parent._hLink._width / 2);
if ((_local14 < _local10) || (_local12 > _local9)) {
parent._hLink = undefined;
parent._applyGravity = true;
}
parent._gravityCount = 0;
_local6 = _local3.y - 118;
} else if (parent._hLink == undefined) {
parent_applyGravity = true;
}
parent._mc._y = _local6;
if ((((t._counter >= 50) || (t._counter == undefined)) && (Math.abs(_root.hero._xSpeed + mgr._xSpeed) > 0)) || (t._rangeGood == undefined)) {
t._rangeGood = mgr.EntityInRange(parent._id, _root.hero);
t._counter = 0;
}
t._counter++;
if ((parent._curAction._name != "DIE") && (t._rangeGood)) {
parent._alive = true;
var _local11 = parent._id;
mgr.CheckAgainst(_local11);
if (!_root.hero._attacking) {
this._able = true;
}
if ((((parent._curAction._name == "FALL") || (parent._curAction._name == "ALMOSTDEAD")) && (parent._canChainsaw)) && (_root.hero._curWeapon._name.substr(0, 15) == "weapon-chainsaw")) {
var _local8 = 1;
if (this._xscale > 0) {
_local8 = -1;
}
var _local7 = _root.hero._curWeapon._mc._x - t._x;
if (_root.hero._curWeapon._name == "no-weapon") {
_local7 = _root.hero._mc._x - t._x;
}
var _local5 = false;
if (_root.holeCover.hitTest(_root.hero._mc)) {
_local5 = true;
}
if ((((((!_local5) && ((_local8 * _local7) > 0)) && (_root.hero._curWeapon._mc._visible)) && (this._able)) && (t.hitTest(_root.hero._curWeapon._mc))) && (_root.hero._attacking)) {
this._able = false;
parent._hitPoints--;
parent._localGuts = _root.attachMovie("butterlocalguts", "localguts" + this._name, 1100 + t.getDepth(), {_x:_root.hero._mc._x + 10, _y:_root.hero._curWeapon._mc._y - 10});
parent._beingChainsawed = true;
} else {
parent._beingChainsawed = false;
}
} else {
if (((((parent._curAction._name != "ALMOSTDEAD") && (parent._curAction._name == "FALL")) && (this.hitTest(_root.hero._mc))) && (this._able)) && (_root.hero._curAction._name == "HEADBUTT")) {
var _local4 = new Sound(this);
_local4.setVolume(_root.fxVolume);
var _local13 = Math.round(Math.random());
if (_local13 == 0) {
_local4.attachSound("punch1");
} else {
_local4.attachSound("punch2");
}
_local4.start();
parent._hitPoints = parent._hitPoints - 0.1;
_fallCount = _maxFall;
this._able = false;
}
parent._beingChainsawed = false;
}
} else if (parent._curAction._name != "DIE") {
} else {
parent._alive = false;
}
if (t._rangeGood) {
parent.Update();
}
}
};
}
stop();
Symbol 629 MovieClip [miniboss] Frame 2
stop();
Symbol 629 MovieClip [miniboss] Frame 3
stop();
Symbol 629 MovieClip [miniboss] Frame 4
stop();
Symbol 629 MovieClip [miniboss] Frame 5
stop();
Symbol 629 MovieClip [miniboss] Frame 6
stop();
Symbol 629 MovieClip [miniboss] Frame 7
stop();
Symbol 629 MovieClip [miniboss] Frame 8
stop();
Symbol 629 MovieClip [miniboss] Frame 9
stop();
Symbol 629 MovieClip [miniboss] Frame 10
stop();
Symbol 629 MovieClip [miniboss] Frame 11
stop();
Symbol 629 MovieClip [miniboss] Frame 12
stop();
Symbol 631 MovieClip [miniboss placeholder] Frame 1
#initclip 17
function minibossPlaceholder() {
this.onEnterFrame = function () {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.slugCount == undefined) {
_root.slugCount = 0;
}
_root.slugCount++;
var _local3 = new Toast.CMiniBossEntity(_root, "miniboss", "miniboss" + _root.slugCount, _local4.x, _local4.y, 6);
_local3.GetClip().swapDepths(500 + _root.slugCount);
_local3.SetWidth(_local3.GetClip()._width * 2);
_local3.SetHeight(_local3.GetClip()._height * 2);
_root.PlatformManager.AddEntity(_local3);
this.swapDepths(0);
this.removeMovieClip();
delete this.onEnterFrame;
};
}
minibossPlaceholder.prototype = new MovieClip();
Object.registerClass("miniboss placeholder", minibossPlaceholder);
#endinitclip
Instance of Symbol 659 MovieClip [firehitter] in Symbol 683 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crossbowArrow)) {
_root._flame = _root.attachMovie("arrow fire", "arrow fire", _root.crossbowArrow.getDepth() + 15, {_x:_root.crossbowArrow._x + (_root.crossbowArrow._width / 2), _y:_root.crossbowArrow._y - (_root.crossbowArrow._height / 2)});
_root._flame.onEnterFrame = function () {
if (((((this._x > 550) || (this._x < 0)) || (this._y < 0)) || (this._y > 400)) || (_root.crossbowArrow._x == undefined)) {
this.removeMovieClip();
}
this._x = _root.crossbowArrow._x + (_root.crossbowArrow._width / 2);
this._y = _root.crossbowArrow._y - (_root.crossbowArrow._height / 2);
};
}
}
Symbol 719 MovieClip Frame 1
stop();
Instance of Symbol 330 MovieClip [Platform] in Symbol 719 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 719 MovieClip Frame 61
_root.goClip.play();
_root.level._rightBound = 20000;
Symbol 719 MovieClip Frame 85
stop();
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
var _local3 = {x:15300, y:0};
_root.level.localToGlobal(_local3);
if (_local3.x < 0) {
_root.bgSound.stop();
_root.bgSound.attachSound("BuckFuddy Loop");
_root.bgSound.start(0, 99999);
_root.caveDone = true;
_root.level._leftBound = 15300;
_root.level._rightBound = 17850;
_root._canControl = true;
_root.caveCutscene.gotoAndStop(1);
_root.caveCutscene._visible = false;
_root.canSwarm = true;
delete this.onEnterFrame;
}
}
};
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.canSwarm = false;
}
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
if (this.hitTest(_root.hero._mc) && (!_root.level._sect[5]._visible)) {
_root._canControl = false;
_root.hero._mc._xscale = -Math.abs(_root.hero._mc._xscale);
_root.caveCutscene.play();
_root.level._sect[5]._mc._visible = true;
}
if (((!_root._canControl) && (_root.caveDone2 == undefined)) && (_root.hero._curAction._name != "DIE")) {
_root.hero.SetAction("RUN");
_root.level._x = _root.level._x - (_root.hero._speed * 1.5);
}
if (_root.caveDone2) {
_root.level._sect[4]._mc._visible = false;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
Instance of Symbol 651 MovieClip [strong health] in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc) && (this._visible)) {
var _local3 = new Sound(this);
_local3.attachSound("health");
_local3.start();
_root.hero._hitPoints = 15;
this._visible = false;
delete this.onEnterFrame;
}
};
}
Instance of Symbol 685 MovieClip [shine] in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("shine", "shine", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
this._mc._alpha = 85;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._visible = false;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 687 MovieClip [beginning of cave] in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("beginning of cave", "beginning of cave", _root.objLevel + 6000);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 689 MovieClip [shine2] in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("shine2", "shine2", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
this._mc._alpha = 85;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._visible = false;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 691 MovieClip [endofcave] in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("endofcave", "endofcave", _root.objLevel + 6000);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 719 MovieClip in Symbol 721 MovieClip [level1e] Frame 1
onClipEvent (load) {
this.swarmCount = 0;
this.swarm = undefined;
_root.nest = this;
this._flamed = false;
this._warned = false;
this.afterCount = 0;
}
onClipEvent (enterFrame) {
if (this._parent._visible) {
if ((this.hitTest(_root.crossbowArrow) && (this.hitTest(_root._flame))) && (!this._flamed)) {
this.play();
this._flamed = true;
_root._flame.removeMovieClip();
}
if (this.swarm != undefined) {
this.swarm._x = this.swarm._x - 16;
if (this.swarm.hitTest(_root.hero._mc) && (!this.swarmHit)) {
this.swarmHit = true;
}
var o = {x:this.swarm._x + this.swarm._width, y:0};
_root.level.localToGlobal(o);
if (o.x < 0) {
this.swarm._visible = false;
this.swarm.removeMovieClip();
this.swarm = undefined;
}
}
if (_root.canSwarm) {
if (this.swarm == undefined) {
this.swarmCount++;
}
var startX = 18060;
if (this.swarmCount >= 40) {
this.swarmCount = 0;
this.afterCount++;
this.swarm._visible = true;
this.swarmHit = false;
var d = _root.getNextHighestDepth();
this.swarm = _root.level.attachMovie("batSwarm", "batSwarm" + d, d, {_x:startX, _y:1130});
}
if (this.afterCount > 0) {
this.afterCount++;
}
if (this.afterCount >= 70) {
_root.swarmWarn._visible = false;
this._warned = false;
this.afterCount = 0;
}
if ((this.afterCount >= 45) && (!this._warned)) {
this._warned = true;
_root.swarmWarn._visible = true;
_root.swarmWarn.play();
}
} else {
_root.swarmWarn._visible = false;
}
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 721 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 721 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 721 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 721 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 721 MovieClip [level1e] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 434 MovieClip in Symbol 722 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.hero._hitPoints = _root.hero._hitPoints - 0.2;
}
}
Instance of Symbol 434 MovieClip in Symbol 722 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.hero._hitPoints = _root.hero._hitPoints - 0.2;
}
}
Instance of Symbol 434 MovieClip in Symbol 722 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.hero._hitPoints = _root.hero._hitPoints - 0.2;
}
}
Instance of Symbol 434 MovieClip in Symbol 722 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.hero._hitPoints = _root.hero._hitPoints - 0.2;
}
}
Instance of Symbol 434 MovieClip in Symbol 722 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.hero._hitPoints = _root.hero._hitPoints - 0.2;
}
}
Instance of Symbol 434 MovieClip in Symbol 722 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.hero._hitPoints = _root.hero._hitPoints - 0.2;
}
}
Instance of Symbol 434 MovieClip in Symbol 722 MovieClip [batSwarm] Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.floor(Math.random() * 4) + 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
_root.hero._hitPoints = _root.hero._hitPoints - 0.2;
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 752 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 752 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 752 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 752 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 752 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 752 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 752 MovieClip [boattoaster] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
var range = 30;
var init = this._tree;
var combined = (init + range);
var i = init;
while (i <= combined) {
_root.PlatformManager._tree[i]._plats.push(this._id);
i++;
}
}
Symbol 760 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 2
stop();
Instance of Symbol 760 MovieClip in Symbol 761 MovieClip [middleisland] Frame 1
onClipEvent (load) {
this._down = 220;
this._downCount = 0;
var me = new Sound(this);
me.attachSound("Timer3");
this._s = me;
}
onClipEvent (enterFrame) {
this._s.setVolume(_root.fxVolume);
if ((this._downCount == 0) && (_root.hero._curAction._name == "HEADBUTT")) {
if (this.hitTest(_root.hero._mc)) {
this._downCount++;
this.gotoAndStop(2);
_root.metalWall.gotoAndStop(2);
_root.metalLeft._x = -100000000;
_root.metalRight._x = -100000000;
this._s.start(0, 999);
}
}
if (this._downCount > 0) {
this._downCount++;
}
if ((this._downCount >= this._down) && (!_root.metalWall.hitTest(_root.hero._mc))) {
this._downCount = 0;
this.gotoAndStop(1);
_root.metalWall.play();
_root.metalLeft._x = _root.metalLeft._origX;
_root.metalRight._x = _root.metalRight._origX;
this._s.stop();
}
}
Symbol 769 MovieClip [metal wall] Frame 1
stop();
Symbol 769 MovieClip [metal wall] Frame 2
stop();
Instance of Symbol 765 MovieClip [metalWallCheck] in Symbol 769 MovieClip [metal wall] Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 773 MovieClip [placeholder-crossbow] Frame 1
#initclip 18
function crossbowPlaceholder() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.weaponCount == undefined) {
_root.weaponCount = 0;
}
_root.weaponCount++;
var _local3 = new Toast.CWeapon(_root, "weapon-crossbow", "weapon-crossbow" + _root.weaponCount, _local4.x, _local4.y);
_local3.GetClip().swapDepths(1800 + _root.weaponCount);
_local3._mc._origX = this._x;
_local3._mc._origParent = this._parent;
_local3._mc._origY = this._y;
this.swapDepths(0);
this.removeMovieClip();
}
crossbowPlaceholder.prototype = new MovieClip();
Object.registerClass("placeholder-crossbow", crossbowPlaceholder);
#endinitclip
Symbol 775 MovieClip [butterbat placeholder] Frame 1
#initclip 19
function butterbatPlaceholder() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local3 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local3);
if (_root.slugCount == undefined) {
_root.slugCount = 0;
}
_root.slugCount++;
var _local4 = new Toast.CButterBatEntity(_root, "butterbat", "butterbat" + _root.slugCount, _local3.x, _local3.y, 2);
_local4.GetClip().swapDepths(500 + _root.slugCount);
_root.PlatformManager.AddEntity(_local4);
this.swapDepths(0);
this.removeMovieClip();
}
butterbatPlaceholder.prototype = new MovieClip();
Object.registerClass("butterbat placeholder", butterbatPlaceholder);
#endinitclip
Instance of Symbol 752 MovieClip [boattoaster] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (enterFrame) {
var co = {x:_parent.toast._mc._x, y:0};
_parent.globalToLocal(co);
this._x = co.x;
if ((_root.boatBatCount > 4) && (this._done == undefined)) {
_root.level._rightBound = 15025;
_root.goClip.play();
this._done = true;
}
}
Instance of Symbol 754 MovieClip [cavedepth] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("cavedepth", "cavedepth", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 769 MovieClip [metal wall] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
_root.metalWall = this;
}
Instance of Symbol 330 MovieClip [Platform] "metalLeft" in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
_root.metalLeft = this;
_root.metalLeft._origX = this._x;
}
Instance of Symbol 330 MovieClip [Platform] "metalRight" in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
_root.metalRight = this;
_root.metalRight._origX = this._x;
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
if (this.hitTest(_root.hero._mc)) {
_root.camTop = 180;
_root.camBottom = 220;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc)) {
_root.camTop = 260;
_root.camBottom = 300;
_root.level._rightBound = 11741;
_root.CrossbowCutscene.play();
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
var _local3 = {x:this._x, y:0};
this._parent.localToGlobal(_local3);
if (_local3.x < 0) {
_root.level._leftBound = 10270;
this.removeMovieClip();
delete this.onEnterFrame;
}
}
};
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
_root._canControl = true;
this.onEnterFrame = function () {
if (this._parent._visible) {
if (this.hitTest(_root.hero._mc) && (!_root.level._sect[4]._visible)) {
_root._canControl = false;
_root.hero._mc._xscale = -Math.abs(_root.hero._mc._xscale);
_root.caveCutscene.play();
_root.level._sect[4]._mc._visible = true;
}
if (((!_root._canControl) && (_root.caveDone == undefined)) && (_root.hero._curAction._name != "DIE")) {
_root.hero.SetAction("RUN");
_root.level._x = _root.level._x - (_root.hero._speed * 2);
}
if (_root.caveDone) {
_root._canControl = true;
_root.level._sect[3]._mc._visible = false;
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
Instance of Symbol 344 MovieClip [toaster] "toast" in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this._mc.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this._mc.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
}
if (!this._inside) {
_root.boatPlat._x = -100000;
}
if (this._inside) {
_root.boatPlat._x = _root.boatPlat._origX;
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
if (_root.hero._curAction._name != "RUN") {
}
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (15 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if (this._inside) {
var coord = {x:_root.hero._mc._x, y:0};
this._mc._x = coord.x;
}
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
if (this._inside == false) {
_mc._x = _mc._x + _root.PlatformManager._xSpeed;
}
_mc._y = _mc._y + _root.PlatformManager._ySpeed;
}
}
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc)) {
_root.camTop = 260;
_root.camBottom = 320;
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
Instance of Symbol 651 MovieClip [strong health] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc) && (this._visible)) {
var _local3 = new Sound(this);
_local3.attachSound("health");
_local3.start();
_root.hero._hitPoints = 15;
this._visible = false;
delete this.onEnterFrame;
}
};
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 778 MovieClip [level1d] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
_root.boatPlat = this;
_root.boatPlat._origX = this._x;
}
Instance of Symbol 777 MovieClip [swimCheck] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
_root.swimCheck1 = this;
}
Instance of Symbol 777 MovieClip [swimCheck] in Symbol 778 MovieClip [level1d] Frame 1
onClipEvent (load) {
this._visible = false;
_root.swimCheck2 = this;
}
Symbol 791 MovieClip [backofdoor] Frame 1
stop();
Symbol 796 MovieClip [boss holder] Frame 1
#initclip 20
function bossPlaceholder() {
this.onEnterFrame = function () {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local4 = {x:this._x, y:this._y};
this._parent.localToGlobal(_local4);
if (_root.slugCount == undefined) {
_root.slugCount = 0;
}
_root.slugCount++;
var _local3 = new Toast.CBossEntity(_root, "boss", "boss" + _root.slugCount, _local4.x, _local4.y, 6);
_local3._mc._origX = this._x;
_local3._mc._origParent = this._parent;
_local3._mc._origY = this._y;
_root.PlatformManager.AddEntity(_local3);
this.swapDepths(0);
this._visible = false;
this.removeMovieClip();
delete this.onEnterFrame;
};
}
bossPlaceholder.prototype = new MovieClip();
Object.registerClass("boss holder", bossPlaceholder);
#endinitclip
Instance of Symbol 787 MovieClip [hole overlay] in Symbol 797 MovieClip [level1g] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("hole overlay", "hole overlay", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 791 MovieClip [backofdoor] in Symbol 797 MovieClip [level1g] Frame 1
onClipEvent (load) {
_root.bossDoor = this;
}
Instance of Symbol 793 MovieClip [wall] in Symbol 797 MovieClip [level1g] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("wall", "wall", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 797 MovieClip [level1g] Frame 1
onClipEvent (load) {
this._visible = false;
this._done = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc) && (!this._done)) {
_root.bossHB._visible = true;
this.removeMovieClip();
_root.bossDoor.play();
this._done = true;
_root.level._leftBound = 20850;
_root.level._rightBound = 21375;
_root._canControl = true;
_root.caveCutscene.gotoAndStop(1);
_root.caveCutscene._visible = false;
_root.caveDone3 = true;
this.removeMovieClip();
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 797 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 797 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 797 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 797 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 797 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 797 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 797 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 797 MovieClip [level1g] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 822 MovieClip Frame 1
stop();
Instance of Symbol 814 MovieClip in Symbol 822 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.crossbowArrow) && (_root.crossbowArrow._up == 0)) {
this._parent.play();
_root.goClip.play();
_root.level._rightBound = 22000;
_root.level._sect[6]._mc._visible = true;
_root.bossThru = true;
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 822 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 822 MovieClip Frame 20
stop();
Instance of Symbol 824 MovieClip [infrontwall] in Symbol 832 MovieClip [level1f] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("infrontwall", "infrontwall", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 826 MovieClip [cavebackdepth] in Symbol 832 MovieClip [level1f] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("cavebackdepth", "cavebackdepth", _root.objLevel + 1800);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 828 MovieClip [close colum] in Symbol 832 MovieClip [level1f] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("close colum", "close colum", _root.objLevel);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 344 MovieClip [toaster] in Symbol 832 MovieClip [level1f] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("toaster", "toaster" + _root.objLevel, _root.objLevel, {_width:this._width, _height:this._height});
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
this._counter = 0;
this._visible = false;
this._inside = false;
this._allowed = true;
}
onClipEvent (enterFrame) {
if (!_root._paused) {
if (!Key.isDown(40)) {
this._allowed = true;
}
if ((((this._allowed && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
_root.ToasterNotice._visible = true;
_root.NoticedToaster = this;
} else if (_root.NoticedToaster == this) {
_root.ToasterNotice._visible = false;
}
if (((((Key.isDown(40) && (this._allowed)) && (this.hitTest(_root.hero.GetClip()))) && (Math.abs(_root.hero.GetX() - _mc._x) < 20)) && (!_root.hero._jumping)) && (this._counter == 0)) {
this._inside = true;
this._counter++;
this._allowed = false;
_root.hero._curWeapon._mc._visible = false;
this._mc.gotoAndStop(2);
_root.hero._inToaster = true;
}
if (this._inside) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
_root.hero._mc._x = coord.x;
_root.hero._mc._y = coord.y - (this._height / 4);
if (this._counter == 1) {
_root.hero._curWeapon._mc._visible = false;
}
_root.PopNotice._visible = true;
_root.ToPopToaster = this;
} else if (_root.ToPopToaster == this) {
_root.PopNotice._visible = false;
}
if ((this._counter > 0) && (_root.hero._jumping)) {
_root.hero._mc._y = _root.hero._mc._y - (2 * (15 - this._counter));
this._counter++;
this._inside = false;
if (this._mc._currentframe == 2) {
this._mc.play();
}
if ((_root.hero._curWeapon._mc._visible == false) || (_root.hero._inToaster == true)) {
_root.hero._curWeapon._mc._visible = true;
_root.hero._inToaster = false;
}
_root.hero._mc._rotation = _root.hero._mc._rotation + 30;
_root.hero._crouching = false;
}
if ((this._counter > 1) && (!_root.hero._jumping)) {
this._counter = 0;
this._inside = false;
_root.hero._mc._rotation = 0;
}
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
}
Instance of Symbol 426 MovieClip [jelly] in Symbol 832 MovieClip [level1f] Frame 1
onClipEvent (load) {
var sounds = new Array();
sounds.push("aur");
sounds.push("de");
sounds.push("die");
sounds.push("exc");
sounds.push("hay");
sounds.push("lay");
sounds.push("pfmh");
sounds.push("ppt");
sounds.push("pwr");
sounds.push("tar");
this._sounds = sounds;
this._able = true;
this._conv = false;
this._lastSound = -1;
}
onClipEvent (enterFrame) {
if ((substring(_root.hero._curWeapon._name, 8, 8)) == "crossbow") {
if (this.hitTest(_root.crossbowArrow)) {
_root.crossbowArrow._speed = 0;
_root.crossbowArrow.removeMovieClip();
if (this._able) {
this._able = false;
this.gotoAndStop("HIT");
_root.nguts = _root.attachMovie("jellyGuts", "jellyGuts!", 9075500);
_root.nguts._x = 275 - (_root.nguts._width / 2);
_root.nguts._y = 200 + (_root.nguts._height / 2);
var rand = Math.round(Math.random() * (this._sounds.length - 1));
while (rand == this._lastSound) {
rand = Math.round(Math.random() * (this._sounds.length - 1));
}
this._lastSound = rand;
this._mySound = new Sound(this);
this._mySound.attachSound(this._sounds[rand]);
_root.bgSound.setVolume(0);
this._mySound.start();
this._mySound.onSoundComplete = function () {
_root.bgSound.setVolume(_root.bgVolume);
delete this.onSoundComplete;
};
}
} else {
this._able = true;
}
}
if (this.hitTest(_root.hero._mc) && (!this._conv)) {
this._conv = true;
this._mySound = new Sound(this);
this._mySound.attachSound("fruit");
_root.bgSound.setVolume(0);
this._mySound.start();
this._mySound.onSoundComplete = function () {
_root.bgSound.setVolume(_root.bgVolume);
delete this.onSoundComplete;
};
}
}
Instance of Symbol 831 MovieClip in Symbol 832 MovieClip [level1f] Frame 1
onClipEvent (load) {
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc) && (this._visible)) {
var _local3 = new Sound(this);
_local3.attachSound("health");
_local3.start();
_root.hero._lives++;
_root.hero._hitPoints = 15;
this._visible = false;
delete this.onEnterFrame;
}
};
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 832 MovieClip [level1f] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
var _local3 = {x:18100, y:0};
_root.level.localToGlobal(_local3);
if (_local3.x < 0) {
_root.bgSound.stop();
_root.bgSound.attachSound("GaymTheme");
_root.bgSound.start(0, 99999);
_root.caveDone2 = true;
_root.level._leftBound = 18200;
_root.level._rightBound = 20540;
_root._canControl = true;
_root.caveCutscene.gotoAndStop(1);
_root.caveCutscene._visible = false;
delete this.onEnterFrame;
}
}
};
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 832 MovieClip [level1f] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
if (this._parent._visible) {
if (this.hitTest(_root.hero._mc) && (_root.bossThru)) {
_root._canControl = false;
_root.hero._mc._xscale = -Math.abs(_root.hero._mc._xscale);
_root.caveCutscene.play();
}
if (((!_root._canControl) && (_root.caveDone3 == undefined)) && (_root.hero._curAction._name != "DIE")) {
_root.hero.SetAction("RUN");
_root.level._x = _root.level._x - (_root.hero._speed * 3);
}
if (_root.caveDone3) {
_root.bgSound.stop();
_root.bgSound.attachSound("Wert Intro");
_root.bgSound.start();
_root.bgSound.onSoundComplete = function () {
this.attachSound("Wert Loop");
this.start(0, 99999);
};
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 832 MovieClip [level1f] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 832 MovieClip [level1f] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 832 MovieClip [level1f] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 841 MovieClip Frame 25
this._parent._parent.SetActionDone("IDLE");
Symbol 850 MovieClip Frame 32
this._parent._parent.SetActionDone("FLIP");
Symbol 857 MovieClip Frame 32
this._parent._parent._eyeOpen = false;
this._parent._parent.SetActionDone("FLIPBACK");
Symbol 863 MovieClip Frame 8
this._parent._parent.SetActionDone("HIT");
Instance of Symbol 875 MovieClip in Symbol 927 MovieClip Frame 31
onClipEvent (load) {
this._visible = false;
this._done = false;
this._parent.cc = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero._mc)) {
if (!this._done) {
this._done = true;
_root.hero._hitPoints = _root.hero._hitPoints - 7;
_root._canControl = false;
this._parent.cc = true;
}
var a = new CAction();
a._name = "ELECTRIC";
a._override = false;
_root.hero.SetActionEx(a);
} else {
this._done = false;
}
}
Symbol 927 MovieClip Frame 64
if (this.cc) {
this.cc = false;
_root._canControl = true;
}
Instance of Symbol 925 MovieClip [redEye] in Symbol 927 MovieClip Frame 69
onClipEvent (enterFrame) {
this._parent._parent._parent._eyeLaserWaitCount++;
if (this._parent._parent._parent._eyeLaserWaitCount >= this._parent._parent._parent._eyeLaserWait) {
this._parent._parent._parent._eyeLaserWaitCount = 0;
this._parent._parent._parent._eyeHit = 0;
this._parent._parent._parent._maxEyeHit = Math.floor(Math.random() * 2) + 2;
this._parent._parent._parent.SetAction("FLIPBACK");
}
if (this.hitTest(_root.crossbowArrow)) {
if (this._parent._parent._parent._eyeHit < this._parent._parent._parent._maxEyeHit) {
this._parent._parent._parent._hitPoints = this._parent._parent._parent._hitPoints - 7;
this._parent._parent._parent._eyeHit++;
_root.crossbowArrow.removeMovieClip();
this._parent._parent._parent._eyeHit = 0;
this._parent._parent._parent._maxEyeHit = Math.floor(Math.random() * 2) + 2;
this._parent._parent._parent.SetAction("FLIPBACK");
}
}
}
Symbol 927 MovieClip Frame 72
stop();
Symbol 940 MovieClip Frame 1
Symbol 940 MovieClip Frame 43
this._parent._parent.SetActionDone("MELEE");
Symbol 952 MovieClip Frame 31
var ypos = _root.hero._mc._y;
if (ypos > (this._parent._parent.GetY() + (this._parent._parent.GetHeight() / 2))) {
ypos = this._parent._parent.GetY() + (this._parent._parent.GetHeight() / 2);
}
_root.attachMovie("electricity", "electricity" + this._parent._parent._ballCount, 510500 + this._parent._parent._ballCount, {_x:_parent._parent._mc._x - (_parent._parent._mc._width / 2), _y:ypos, _speed:-8});
Symbol 952 MovieClip Frame 33
var ypos = _root.hero._mc._y;
if (ypos > (this._parent._parent.GetY() + (this._parent._parent.GetHeight() / 2))) {
ypos = this._parent._parent.GetY() + (this._parent._parent.GetHeight() / 2);
}
ypos = ypos - 30;
this._parent._parent._ballCount++;
_root.attachMovie("electricity", "electricity" + this._parent._parent._ballCount, 510500 + this._parent._parent._ballCount, {_x:_parent._parent._mc._x - (_parent._parent._mc._width / 2), _y:ypos, _speed:-8});
Symbol 952 MovieClip Frame 36
var ypos = _root.hero._mc._y;
if (ypos > (this._parent._parent.GetY() + (this._parent._parent.GetHeight() / 2))) {
ypos = this._parent._parent.GetY() + (this._parent._parent.GetHeight() / 2);
}
ypos = ypos - 60;
this._parent._parent._ballCount++;
_root.attachMovie("electricity", "electricity" + this._parent._parent._ballCount, 510500 + this._parent._parent._ballCount, {_x:_parent._parent._mc._x - (_parent._parent._mc._width / 2), _y:ypos, _speed:-8});
Symbol 952 MovieClip Frame 43
this._parent._parent.SetActionDone("SHOOT");
Symbol 1002 MovieClip Frame 45
_root.nguts = _root.attachMovie("jellyGuts", "jellyGuts!", 9075500);
_root.nguts._x = 275 - (_root.nguts._width / 2);
_root.nguts._y = 200 + (_root.nguts._height / 2);
Symbol 1002 MovieClip Frame 114
this._parent._parent._hitPoints = 0;
this._parent._parent._dead = true;
_root.bgSound.stop();
_root.fxVolume = 0;
_root._canControl = false;
_root.outro._visible = true;
_root.outro.play();
_root.bossHB._visible = false;
stop();
Symbol 1003 MovieClip [boss] Frame 1
if (this.onEnterFrame == undefined) {
this.onEnterFrame = function () {
if (((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) || (!_root._canControl)) {
var _local3 = {x:this._origX, y:this._origY};
this._origParent.localToGlobal(_local3);
this._x = _local3.x;
this._y = _local3.y;
}
if ((!_root._paused) && (_root.level._sect[6]._mc._visible)) {
this._parent.Update();
}
};
}
stop();
Symbol 1003 MovieClip [boss] Frame 2
stop();
Symbol 1003 MovieClip [boss] Frame 3
stop();
Symbol 1003 MovieClip [boss] Frame 4
stop();
Symbol 1003 MovieClip [boss] Frame 5
stop();
Symbol 1003 MovieClip [boss] Frame 6
stop();
Symbol 1003 MovieClip [boss] Frame 7
stop();
Symbol 1003 MovieClip [boss] Frame 8
stop();
Symbol 1003 MovieClip [boss] Frame 9
stop();
Symbol 1036 MovieClip Frame 1
stop();
Instance of Symbol 330 MovieClip [Platform] in Symbol 1036 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Symbol 1036 MovieClip Frame 45
stop();
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
Instance of Symbol 335 MovieClip [cutscene trigger] in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
this._visible = false;
this.onEnterFrame = function () {
var _local3 = {x:this._x, y:0};
this._parent.localToGlobal(_local3);
if (_local3.x < 0) {
this._parent.attachMovie("miniboss placeholder", "mp", 758921, {_x:1069.8, _y:100});
_root.miniHB._visible = true;
_root.bgSound.stop();
_root.bgSound.attachSound("Dry Hump.wav");
_root.bgSound.start(0, 99999);
_root.level._leftBound = 6804;
_root.level._sect[1]._mc._visible = false;
delete this.onEnterFrame;
}
};
}
Instance of Symbol 1016 MovieClip [small health] in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc) && (this._visible)) {
var _local3 = new Sound(this);
_local3.attachSound("health");
_local3.start();
if ((_root.hero._hitPoints + 4) >= 15) {
_root.hero._hitPoints = 15;
} else {
_root.hero._hitPoints = _root.hero._hitPoints + 4;
}
this._visible = false;
delete this.onEnterFrame;
}
};
}
Instance of Symbol 831 MovieClip in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
this.onEnterFrame = function () {
if (this.hitTest(_root.hero._mc) && (this._visible)) {
var _local3 = new Sound(this);
_local3.attachSound("health");
_local3.start();
_root.hero._lives++;
_root.hero._hitPoints = 15;
this._visible = false;
delete this.onEnterFrame;
}
};
}
Instance of Symbol 1018 MovieClip [holeCover] in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
_root.holeCover = this;
this._visible = false;
}
Instance of Symbol 1020 MovieClip [holeBound] in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
this._visible = false;
_root.boss3Right = this;
}
Instance of Symbol 1020 MovieClip [holeBound] in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
this._visible = false;
_root.boss1Left = this;
}
Instance of Symbol 1022 MovieClip [miniHoleCovers] in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
_root.miniPlatDisp = this;
}
Instance of Symbol 1024 MovieClip [lefthole] in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("lefthole", "lefthole", _root.objLevel + 1800);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 1026 MovieClip [righthole] in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
if (_root.objLevel == undefined) {
_root.objLevel = 15000;
}
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc = _root.attachMovie("righthole", "righthole", _root.objLevel + 1800);
this._mc._x = coord.x;
this._mc._y = coord.y;
_root.PlatformManager.AddObject(this._mc);
_root.objLevel++;
}
onClipEvent (enterFrame) {
if ((_root.PlatformManager._xSpeed != 0) || (_root.PlatformManager._ySpeed != 0)) {
var coord = {x:this._x, y:this._y};
_parent.localToGlobal(coord);
this._mc._x = coord.x;
this._mc._y = coord.y;
}
}
Instance of Symbol 1036 MovieClip in Symbol 1037 MovieClip [level1c] Frame 1
onClipEvent (load) {
this._broken = false;
}
onClipEvent (enterFrame) {
if ((((this._parent._visible && (_root.hero._curWeapon._name.substr(7, 8) == "chainsaw")) && (_root.hero._attacking)) && (this.hitTest(_root.hero._curWeapon._mc))) && (!this._broken)) {
this._broken = true;
this.play();
}
}
Instance of Symbol 330 MovieClip [Platform] in Symbol 1037 MovieClip [level1c] Frame 1
//component parameters
onClipEvent (construct) {
_angle = 0;
_crouch = false;
}
onClipEvent (load) {
_root.miniPlat = this;
this._origY = this._y;
}
Symbol 1041 MovieClip [electricity] Frame 1
#initclip 21
function elecBall() {
this._hit = false;
}
elecBall.prototype = new MovieClip();
elecBall.prototype.onEnterFrame = function () {
if (!_root._paused) {
if ((((!this._hit) && (_root.hero.GetClip().hitTest(this))) && (!_root.hero._inToaster)) && (!_root.hero._flash)) {
this.removeMovieClip();
delete this.onEnterFrame;
_root.hero._hitPoints = _root.hero._hitPoints - 3;
var _local3 = new CAction();
_local3._name = "ELECTRIC";
_local3._override = false;
_root.hero.SetActionEx(_local3);
this._hit = true;
} else if ((((this._x < 0) || (this._x > 550)) || (this._y < 0)) || (this._y > 400)) {
this._slug._missCount++;
delete this.onEnterFrame;
this.removeMovieClip();
}
this._x = this._x + (this._speed + _root.PlatformManager._xSpeed);
this._y = this._y + _root.PlatformManager._ySpeed;
}
};
Object.registerClass("electricity", elecBall);
#endinitclip
Symbol 1075 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 1084 Button
on (release) {
getURL ("http://www.commonstudios.com", "blank");
}
Symbol 1094 Button
on (release) {
getURL ("http://www.commonstudios.com", "blank");
}
Symbol 1096 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 1099 Button
on (release) {
var s = new Sound();
s.stop("High Liter.wav");
s.attachSound("chowChowButton");
s.start();
s.onSoundComplete = function () {
delete this.onSoundComplete;
_root.gotoAndPlay("BOARD");
};
}
Symbol 1101 Button
on (release) {
_root.gotoAndStop("INSTRUCTIONS");
}
Symbol 1103 Button
on (release) {
gotoAndStop ("CREDITS");
}
Symbol 1111 Button
on (release) {
_root.gotoAndStop("NEWMAIN");
}
Symbol 1128 MovieClip Frame 54
stop();
Symbol 1131 Button
on (release) {
_root.gotoAndPlay("GAME");
}
Symbol 1168 MovieClip Frame 821
_root.gotoAndPlay("GAME");
Instance of Symbol 1167 MovieClip in Symbol 1168 MovieClip Frame 821
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
_root.gotoAndPlay("GAME");
}
Symbol 1169 MovieClip [Level] Frame 1
#initclip 23
function Level() {
if (!_root.PlatformManager._activated) {
_root.PlatformManager = new Toast.CPlatformManager();
_root.PlatformManager._activated = true;
}
var _local3 = new Array();
_local3.push({id:"level1a", x:-207.7, y:148.1, w:2230.8, h:906});
_local3.push({id:"level1b", x:1969.8, y:215.7, w:4107.1, h:1469.1});
_local3.push({id:"level1c", x:6046.9, y:334.1, w:2012.5, h:1136});
_local3.push({id:"level1d", x:8034.2, y:436.1, w:2012.5, h:1136});
_local3.push({id:"level1e", x:15138, y:800, w:2012.5, h:1136});
_local3.push({id:"level1f", x:18080, y:770, w:2012.5, h:1136});
_local3.push({id:"level1g", x:20595, y:300, w:2012.5, h:1136});
this._sect = _local3;
this._sect[0]._mc = this.attachMovie(_local3[0].id, _local3[0].id, 9, {_x:_local3[0].x, _y:_local3[0].y});
this._sect[1]._mc = this.attachMovie(_local3[1].id, _local3[1].id, 10, {_x:_local3[1].x, _y:_local3[1].y, _visible:false});
this._sect[2]._mc = this.attachMovie(_local3[2].id, _local3[2].id, 11, {_x:_local3[2].x, _y:_local3[2].y, _visible:false});
this._sect[3]._mc = this.attachMovie(_local3[3].id, _local3[3].id, 15, {_x:_local3[3].x, _y:_local3[3].y, _visible:false});
this._sect[4]._mc = this.attachMovie(_local3[4].id, _local3[4].id, 17, {_x:_local3[4].x, _y:_local3[4].y, _visible:false});
this._sect[5]._mc = this.attachMovie(_local3[5].id, _local3[5].id, 16, {_x:_local3[5].x, _y:_local3[5].y, _visible:false});
this._sect[6]._mc = this.attachMovie(_local3[6].id, _local3[6].id, 18, {_x:_local3[6].x, _y:_local3[6].y, _visible:false});
_root.PlatformManager.SetLevel(this);
}
Level.prototype = new MovieClip();
Object.registerClass("Level", Level);
#endinitclip
_root.objectDepths = 0;
Symbol 1182 MovieClip Frame 1
stop();
Symbol 1182 MovieClip Frame 2
stop();
Symbol 1184 MovieClip Frame 1
stop();
Symbol 1184 MovieClip Frame 2
stop();
Symbol 1195 MovieClip Frame 1
stop();
Instance of Symbol 1182 MovieClip "chain" in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1184 MovieClip "cross" in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1195 MovieClip Frame 2
stop();
Symbol 1195 MovieClip Frame 3
stop();
Symbol 1201 Button
on (release) {
_root._dispDebugText = !_root._dispDebugText;
}
Symbol 1207 MovieClip Frame 1
stop();
Symbol 1209 MovieClip [BoostMeter] Frame 1
stop();
Symbol 1211 MovieClip Frame 1
stop();
Symbol 1211 MovieClip Frame 8
this.sound = new Sound(this);
this.sound.attachSound("gosound");
this.sound.setVolume(_root.fxVolume);
this.sound.start();
Symbol 1211 MovieClip Frame 29
this.sound = new Sound(this);
this.sound.attachSound("gosound");
this.sound.setVolume(_root.fxVolume);
this.sound.start();
Symbol 1211 MovieClip Frame 50
this.sound = new Sound(this);
this.sound.attachSound("gosound");
this.sound.setVolume(_root.fxVolume);
this.sound.start();
Symbol 1211 MovieClip Frame 71
this.sound = new Sound(this);
this.sound.attachSound("gosound");
this.sound.setVolume(_root.fxVolume);
this.sound.start();
Symbol 1213 MovieClip Frame 1
stop();
Symbol 1213 MovieClip Frame 12
this.sound = new Sound(this);
this.sound.attachSound("backsound");
this.sound.setVolume(_root.fxVolume);
this.sound.start();
Symbol 1215 Button
on (press) {
if (_root.bgSound.getVolume() >= _root.bgVolume) {
_root.bgSound.setVolume(0);
} else {
_root.bgSound.setVolume(_root.bgVolume);
}
}
Symbol 1227 MovieClip [swarmUp] Frame 1
stop();
Symbol 1227 MovieClip [swarmUp] Frame 39
this._visible = false;
Symbol 1241 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 1247 Button
on (release) {
_root._paused = false;
this._visible = false;
this.gotoAndStop(1);
_root.PlatformManager._xSpeed = _root.PlatformManager._pauseXSpeed;
_root.PlatformManager._ySpeed = _root.PlatformManager._pauseYSpeed;
_root.hero._xSpeed = _root.hero._pauseXSpeed;
_root.hero._ySpeed = _root.hero._pauseYSpeed;
_root._unpauseBlocked = false;
}
Symbol 1249 Button
on (release) {
_root.fxVolume = 30;
}
Symbol 1251 Button
on (release) {
_root.fxVolume = 0;
}
Symbol 1253 Button
on (release) {
_root._quality = "high";
}
Symbol 1256 Button
on (release) {
_root._quality = "medium";
}
Symbol 1258 Button
on (release) {
_root._quality = "low";
}
Symbol 1259 Button
on (release) {
_root.bgSound.setVolume(_root.bgVolume);
}
Symbol 1260 Button
on (release) {
_root.bgSound.setVolume(0);
}
Symbol 1264 MovieClip [PauseNotice] Frame 52
stop();
Symbol 1265 Button
on (release) {
_root.gotoAndStop("Menu", "NEWMAIN");
this._visible = false;
_root.PauseNotice._visible = false;
}
Symbol 1268 MovieClip Frame 1
stop();
Symbol 1268 MovieClip Frame 125
stop();
Symbol 1285 MovieClip [cutscene - chainsaw] Frame 1
this._visible = false;
stop();
Symbol 1285 MovieClip [cutscene - chainsaw] Frame 2
this._visible = true;
_root._paused = true;
_root._cutscene = true;
_root.bgSound.setVolume(_root.bgVolume / 4);
Symbol 1285 MovieClip [cutscene - chainsaw] Frame 126
this._visible = false;
_root._paused = false;
_root._cutscene = false;
_root.bgSound.setVolume(_root.bgVolume);
Symbol 1286 MovieClip [caveCutscene] Frame 1
stop();
Symbol 1286 MovieClip [caveCutscene] Frame 2
this._visible = true;
Symbol 1286 MovieClip [caveCutscene] Frame 100
stop();
Symbol 1315 MovieClip [cutscene - crossbow] Frame 1
this._visible = false;
stop();
Symbol 1315 MovieClip [cutscene - crossbow] Frame 2
this._visible = true;
_root._paused = true;
_root._cutscene = true;
_root.bgSound.setVolume(_root.bgVolume / 4);
Symbol 1315 MovieClip [cutscene - crossbow] Frame 126
this._visible = false;
_root._paused = false;
_root._cutscene = false;
_root.bgSound.setVolume(_root.bgVolume);
Symbol 1332 Button
on (rollOver) {
_root.gayMan._visible = true;
}
on (rollOut) {
_root.gayMan._visible = false;
}
Symbol 1335 MovieClip Frame 1
stop();
Symbol 1335 MovieClip Frame 2
this._visible = true;
Symbol 1335 MovieClip Frame 60
this._visible = true;
Symbol 1335 MovieClip Frame 253
stop();
Instance of Symbol 1330 MovieClip in Symbol 1335 MovieClip Frame 253
onClipEvent (load) {
this._visible = false;
_root.gayMan = this;
}