Frame 1
function preload() {
ploader.T.text = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) + "% loaded";
if (ploader.T.text == "100% loaded") {
ploader.T.text = "Load Complete - Click anywhere to continue";
clearInterval(Int);
Loaded = true;
}
}
function onMouseDown() {
if (Loaded) {
_root.play();
unloadMovie (ploader);
delete preload;
delete Loaded;
delete Int;
delete onMouseDown;
}
}
stop();
adultUnlocked = false;
createEmptyMovieClip("ploader", -1);
ploader._x = 0;
ploader._y = 0;
ploader.createTextField("T", 1, 2, 2, Stage.width, Stage.height);
ploader.T.selectable = false;
ploader.T.setTextFormat(fmt);
ploader.blendMode = "invert";
var Loaded = false;
var Int = setInterval(preload, 100);
Frame 2
stop();
Instance of Symbol 49 MovieClip "cam" in Frame 2
onClipEvent (load) {
target = 0;
keyPressed = false;
}
onClipEvent (enterFrame) {
goto = _root["b" + target];
_x = ((_x + goto._x) / 2);
if (Key.isDown(65) && (!keyPressed)) {
keyPressed = true;
if (target == 0) {
_root.gotoAndStop(6);
} else if (target == 1) {
_root.gotoAndStop(3);
} else if (target == 2) {
_root.gotoAndStop(4);
} else if (target == 3) {
if (_root.adultUnlocked) {
_root.gotoAndStop(5);
} else {
_root.adultUnlocked = true;
}
}
}
if ((Key.isDown(37) && (!keyPressed)) && (target > 0)) {
target--;
keyPressed = true;
}
if ((Key.isDown(39) && (!keyPressed)) && (target < 3)) {
target++;
keyPressed = true;
}
if (((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(65))) {
keyPressed = false;
}
}
Frame 3
stop();
chewTolerance = 5;
digestionTolerance = 40;
hearts = 16;
onEnterFrame = function () {
if (Key.isDown(66)) {
trans.play();
}
if (hearts > 0) {
life.gotoAndStop(hearts);
} else {
life.gotoAndStop(1);
life._alpha = 0;
}
if (!player.eaten) {
chewTolerance = 5;
}
if (!player.swallowed) {
digestionTolerance = 40;
} else if (digestionTolerance > 0) {
digestionTolerance--;
} else {
digestionTolerance = 20;
hearts--;
}
if (chewTolerance <= 0) {
chewTolerance = 6;
hearts--;
}
};
Instance of Symbol 53 MovieClip "ground" in Frame 3
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 112 MovieClip "player" in Frame 3
onClipEvent (load) {
function slide() {
if ((((moveSpeed > 1) || (moveSpeed < -1)) || (!_root.ground.hitTest(_x, _y, true))) || (fallingSpeed != 0)) {
if (!hitGround) {
gotoAndStop ("thrown");
}
if (!_root.ground.hitTest(_x, _y, true)) {
if (hitGround) {
gotoAndStop ("slidingAir");
}
fallingSpeed = fallingSpeed + grav;
}
if (_root.ground.hitTest(_x, _y, true)) {
hitGround = true;
gotoAndStop ("sliding");
if (fallingSpeed > 4) {
fallingSpeed = -(fallingSpeed * 0.6);
moveSpeed = moveSpeed * 0.7;
} else {
fallingSpeed = 0;
if (moveSpeed > 0) {
moveSpeed = moveSpeed - accel;
} else {
moveSpeed = moveSpeed + accel;
}
}
}
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
while (_root.ground.hitTest(_x, _y - 2, true)) {
_y = (_y - 0.1);
}
} else {
moveSpeed = 0;
if (_root.hearts > 0) {
gotoAndStop ("getUp");
}
}
}
scale = _xscale;
onGround = true;
fallingSpeed = 0;
moveSpeed = 0;
eaten = false;
swallowed = false;
sliding = false;
attacking = false;
sliding = false;
hitGround = false;
health = 3;
accel = 1;
maxSpeed = 5;
jumpHeight = 10;
grav = 1;
left = 37;
right = 39;
up = 38;
down = 40;
a = 65;
}
onClipEvent (enterFrame) {
if (_y > 500) {
if (_root.hearts > 0) {
_root.hearts--;
}
}
if (!eaten) {
if (!sliding) {
_alpha = 100;
if (_root.ground.hitTest(_x, _y, true)) {
onGround = true;
fallingSpeed = 0;
} else {
onGround = false;
fallingSpeed = fallingSpeed + grav;
}
if ((Key.isDown(up) && (onGround)) && (!attacking)) {
fallingSpeed = -jumpHeight;
onGround = false;
}
if ((Key.isDown(left) && (moveSpeed > (-maxSpeed))) && (!attacking)) {
moveSpeed = moveSpeed - accel;
_xscale = (-scale);
}
if ((Key.isDown(right) && (moveSpeed < maxSpeed)) && (!attacking)) {
moveSpeed = moveSpeed + accel;
_xscale = scale;
}
if (((!Key.isDown(left)) && (!Key.isDown(right))) || (attacking)) {
moveSpeed = moveSpeed * 0.8;
}
if (Key.isDown(a)) {
attacking = true;
gotoAndStop ("attack");
}
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 0.2);
}
if (onGround) {
if (!attacking) {
if (Key.isDown(left) || (Key.isDown(right))) {
gotoAndStop ("run");
} else {
gotoAndStop ("stand");
}
}
} else {
attacking = false;
if (fallingSpeed < 5) {
gotoAndStop ("jump");
} else {
gotoAndStop ("fall");
}
}
} else {
slide();
}
} else {
_alpha = 0;
}
}
Instance of Symbol 192 MovieClip "wart" in Frame 3
onClipEvent (load) {
function attack() {
if (!attacked) {
if (random(2) == 0) {
gotoAndStop ("lick");
} else {
gotoAndStop ("suck");
}
attacked = true;
}
}
function Spit() {
p = _root.player;
p.fallingSpeed = 0;
p.eaten = false;
p.swallowed = false;
p._alpha = 100;
p.sliding = true;
p._y = _y - 21;
if (_xscale == scale) {
p._xscale = p.scale;
p._x = _x + 25;
p.moveSpeed = 8;
} else {
p._x = _x - 25;
p._xscale = -p.scale;
p.moveSpeed = -8;
}
}
function Hurt() {
p = _root.player;
if (p.anim.hitBox.hitTest(_x, _y - 20, true)) {
attacking = false;
attacked = false;
gotoAndStop ("walk");
gotoAndStop ("hurt");
if (p._x > _x) {
knockSpeed = -10;
} else {
knockSpeed = 10;
}
}
_x = (_x + knockSpeed);
if (knockSpeed > 0) {
knockSpeed--;
}
if (knockSpeed < 0) {
knockSpeed++;
}
}
attackSpeed = 0.5;
normSpeed = 1.5;
knockSpeed = 0;
scale = _xscale;
dir = 0;
dirTimer = 60;
fallingSpeed = 0;
onGround = true;
attackTimer = 30;
attacking = false;
attacked = false;
}
onClipEvent (enterFrame) {
if (_root.ground.hitTest(_x, _y, true)) {
fallingSpeed = 0;
onGround = true;
} else {
fallingSpeed++;
}
_y = (_y + fallingSpeed);
while (_root.ground.hitTest(_x, _y - 1, true)) {
_y = (_y - 0.5);
}
Hurt();
if (dirTimer > 0) {
dirTimer--;
} else {
dirTimer = 30 + random(40);
dir = random(2);
}
if ((!_root.ground.hitTest(_x + 50, _y + 5, true)) && (dir == 1)) {
dir = 0;
dirTimer = 30 + random(40);
}
if ((!_root.ground.hitTest(_x - 50, _y + 5, true)) && (dir == 0)) {
dir = 1;
dirTimer = 30 + random(40);
}
if ((attackTimer > 0) && (!attacking)) {
attackTimer--;
} else {
attacking = true;
attackTimer = 30;
}
if (attacking) {
attack();
if (dir == 0) {
_x = (_x - attackSpeed);
} else {
_x = (_x + attackSpeed);
}
} else {
if (dir == 0) {
_x = (_x - normSpeed);
} else {
_x = (_x + normSpeed);
}
if (_root.player._x > _x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
}
Frame 4
function changeDepths(a, b, c) {
i = 0;
while (i < 3) {
depths.shift();
i++;
}
depths.push(c);
depths.push(b);
depths.push(a);
}
function reset() {
chewTolerance = 5;
digestionTolerance = 40;
attacking = false;
noiseTimer = 8;
swallowSet = false;
swallowing = false;
regurging = false;
regurgingTimer = 70;
swallowStart = 0;
swallowEnd = 0;
swallowedBy = _root.head0;
segs = new Array(0, 0, 0, 0, 0);
}
function Swallow() {
if (!swallowSet) {
nextSeg2 = _root[swallowStart];
nextSeg1 = 0;
currentSeg = 0;
prevSeg1 = 0;
prevSeg2 = 0;
swallowTimer = 6;
swallowSet = true;
}
if ((swallowTimer > 0) && (currentSeg != _root[swallowEnd])) {
swallowTimer--;
if (nextSeg2 != 0) {
nextSeg2._width = nextSeg2._width + 4;
}
if (nextSeg1 != 0) {
nextSeg1._width = nextSeg1._width + 4;
}
if (prevSeg1 != 0) {
prevSeg1._width = prevSeg1._width - 4;
}
if (prevSeg2 != 0) {
prevSeg2._width = prevSeg2._width - 4;
}
} else {
swallowTimer = 6;
if (currentSeg != _root[swallowEnd]) {
segs.push(_root[int(nextSeg2._name) + 1]);
segs.shift();
prevSeg2 = segs[0];
prevSeg1 = segs[1];
currentSeg = segs[2];
nextSeg1 = segs[3];
nextSeg2 = segs[4];
} else {
swallowing = false;
finishedSwallowing = true;
}
}
}
function Regurgitate() {
if (swallowedBy == _root.head0) {
regurgEnd = _root[2];
} else if (swallowedBy == _root.head1) {
regurgEnd = _root[13];
} else if (swallowedBy == _root.head2) {
regurgEnd = _root[24];
}
if (finishedSwallowing) {
swallowing = false;
if ((swallowTimer > 0) && (nextSeg2 != regurgEnd)) {
swallowTimer--;
if (nextSeg2 != 0) {
nextSeg2._width = nextSeg2._width - 4;
}
if (nextSeg1 != 0) {
nextSeg1._width = nextSeg1._width - 4;
}
if (currentSeg != 0) {
}
if (prevSeg1 != 0) {
prevSeg1._width = prevSeg1._width + 4;
}
if (prevSeg2 != 0) {
prevSeg2._width = prevSeg2._width + 4;
}
} else {
swallowTimer = 6;
if (nextSeg2 != 0) {
segs.reverse();
segs[0]._width = segs[0].oriWidth;
segs.shift();
if ((prevSeg2 != regurgEnd) && (prevSeg2 != 0)) {
segs.push(_root[int(prevSeg2._name) - 1]);
} else {
segs.push(0);
}
segs.reverse();
prevSeg2 = segs[0];
prevSeg1 = segs[1];
currentSeg = segs[2];
nextSeg1 = segs[3];
nextSeg2 = segs[4];
} else {
regurging = false;
swallowing = false;
finishedSwallowing = false;
regurgingTimer = 70;
_root.player.swallowed = false;
_root.player.eaten = true;
swallowedBy.gotoAndStop("spit");
}
}
}
}
stop();
hearts = 16;
attackTimer = 50;
i = 1;
while (i < 33) {
_root[i].oriWidth = _root[i]._width;
_root[i].maxWidth = _root[i]._width * 1.7;
i++;
}
depths = new Array(1100, 2200, 3300);
attacker = _root.head0;
reset();
onEnterFrame = function () {
if (swallowing) {
Swallow();
}
if (finishedSwallowing) {
if (regurgingTimer > 0) {
regurgingTimer--;
} else {
regurging = true;
swallowing = false;
}
}
if (regurging) {
Regurgitate();
}
if ((attackTimer > 0) && (!attacking)) {
if ((!player.eaten) && (!player.swallowed)) {
attackTimer--;
}
} else if ((!attacking) && (player.onGround)) {
attackTimer = 60 + random(40);
attacking = true;
attacker = _root["head" + random(3)];
attacker.attacking = true;
if (attacker == _root.head0) {
changeDepths(1100, 2200, 3300);
} else if (attacker == _root.head1) {
changeDepths(2100, 3200, 1300);
} else if (attacker == _root.head2) {
changeDepths(3100, 2200, 1300);
}
}
if (Key.isDown(66)) {
trans1.play();
}
if (hearts > 0) {
life.gotoAndStop(hearts);
} else {
life.gotoAndStop(1);
life._alpha = 0;
}
if (!player.eaten) {
chewTolerance = 5;
}
if (!player.swallowed) {
digestionTolerance = 40;
} else {
if (noiseTimer > 0) {
noiseTimer--;
} else {
noiseTimer = 8 + random(10);
s = new Sound(this);
s.attachSound("Belly" + random(3));
s.start(0, 0);
}
if (digestionTolerance > 0) {
digestionTolerance--;
} else {
digestionTolerance = 20;
hearts--;
}
}
if (chewTolerance <= 0) {
chewTolerance = 6;
hearts--;
}
};
Instance of Symbol 199 MovieClip in Frame 4
onClipEvent (load) {
this.swapDepths(1);
}
Instance of Symbol 201 MovieClip "p2" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = _root[31].getDepth();
this.swapDepths(pD - 1);
}
following = _root.head2;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 201 MovieClip "p1" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = _root[20].getDepth();
this.swapDepths(pD - 1);
}
following = _root.head1;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 201 MovieClip "p0" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = _root[9].getDepth();
this.swapDepths(pD - 1);
}
following = _root.head0;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "2" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.1);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.1);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.1);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.1);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "8" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "9" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "3" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.1);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.1);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.1);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.1);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "4" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 237 MovieClip "1" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
_width = oriWidth;
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
function Spit(offSet) {
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x + offSet;
_root.player._y = _y + 65;
_root.player.fallingSpeed = 1;
_root.player.moveSpeed = 0;
}
function Hit() {
if (hitBox.hitTest(_root.player.anim.hitBox)) {
if (_root.player._x > _x) {
gotoAndStop ("leftBounce");
} else {
gotoAndStop ("rightBounce");
}
}
}
oriWidth = _width;
following = _root.head0;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hit();
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "5" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "7" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "6" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 346 MovieClip "head0" in Frame 4
onClipEvent (load) {
function MoveX() {
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
if (moveX > maxX) {
moveX--;
}
if (moveX < (-maxX)) {
moveX++;
}
_x = (_x + moveX);
}
function MoveY() {
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
if (moveY > maxY) {
moveY--;
}
if (moveY < (-maxY)) {
moveY++;
}
_y = (_y + moveY);
}
function MakeNewX() {
if ((_x > (desiredX - 5)) && (_x < (desiredX + 5))) {
desiredX = (baseX - fluxX) + random(fluxX * 2);
}
}
function MakeNewY() {
if ((_y > (desiredY - 5)) && (_y < (desiredY + 5))) {
desiredY = (baseY - fluxY) + random(fluxY * 2);
}
}
function Attack() {
if ((!lunging) && (!eaten)) {
gotoAndStop ("prepare");
} else {
if (!calcDist) {
calcDist = true;
time = 12;
lungeTimer = time;
p = _root.player;
xSpeed = (p._x - _x) / time;
ySpeed = ((p._y - 9) - _y) / time;
}
if (lungeTimer > 0) {
if (p._x > _x) {
if (xSpeed < 0) {
xSpeed = 0;
}
p._x = p._x - 1;
}
if (p._x < _x) {
if (xSpeed > 0) {
xSpeed = 0;
}
p._x = p._x + 1;
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
lungeTimer--;
} else {
lunging = false;
attacking = false;
calcDist = false;
gotoAndStop ("normal");
_root.reset();
}
}
}
function Hurt() {
if ((hitBox.hitTest(_root.player.anim.hitBox) && (!lunging)) && (!eaten)) {
gotoAndStop ("hurt");
p = _root.player;
if (p._x > _x) {
moveX = -12;
moveY = -8;
} else {
moveX = 12;
moveY = -8;
}
}
}
function Spit() {
_root.regurging = false;
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x;
_root.player._y = _y + 20;
_root.player.fallingSpeed = 10;
_root.player.moveSpeed = -3 + random(6);
}
p = _root.player;
scale = _xscale;
baseX = _x;
desiredX = _x;
fluxX = 20;
maxX = 3;
moveX = 0;
baseY = _y;
desiredY = _y;
fluxY = 20;
moveY = 0;
maxY = 2;
calcDist = false;
attacking = false;
lunging = false;
eaten = false;
swallowed = false;
lungeTimer = 7;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hurt();
this.swapDepths(_root.depths[0]);
if (!lunging) {
MoveX();
MoveY();
}
if (!attacking) {
MakeNewX();
MakeNewY();
} else {
Attack();
}
}
Instance of Symbol 203 MovieClip "13" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.1);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.1);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.1);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.1);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "19" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "20" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "14" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.1);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.1);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.1);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.1);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "15" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 237 MovieClip "12" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
_width = oriWidth;
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
function Spit(offSet) {
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x + offSet;
_root.player._y = _y + 65;
_root.player.fallingSpeed = 1;
_root.player.moveSpeed = -3 + random(6);
}
function Hit() {
if (hitBox.hitTest(_root.player.anim.hitBox)) {
if (_root.player._x > _x) {
gotoAndStop ("leftBounce");
} else {
gotoAndStop ("rightBounce");
}
}
}
oriWidth = _width;
following = _root.head1;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hit();
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "16" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "18" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "17" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 346 MovieClip "head1" in Frame 4
onClipEvent (load) {
function MoveX() {
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
if (moveX > maxX) {
moveX--;
}
if (moveX < (-maxX)) {
moveX++;
}
_x = (_x + moveX);
}
function MoveY() {
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
if (moveY > maxY) {
moveY--;
}
if (moveY < (-maxY)) {
moveY++;
}
_y = (_y + moveY);
}
function MakeNewX() {
if ((_x > (desiredX - 5)) && (_x < (desiredX + 5))) {
desiredX = (baseX - fluxX) + random(fluxX * 2);
}
}
function MakeNewY() {
if ((_y > (desiredY - 5)) && (_y < (desiredY + 5))) {
desiredY = (baseY - fluxY) + random(fluxY * 2);
}
}
function Attack() {
if ((!lunging) && (!eaten)) {
gotoAndStop ("prepare");
} else {
if (!calcDist) {
calcDist = true;
time = 12;
lungeTimer = time;
p = _root.player;
xSpeed = (p._x - _x) / time;
ySpeed = ((p._y - 9) - _y) / time;
}
if (lungeTimer > 0) {
if (p._x > _x) {
if (xSpeed < 0) {
xSpeed = 0;
}
p._x = p._x - 1;
}
if (p._x < _x) {
if (xSpeed > 0) {
xSpeed = 0;
}
p._x = p._x + 1;
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
lungeTimer--;
} else {
lunging = false;
attacking = false;
calcDist = false;
gotoAndStop ("normal");
_root.reset();
}
}
}
function Hurt() {
if ((hitBox.hitTest(_root.player.anim.hitBox) && (!lunging)) && (!eaten)) {
gotoAndStop ("hurt");
p = _root.player;
if (p._x > _x) {
moveX = -12;
moveY = -8;
} else {
moveX = 12;
moveY = -8;
}
}
}
function Spit() {
_root.regurging = false;
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x;
_root.player._y = _y + 20;
_root.player.fallingSpeed = 10;
_root.player.moveSpeed = -3 + random(6);
}
p = _root.player;
scale = _xscale;
baseX = _x;
desiredX = _x;
fluxX = 20;
maxX = 3;
moveX = 0;
baseY = _y;
desiredY = _y;
fluxY = 20;
moveY = 0;
maxY = 2;
calcDist = false;
attacking = false;
lunging = false;
eaten = false;
swallowed = false;
lungeTimer = 7;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hurt();
this.swapDepths(_root.depths[1]);
if (!lunging) {
MoveX();
MoveY();
}
if (!attacking) {
MakeNewX();
MakeNewY();
} else {
Attack();
}
}
Instance of Symbol 203 MovieClip "24" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.1);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.1);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.1);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.1);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "30" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "31" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "25" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.1);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.1);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.1);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.1);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "26" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 203 MovieClip "27" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = following._height - 2;
boundY2 = following._height * 0.9;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "29" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 205 MovieClip "28" in Frame 4
onClipEvent (load) {
function Placement() {
_x = ((following._x + followed._x) / 2);
_y = ((following._y + followed._y) / 2);
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
following = _root[int(_name) - 1];
followed = _root[int(_name) + 1];
}
onClipEvent (enterFrame) {
Placement();
ChangeDepth();
}
Instance of Symbol 237 MovieClip "23" in Frame 4
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
_width = oriWidth;
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
function Spit(offSet) {
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x + offSet;
_root.player._y = _y + 65;
_root.player.fallingSpeed = 1;
_root.player.moveSpeed = -3 + random(6);
}
function Hit() {
if (hitBox.hitTest(_root.player.anim.hitBox)) {
if (_root.player._x > _x) {
gotoAndStop ("leftBounce");
} else {
gotoAndStop ("rightBounce");
}
}
}
oriWidth = _width;
following = _root.head2;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hit();
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 346 MovieClip "head2" in Frame 4
onClipEvent (load) {
function MoveX() {
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
if (moveX > maxX) {
moveX--;
}
if (moveX < (-maxX)) {
moveX++;
}
_x = (_x + moveX);
}
function MoveY() {
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
if (moveY > maxY) {
moveY--;
}
if (moveY < (-maxY)) {
moveY++;
}
_y = (_y + moveY);
}
function MakeNewX() {
if ((_x > (desiredX - 5)) && (_x < (desiredX + 5))) {
desiredX = (baseX - fluxX) + random(fluxX * 2);
}
}
function MakeNewY() {
if ((_y > (desiredY - 5)) && (_y < (desiredY + 5))) {
desiredY = (baseY - fluxY) + random(fluxY * 2);
}
}
function Attack() {
if ((!lunging) && (!eaten)) {
gotoAndStop ("prepare");
} else {
if (!calcDist) {
calcDist = true;
time = 12;
lungeTimer = time;
p = _root.player;
xSpeed = (p._x - _x) / time;
ySpeed = ((p._y - 9) - _y) / time;
}
if (lungeTimer > 0) {
if (p._x > _x) {
if (xSpeed < 0) {
xSpeed = 0;
}
p._x = p._x - 1;
}
if (p._x < _x) {
if (xSpeed > 0) {
xSpeed = 0;
}
p._x = p._x + 1;
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
lungeTimer--;
} else {
lunging = false;
attacking = false;
calcDist = false;
gotoAndStop ("normal");
_root.reset();
}
}
}
function Hurt() {
if ((hitBox.hitTest(_root.player.anim.hitBox) && (!lunging)) && (!eaten)) {
gotoAndStop ("hurt");
p = _root.player;
if (p._x > _x) {
moveX = -12;
moveY = -8;
} else {
moveX = 12;
moveY = -8;
}
}
}
function Spit() {
_root.regurging = false;
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x;
_root.player._y = _y + 20;
_root.player.fallingSpeed = 10;
_root.player.moveSpeed = -3 + random(6);
}
p = _root.player;
scale = _xscale;
baseX = _x;
desiredX = _x;
fluxX = 20;
maxX = 3;
moveX = 0;
baseY = _y;
desiredY = _y;
fluxY = 20;
moveY = 0;
maxY = 2;
calcDist = false;
attacking = false;
lunging = false;
eaten = false;
swallowed = false;
lungeTimer = 7;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hurt();
this.swapDepths(_root.depths[2]);
if (!lunging) {
MoveX();
MoveY();
}
if (!attacking) {
MakeNewX();
MakeNewY();
} else {
Attack();
}
}
Instance of Symbol 348 MovieClip in Frame 4
onClipEvent (load) {
this.swapDepths(5000);
}
Instance of Symbol 71 MovieClip "life" in Frame 4
onClipEvent (load) {
this.swapDepths(6000);
}
Instance of Symbol 112 MovieClip "player" in Frame 4
onClipEvent (load) {
function slide() {
if ((((moveSpeed > 1) || (moveSpeed < -1)) || (!_root.ground1.hitTest(_x, _y, true))) || (fallingSpeed != 0)) {
if (!hitground) {
gotoAndStop ("thrown");
}
if (!_root.ground1.hitTest(_x, _y, true)) {
onGround = false;
if (hitground) {
gotoAndStop ("slidingAir");
}
fallingSpeed = fallingSpeed + grav;
}
if (_root.ground1.hitTest(_x, _y, true)) {
hitGround = true;
onGround = true;
gotoAndStop ("sliding");
if (fallingSpeed > 6) {
fallingSpeed = -(fallingSpeed * 0.4);
moveSpeed = moveSpeed * 0.7;
} else {
fallingSpeed = 0;
if (moveSpeed > 0) {
moveSpeed = moveSpeed - accel;
} else {
moveSpeed = moveSpeed + accel;
}
}
}
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
while (_root.ground1.hitTest(_x, _y - 2, true)) {
_y = (_y - 0.1);
}
} else {
moveSpeed = 0;
hitGround = false;
if (_root.hearts > 0) {
gotoAndStop ("getUp");
} else {
dead = true;
}
}
}
this.swapDepths(6500);
scale = _xscale;
onGround = true;
fallingSpeed = 0;
moveSpeed = 0;
eaten = false;
dead = false;
swallowed = false;
sliding = false;
attacking = false;
sliding = false;
hitGround = false;
health = 3;
accel = 1;
maxSpeed = 5;
jumpHeight = 10;
grav = 1;
left = 37;
right = 39;
up = 38;
down = 40;
a = 65;
}
onClipEvent (enterFrame) {
if (_y > 500) {
if (_root.hearts > 0) {
_root.hearts--;
}
}
if ((!eaten) && (!swallowed)) {
_alpha = 100;
if (!sliding) {
if (_root.ground1.hitTest(_x, _y, true)) {
onGround = true;
fallingSpeed = 0;
} else {
onGround = false;
fallingSpeed = fallingSpeed + grav;
}
if ((Key.isDown(up) && (onGround)) && (!attacking)) {
fallingSpeed = -jumpHeight;
onGround = false;
}
if ((Key.isDown(left) && (moveSpeed > (-maxSpeed))) && (!attacking)) {
moveSpeed = moveSpeed - accel;
_xscale = (-scale);
}
if ((Key.isDown(right) && (moveSpeed < maxSpeed)) && (!attacking)) {
moveSpeed = moveSpeed + accel;
_xscale = scale;
}
if (((!Key.isDown(left)) && (!Key.isDown(right))) || (attacking)) {
moveSpeed = moveSpeed * 0.8;
}
if (Key.isDown(a)) {
attacking = true;
gotoAndStop ("attack");
}
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
while (_root.ground1.hitTest(_x, _y - 1, true)) {
_y = (_y - 0.2);
}
if (onGround) {
if (!attacking) {
if (Key.isDown(left) || (Key.isDown(right))) {
gotoAndStop ("run");
} else {
gotoAndStop ("stand");
}
}
} else {
attacking = false;
if (fallingSpeed < 5) {
gotoAndStop ("jump");
} else {
gotoAndStop ("fall");
}
}
} else {
slide();
}
} else {
_alpha = 0;
}
}
Frame 5
function changeDepths(a, b, c) {
i = 0;
while (i < 3) {
depths.shift();
i++;
}
depths.push(c);
depths.push(b);
depths.push(a);
}
function reset() {
type = 0;
chewTolerance = 3;
digestionTolerance = 40;
attacking = false;
noiseTimer = 8;
swallowSet = false;
swallowing = false;
regurging = false;
regurgingTimer = 70;
swallowStart = 0;
swallowEnd = 0;
swallowedBy = _root.head0;
segs = new Array(0, 0, 0, 0, 0);
}
function Swallow() {
if (!swallowSet) {
nextSeg2 = _root[swallowStart];
nextSeg1 = 0;
currentSeg = 0;
prevSeg1 = 0;
prevSeg2 = 0;
swallowTimer = 6;
swallowSet = true;
}
if ((swallowTimer > 0) && (currentSeg != _root[swallowEnd])) {
swallowTimer--;
if (nextSeg2 != 0) {
nextSeg2._width = nextSeg2._width + 4;
}
if (nextSeg1 != 0) {
nextSeg1._width = nextSeg1._width + 4;
}
if (prevSeg1 != 0) {
prevSeg1._width = prevSeg1._width - 4;
}
if (prevSeg2 != 0) {
prevSeg2._width = prevSeg2._width - 4;
}
} else {
swallowTimer = 6;
if (currentSeg != _root[swallowEnd]) {
segs.push(_root[int(nextSeg2._name) + 1]);
segs.shift();
prevSeg2 = segs[0];
prevSeg1 = segs[1];
currentSeg = segs[2];
nextSeg1 = segs[3];
nextSeg2 = segs[4];
} else {
swallowing = false;
finishedSwallowing = true;
}
}
}
function Regurgitate() {
if (swallowedBy == _root.head0) {
regurgEnd = _root[2];
} else if (swallowedBy == _root.head1) {
regurgEnd = _root[13];
} else if (swallowedBy == _root.head2) {
regurgEnd = _root[24];
}
if (finishedSwallowing) {
swallowing = false;
if ((swallowTimer > 0) && (nextSeg2 != regurgEnd)) {
swallowTimer--;
if (nextSeg2 != 0) {
nextSeg2._width = nextSeg2._width - 4;
}
if (nextSeg1 != 0) {
nextSeg1._width = nextSeg1._width - 4;
}
if (currentSeg != 0) {
}
if (prevSeg1 != 0) {
prevSeg1._width = prevSeg1._width + 4;
}
if (prevSeg2 != 0) {
prevSeg2._width = prevSeg2._width + 4;
}
} else {
swallowTimer = 6;
if (nextSeg2 != 0) {
segs.reverse();
segs[0]._width = segs[0].oriWidth;
segs.shift();
if ((prevSeg2 != regurgEnd) && (prevSeg2 != 0)) {
segs.push(_root[int(prevSeg2._name) - 1]);
} else {
segs.push(0);
}
segs.reverse();
prevSeg2 = segs[0];
prevSeg1 = segs[1];
currentSeg = segs[2];
nextSeg1 = segs[3];
nextSeg2 = segs[4];
} else {
regurging = false;
swallowing = false;
finishedSwallowing = false;
regurgingTimer = 70;
_root.player.swallowed = false;
_root.player.eaten = true;
swallowedBy.gotoAndStop("spit");
}
}
}
}
stop();
hearts = 16;
attackTimer = 50;
i = 1;
while (i < 33) {
_root[i].oriWidth = _root[i]._width;
_root[i].maxWidth = _root[i]._width * 1.7;
i++;
}
depths = new Array(1100, 2200, 3300);
attacker = _root.head0;
reset();
onEnterFrame = function () {
if (swallowing) {
Swallow();
}
if (finishedSwallowing) {
if (regurgingTimer > 0) {
regurgingTimer--;
} else {
regurging = true;
swallowing = false;
}
}
if (regurging) {
Regurgitate();
}
if ((attackTimer > 0) && (!attacking)) {
if ((!player.eaten) && (!player.swallowed)) {
attackTimer--;
}
} else if ((!attacking) && (player.onGround)) {
type = random(2);
if (type == 0) {
attackTimer = 60 + random(40);
attacking = true;
attacker = _root["head" + random(3)];
attacker.attacking = true;
if (attacker == _root.head0) {
changeDepths(1100, 2200, 3300);
} else if (attacker == _root.head1) {
changeDepths(2100, 3200, 1300);
} else if (attacker == _root.head2) {
changeDepths(3100, 2200, 1300);
}
} else if (type == 1) {
attackTimer = 60 + random(40);
attacking = true;
boobs = random(3);
if (boobs == 0) {
attacker = _root[1];
} else if (boobs == 1) {
attacker = _root[12];
} else if (boobs == 2) {
attacker = _root[23];
}
attacker.following.gotoAndStop("prepare");
if (attacker == _root[1]) {
changeDepths(1100, 2200, 3300);
} else if (attacker == _root[12]) {
changeDepths(2100, 3200, 1300);
} else if (attacker == _root[23]) {
changeDepths(3100, 2200, 1300);
}
}
}
if (Key.isDown(66)) {
trans2.play();
}
if (hearts > 0) {
life.gotoAndStop(hearts);
} else {
life.gotoAndStop(1);
life._alpha = 0;
}
if (!player.eaten) {
chewTolerance = 5;
}
if (!player.swallowed) {
digestionTolerance = 40;
} else {
if (noiseTimer > 0) {
noiseTimer--;
} else {
noiseTimer = 8 + random(10);
s = new Sound(this);
s.attachSound("Belly" + random(3));
s.start(0, 0);
}
if (digestionTolerance > 0) {
digestionTolerance--;
} else {
digestionTolerance = 20;
hearts--;
}
}
if (chewTolerance <= 0) {
chewTolerance = 3;
hearts--;
}
};
Instance of Symbol 453 MovieClip "1" in Frame 5
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
function Spit(offSet) {
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = true;
_root.player._x = _x + offSet;
_root.player._y = _y + 50;
_root.player.fallingSpeed = 1;
_root.player.moveSpeed = -3 + random(6);
following.gotoAndStop("normal");
i = 1;
while (i < 30) {
_root.attachMovie("BreastMilk", "nMilk" + i, 7000 + i);
m = _root["nMilk" + i];
m._x = _x + 40;
m._y = _y + 60;
i++;
}
}
function Suck() {
gotoAndStop ("sucking");
p = _root.player;
p.hitGround = false;
dist = Math.abs((_x + 40) - p._x);
if (dist > 40) {
if (p._x > (_x + 40)) {
p.moveSpeed = p.moveSpeed - 1;
} else {
p.moveSpeed = p.moveSpeed + 1;
}
} else {
p.moveSpeed = p.moveSpeed * 0.5;
if (p._x > (_x + 40)) {
p._x = p._x - 3;
} else {
p._x = p._x + 3;
}
}
p.sliding = true;
if (p._y > (_y + 60)) {
p._y = p._y - 3;
}
p.fallingSpeed = 0;
p.hitGround = false;
}
function Hit() {
if (hitBox.hitTest(_root.player.anim.hitBox)) {
if (_root.player._x > _x) {
gotoAndStop ("leftBounce");
} else {
gotoAndStop ("rightBounce");
}
}
}
sucking = false;
oriWidth = _width;
following = _root.head0;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
if (sucking) {
Suck();
}
Hit();
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 346 MovieClip "head0" in Frame 5
onClipEvent (load) {
function MoveX() {
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
if (moveX > maxX) {
moveX--;
}
if (moveX < (-maxX)) {
moveX++;
}
_x = (_x + moveX);
}
function MoveY() {
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
if (moveY > maxY) {
moveY--;
}
if (moveY < (-maxY)) {
moveY++;
}
_y = (_y + moveY);
}
function MakeNewX() {
if ((_x > (desiredX - 5)) && (_x < (desiredX + 5))) {
desiredX = (baseX - fluxX) + random(fluxX * 2);
}
}
function MakeNewY() {
if ((_y > (desiredY - 5)) && (_y < (desiredY + 5))) {
desiredY = (baseY - fluxY) + random(fluxY * 2);
}
}
function Attack() {
if ((!lunging) && (!eaten)) {
gotoAndStop ("prepare");
} else {
if (!calcDist) {
calcDist = true;
time = 12;
lungeTimer = time;
p = _root.player;
xSpeed = (p._x - _x) / time;
ySpeed = ((p._y - 9) - _y) / time;
}
if (lungeTimer > 0) {
if (p._x > _x) {
if (xSpeed < 0) {
xSpeed = 0;
}
p._x = p._x - 1;
}
if (p._x < _x) {
if (xSpeed > 0) {
xSpeed = 0;
}
p._x = p._x + 1;
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
lungeTimer--;
} else {
lunging = false;
attacking = false;
calcDist = false;
gotoAndStop ("normal");
_root.reset();
}
}
}
function Hurt() {
if ((hitBox.hitTest(_root.player.anim.hitBox) && (!lunging)) && (!eaten)) {
gotoAndStop ("hurt");
p = _root.player;
if (p._x > _x) {
moveX = -12;
moveY = -12;
} else {
moveX = 12;
moveY = -12;
}
}
}
function Spit() {
_root.regurging = false;
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x;
_root.player._y = _y + 20;
_root.player.fallingSpeed = 10;
_root.player.moveSpeed = -3 + random(6);
}
p = _root.player;
scale = _xscale;
baseX = _x;
desiredX = _x;
fluxX = 20;
maxX = 3;
moveX = 0;
baseY = _y;
desiredY = _y;
fluxY = 20;
moveY = 0;
maxY = 2;
calcDist = false;
attacking = false;
lunging = false;
eaten = false;
swallowed = false;
lungeTimer = 7;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hurt();
this.swapDepths(_root.depths[0]);
if (!lunging) {
MoveX();
MoveY();
}
if (!attacking) {
MakeNewX();
MakeNewY();
} else {
Attack();
}
}
Instance of Symbol 453 MovieClip "12" in Frame 5
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
function Spit(offSet) {
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = true;
_root.player._x = _x + offSet;
_root.player._y = _y + 50;
_root.player.fallingSpeed = 1;
_root.player.moveSpeed = -3 + random(6);
following.gotoAndStop("normal");
i = 1;
while (i < 30) {
_root.attachMovie("BreastMilk", "nMilk" + i, 7000 + i);
m = _root["nMilk" + i];
m._x = _x + 40;
m._y = _y + 60;
i++;
}
}
function Suck() {
gotoAndStop ("sucking");
p = _root.player;
p.hitGround = false;
dist = Math.abs((_x + 40) - p._x);
if (dist > 40) {
if (p._x > (_x + 40)) {
p.moveSpeed = p.moveSpeed - 1;
} else {
p.moveSpeed = p.moveSpeed + 1;
}
} else {
p.moveSpeed = p.moveSpeed * 0.5;
if (p._x > (_x + 40)) {
p._x = p._x - 3;
} else {
p._x = p._x + 3;
}
}
p.sliding = true;
if (p._y > (_y + 60)) {
p._y = p._y - 3;
}
p.fallingSpeed = 0;
p.hitGround = false;
}
function Hit() {
if (hitBox.hitTest(_root.player.anim.hitBox)) {
if (_root.player._x > _x) {
gotoAndStop ("leftBounce");
} else {
gotoAndStop ("rightBounce");
}
}
}
sucking = false;
oriWidth = _width;
following = _root.head1;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
if (sucking) {
Suck();
}
Hit();
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 346 MovieClip "head1" in Frame 5
onClipEvent (load) {
function MoveX() {
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
if (moveX > maxX) {
moveX--;
}
if (moveX < (-maxX)) {
moveX++;
}
_x = (_x + moveX);
}
function MoveY() {
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
if (moveY > maxY) {
moveY--;
}
if (moveY < (-maxY)) {
moveY++;
}
_y = (_y + moveY);
}
function MakeNewX() {
if ((_x > (desiredX - 5)) && (_x < (desiredX + 5))) {
desiredX = (baseX - fluxX) + random(fluxX * 2);
}
}
function MakeNewY() {
if ((_y > (desiredY - 5)) && (_y < (desiredY + 5))) {
desiredY = (baseY - fluxY) + random(fluxY * 2);
}
}
function Attack() {
if ((!lunging) && (!eaten)) {
gotoAndStop ("prepare");
} else {
if (!calcDist) {
calcDist = true;
time = 12;
lungeTimer = time;
p = _root.player;
xSpeed = (p._x - _x) / time;
ySpeed = ((p._y - 9) - _y) / time;
}
if (lungeTimer > 0) {
if (p._x > _x) {
if (xSpeed < 0) {
xSpeed = 0;
}
p._x = p._x - 1;
}
if (p._x < _x) {
if (xSpeed > 0) {
xSpeed = 0;
}
p._x = p._x + 1;
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
lungeTimer--;
} else {
lunging = false;
attacking = false;
calcDist = false;
gotoAndStop ("normal");
_root.reset();
}
}
}
function Hurt() {
if ((hitBox.hitTest(_root.player.anim.hitBox) && (!lunging)) && (!eaten)) {
gotoAndStop ("hurt");
p = _root.player;
if (p._x > _x) {
moveX = -12;
moveY = -12;
} else {
moveX = 12;
moveY = -12;
}
}
}
function Spit() {
_root.regurging = false;
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x;
_root.player._y = _y + 20;
_root.player.fallingSpeed = 10;
_root.player.moveSpeed = -3 + random(6);
}
p = _root.player;
scale = _xscale;
baseX = _x;
desiredX = _x;
fluxX = 20;
maxX = 3;
moveX = 0;
baseY = _y;
desiredY = _y;
fluxY = 20;
moveY = 0;
maxY = 2;
calcDist = false;
attacking = false;
lunging = false;
eaten = false;
swallowed = false;
lungeTimer = 7;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hurt();
this.swapDepths(_root.depths[1]);
if (!lunging) {
MoveX();
MoveY();
}
if (!attacking) {
MakeNewX();
MakeNewY();
} else {
Attack();
}
}
Instance of Symbol 453 MovieClip "23" in Frame 5
onClipEvent (load) {
function MoveX() {
desiredX = following._x;
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
_x = (_x + moveX);
}
function MoveY() {
desiredY = following._y + segOffset;
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
_y = (_y + moveY);
}
function Restrict() {
while (_x > (following._x + boundX)) {
_x = (_x - 0.5);
}
while (_x < (following._x - boundX)) {
_x = (_x + 0.5);
}
while (_y > (following._y + boundY1)) {
_y = (_y - 0.5);
}
while (_y < (following._y + boundY2)) {
_y = (_y + 0.5);
}
}
function ChangeDepth() {
pD = following.getDepth();
this.swapDepths(pD - 1);
}
function Spit(offSet) {
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = true;
_root.player._x = _x + offSet;
_root.player._y = _y + 50;
_root.player.fallingSpeed = 1;
_root.player.moveSpeed = -3 + random(6);
following.gotoAndStop("normal");
i = 1;
while (i < 30) {
_root.attachMovie("BreastMilk", "nMilk" + i, 7000 + i);
m = _root["nMilk" + i];
m._x = _x + 40;
m._y = _y + 60;
i++;
}
}
function Suck() {
gotoAndStop ("sucking");
p = _root.player;
p.hitGround = false;
dist = Math.abs((_x + 40) - p._x);
if (dist > 40) {
if (p._x > (_x + 40)) {
p.moveSpeed = p.moveSpeed - 1;
} else {
p.moveSpeed = p.moveSpeed + 1;
}
} else {
p.moveSpeed = p.moveSpeed * 0.5;
if (p._x > (_x + 40)) {
p._x = p._x - 3;
} else {
p._x = p._x + 3;
}
}
p.sliding = true;
if (p._y > (_y + 60)) {
p._y = p._y - 3;
}
p.fallingSpeed = 0;
p.hitGround = false;
}
function Hit() {
if (hitBox.hitTest(_root.player.anim.hitBox)) {
if (_root.player._x > _x) {
gotoAndStop ("leftBounce");
} else {
gotoAndStop ("rightBounce");
}
}
}
sucking = false;
oriWidth = _width;
following = _root.head2;
segOffset = following._height - 5;
baseX = _x;
desiredX = following._x;
maxX = 5;
moveX = 0;
baseY = _x;
desiredY = following._y;
moveY = 0;
maxY = 2;
boundX = 3;
boundY1 = 25;
boundY2 = 10;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
if (sucking) {
Suck();
}
Hit();
MoveX();
MoveY();
Restrict();
ChangeDepth();
}
Instance of Symbol 346 MovieClip "head2" in Frame 5
onClipEvent (load) {
function MoveX() {
if (desiredX > _x) {
if (moveX < maxX) {
moveX = moveX + accelX;
}
}
if (desiredX < _x) {
if (moveX > (-maxX)) {
moveX = moveX - accelX;
}
}
if (moveX > maxX) {
moveX--;
}
if (moveX < (-maxX)) {
moveX++;
}
_x = (_x + moveX);
}
function MoveY() {
if (desiredY > _y) {
if (moveY < maxY) {
moveY = moveY + accelY;
}
}
if (desiredY < _y) {
if (moveY > (-maxY)) {
moveY = moveY - accelY;
}
}
if (moveY > maxY) {
moveY--;
}
if (moveY < (-maxY)) {
moveY++;
}
_y = (_y + moveY);
}
function MakeNewX() {
if ((_x > (desiredX - 5)) && (_x < (desiredX + 5))) {
desiredX = (baseX - fluxX) + random(fluxX * 2);
}
}
function MakeNewY() {
if ((_y > (desiredY - 5)) && (_y < (desiredY + 5))) {
desiredY = (baseY - fluxY) + random(fluxY * 2);
}
}
function Attack() {
if ((!lunging) && (!eaten)) {
gotoAndStop ("prepare");
} else {
if (!calcDist) {
calcDist = true;
time = 12;
lungeTimer = time;
p = _root.player;
xSpeed = (p._x - _x) / time;
ySpeed = ((p._y - 9) - _y) / time;
}
if (lungeTimer > 0) {
if (p._x > _x) {
if (xSpeed < 0) {
xSpeed = 0;
}
p._x = p._x - 1;
}
if (p._x < _x) {
if (xSpeed > 0) {
xSpeed = 0;
}
p._x = p._x + 1;
}
_y = (_y + ySpeed);
_x = (_x + xSpeed);
lungeTimer--;
} else {
lunging = false;
attacking = false;
calcDist = false;
gotoAndStop ("normal");
_root.reset();
}
}
}
function Hurt() {
if ((hitBox.hitTest(_root.player.anim.hitBox) && (!lunging)) && (!eaten)) {
gotoAndStop ("hurt");
p = _root.player;
if (p._x > _x) {
moveX = -12;
moveY = -12;
} else {
moveX = 12;
moveY = -12;
}
}
}
function Spit() {
_root.regurging = false;
_root.player._alpha = 100;
_root.player.eaten = false;
_root.player.swallowed = false;
_root.player.sliding = true;
_root.player.hitGround = false;
_root.player._x = _x;
_root.player._y = _y + 20;
_root.player.fallingSpeed = 10;
_root.player.moveSpeed = -3 + random(6);
}
p = _root.player;
scale = _xscale;
baseX = _x;
desiredX = _x;
fluxX = 20;
maxX = 3;
moveX = 0;
baseY = _y;
desiredY = _y;
fluxY = 20;
moveY = 0;
maxY = 2;
calcDist = false;
attacking = false;
lunging = false;
eaten = false;
swallowed = false;
lungeTimer = 7;
accelX = 0.2;
accelY = 0.2;
}
onClipEvent (enterFrame) {
Hurt();
this.swapDepths(_root.depths[2]);
if (!lunging) {
MoveX();
MoveY();
}
if (!attacking) {
MakeNewX();
MakeNewY();
} else {
Attack();
}
}
Instance of Symbol 112 MovieClip "player" in Frame 5
onClipEvent (load) {
function slide() {
if ((((moveSpeed > 1) || (moveSpeed < -1)) || (!_root.ground1.hitTest(_x, _y, true))) || (fallingSpeed != 0)) {
if (!hitground1) {
gotoAndStop ("thrown");
}
if (!_root.ground1.hitTest(_x, _y, true)) {
if (hitground1) {
gotoAndStop ("slidingAir");
}
fallingSpeed = fallingSpeed + grav;
}
if (_root.ground1.hitTest(_x, _y, true)) {
hitground1 = true;
gotoAndStop ("sliding");
if (fallingSpeed > 6) {
fallingSpeed = -(fallingSpeed * 0.4);
moveSpeed = moveSpeed * 0.7;
} else {
fallingSpeed = 0;
if (moveSpeed > 0) {
moveSpeed = moveSpeed - accel;
} else {
moveSpeed = moveSpeed + accel;
}
}
}
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
while (_root.ground1.hitTest(_x, _y - 2, true)) {
_y = (_y - 0.1);
}
} else {
moveSpeed = 0;
hitGround = false;
if (_root.hearts > 0) {
gotoAndStop ("getUp");
} else {
dead = true;
}
}
}
this.swapDepths(6500);
scale = _xscale;
onGround = true;
fallingSpeed = 0;
moveSpeed = 0;
eaten = false;
dead = false;
swallowed = false;
sliding = false;
attacking = false;
sliding = false;
hitground1 = false;
health = 3;
accel = 1;
maxSpeed = 5;
jumpHeight = 10;
grav = 1;
left = 37;
right = 39;
up = 38;
down = 40;
a = 65;
}
onClipEvent (enterFrame) {
if (_y > 500) {
if (_root.hearts > 0) {
_root.hearts--;
}
}
if ((!eaten) && (!swallowed)) {
_alpha = 100;
if (!sliding) {
if (_root.ground1.hitTest(_x, _y, true)) {
onGround = true;
fallingSpeed = 0;
} else {
onGround = false;
fallingSpeed = fallingSpeed + grav;
}
if ((Key.isDown(up) && (onGround)) && (!attacking)) {
fallingSpeed = -jumpHeight;
onGround = false;
}
if ((Key.isDown(left) && (moveSpeed > (-maxSpeed))) && (!attacking)) {
moveSpeed = moveSpeed - accel;
_xscale = (-scale);
}
if ((Key.isDown(right) && (moveSpeed < maxSpeed)) && (!attacking)) {
moveSpeed = moveSpeed + accel;
_xscale = scale;
}
if (((!Key.isDown(left)) && (!Key.isDown(right))) || (attacking)) {
moveSpeed = moveSpeed * 0.8;
}
if (Key.isDown(a)) {
attacking = true;
gotoAndStop ("attack");
}
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
while (_root.ground1.hitTest(_x, _y - 1, true)) {
_y = (_y - 0.2);
}
if (onGround) {
if (!attacking) {
if (Key.isDown(left) || (Key.isDown(right))) {
gotoAndStop ("run");
} else {
gotoAndStop ("stand");
}
}
} else {
attacking = false;
if (fallingSpeed < 5) {
gotoAndStop ("jump");
} else {
gotoAndStop ("fall");
}
}
} else {
slide();
}
} else {
_alpha = 0;
}
}
Frame 6
stop();
chewTolerance = 5;
digestionTolerance = 40;
hearts = 16;
noiseTimer = 7;
onEnterFrame = function () {
if (Key.isDown(66)) {
trans3.play();
}
if (hearts > 0) {
life.gotoAndStop(hearts);
} else {
life.gotoAndStop(1);
life._alpha = 0;
}
if (!player.eaten) {
chewTolerance = 5;
}
if (!player.swallowed) {
digestionTolerance = 40;
} else {
if (noiseTimer > 0) {
noiseTimer--;
} else {
noiseTimer = 8 + random(10);
s = new Sound(this);
s.attachSound("Belly" + random(3));
s.start(0, 0);
}
if (digestionTolerance > 0) {
digestionTolerance--;
} else {
digestionTolerance = 20;
hearts--;
}
}
if (chewTolerance <= 0) {
chewTolerance = 6;
hearts--;
}
};
Instance of Symbol 455 MovieClip "ground2" in Frame 6
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 508 MovieClip "birdo" in Frame 6
onClipEvent (load) {
function attack() {
if (!attacked) {
gotoAndStop ("suck");
attacked = true;
}
}
function Spit() {
p = _root.player;
p.fallingSpeed = 0;
p.eaten = false;
p.swallowed = false;
p._alpha = 100;
p.sliding = true;
p._y = _y - 21;
if (_xscale == scale) {
p._xscale = p.scale;
p._x = _x + 25;
p.moveSpeed = 8;
} else {
p._x = _x - 25;
p._xscale = -p.scale;
p.moveSpeed = -8;
}
}
function Hurt() {
p = _root.player;
if (p.anim.hitBox.hitTest(_x, _y - 20, true)) {
attacking = false;
attacked = false;
gotoAndStop ("walk");
gotoAndStop ("hurt");
if (p._x > _x) {
knockSpeed = -10;
} else {
knockSpeed = 10;
}
}
_x = (_x + knockSpeed);
if (knockSpeed > 0) {
knockSpeed--;
}
if (knockSpeed < 0) {
knockSpeed++;
}
}
attackSpeed = 0;
normSpeed = 1;
knockSpeed = 0;
scale = _xscale;
dir = 0;
dirTimer = 60;
fallingSpeed = 0;
onGround = true;
attackTimer = 30;
attacking = false;
attacked = false;
}
onClipEvent (enterFrame) {
if (_root.ground2.hitTest(_x, _y, true)) {
fallingSpeed = 0;
onGround = true;
} else {
fallingSpeed++;
gotoAndStop ("hurt");
}
_y = (_y + fallingSpeed);
while (_root.ground2.hitTest(_x, _y - 1, true)) {
_y = (_y - 0.5);
}
Hurt();
if (dirTimer > 0) {
dirTimer--;
} else {
dirTimer = 30 + random(40);
dir = random(2);
}
if ((!_root.ground2.hitTest(_x + 50, _y + 5, true)) && (dir == 1)) {
dir = 0;
dirTimer = 30 + random(40);
}
if ((!_root.ground2.hitTest(_x - 50, _y + 5, true)) && (dir == 0)) {
dir = 1;
dirTimer = 30 + random(40);
}
if ((attackTimer > 0) && (!attacking)) {
attackTimer--;
} else {
attacking = true;
attackTimer = 30;
}
if (attacking) {
attack();
if (dir == 0) {
_x = (_x - attackSpeed);
} else {
_x = (_x + attackSpeed);
}
} else {
if (dir == 0) {
_x = (_x - normSpeed);
} else {
_x = (_x + normSpeed);
}
if (_root.player._x > _x) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
}
Instance of Symbol 112 MovieClip "player" in Frame 6
onClipEvent (load) {
function slide() {
if ((((moveSpeed > 1) || (moveSpeed < -1)) || (!_root.ground2.hitTest(_x, _y, true))) || (fallingSpeed != 0)) {
if (!hitGround) {
gotoAndStop ("thrown");
}
if (!_root.ground2.hitTest(_x, _y, true)) {
if (hitGround) {
gotoAndStop ("slidingAir");
}
fallingSpeed = fallingSpeed + grav;
}
if (_root.ground2.hitTest(_x, _y, true)) {
hitGround = true;
gotoAndStop ("sliding");
if (fallingSpeed > 4) {
fallingSpeed = -(fallingSpeed * 0.6);
moveSpeed = moveSpeed * 0.7;
} else {
fallingSpeed = 0;
if (moveSpeed > 0) {
moveSpeed = moveSpeed - accel;
} else {
moveSpeed = moveSpeed + accel;
}
}
}
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
while (_root.ground2.hitTest(_x, _y - 2, true)) {
_y = (_y - 0.1);
}
} else {
moveSpeed = 0;
if (_root.hearts > 0) {
gotoAndStop ("getUp");
}
}
}
scale = _xscale;
onGround = true;
fallingSpeed = 0;
moveSpeed = 0;
eaten = false;
swallowed = false;
sliding = false;
attacking = false;
sliding = false;
hitGround = false;
health = 3;
accel = 1;
maxSpeed = 5;
jumpHeight = 10;
grav = 1;
left = 37;
right = 39;
up = 38;
down = 40;
a = 65;
}
onClipEvent (enterFrame) {
if (_y > 500) {
if (_root.hearts > 0) {
_root.hearts--;
}
}
if (!eaten) {
if (!sliding) {
_alpha = 100;
if (_root.ground2.hitTest(_x, _y, true)) {
onGround = true;
fallingSpeed = 0;
} else {
onGround = false;
fallingSpeed = fallingSpeed + grav;
}
if ((Key.isDown(up) && (onGround)) && (!attacking)) {
fallingSpeed = -jumpHeight;
onGround = false;
}
if ((Key.isDown(left) && (moveSpeed > (-maxSpeed))) && (!attacking)) {
moveSpeed = moveSpeed - accel;
_xscale = (-scale);
}
if ((Key.isDown(right) && (moveSpeed < maxSpeed)) && (!attacking)) {
moveSpeed = moveSpeed + accel;
_xscale = scale;
}
if (((!Key.isDown(left)) && (!Key.isDown(right))) || (attacking)) {
moveSpeed = moveSpeed * 0.8;
}
if (Key.isDown(a)) {
attacking = true;
gotoAndStop ("attack");
}
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
while (_root.ground2.hitTest(_x, _y - 1, true)) {
_y = (_y - 0.2);
}
if (onGround) {
if (!attacking) {
if (Key.isDown(left) || (Key.isDown(right))) {
gotoAndStop ("run");
} else {
gotoAndStop ("stand");
}
}
} else {
attacking = false;
if (fallingSpeed < 5) {
gotoAndStop ("jump");
} else {
gotoAndStop ("fall");
}
}
} else {
slide();
}
} else {
_alpha = 0;
}
}
Symbol 18 MovieClip [BreastMilk] Frame 1
moveSpeed = -5 + random(10);
fallingSpeed = 7 + random(10);
termY = _y + 500;
onEnterFrame = function () {
_x = (_x + moveSpeed);
_y = (_y + fallingSpeed);
fallingSpeed++;
if (_y > termY) {
removeMovieClip(this);
}
};
Symbol 26 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.cam.goto == this) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 30 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.cam.goto == this) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 34 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.cam.goto == this) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 43 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.adultUnlocked) {
if (_root.cam.goto == this) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (1);
}
};
Symbol 49 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
frame._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha-1);
}
Symbol 71 MovieClip Frame 1
stop();
Instance of Symbol 48 MovieClip "hitBox" in Symbol 91 MovieClip Frame 4
onClipEvent (load) {
_alpha = 0;
}
Symbol 91 MovieClip Frame 11
_parent.attacking = false;
_parent.gotoAndStop("stand");
Symbol 94 MovieClip Frame 4
_parent.gotoAndStop("stand");
Symbol 111 MovieClip Frame 16
_parent.sliding = false;
_parent.gotoAndStop("stand");
Symbol 112 MovieClip Frame 1
stop();
Instance of Symbol 107 MovieClip in Symbol 112 MovieClip Frame 10
onClipEvent (load) {
if (_parent.fallingSpeed > 2) {
_rotation = 90;
}
}
onClipEvent (enterFrame) {
if (_parent.fallingSpeed > 1) {
_rotation = (_rotation + 4);
} else {
_rotation = (_rotation - 5);
}
}
Symbol 115 MovieClip Frame 1
digestionTimer = 0;
gotoAndPlay (2);
Symbol 115 MovieClip Frame 2
if (_root.player.swallowed) {
if ((random(2) == 0) && (_root.hearts > 0)) {
s = new Sound(this);
s.attachSound("Belly" + random(3));
s.start(0, 0);
}
if (((random(6) == 0) && (digestionTimer > 8)) && (_root.hearts > 0)) {
_parent.gotoAndStop("regurgitate");
}
if ((digestionTimer > 12) && (_root.hearts > 0)) {
_parent.gotoAndStop("regurgitate");
}
digestionTimer++;
}
Symbol 115 MovieClip Frame 12
gotoAndPlay (2);
Symbol 117 MovieClip Frame 1
_parent.attacking = true;
_parent.attacked = true;
Symbol 117 MovieClip Frame 5
_parent.attacking = false;
_parent.attacked = false;
_parent.attackTimer = 2;
_parent.gotoAndStop("walk");
Symbol 123 MovieClip Frame 1
_alpha = 1;
onEnterFrame = function () {
if (this.hitTest(_root.player._x, _root.player._y - 15, true)) {
_root.player.eaten = true;
_parent._parent.gotoAndStop("chew");
}
};
Symbol 128 MovieClip Frame 1
suckTimer = 15 + random(20);
Symbol 128 MovieClip Frame 7
onEnterFrame = function () {
p = _root.player;
w = _root.wart;
if (p._x > w._x) {
if (w._xscale == w.scale) {
p._x = p._x - 4;
}
} else if (w._xscale == (-w.scale)) {
p._x = p._x + 4;
}
};
Symbol 128 MovieClip Frame 10
if (suckTimer > 0) {
suckTimer--;
gotoAndPlay ("loop");
} else {
_parent.attacking = false;
_parent.attacked = false;
_parent.gotoAndStop("walk");
}
Symbol 136 MovieClip Frame 1
_alpha = 1;
onEnterFrame = function () {
if (this.hitTest(_root.player._x, _root.player._y - 15, true)) {
_root.player.eaten = true;
_parent._parent.gotoAndStop("grabbed");
}
};
Symbol 146 MovieClip Frame 24
_parent.attacking = false;
_parent.attacked = false;
_parent.gotoAndStop("walk");
Symbol 154 MovieClip Frame 9
_root.player.eaten = true;
_parent.gotoAndStop("chew");
Symbol 165 MovieClip Frame 1
chewTimer = 0;
Symbol 165 MovieClip Frame 11
s = new Sound(this);
s.attachSound(["Squish" + random(4)]);
s.start(0, 0);
Symbol 165 MovieClip Frame 20
if (chewTimer > 4) {
chance = random(15);
if (chance == 9) {
_parent.gotoAndStop("swallow");
} else if ((chance == 8) || (chance == 7)) {
_parent.gotoAndStop("swallowTease");
} else if (chance == 6) {
if (_root.hearts > 0) {
_parent.gotoAndStop("tongueWrap");
} else {
gotoAndPlay ("loop");
}
} else {
gotoAndPlay ("loop");
}
} else {
gotoAndPlay ("loop");
}
if (chewTimer > 8) {
chance = random(3);
if ((chance == 0) || (chance == 1)) {
_parent.gotoAndStop("swallowTease");
}
if (chance == 2) {
_parent.gotoAndStop("swallow");
}
}
chewTimer++;
_root.chewTolerance--;
Symbol 170 MovieClip Frame 14
s = new Sound(this);
s.attachSound("Gulp0");
s.start(0, 0);
Symbol 170 MovieClip Frame 20
_root.player.swallowed = true;
_parent.gotoAndStop("walk");
Symbol 171 MovieClip Frame 5
s = new Sound(this);
s.attachSound(["Squish" + random(4)]);
s.start(0, 0);
Symbol 171 MovieClip Frame 18
s = new Sound(this);
s.attachSound("Gulp0");
s.start(0, 0);
Symbol 171 MovieClip Frame 33
_parent.gotoAndStop("swallow");
Symbol 186 MovieClip Frame 17
_root.player.eaten = true;
_parent.gotoAndStop("chew");
Symbol 191 MovieClip Frame 1
_root.player.swallowed = false;
Symbol 191 MovieClip Frame 3
s = new Sound(this);
s.attachSound("Gulp0");
s.start(0, 0);
Symbol 191 MovieClip Frame 17
_parent.Spit();
Symbol 191 MovieClip Frame 24
_parent.attacking = false;
_parent.attacked = false;
_parent.gotoAndStop("walk");
Symbol 192 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 1
stop();
this.swapDepths(8000);
Symbol 197 MovieClip Frame 29
for (i in _root) {
removeMovieClip(_root[i]);
}
_root.gotoAndStop(2);
Symbol 207 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 56
_parent.Spit(-10);
_parent.gotoAndStop("normal");
Symbol 222 MovieClip Frame 45
_parent.Spit(20);
_parent.gotoAndStop("normal");
Symbol 230 MovieClip Frame 12
_parent.gotoAndStop("normal");
Symbol 236 MovieClip Frame 14
_parent.gotoAndStop("normal");
Symbol 237 MovieClip Frame 1
stop();
Instance of Symbol 48 MovieClip "hitBox" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 209 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 259 MovieClip Frame 3
if (!_parent.attacking) {
s = new Sound(this);
s.attachSound("Sigh1");
s.start(0, 0);
}
Symbol 259 MovieClip Frame 33
if (_parent.attacking) {
_parent.lunging = true;
_parent.gotoAndStop("openMouth");
} else {
if (_parent == _root.head0) {
_root[1].sucking = true;
} else if (_parent == _root.head1) {
_root[12].sucking = true;
} else if (_parent == _root.head2) {
_root[23].sucking = true;
}
_parent.gotoAndStop("pleasure");
}
Symbol 266 MovieClip Frame 1
_alpha = 0;
onEnterFrame = function () {
if ((this.hitTest(_root.player._x, _root.player._y - 15, true) && (!_root.player.eaten)) && (!_root.player.swallowed)) {
_parent._parent.lunging = false;
_parent._parent.attacking = false;
_parent._parent.eaten = true;
_root.player.eaten = true;
_parent._parent.gotoAndStop("grabbed");
}
};
Symbol 267 MovieClip Frame 6
stop();
Symbol 278 MovieClip Frame 2
s = new Sound(this);
s.attachSound("Squish1");
s.start(0, 0);
Symbol 278 MovieClip Frame 24
s = new Sound(this);
s.attachSound("Bite0");
s.start(0, 0);
Symbol 278 MovieClip Frame 32
_parent.gotoAndStop("chew");
Symbol 285 MovieClip Frame 5
s = new Sound(this);
s.attachSound(["Squish" + random(4)]);
s.start(0, 0);
_root.chewTolerance--;
Symbol 285 MovieClip Frame 13
chance = random(11);
if (chance == 0) {
_parent.chewTimer = 0;
_parent.gotoAndStop("swallow");
} else if (((chance == 1) || (chance == 2)) || (chance == 3)) {
_parent.gotoAndStop("openChew");
}
if (_parent.chewTimer > 12) {
_parent.chewTimer = 0;
_parent.gotoAndStop("swallow");
}
_parent.chewTimer++;
Symbol 292 MovieClip Frame 4
s = new Sound(this);
s.attachSound("Gulp0");
s.start(0, 0);
p = _parent;
_root.swallowing = true;
if (p._name == "head0") {
_root.swallowStart = 2;
_root.swallowEnd = 6;
} else if (p._name == "head1") {
_root.swallowStart = 13;
_root.swallowEnd = 17;
} else if (p._name == "head2") {
_root.swallowStart = 24;
_root.swallowEnd = 28;
}
Symbol 292 MovieClip Frame 15
_root.player.eaten = true;
_root.player.swallowed = true;
_root.swallowedBy = _parent;
_parent.gotoAndStop("boobPleasure");
Symbol 324 MovieClip Frame 8
s = new Sound(this);
s.attachSound("squish" + random(4));
s.start(0, 0);
Symbol 324 MovieClip Frame 20
s = new Sound(this);
s.attachSound("squish" + random(4));
s.start(0, 0);
Symbol 324 MovieClip Frame 23
_parent.gotoAndStop("chew");
Symbol 333 MovieClip Frame 4
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 333 MovieClip Frame 8
s = new Sound(this);
s.attachSound("Spit0");
s.start(0, 0);
Symbol 333 MovieClip Frame 10
_parent.Spit();
Symbol 333 MovieClip Frame 23
_root.attacking = false;
_root.attacker.attacking = false;
_root.attacker.eaten = false;
_root.attacker.calcDist = false;
_root.attacker.lunging = false;
_root.reset();
_root.attackTimer = 70 + random(60);
_parent.gotoAndStop("normal");
Symbol 340 MovieClip Frame 11
_parent.gotoAndStop("normal");
Symbol 345 MovieClip Frame 1
s = new Sound(this);
s.attachSound("Sigh2");
s.start(0, 0);
Symbol 345 MovieClip Frame 20
_parent.gotoAndStop("pleasure");
Symbol 346 MovieClip Frame 1
stop();
Instance of Symbol 48 MovieClip "hitBox" in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Symbol 351 MovieClip Frame 1
stop();
Instance of Symbol 48 MovieClip in Symbol 351 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if ((((_root.player.hitTest(this) && (!_root.player.eaten)) && (!_root.player.swallowed)) && ((_root.attacker == _parent) || ((!_root.player.sliding) && (!_root.attacking)))) && (_root.player.fallingSpeed < 1)) {
p = _parent._parent;
if (p == _root[1]) {
_root.changeDepths(1100, 2200, 3300);
} else if (p == _root[12]) {
_root.changeDepths(2100, 3200, 1300);
} else if (attacker == _root[23]) {
_root.changeDepths(3100, 2200, 1300);
}
_root.attacker.attacking = false;
_root[1].sucking = false;
_root[12].sucking = false;
_root[23].sucking = false;
_root.attacker.gotoAndStop("normal");
_root.reset();
_root.player.eaten = true;
_parent._parent.sucking = false;
_parent._parent.following.gotoAndStop("boobPleasure");
_parent._parent.gotoAndStop("swallow");
}
}
Instance of Symbol 48 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player.eaten = true;
_parent._parent.sucking = false;
_parent._parent.following.gotoAndStop("boobPleasure");
_parent._parent.gotoAndStop("swallow");
}
}
Symbol 386 MovieClip Frame 1
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 386 MovieClip Frame 14
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 386 MovieClip Frame 26
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 386 MovieClip Frame 40
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 386 MovieClip Frame 49
_parent.gotoAndStop("digest");
Symbol 402 MovieClip Frame 1
timer = 0;
gotoAndPlay (2);
Symbol 402 MovieClip Frame 2
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 402 MovieClip Frame 21
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 402 MovieClip Frame 33
chance = random(7);
if (chance == 0) {
_parent.gotoAndStop("spit");
} else if (chance == 1) {
_parent.gotoAndStop("tease");
} else {
gotoAndPlay (2);
}
if (timer >= 4) {
_parent.gotoAndStop("spit");
}
timer++;
Symbol 424 MovieClip Frame 13
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 424 MovieClip Frame 14
_parent.Spit(40);
Symbol 424 MovieClip Frame 22
_root.reset();
_parent.gotoAndStop("normal");
Symbol 452 MovieClip Frame 11
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 452 MovieClip Frame 25
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 452 MovieClip Frame 35
_parent.gotoAndStop("digest");
Symbol 453 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
_alpha = 1;
onEnterFrame = function () {
if (this.hitTest(_root.player._x, _root.player._y - 15, true)) {
_root.player.eaten = true;
_parent._parent.gotoAndStop("grabbed");
}
};
Symbol 470 MovieClip Frame 1
suckTimer = 6 + random(4);
Symbol 470 MovieClip Frame 8
onEnterFrame = function () {
p = _root.player;
w = _root.birdo;
if (p._x > w._x) {
if (w._xscale == w.scale) {
p._x = p._x - 4;
}
} else if (w._xscale == (-w.scale)) {
p._x = p._x + 4;
}
};
Symbol 470 MovieClip Frame 12
if (suckTimer > 0) {
suckTimer--;
gotoAndPlay ("loop");
} else {
_parent.attacking = false;
_parent.attacked = false;
_parent.gotoAndStop("walk");
}
Symbol 479 MovieClip Frame 2
s = new Sound(this);
s.attachSound("squish" + random(4));
s.start(0, 0);
Symbol 479 MovieClip Frame 14
s = new Sound(this);
s.attachSound("squish" + random(4));
s.start(0, 0);
Symbol 479 MovieClip Frame 26
s = new Sound(this);
s.attachSound("squish" + random(4));
s.start(0, 0);
Symbol 479 MovieClip Frame 29
_parent.gotoAndStop("chew");
Symbol 486 MovieClip Frame 13
s = new Sound(this);
s.attachSound("squish" + random(4));
s.start(0, 0);
Symbol 486 MovieClip Frame 16
if (random(5) == 0) {
_parent.gotoAndStop("swallow");
} else {
_root.chewTolerance--;
gotoAndPlay (1);
}
Symbol 491 MovieClip Frame 4
s = new Sound(this);
s.attachSound("Gulp0");
s.start(0, 0);
Symbol 491 MovieClip Frame 10
_root.player.swallowed = true;
_parent.gotoAndStop("digest");
Symbol 498 MovieClip Frame 9
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 498 MovieClip Frame 24
if (random(4) == 0) {
_parent.gotoAndStop("regurgitate");
} else {
gotoAndPlay ("loop");
}
Symbol 500 MovieClip Frame 6
_parent.gotoAndStop("walk");
Symbol 507 MovieClip Frame 1
_root.player.swallowed = false;
Symbol 507 MovieClip Frame 6
s = new Sound(this);
s.attachSound("Squish" + random(4));
s.start(0, 0);
Symbol 507 MovieClip Frame 19
_parent.attacked = false;
_parent.attacking = false;
_parent.Spit();
Symbol 507 MovieClip Frame 24
_parent.gotoAndStop("walk");
Symbol 508 MovieClip Frame 1
stop();