Frame 1
function goTo() {
getURL ("http://www.newgrounds.com");
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.builtInItems.quality = true;
newMenu.customItems.push(new ContextMenuItem("Newgrounds.com - Play More Games", goTo));
this.menu = newMenu;
Instance of Symbol 156 MovieClip in Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 141 MovieClip [Flash Ad (NewgroundsAPI)] in Frame 1
//component parameters
onClipEvent (construct) {
show_background = true;
}
Instance of Symbol 128 MovieClip [Preloader Bar (NewgroundsAPI)] in Frame 1
//component parameters
onClipEvent (construct) {
AUTO_PLAY = false;
}
Instance of Symbol 73 MovieClip [API Connector (NewgroundsAPI)] in Frame 1
//component parameters
onClipEvent (construct) {
encryption_key = "EZH0LdWH0gJ4mbkyqOOUa87HqoxkCdWb";
movie_id = "11309";
movie_version = "";
fake_session = true;
debug = true;
error_screens = true;
medal_popups = true;
}
Instance of Symbol 175 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
Frame 2
stop();
Frame 3
stop();
var savefile = SharedObject.getLocal("ablobstale2");
_root.level = savefile.data.level;
Instance of Symbol 203 MovieClip in Frame 3
onClipEvent (enterFrame) {
var savefile = SharedObject.getLocal("ablobstale2");
_root.level = savefile.data.level;
}
onClipEvent (enterFrame) {
if (_root.level == undefined) {
_root.conbutton._alpha = 50;
}
if (_root.level == 0) {
_root.conbutton._alpha = 50;
}
}
Instance of Symbol 73 MovieClip [API Connector (NewgroundsAPI)] in Frame 3
//component parameters
onClipEvent (construct) {
encryption_key = "EZH0LdWH0gJ4mbkyqOOUa87HqoxkCdWb";
movie_id = "11309";
movie_version = "";
fake_session = true;
debug = true;
error_screens = true;
medal_popups = true;
}
Frame 4
stop();
_root.level = 0;
savefile.data.level = _root.level;
savefile.flush();
Instance of Symbol 256 MovieClip in Frame 4
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y - 80;
}
Frame 5
stopAllSounds();
_root.nextFrame();
Frame 6
_root.boomerang._y = _root.char._y;
_root.fadeout.gotoAndPlay(1);
_root.death = false;
_root.deathcount = 0;
stop();
Instance of Symbol 262 MovieClip "ground" in Frame 6
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 356 MovieClip "char" in Frame 6
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.binhere == true) {
this._x = 769.6;
this._y = 301.55;
_root.vcam._x = 589.6;
_root.vcam._y = 224.55;
_root.binhere = false;
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 6
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 401 MovieClip "stoprrr" in Frame 6
onClipEvent (load) {
timer = 0;
i = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if (i > 30) {
i = 0;
}
if (Key.isDown(39) && (timer > 10)) {
i++;
_root.footstepuff.duplicateMovieClip("dee" + i, i, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
if (Key.isDown(37) && (timer > 10)) {
i++;
_root.footstepuff.duplicateMovieClip("dee" + i, i, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
}
Instance of Symbol 413 MovieClip "star" in Frame 6
onClipEvent (enterFrame) {
x = (_root.char._x - _x) / 15;
y = (_root.char._y - _y) / 10;
_x = (_x + x);
_x = (_x + x);
_y = (_y + y);
_y = (_y + y);
}
Instance of Symbol 421 MovieClip "footpuffnew" in Frame 6
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(68))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = -100;
this._x = _root.char._x;
this._y = _root.char._y;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(65))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = 100;
this._x = _root.char._x;
this._y = _root.char._y;
}
}
Instance of Symbol 425 MovieClip in Frame 6
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y - 80;
}
Instance of Symbol 431 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.star)) {
_root.star._y = _root.star._y + 7;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 434 MovieClip "vcam" in Frame 6
onClipEvent (enterFrame) {
if (_root.char._x <= 590) {
this._x = _root.char._x;
}
}
onClipEvent (enterFrame) {
this._y = _root.char._y - 80;
}
Frame 7
_root.fadeout.gotoAndPlay(1);
_root.level = 2;
savefile.data.level = _root.level;
savefile.flush();
stop();
_root.binhere = true;
stopAllSounds();
Instance of Symbol 413 MovieClip "star" in Frame 7
onClipEvent (enterFrame) {
x = (_root.char._x - _x) / 15;
y = (_root.char._y - _y) / 10;
_x = (_x + x);
_x = (_x + x);
_y = (_y + y);
_y = (_y + y);
}
Instance of Symbol 356 MovieClip "char" in Frame 7
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.binhere2 == true) {
this._x = 589.4;
this._y = 349.8;
_root.vcam._x = 589.4;
_root.vcam._y = 258.8;
_root.binhere2 = false;
}
}
Instance of Symbol 431 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.star)) {
_root.star._y = _root.star._y + 4.5;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 431 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.star)) {
_root.star._y = _root.star._y + 3;
}
}
onClipEvent (load) {
this._visible = false;
}
Frame 8
_root.fadeout.gotoAndPlay(1);
_root.level = 3;
savefile.data.level = _root.level;
savefile.flush();
stop();
_root.binhere2 = true;
Instance of Symbol 356 MovieClip "char" in Frame 8
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 8
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 413 MovieClip "star" in Frame 8
onClipEvent (enterFrame) {
x = (_root.char._x - _x) / 15;
y = (_root.char._y - _y) / 10;
_x = (_x + x);
_x = (_x + x);
_y = (_y + y);
_y = (_y + y);
}
Instance of Symbol 421 MovieClip "footpuffnew" in Frame 8
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if ((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe == 1)) && (Key.isDown(39))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = -100;
this._x = _root.char._x;
this._y = _root.char._y;
}
if ((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe == 1)) && (Key.isDown(37))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = 100;
this._x = _root.char._x;
this._y = _root.char._y;
}
}
Instance of Symbol 425 MovieClip in Frame 8
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y - 80;
}
Instance of Symbol 431 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.star)) {
_root.star._y = _root.star._y + 3;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 434 MovieClip "vcam" in Frame 8
onClipEvent (enterFrame) {
if (_root.char._x <= 590) {
this._x = _root.char._x;
}
}
onClipEvent (enterFrame) {
if (_root.char._y <= 270) {
this._y = _root.char._y - 80;
}
}
Frame 9
_root.fadeout.gotoAndPlay(1);
_root.level = 4;
savefile.data.level = _root.level;
savefile.flush();
stop();
Frame 10
_root.boomerang._y = _root.char._y;
_root.fadeout.gotoAndPlay(1);
_root.level = 5;
savefile.data.level = _root.level;
savefile.flush();
stop();
Instance of Symbol 513 MovieClip in Frame 10
onClipEvent (load) {
yspeed = 0;
movetimer = 0;
speed = 2;
moving = false;
standing = true;
standingtimer = Math.random() * 100;
directiondice = 0;
left = true;
right = false;
}
onClipEvent (enterFrame) {
if (_root.wall.hitTest(this._x, this._y, true) && (left)) {
directiondice = 1;
moving = false;
}
if (_root.wall.hitTest(this._x, this._y, true) && (right)) {
directiondice = 2;
moving = false;
}
if (standing) {
standingtimer--;
}
if ((standing && (standingtimer < 0)) && (this.stand._currentframe < 3)) {
standing = false;
directiondice = 1 + (Math.random() * 1);
directiondice = Math.round(directiondice);
this.gotoAndStop(2);
}
if (((!standing) && (directiondice < 2)) && (!moving)) {
this._xscale = -100;
moving = true;
left = false;
right = true;
speed = 1;
movetimer = Math.random() * 300;
}
if (((!standing) && (directiondice > 1)) && (!moving)) {
this._xscale = 100;
moving = true;
left = true;
right = false;
speed = -1;
movetimer = Math.random() * 300;
}
if (moving && (movetimer > 1)) {
this._x = this._x + speed;
movetimer--;
}
if ((moving && (movetimer < 2)) && (this.move._currentframe < 3)) {
moving = false;
standingtimer = Math.random() * 100;
standing = true;
directiondice = 0;
this.gotoAndStop(1);
}
}
Instance of Symbol 513 MovieClip in Frame 10
onClipEvent (load) {
yspeed = 0;
movetimer = 0;
speed = 2;
moving = false;
standing = true;
standingtimer = Math.random() * 100;
directiondice = 0;
left = true;
right = false;
}
onClipEvent (enterFrame) {
if (_root.wall.hitTest(this._x, this._y, true) && (left)) {
directiondice = 1;
moving = false;
}
if (_root.wall.hitTest(this._x, this._y, true) && (right)) {
directiondice = 2;
moving = false;
}
if (standing) {
standingtimer--;
}
if ((standing && (standingtimer < 0)) && (this.stand._currentframe < 3)) {
standing = false;
directiondice = 1 + (Math.random() * 1);
directiondice = Math.round(directiondice);
this.gotoAndStop(2);
}
if (((!standing) && (directiondice < 2)) && (!moving)) {
this._xscale = -100;
moving = true;
left = false;
right = true;
speed = 1;
movetimer = Math.random() * 300;
}
if (((!standing) && (directiondice > 1)) && (!moving)) {
this._xscale = 100;
moving = true;
left = true;
right = false;
speed = -1;
movetimer = Math.random() * 300;
}
if (moving && (movetimer > 1)) {
this._x = this._x + speed;
movetimer--;
}
if ((moving && (movetimer < 2)) && (this.move._currentframe < 3)) {
moving = false;
standingtimer = Math.random() * 100;
standing = true;
directiondice = 0;
this.gotoAndStop(1);
}
}
Instance of Symbol 513 MovieClip in Frame 10
onClipEvent (load) {
yspeed = 0;
movetimer = 0;
speed = 2;
moving = false;
standing = true;
standingtimer = Math.random() * 100;
directiondice = 0;
left = true;
right = false;
}
onClipEvent (enterFrame) {
if (_root.wall.hitTest(this._x, this._y, true) && (left)) {
directiondice = 1;
moving = false;
}
if (_root.wall.hitTest(this._x, this._y, true) && (right)) {
directiondice = 2;
moving = false;
}
if (standing) {
standingtimer--;
}
if ((standing && (standingtimer < 0)) && (this.stand._currentframe < 3)) {
standing = false;
directiondice = 1 + (Math.random() * 1);
directiondice = Math.round(directiondice);
this.gotoAndStop(2);
}
if (((!standing) && (directiondice < 2)) && (!moving)) {
this._xscale = -100;
moving = true;
left = false;
right = true;
speed = 1;
movetimer = Math.random() * 300;
}
if (((!standing) && (directiondice > 1)) && (!moving)) {
this._xscale = 100;
moving = true;
left = true;
right = false;
speed = -1;
movetimer = Math.random() * 300;
}
if (moving && (movetimer > 1)) {
this._x = this._x + speed;
movetimer--;
}
if ((moving && (movetimer < 2)) && (this.move._currentframe < 3)) {
moving = false;
standingtimer = Math.random() * 100;
standing = true;
directiondice = 0;
this.gotoAndStop(1);
}
}
Instance of Symbol 513 MovieClip in Frame 10
onClipEvent (load) {
yspeed = 0;
movetimer = 0;
speed = 2;
moving = false;
standing = true;
standingtimer = Math.random() * 100;
directiondice = 0;
left = true;
right = false;
}
onClipEvent (enterFrame) {
if (_root.wall.hitTest(this._x, this._y, true) && (left)) {
directiondice = 1;
moving = false;
}
if (_root.wall.hitTest(this._x, this._y, true) && (right)) {
directiondice = 2;
moving = false;
}
if (standing) {
standingtimer--;
}
if ((standing && (standingtimer < 0)) && (this.stand._currentframe < 3)) {
standing = false;
directiondice = 1 + (Math.random() * 1);
directiondice = Math.round(directiondice);
this.gotoAndStop(2);
}
if (((!standing) && (directiondice < 2)) && (!moving)) {
this._xscale = -100;
moving = true;
left = false;
right = true;
speed = 1;
movetimer = Math.random() * 300;
}
if (((!standing) && (directiondice > 1)) && (!moving)) {
this._xscale = 100;
moving = true;
left = true;
right = false;
speed = -1;
movetimer = Math.random() * 300;
}
if (moving && (movetimer > 1)) {
this._x = this._x + speed;
movetimer--;
}
if ((moving && (movetimer < 2)) && (this.move._currentframe < 3)) {
moving = false;
standingtimer = Math.random() * 100;
standing = true;
directiondice = 0;
this.gotoAndStop(1);
}
}
Instance of Symbol 513 MovieClip in Frame 10
onClipEvent (load) {
yspeed = 0;
movetimer = 0;
speed = 2;
moving = false;
standing = true;
standingtimer = Math.random() * 100;
directiondice = 0;
left = true;
right = false;
}
onClipEvent (enterFrame) {
if (_root.wall.hitTest(this._x, this._y, true) && (left)) {
directiondice = 1;
moving = false;
}
if (_root.wall.hitTest(this._x, this._y, true) && (right)) {
directiondice = 2;
moving = false;
}
if (standing) {
standingtimer--;
}
if ((standing && (standingtimer < 0)) && (this.stand._currentframe < 3)) {
standing = false;
directiondice = 1 + (Math.random() * 1);
directiondice = Math.round(directiondice);
this.gotoAndStop(2);
}
if (((!standing) && (directiondice < 2)) && (!moving)) {
this._xscale = -100;
moving = true;
left = false;
right = true;
speed = 1;
movetimer = Math.random() * 300;
}
if (((!standing) && (directiondice > 1)) && (!moving)) {
this._xscale = 100;
moving = true;
left = true;
right = false;
speed = -1;
movetimer = Math.random() * 300;
}
if (moving && (movetimer > 1)) {
this._x = this._x + speed;
movetimer--;
}
if ((moving && (movetimer < 2)) && (this.move._currentframe < 3)) {
moving = false;
standingtimer = Math.random() * 100;
standing = true;
directiondice = 0;
this.gotoAndStop(1);
}
}
Instance of Symbol 567 MovieClip in Frame 10
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Instance of Symbol 356 MovieClip "char" in Frame 10
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 10
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 421 MovieClip "footpuffnew" in Frame 10
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(68))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = -100;
this._x = _root.char._x;
this._y = _root.char._y;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(65))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = 100;
this._x = _root.char._x;
this._y = _root.char._y;
}
}
Instance of Symbol 571 MovieClip "stoprrr" in Frame 10
onClipEvent (load) {
timer = 0;
i = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if (i > 30) {
i = 0;
}
if (Key.isDown(68) && (timer > 10)) {
i++;
_root.footstepuff.duplicateMovieClip("dee" + i, i, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
if (Key.isDown(65) && (timer > 10)) {
i++;
_root.footstepuff.duplicateMovieClip("dee" + i, i, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
}
Instance of Symbol 574 MovieClip in Frame 10
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
Instance of Symbol 429 MovieClip "nextRoom" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
stopAllSounds();
}
}
Instance of Symbol 579 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.death == true) {
this.gotoAndStop(2);
}
}
Frame 11
_root.fadeout.gotoAndPlay(1);
_root.level = 6;
savefile.data.level = _root.level;
savefile.flush();
stop();
_root.char._y = 204.7;
_root.char._x = 5;
_root.fire = false;
_root.cantmove = false;
Instance of Symbol 434 MovieClip "vcam" in Frame 11
onClipEvent (enterFrame) {
if (_root.char._x >= 347.6) {
this._x = _root.char._x;
}
}
Frame 12
_root.nextFrame();
_root.level = 7;
savefile.data.level = _root.level;
savefile.flush();
Frame 13
_root.fadeout.gotoAndPlay(1);
Instance of Symbol 589 MovieClip "ground" in Frame 13
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 600 MovieClip in Frame 13
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Instance of Symbol 626 MovieClip in Frame 13
onClipEvent (load) {
hit1 = false;
hit2 = false;
xreset = _root.char._x;
yreset = _root.char._y;
}
onClipEvent (enterFrame) {
if ((_root.char._x > (this._x + 170)) && (!hit1)) {
this.rocker.gotoAndPlay(2);
hit1 = true;
}
if ((this.rocker._currentframe > 29) && (!hit2)) {
this.gotoAndPlay(2);
hit2 = true;
}
if (this.hitTest(_root.char._x, _root.char._y - 20, true) && (this._currentframe > 1451)) {
_root.char._x = _root.char._x + 5;
}
if ((this.hitTest(_root.char._x, _root.char._y - 20, true) && (this._currentframe > 2)) && (this._currentframe < 1452)) {
_root.char._x = xreset;
_root.char._y = yreset;
_root.death = true;
_root.deathcount = _root.deathcount + 1;
hit1 = false;
hit2 = false;
this.gotoAndStop(1);
_root.vcam._x = 350;
}
}
Instance of Symbol 356 MovieClip "char" in Frame 13
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 13
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 630 MovieClip in Frame 13
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 434 MovieClip "vcam" in Frame 13
onClipEvent (enterFrame) {
if (_root.char._x >= 347.6) {
this._x = _root.char._x;
}
}
Instance of Symbol 631 MovieClip in Frame 13
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
Frame 14
_root.nextFrame();
stopAllSounds();
_root.level = 8;
savefile.data.level = _root.level;
savefile.flush();
Frame 15
_root.fadeout.gotoAndPlay(1);
_root.level = 9;
savefile.data.level = _root.level;
savefile.flush();
Instance of Symbol 356 MovieClip "char" in Frame 15
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 15
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 630 MovieClip in Frame 15
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 434 MovieClip "vcam" in Frame 15
onClipEvent (enterFrame) {
if (_root.char._x >= 347.6) {
this._x = _root.char._x;
}
}
Instance of Symbol 574 MovieClip in Frame 15
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
Instance of Symbol 649 MovieClip in Frame 15
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
this.nextFrame();
}
if (Key.isDown(65)) {
this.prevFrame();
}
}
Frame 16
_root.boomerang._y = _root.char._y;
nextFrame();
_root.level = 10;
savefile.data.level = _root.level;
savefile.flush();
Instance of Symbol 579 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.death == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 651 MovieClip in Frame 16
onClipEvent (load) {
bosskilled = false;
}
onClipEvent (enterFrame) {
if ((_root.fallingland._currentframe > 4) && (!bosskilled)) {
var medal_name = "Kill the Main Boss";
com.newgrounds.API.unlockMedal(medal_name);
bosskilled = true;
}
}
Frame 17
stop();
Instance of Symbol 697 MovieClip "ground2" in Frame 17
onClipEvent (load) {
this.rockpeice1.gotoAndStop(2);
this.rockpeice2.gotoAndStop(2);
this.rockpeice4.gotoAndStop(2);
this.rockpeice5.gotoAndStop(2);
this.rockpeice6.gotoAndStop(2);
this.rockpeice7.gotoAndStop(2);
this.rockpeice8.gotoAndStop(2);
this.rockpeice9.gotoAndStop(2);
this.rockpeice10.gotoAndStop(2);
}
Instance of Symbol 700 MovieClip "wallbreaker" in Frame 17
onClipEvent (load) {
hit = false;
this._visible = false;
timer = 0;
hit2 = false;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) && (!hit)) {
hit = true;
}
if (hit) {
timer = timer + 1;
}
if ((timer > 30) && (!hit2)) {
hit2 = true;
_root.ground.gotoAndPlay(2);
_root.ground2.gotoAndPlay(2);
}
}
Instance of Symbol 356 MovieClip "char" in Frame 17
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 17
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 705 MovieClip "screenblocker" in Frame 17
onClipEvent (load) {
botcords = 0;
topcords = 0;
rightcords = 0;
leftcords = 0;
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
_root.vcam._y = 200;
done = true;
}
if (_root._currentframe == 1) {
botcords = 445;
topcords = 210;
rightcords = 350;
leftcords = 350;
}
if (_root._currentframe == 2) {
botcords = 200;
topcords = 50;
rightcords = 1576;
leftcords = 350;
}
if (_root._currentframe == 3) {
botcords = 0;
topcords = 0;
rightcords = 850;
leftcords = 350;
}
if (_root._currentframe == 4) {
botcords = 0;
topcords = 0;
rightcords = 890;
leftcords = 350;
}
if (_root._currentframe == 5) {
botcords = 0;
topcords = 0;
rightcords = 410;
leftcords = 350;
}
if (_root._currentframe == 6) {
botcords = 0;
topcords = 0;
rightcords = 374;
leftcords = 90;
}
if (_root._currentframe == 7) {
botcords = 0;
topcords = 0;
rightcords = 1100;
leftcords = 350;
}
}
Instance of Symbol 709 MovieClip "stoprrr" in Frame 17
onClipEvent (load) {
timer = 0;
i = 0;
bob = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if (i > 30) {
i = 0;
}
if ((Key.isDown(68) && (timer > 10)) && (!root.back.up)) {
i++;
bob = getDepth(_root.char);
_root.footstepuff.duplicateMovieClip("dee" + i, bob, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
if ((Key.isDown(65) && (timer > 10)) && (!root.back.up)) {
i++;
bob = getDepth(_root.char);
_root.footstepuff.duplicateMovieClip("dee" + i, bob, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
}
Instance of Symbol 712 MovieClip "footpuffnew" in Frame 17
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(68))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = -100;
this._x = _root.char._x;
this._y = _root.char._y;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(65))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = 100;
this._x = _root.char._x;
this._y = _root.char._y;
}
}
Instance of Symbol 434 MovieClip "vcam" in Frame 17
onClipEvent (enterFrame) {
if (_root.char._x >= 347.6) {
this._x = _root.char._x;
}
}
Instance of Symbol 175 MovieClip in Frame 17
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
Instance of Symbol 630 MovieClip in Frame 17
onClipEvent (enterFrame) {
this._visible = false;
}
Frame 18
_root.fadeout.gotoAndPlay(1);
_root.level = 11;
savefile.data.level = _root.level;
savefile.flush();
Instance of Symbol 754 MovieClip in Frame 18
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Instance of Symbol 434 MovieClip "vcam" in Frame 18
onClipEvent (enterFrame) {
if (_root.char._x >= 347.6) {
this._x = _root.char._x;
}
}
onClipEvent (enterFrame) {
if (_root.char._y <= 310) {
this._y = _root.char._y - 80;
}
}
Instance of Symbol 808 MovieClip in Frame 18
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Instance of Symbol 356 MovieClip "char" in Frame 18
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 18
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 828 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.boomerang)) {
this.play();
}
}
Frame 19
_root.nextFrame();
Frame 20
stopAllSounds();
_root.nextFrame();
Frame 21
_root.fadeout.gotoAndPlay(1);
_root.level = 12;
savefile.data.level = _root.level;
savefile.flush();
stop();
Instance of Symbol 156 MovieClip in Frame 21
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 156 MovieClip in Frame 21
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 872 MovieClip in Frame 21
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (((_root.char.hitTest(this) && (Key.isDown(32))) && (this.leverinside._currentframe == 1)) && (_root.bridge.bridgestuck.vines._currentframe == 1)) {
this.leverinside.gotoAndPlay(2);
_root.bridge.bridgestuck.gotoAndPlay(2);
}
if ((((_root.char.hitTest(this) && (Key.isDown(32))) && (_root.bridge._currentframe > 1)) && (!done)) && (this._currentframe < 2)) {
_root.bridge.bridgeunstuck.gotoAndPlay(2);
_root.ground.gotoAndPlay(2);
this.gotoAndPlay(2);
done = true;
}
if ((this._currentframe > 2) && (_root.bridge.bridgeunstuck._currentframe < 3)) {
_root.bridge.bridgeunstuck.gotoAndPlay(4);
}
}
Instance of Symbol 910 MovieClip in Frame 21
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Instance of Symbol 356 MovieClip "char" in Frame 21
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 21
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 175 MovieClip in Frame 21
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
Instance of Symbol 709 MovieClip "stoprrr" in Frame 21
onClipEvent (load) {
timer = 0;
i = 0;
bob = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if (i > 30) {
i = 0;
}
if ((Key.isDown(68) && (timer > 10)) && (!root.back.up)) {
i++;
bob = getDepth(_root.char);
_root.footstepuff.duplicateMovieClip("dee" + i, bob, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
if ((Key.isDown(65) && (timer > 10)) && (!root.back.up)) {
i++;
bob = getDepth(_root.char);
_root.footstepuff.duplicateMovieClip("dee" + i, bob, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
}
Instance of Symbol 712 MovieClip "footpuffnew" in Frame 21
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(68))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = -100;
this._x = _root.char._x;
this._y = _root.char._y;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(65))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = 100;
this._x = _root.char._x;
this._y = _root.char._y;
}
}
Instance of Symbol 434 MovieClip "vcam" in Frame 21
onClipEvent (enterFrame) {
if (_root.char._x >= 348) {
this._x = _root.char._x;
}
}
Frame 22
_root.nextFrame();
Frame 23
_root.fadeout.gotoAndPlay(1);
_root.level = 13;
savefile.data.level = _root.level;
savefile.flush();
stop();
Instance of Symbol 156 MovieClip in Frame 23
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 156 MovieClip in Frame 23
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 926 MovieClip in Frame 23
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Instance of Symbol 933 MovieClip "wall" in Frame 23
onClipEvent (load) {
opened = false;
done = false;
}
onClipEvent (enterFrame) {
if (opened && (!done)) {
this.gotoAndPlay(2);
_root.ground.gotoAndStop(2);
done = true;
}
}
Instance of Symbol 998 MovieClip in Frame 23
onClipEvent (load) {
yspeed = 0;
movetimer = 0;
speed = 4;
moving = false;
standing = true;
standingtimer = Math.random() * 100;
directiondice = 0;
left = true;
right = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
standingtimer = -1;
}
if (_root.wall.hitTest(this._x, this._y, true) && (left)) {
directiondice = 1;
moving = false;
}
if (_root.wall.hitTest(this._x, this._y, true) && (right)) {
directiondice = 2;
moving = false;
}
if (standing) {
standingtimer--;
}
if ((standing && (standingtimer < 0)) && (this.stand._currentframe < 3)) {
standing = false;
directiondice = 1 + (Math.random() * 1);
directiondice = Math.round(directiondice);
this.gotoAndStop(2);
}
if (((!standing) && (directiondice < 2)) && (!moving)) {
this._xscale = -100;
moving = true;
left = false;
right = true;
speed = 2;
movetimer = Math.random() * 100;
}
if (((!standing) && (directiondice > 1)) && (!moving)) {
this._xscale = 100;
moving = true;
left = true;
right = false;
speed = -2;
movetimer = Math.random() * 100;
}
if (moving && (movetimer > 1)) {
this._x = this._x + speed;
movetimer--;
}
if ((moving && (movetimer < 2)) && (this.move._currentframe < 3)) {
moving = false;
standingtimer = Math.random() * 100;
standing = true;
directiondice = 0;
this.gotoAndStop(1);
}
}
Instance of Symbol 1019 MovieClip "cover" in Frame 23
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if ((_root.char.hitTest(this) && (!hit)) && (this._currentframe == 44)) {
this.blocks.sheild.gotoAndStop(2);
}
if (((!_root.char.hitTest(this)) && (!hit)) && (this._currentframe == 44)) {
this.blocks.sheild.gotoAndStop(1);
}
if (((_root.char.hitTest(this) && (Key.isDown(32))) && (this._currentframe == 44)) && (!hit)) {
_root.char.pickeduprareitem = true;
this.blocks.sheild.gotoAndStop(3);
_root.wall.opened = true;
_root.ground.gotoAndStop(2);
hit = true;
}
}
Instance of Symbol 356 MovieClip "char" in Frame 23
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = false;
throwing = false;
sheildable = false;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.gotshield == true) {
sheildable = true;
}
}
Instance of Symbol 1139 MovieClip "peicescounter" in Frame 23
onClipEvent (load) {
peicesinplace = 0;
done = false;
covered = false;
}
onClipEvent (enterFrame) {
if ((peicesinplace >= 25) && (!done)) {
_root.picture.gotoAndStop(2);
this.gotoAndPlay(2);
done = true;
i = 0;
while (i < 30) {
removeMovieClip(_root["peice" + i]);
unloadMovieClip(_root["peice" + i]);
i++;
}
}
if ((this._currentframe == 121) && (!covered)) {
_root.cover.gotoAndPlay(2);
covered = true;
}
}
Instance of Symbol 709 MovieClip "stoprrr" in Frame 23
onClipEvent (load) {
timer = 0;
i = 0;
bob = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if (i > 30) {
i = 0;
}
if ((Key.isDown(68) && (timer > 10)) && (!root.back.up)) {
i++;
bob = getDepth(_root.char);
_root.footstepuff.duplicateMovieClip("dee" + i, bob, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
if ((Key.isDown(65) && (timer > 10)) && (!root.back.up)) {
i++;
bob = getDepth(_root.char);
_root.footstepuff.duplicateMovieClip("dee" + i, bob, {_x:_root.char._x, _y:_root.char._y});
timer = 0;
}
}
Instance of Symbol 712 MovieClip "footpuffnew" in Frame 23
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
if (timer > 11) {
timer = 10;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(68))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = -100;
this._x = _root.char._x;
this._y = _root.char._y;
}
if ((((((_root.ground.hitTest(_root.char._x, _root.char._y + 8, true) && (_root.char._currentframe != 1)) && (_root.char._currentframe != 5)) && (_root.char._currentframe != 10)) && (Key.isDown(65))) && (timer > 9)) && (this._currentframe == 1)) {
this.play();
this._xscale = 100;
this._x = _root.char._x;
this._y = _root.char._y;
}
}
Instance of Symbol 434 MovieClip "vcam" in Frame 23
onClipEvent (enterFrame) {
if (_root.char._x >= 358) {
this._x = _root.char._x;
}
}
Instance of Symbol 175 MovieClip in Frame 23
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
Instance of Symbol 1145 MovieClip "peice1" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
this._rotation = this._rotation + 180;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging && (this.hitTest(_root.bord))) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice1slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice1slot._x;
this._y = _root.peice1slot._y;
_root.peice1slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if (!Key.isDown(32)) {
spinable = true;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1147 MovieClip "peice2" in Frame 23
onClipEvent (load) {
this._rotation = this._rotation + 90;
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice2slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice2slot._x;
this._y = _root.peice2slot._y;
_root.peice2slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1149 MovieClip "peice3" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice3slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice3slot._x;
this._y = _root.peice3slot._y;
_root.peice3slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1151 MovieClip "peice4" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
this._rotation = this._rotation + 90;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice4slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice4slot._x;
this._y = _root.peice4slot._y;
_root.peice4slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if (!Key.isDown(32)) {
spinable = true;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1153 MovieClip "peice5" in Frame 23
onClipEvent (load) {
this._rotation = this._rotation + 180;
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice5slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice5slot._x;
this._y = _root.peice5slot._y;
_root.peice5slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1155 MovieClip "peice6" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice6slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice6slot._x;
this._y = _root.peice6slot._y;
_root.peice6slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if (!Key.isDown(32)) {
spinable = true;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1157 MovieClip "peice7" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
this._rotation = this._rotation + 90;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice7slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice7slot._x;
this._y = _root.peice7slot._y;
_root.peice7slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if (!Key.isDown(32)) {
spinable = true;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1159 MovieClip "peice8" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice8slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice8slot._x;
this._y = _root.peice8slot._y;
_root.peice8slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1161 MovieClip "peice9" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice9slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice9slot._x;
this._y = _root.peice9slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1163 MovieClip "peice10" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice10slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice10slot._x;
this._y = _root.peice10slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1165 MovieClip "peice11" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice11slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice11slot._x;
this._y = _root.peice11slot._y;
_root.peice11slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1167 MovieClip "peice12" in Frame 23
onClipEvent (load) {
this._rotation = this._rotation + 90;
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice12slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice12slot._x;
this._y = _root.peice12slot._y;
_root.peice12slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1169 MovieClip "peice13" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice13slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice13slot._x;
this._y = _root.peice13slot._y;
_root.peice13slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1171 MovieClip "peice14" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice14slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice14slot._x;
this._y = _root.peice14slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1173 MovieClip "peice15" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice15slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice15slot._x;
this._y = _root.peice15slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1175 MovieClip "peice16" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice16slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice16slot._x;
this._y = _root.peice16slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1177 MovieClip "peice17" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice17slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice17slot._x;
this._y = _root.peice17slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1179 MovieClip "peice18" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice18slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice18slot._x;
this._y = _root.peice18slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1181 MovieClip "peice19" in Frame 23
onClipEvent (load) {
this._rotation = this._rotation + 270;
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice19slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice19slot._x;
this._y = _root.peice19slot._y;
_root.peice19slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1183 MovieClip "peice20" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice20slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice20slot._x;
this._y = _root.peice20slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1185 MovieClip "peice21" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice21slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice21slot._x;
this._y = _root.peice21slot._y;
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1187 MovieClip "peice22" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice22slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice22slot._x;
this._y = _root.peice22slot._y;
_root.peice22slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1189 MovieClip "peice23" in Frame 23
onClipEvent (load) {
this._rotation = this._rotation + 90;
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice23slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice23slot._x;
this._y = _root.peice23slot._y;
_root.peice23slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1191 MovieClip "peice24" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice24slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice24slot._x;
this._y = _root.peice24slot._y;
_root.peice24slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Instance of Symbol 1193 MovieClip "peice25" in Frame 23
onClipEvent (load) {
inplace = false;
dragging = false;
droppable = false;
spinable = true;
xstart = this._x;
ystart = this._y;
}
on (press) {
if ((!inplace) && (!dragging)) {
dragging = true;
}
}
on (press) {
if (((!inplace) && (dragging)) && (droppable)) {
dragging = false;
droppable = false;
}
}
onClipEvent (enterFrame) {
if (_root.peicescounter.done) {
this.gotoAndStop(2);
}
if (dragging && (!this.hitTest(_root.bord))) {
this._x = xstart;
this._y = ystart;
dragging = false;
droppable = false;
spinable = false;
}
if (dragging) {
this.swapDepths(_root.getNextHighestDepth());
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if ((((_root.peice25slot.hitTest(this._x, this._y, true) && (!inplace)) && (!dragging)) && (this._rotation >= -10)) && (this._rotation <= 10)) {
inplace = true;
this._x = _root.peice25slot._x;
this._y = _root.peice25slot._y;
_root.peice25slot.gotoAndPlay(2);
dragging = false;
_root.peicescounter.peicesinplace = _root.peicescounter.peicesinplace + 1;
}
if ((dragging && (Key.isDown(32))) && (spinable)) {
this._rotation = this._rotation + 90;
spinable = false;
}
if (!Key.isDown(32)) {
spinable = true;
}
}
onClipEvent (mouseUp) {
if (dragging) {
droppable = true;
}
}
Frame 24
_root.fadeout.gotoAndPlay(1);
_root.level = 14;
savefile.data.level = _root.level;
savefile.flush();
stop();
_root.gotshield = true;
Instance of Symbol 933 MovieClip "wall2" in Frame 24
onClipEvent (load) {
opened = false;
done = false;
}
onClipEvent (enterFrame) {
if (opened && (!done)) {
this.gotoAndPlay(2);
_root.ground.gotoAndStop(2);
done = true;
}
}
Instance of Symbol 1260 MovieClip in Frame 24
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char.hitbox)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Instance of Symbol 356 MovieClip "char" in Frame 24
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = true;
throwing = false;
sheildable = true;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 24
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Frame 25
_root.fadeout.gotoAndPlay(1);
_root.level = 15;
savefile.data.level = _root.level;
savefile.flush();
stop();
_root.gotshield = true;
_root.char._x = 28.4;
_root.char._y = 313.4;
Instance of Symbol 1271 MovieClip "ground" in Frame 25
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 1287 MovieClip in Frame 25
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Instance of Symbol 1304 MovieClip "mirror4" in Frame 25
onClipEvent (load) {
hit = false;
mirrored = false;
ballnumber = 0;
}
onClipEvent (enterFrame) {
if ((this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 6;
}
if (((!this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) && (mirrored)) && (ballnumber == 6)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 2;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true)) && (mirrored)) && (ballnumber == 2)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 3;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true)) && (mirrored)) && (ballnumber == 3)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 4;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true)) && (mirrored)) && (ballnumber == 4)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 5;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true)) && (mirrored)) && (ballnumber == 5)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if (!hit) {
this.shine.gotoAndStop(1);
_root.mirrorball4._x = this._x;
_root.mirrorball4._y = this._y;
this.lightbeam._width = 0;
}
if (hit) {
this.shine.gotoAndStop(2);
x1 = this._x;
x2 = _root.mirrorball4._x;
y1 = this._y;
y2 = _root.mirrorball4._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.lightbeam._width = distance;
rot = this._rotation - 90;
while (((((((((!_root.ground.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true)) && (!_root.mirror1.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true))) {
_root.mirrorball4._y = _root.mirrorball4._y + (8 * Math.cos((Math.PI/180) * rot));
_root.mirrorball4._x = _root.mirrorball4._x - (8 * Math.sin((Math.PI/180) * rot));
}
}
}
Instance of Symbol 1304 MovieClip "mirror2" in Frame 25
onClipEvent (load) {
hit = false;
mirrored = false;
ballnumber = 0;
}
onClipEvent (enterFrame) {
if ((this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 6;
}
if (((!this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) && (mirrored)) && (ballnumber == 6)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 2;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true)) && (mirrored)) && (ballnumber == 2)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 3;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true)) && (mirrored)) && (ballnumber == 3)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 4;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true)) && (mirrored)) && (ballnumber == 4)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 5;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true)) && (mirrored)) && (ballnumber == 5)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if (!hit) {
this.shine.gotoAndStop(1);
_root.mirrorball2._x = this._x;
_root.mirrorball2._y = this._y;
this.lightbeam._width = 0;
}
if (hit) {
this.shine.gotoAndStop(2);
x1 = this._x;
x2 = _root.mirrorball2._x;
y1 = this._y;
y2 = _root.mirrorball2._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.lightbeam._width = distance;
rot = this._rotation - 90;
while (((((((((!_root.ground.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true)) && (!_root.mirror1.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true))) {
_root.mirrorball2._y = _root.mirrorball2._y + (8 * Math.cos((Math.PI/180) * rot));
_root.mirrorball2._x = _root.mirrorball2._x - (8 * Math.sin((Math.PI/180) * rot));
}
}
}
Instance of Symbol 1304 MovieClip "mirror1" in Frame 25
onClipEvent (load) {
hit = false;
mirrored = false;
ballnumber = 0;
charinchain = false;
}
onClipEvent (enterFrame) {
if ((((this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) or _root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) or _root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) or _root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) or _root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) {
charinchain = true;
} else {
charinchain = false;
_root.mirror1.hit = false;
_root.mirror1.shine.gotoAndStop(1);
_root.mirrorball1._x = _root.mirror1._x;
_root.mirrorball1._y = _root.mirror1._y;
_root.mirror1.lightbeam._width = 0;
_root.mirror2.hit = false;
_root.mirror2.shine.gotoAndStop(1);
_root.mirrorball2._x = _root.mirror2._x;
_root.mirrorball2._y = _root.mirror2._y;
_root.mirror2.lightbeam._width = 0;
_root.mirror3.hit = false;
_root.mirror3.shine.gotoAndStop(1);
_root.mirrorball3._x = _root.mirror3._x;
_root.mirrorball3._y = _root.mirror3._y;
_root.mirror3.lightbeam._width = 0;
_root.mirror4.hit = false;
_root.mirror4.shine.gotoAndStop(1);
_root.mirrorball4._x = _root.mirror4._x;
_root.mirrorball4._y = _root.mirror4._y;
_root.mirror4.lightbeam._width = 0;
_root.mirror5.hit = false;
_root.mirror5.shine.gotoAndStop(1);
_root.mirrorball5._x = _root.mirror5._x;
_root.mirrorball5._y = _root.mirror5._y;
_root.mirror5.lightbeam._width = 0;
}
if ((this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 6;
}
if (((!this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) && (mirrored)) && (ballnumber == 6)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 2;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true)) && (mirrored)) && (ballnumber == 2)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 3;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true)) && (mirrored)) && (ballnumber == 3)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 4;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true)) && (mirrored)) && (ballnumber == 4)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 5;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true)) && (mirrored)) && (ballnumber == 5)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if (!hit) {
this.shine.gotoAndStop(1);
_root.mirrorball1._x = this._x;
_root.mirrorball1._y = this._y;
this.lightbeam._width = 0;
}
if (hit) {
this.shine.gotoAndStop(2);
x1 = this._x;
x2 = _root.mirrorball1._x;
y1 = this._y;
y2 = _root.mirrorball1._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.lightbeam._width = distance;
rot = this._rotation - 90;
while (((((((((!_root.ground.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true)) && (!_root.mirror2.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true))) {
_root.mirrorball1._y = _root.mirrorball1._y + (8 * Math.cos((Math.PI/180) * rot));
_root.mirrorball1._x = _root.mirrorball1._x - (8 * Math.sin((Math.PI/180) * rot));
}
}
}
Instance of Symbol 1304 MovieClip "mirror3" in Frame 25
onClipEvent (load) {
hit = false;
mirrored = false;
ballnumber = 0;
}
onClipEvent (enterFrame) {
if ((this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 6;
}
if (((!this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) && (mirrored)) && (ballnumber == 6)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 2;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true)) && (mirrored)) && (ballnumber == 2)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 3;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true)) && (mirrored)) && (ballnumber == 3)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 4;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true)) && (mirrored)) && (ballnumber == 4)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 5;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true)) && (mirrored)) && (ballnumber == 5)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if (!hit) {
this.shine.gotoAndStop(1);
_root.mirrorball3._x = this._x;
_root.mirrorball3._y = this._y;
this.lightbeam._width = 0;
}
if (hit) {
this.shine.gotoAndStop(2);
x1 = this._x;
x2 = _root.mirrorball3._x;
y1 = this._y;
y2 = _root.mirrorball3._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.lightbeam._width = distance;
rot = this._rotation - 90;
while (((((((((!_root.ground.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true)) && (!_root.mirror1.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true))) {
_root.mirrorball3._y = _root.mirrorball3._y + (8 * Math.cos((Math.PI/180) * rot));
_root.mirrorball3._x = _root.mirrorball3._x - (8 * Math.sin((Math.PI/180) * rot));
}
}
}
Instance of Symbol 1310 MovieClip in Frame 25
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
while (this.hitTest(_root.char.hitbox)) {
_root.char._x--;
}
}
Instance of Symbol 1304 MovieClip "mirror5" in Frame 25
onClipEvent (load) {
hit = false;
mirrored = false;
ballnumber = 0;
}
onClipEvent (enterFrame) {
if ((this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 6;
}
if (((!this.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true)) && (mirrored)) && (ballnumber == 6)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 2;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball1._x, _root.mirrorball1._y, true)) && (mirrored)) && (ballnumber == 2)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 3;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball3._x, _root.mirrorball3._y, true)) && (mirrored)) && (ballnumber == 3)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 4;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball4._x, _root.mirrorball4._y, true)) && (mirrored)) && (ballnumber == 4)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if ((this.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true) && (!mirrored)) && (_root.mirror1.charinchain)) {
mirrored = true;
this.hit = true;
ballnumber = 5;
}
if (((!this.reflectiveside.hitTest(_root.mirrorball2._x, _root.mirrorball2._y, true)) && (mirrored)) && (ballnumber == 5)) {
mirrored = false;
ballnumber = 0;
this.hit = false;
}
if (!hit) {
this.shine.gotoAndStop(1);
_root.mirrorball5._x = this._x;
_root.mirrorball5._y = this._y;
this.lightbeam._width = 0;
}
if (hit) {
this.shine.gotoAndStop(2);
x1 = this._x;
x2 = _root.mirrorball5._x;
y1 = this._y;
y2 = _root.mirrorball5._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.lightbeam._width = distance;
rot = this._rotation - 90;
while ((((((((((!_root.wall.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true)) && (!_root.ground.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.mirrorball5._x, _root.mirrorball5._y, true))) {
_root.mirrorball5._y = _root.mirrorball5._y + (8 * Math.cos((Math.PI/180) * rot));
_root.mirrorball5._x = _root.mirrorball5._x - (8 * Math.sin((Math.PI/180) * rot));
}
}
}
Instance of Symbol 1319 MovieClip "back" in Frame 25
onClipEvent (load) {
hit = false;
up = false;
this.charinside._visible = false;
}
onClipEvent (enterFrame) {
this.hitter._visible = false;
if (this._currentframe == 60) {
hit = true;
_root.char.grabbed = false;
}
if (this.hitter.hitTest(_root.char.hitbox)) {
up = true;
this.charinside._visible = true;
_root.char._x = 325;
_root.char._y = 510;
_root.boomerang._x = _root.char._x;
_root.boomerang._y = _root.char._y;
_root.boomerang.swtichhit = false;
_root.boomerang.gotoAndStop(2);
_root.boomerang.boomeroptions.gotoAndStop(1);
_root.boomerang.launched = false;
_root.boomerang.boomspeed = 0;
_root.boomerang.timer = 0;
_root.char.shooting = false;
_root.char.grabbed = true;
_root.char.standing = false;
_root.char.walking = false;
_root.char.sheilding = false;
_root.char.throwing = false;
_root.char.sheildable = false;
_root.char.xspeed = 0;
_root.char.walkturn = false;
_root.char.jumpingturn = false;
_root.char.jumping = false;
_root.char.landing = false;
}
if (up) {
this.prevFrame();
_root.front.prevFrame();
}
if ((this._currentframe == 1) && (up)) {
_root.fader.gotoAndPlay(2);
_root.char._x = 27;
_root.char._y = 330;
_root.vcam._x = 350;
_root.vcam._y = 200;
_root.boomerang.launched = false;
_root.boomerang.timer = 0;
_root.boomerang.boomspeed = 0;
_root.boomerang.rot = 0;
_root.boomerang.shootable = true;
_root.boomerang.throwspeed = 0;
_root.boomerang.switchhit = false;
_root.boomerang.thing = false;
_root.boomerang.grapspeed = 0;
_root.boomerang.rotnum = 0;
_root.boomerang._x = _root.char;
_root.boomerang._y = _root.char._y - 10;
_root.boomerang.gotoAndStop(1);
_root.nextFrame();
}
}
Instance of Symbol 1446 MovieClip "sparkle" in Frame 25
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (this._currentframe > 2) {
this.nextFrame();
}
if ((this._currentframe == 125) && (!hit)) {
_root.front.gotoAndPlay(2);
_root.ground.gotoAndPlay(2);
_root.back.gotoAndPlay(2);
hit = true;
}
}
Instance of Symbol 1472 MovieClip "cogger1" in Frame 25
onClipEvent (load) {
_root.mirror1._rotation = 92;
grabbed = false;
realesed = false;
regrabable = true;
directionpressed = false;
num = 2;
}
onClipEvent (enterFrame) {
if (grabbed) {
this.helptext.gotoAndStop(2);
} else {
this.helptext.gotoAndStop(1);
}
if ((((((((((!_root.sparkle.hit) && (this.hitTest(_root.char.hitbox))) && (!grabbed)) && (Key.isDown(32))) && (regrabable)) && (!_root.char.jumping)) && (!_root.char.swim)) && (!_root.char.landing)) && (!_root.char.shooting)) && (!_root.cogger2.hitTest(_root.char.hitbox))) {
grabbed = true;
_root.char.grabbed = true;
_root.char.standing = false;
_root.char.walking = false;
_root.char.xspeed = 0;
_root.char.walkturn = false;
_root.char.jumpingturn = false;
_root.char.jumping = false;
_root.char.landing = false;
}
if (grabbed && (!Key.isDown(32))) {
realesed = true;
}
if ((grabbed && (Key.isDown(32))) && (realesed)) {
realesed = false;
grabbed = false;
regrabable = false;
_root.char.grabbed = false;
}
if ((!Key.isDown(32)) && (!regrabable)) {
regrabable = true;
}
if ((grabbed && (Key.isDown(65))) && (!directionpressed)) {
directionpressed = true;
num++;
}
if ((grabbed && (Key.isDown(68))) && (!directionpressed)) {
directionpressed = true;
num--;
}
if (((!Key.isDown(65)) && (!Key.isDown(68))) && (_root.mirror1._rotation == turningpos)) {
directionpressed = false;
}
if (directionpressed && (_root.mirror1._rotation < turningpos)) {
_root.mirror1._rotation = _root.mirror1._rotation + 2;
this.cog._rotation = this.cog._rotation + 2;
_root.squarecog._rotation = _root.squarecog._rotation + 2;
}
if (directionpressed && (_root.mirror1._rotation > turningpos)) {
_root.mirror1._rotation = _root.mirror1._rotation - 2;
this.cog._rotation = this.cog._rotation - 2;
_root.squarecog._rotation = _root.squarecog._rotation - 2;
}
if (num == 1) {
turningpos = 130;
}
if (num == 2) {
turningpos = 92;
}
if (num == 3) {
turningpos = 56;
}
if (num < 1) {
num = 3;
}
if (num > 3) {
num = 1;
}
}
Instance of Symbol 1472 MovieClip "cogger2" in Frame 25
onClipEvent (load) {
_root.mirror2._rotation = 10;
grabbed = false;
realesed = false;
regrabable = true;
directionpressed = false;
num = 3;
}
onClipEvent (enterFrame) {
if (grabbed) {
this.helptext.gotoAndStop(2);
} else {
this.helptext.gotoAndStop(1);
}
if (((((((((((!_root.sparkle.hit) && (this.hitTest(_root.char.hitbox))) && (!grabbed)) && (Key.isDown(32))) && (regrabable)) && (!_root.char.jumping)) && (!_root.char.swim)) && (!_root.char.landing)) && (!_root.char.shooting)) && (!_root.cogger1.hitTest(_root.char.hitbox))) && (!_root.cogger3.hitTest(_root.char.hitbox))) {
grabbed = true;
_root.char.grabbed = true;
_root.char.standing = false;
_root.char.walking = false;
_root.char.xspeed = 0;
_root.char.walkturn = false;
_root.char.jumpingturn = false;
_root.char.jumping = false;
_root.char.landing = false;
}
if (grabbed && (!Key.isDown(32))) {
realesed = true;
}
if ((grabbed && (Key.isDown(32))) && (realesed)) {
realesed = false;
grabbed = false;
regrabable = false;
_root.char.grabbed = false;
}
if ((!Key.isDown(32)) && (!regrabable)) {
regrabable = true;
}
if ((grabbed && (Key.isDown(65))) && (!directionpressed)) {
directionpressed = true;
num++;
}
if ((grabbed && (Key.isDown(68))) && (!directionpressed)) {
directionpressed = true;
num--;
}
if (((!Key.isDown(65)) && (!Key.isDown(68))) && (_root.mirror2._rotation == turningpos)) {
directionpressed = false;
}
if (directionpressed && (_root.mirror2._rotation < turningpos)) {
_root.mirror2._rotation = _root.mirror2._rotation + 2;
this.cog._rotation = this.cog._rotation + 2;
_root.trianglecog._rotation = _root.trianglecog._rotation + 2;
}
if (directionpressed && (_root.mirror2._rotation > turningpos)) {
_root.mirror2._rotation = _root.mirror2._rotation - 2;
this.cog._rotation = this.cog._rotation - 2;
_root.trianglecog._rotation = _root.trianglecog._rotation - 2;
}
if (num == 1) {
turningpos = 90;
}
if (num == 2) {
turningpos = 58;
}
if (num == 3) {
turningpos = 10;
}
if (num < 1) {
num = 3;
}
if (num > 3) {
num = 1;
}
}
Instance of Symbol 1472 MovieClip "cogger3" in Frame 25
onClipEvent (load) {
_root.mirror3._rotation = -90;
grabbed = false;
realesed = false;
regrabable = true;
directionpressed = false;
num = 3;
}
onClipEvent (enterFrame) {
if (grabbed) {
this.helptext.gotoAndStop(2);
} else {
this.helptext.gotoAndStop(1);
}
if ((((((((((((!_root.sparkle.hit) && (this.hitTest(_root.char.hitbox))) && (!grabbed)) && (Key.isDown(32))) && (regrabable)) && (!_root.char.jumping)) && (!_root.char.swim)) && (!_root.char.landing)) && (!_root.char.shooting)) && (!_root.char.shooting)) && (!_root.cogger2.hitTest(_root.char.hitbox))) && (!_root.cogger4.hitTest(_root.char.hitbox))) {
grabbed = true;
_root.char.grabbed = true;
_root.char.standing = false;
_root.char.walking = false;
_root.char.xspeed = 0;
_root.char.walkturn = false;
_root.char.jumpingturn = false;
_root.char.jumping = false;
_root.char.landing = false;
}
if (grabbed && (!Key.isDown(32))) {
realesed = true;
}
if ((grabbed && (Key.isDown(32))) && (realesed)) {
realesed = false;
grabbed = false;
regrabable = false;
_root.char.grabbed = false;
}
if ((!Key.isDown(32)) && (!regrabable)) {
regrabable = true;
}
if ((grabbed && (Key.isDown(65))) && (!directionpressed)) {
directionpressed = true;
num++;
}
if ((grabbed && (Key.isDown(68))) && (!directionpressed)) {
directionpressed = true;
num--;
}
if (((!Key.isDown(65)) && (!Key.isDown(68))) && (_root.mirror3._rotation == turningpos)) {
directionpressed = false;
}
if (directionpressed && (_root.mirror3._rotation < turningpos)) {
_root.mirror3._rotation = _root.mirror3._rotation + 2;
this.cog._rotation = this.cog._rotation + 2;
_root.circlecog._rotation = _root.circlecog._rotation + 2;
}
if (directionpressed && (_root.mirror3._rotation > turningpos)) {
_root.mirror3._rotation = _root.mirror3._rotation - 2;
this.cog._rotation = this.cog._rotation - 2;
_root.circlecog._rotation = _root.circlecog._rotation - 2;
}
if (num == 1) {
turningpos = -158;
}
if (num == 2) {
turningpos = -120;
}
if (num == 3) {
turningpos = -90;
}
if (num < 1) {
num = 3;
}
if (num > 3) {
num = 1;
}
}
Instance of Symbol 1472 MovieClip "cogger4" in Frame 25
onClipEvent (load) {
_root.mirror4._rotation = -124;
grabbed = false;
realesed = false;
regrabable = true;
directionpressed = false;
num = 1;
}
onClipEvent (enterFrame) {
if (grabbed) {
this.helptext.gotoAndStop(2);
} else {
this.helptext.gotoAndStop(1);
}
if (((((((((((!_root.sparkle.hit) && (this.hitTest(_root.char.hitbox))) && (!grabbed)) && (Key.isDown(32))) && (regrabable)) && (!_root.char.jumping)) && (!_root.char.swim)) && (!_root.char.landing)) && (!_root.char.shooting)) && (!_root.char.shooting)) && (!_root.cogger3.hitTest(_root.char.hitbox))) {
grabbed = true;
_root.char.grabbed = true;
_root.char.standing = false;
_root.char.walking = false;
_root.char.xspeed = 0;
_root.char.walkturn = false;
_root.char.jumpingturn = false;
_root.char.jumping = false;
_root.char.landing = false;
}
if (grabbed && (!Key.isDown(32))) {
realesed = true;
}
if ((grabbed && (Key.isDown(32))) && (realesed)) {
realesed = false;
grabbed = false;
regrabable = false;
_root.char.grabbed = false;
}
if ((!Key.isDown(32)) && (!regrabable)) {
regrabable = true;
}
if ((grabbed && (Key.isDown(65))) && (!directionpressed)) {
directionpressed = true;
num++;
}
if ((grabbed && (Key.isDown(68))) && (!directionpressed)) {
directionpressed = true;
num--;
}
if (((!Key.isDown(65)) && (!Key.isDown(68))) && (_root.mirror4._rotation == turningpos)) {
directionpressed = false;
}
if (directionpressed && (_root.mirror4._rotation < turningpos)) {
_root.mirror4._rotation = _root.mirror4._rotation + 2;
this.cog._rotation = this.cog._rotation + 2;
_root.crosscog._rotation = _root.crosscog._rotation + 2;
}
if (directionpressed && (_root.mirror4._rotation > turningpos)) {
_root.mirror4._rotation = _root.mirror4._rotation - 2;
this.cog._rotation = this.cog._rotation - 2;
_root.crosscog._rotation = _root.crosscog._rotation - 2;
}
if (num == 1) {
turningpos = -124;
}
if (num == 2) {
turningpos = -86;
}
if (num == 3) {
turningpos = -46;
}
if (num < 1) {
num = 3;
}
if (num > 3) {
num = 1;
}
}
Instance of Symbol 434 MovieClip "vcam" in Frame 25
onClipEvent (enterFrame) {
this._x = _root.char._x + 150;
}
Frame 26
_root.fadeout.gotoAndPlay(1);
_root.level = 16;
savefile.data.level = _root.level;
savefile.flush();
stop();
_root.char._visible = true;
_root.char.shooting = false;
_root.char.grabbed = false;
_root.char.standing = false;
_root.char.walking = false;
_root.char.sheilding = false;
_root.char.throwing = false;
_root.char.sheildable = false;
_root.char.xspeed = 0;
_root.char.walkturn = false;
_root.char.jumpingturn = false;
_root.char.jumping = false;
_root.char.landing = false;
_root.gotshield = true;
Instance of Symbol 1476 MovieClip "backww" in Frame 26
onClipEvent (load) {
changed = false;
}
onClipEvent (enterFrame) {
if (this._y > -568) {
_root.charinside._y = _root.charinside._y - 2;
this._y = this._y - 2;
}
if ((this._y < -540) && (!changed)) {
_root.nextRoom.gotoAndPlay(2);
changed = true;
}
}
Instance of Symbol 1481 MovieClip "nextRoom" in Frame 26
onClipEvent (load) {
_root.footpuffnew._x = -500;
}
Frame 27
_root.fadeout.gotoAndPlay(1);
_root.level = 17;
savefile.data.level = _root.level;
savefile.flush();
stop();
Instance of Symbol 1483 MovieClip in Frame 27
onClipEvent (load) {
changed = false;
}
onClipEvent (enterFrame) {
if (_root.char.hitbox.hitTest(this) && (!changed)) {
changed = true;
_root.nextRoom.gotoAndPlay(2);
}
}
Instance of Symbol 1489 MovieClip "ground" in Frame 27
onClipEvent (load) {
done = false;
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
if (_root.backww22.done && (!done)) {
done = true;
_root.ground.gotoAndStop(2);
}
}
Instance of Symbol 1494 MovieClip in Frame 27
onClipEvent (enterFrame) {
if ((_root.char.hitTest(this) && (Key.isDown(32))) && (this._currentframe < 2)) {
this.gotoAndPlay(2);
_root.doortoendboss.gotoAndPlay(2);
}
}
Instance of Symbol 1498 MovieClip "doortoendboss" in Frame 27
onClipEvent (enterFrame) {
if (this._currentframe > 38) {
_root.ground.gotoAndStop(3);
}
}
Instance of Symbol 1476 MovieClip "backww22" in Frame 27
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (this._y > -265) {
this._y = this._y - 2;
} else {
done = true;
this.evevatorcogsdsd.done = true;
}
}
Instance of Symbol 356 MovieClip "char" in Frame 27
onClipEvent (load) {
right = true;
left = false;
standing = true;
jumping = false;
walking = false;
swimming = false;
grav = 0;
jumpheight = -14;
sheilding = true;
throwing = false;
sheildable = true;
grabbed = false;
clicked = false;
wallhit = false;
rot = _root.ball._rotation + 90;
rotationchecker = this.sheild._rotation;
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = 0;
mirrored = false;
dictancechecker = distance;
changed = false;
shooting = false;
grabbed = false;
}
onClipEvent (enterFrame) {
this._y = this._y + grav;
if (grabbed) {
this.gotoAndStop(1);
}
if (((((((!Key.isDown(68)) && (!Key.isDown(65))) && (!jumping)) && (!swimming)) && (!shooting)) && (this._currentframe >= 2)) && (!grabbed)) {
walking = false;
standing = true;
this.gotoAndStop(1);
}
if ((((Key.isDown(68) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if ((((Key.isDown(65) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) {
walking = true;
standing = false;
this.gotoAndStop(2);
}
if (((Key.isDown(68) && (!_root.ground.hitTest(this._x + 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x + 5;
}
if (((Key.isDown(65) && (!_root.ground.hitTest(this._x - 20, this._y - 22, true))) && (!shooting)) && (!grabbed)) {
this._x = this._x - 5;
}
while (_root.ground.hitTest(this._x, this._y, true)) {
this._y--;
grav = 0;
}
if ((!_root.ground.hitTest(this._x, this._y, true)) && (!swimming)) {
grav++;
}
if (((((Key.isDown(87) && (!jumping)) && (!swimming)) && (!shooting)) && (!grabbed)) && (_root.ground.hitTest(_root.char._x, _root.char._y + 5, true))) {
standing = false;
walking = false;
jumping = true;
grav = jumpheight;
}
if (jumping) {
this.gotoAndStop(1);
}
while ((jumping && (_root.ground.hitTest(this._x, this._y + 4, true))) && (grav > 0)) {
jumping = false;
standing = true;
walking = false;
}
if (_root.ground.hitTest(this._x + 20, this._y - 22, true)) {
this._x = this._x - 5;
}
if (_root.ground.hitTest(this._x - 20, this._y - 22, true)) {
this._x = this._x + 5;
}
if (_root.ground.hitTest(this._x, this._y - 50, true)) {
this._y = this._y + 2;
}
if (_root.ground.hitTest(this._x, this._y - 50, true) && (grav < 0)) {
grav = 0;
}
if (_root.water.hitTest(_root.char._x, _root.char._y - 20, true)) {
sheilding = false;
jumping = false;
walking = false;
standing = false;
swimming = true;
}
if (swimming) {
_root.char.gotoAndStop(3);
}
if ((swimming && (!Key.isDown(68))) && (((!Key.isDown(65)) & (!Key.isDown(87))) & (!Key.isDown(83)))) {
this.charswim.stop();
}
if ((((swimming && (Key.isDown(68))) or (swimming && (Key.isDown(65)))) or (swimming && (Key.isDown(87)))) or (swimming && (Key.isDown(83)))) {
this.charswim.play();
}
if (swimming) {
grav = 1;
}
if (swimming && (Key.isDown(87))) {
this._y = this._y - 4;
}
if (swimming && (Key.isDown(83))) {
this._y = this._y + 3;
}
if (swimming && (!_root.water.hitTest(_root.char._x, _root.char._y - 20))) {
standing = false;
walking = false;
swimming = false;
jumping = true;
shooting = false;
grav = jumpheight;
}
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
if ((((((((!jumping) && (!shooting)) && (!swimming)) && (Key.isDown(69))) && (!holding)) && (!grabbed)) && (_root.ground.hitTest(this._x, this._y + 2, true))) && (sheildable)) {
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = -1 * angle;
_root.ball._rotation = -1 * angle;
shooting = true;
standing = false;
jumpingturn = false;
walking = false;
walkturn = false;
}
if (!Key.isDown(69)) {
shooting = false;
}
if (shooting) {
this.gotoAndStop(4);
}
if ((shooting && (_root._xmouse > _root.char._x)) && (this.sheildinger._currentframe == 2)) {
this.sheildinger.gotoAndStop(1);
this.sheild.sheildforturning.gotoAndStop(1);
left = false;
right = true;
}
if ((shooting && (_root._xmouse < _root.char._x)) && (this.sheildinger._currentframe == 1)) {
this.sheildinger.gotoAndStop(2);
this.sheild.sheildforturning.gotoAndStop(2);
left = true;
right = false;
}
if (!_root.sunlight.hitTest(this._x, this._y, true)) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (!shooting) {
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.mirrorshine.gotoAndStop(1);
this.sheild.lightbeam._width = 0;
}
if (shooting) {
if (_root.sunlight.hitTest(this._x, this._y, true)) {
this.sheild.mirrorshine.gotoAndStop(2);
rot = _root.ball._rotation - 90;
_root.ball._x = this._x;
_root.ball._y = this._y - 22;
this.sheild.lightbeam._width = 0;
}
while (((((((((((((_root.sunlight.hitTest(this._x, this._y, true) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.ground.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.roof.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror1.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror2.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror3.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror4.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.reflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) && (!_root.mirror5.nonreflectiveside.hitTest(_root.ball._x, _root.ball._y, true))) {
_root.ball._y = _root.ball._y + (8 * Math.cos((Math.PI/180) * rot));
_root.ball._x = _root.ball._x - (8 * Math.sin((Math.PI/180) * rot));
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y;
y2 = _root.ball._y;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
}
x1 = this._x;
x2 = _root.ball._x;
y1 = this._y - 22;
y2 = _root.ball._y;
this.sheild.lightbeam._width = 0;
distance = Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));
this.sheild.lightbeam._width = distance - 34;
this.sheild._rotation = _root.ball._rotation;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - (this._y - 25));
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this.sheild._rotation = _root.ball._rotation;
this.sheild._rotation = _root.ball._rotation;
}
if ((right && (Key.isDown(65))) && (!grabbed)) {
right = false;
left = true;
}
if ((left && (Key.isDown(68))) && (!grabbed)) {
right = true;
left = false;
}
if (left) {
this.charstanding.gotoAndStop(2);
this.charwalking.gotoAndStop(2);
this.charswimming.gotoAndStop(2);
}
if (right) {
this.charstanding.gotoAndStop(1);
this.charwalking.gotoAndStop(1);
this.charswimming.gotoAndStop(1);
}
}
Instance of Symbol 398 MovieClip "boomerang" in Frame 27
onClipEvent (load) {
launched = false;
timer = 0;
boomspeed = 0;
rot = 0;
shootable = true;
throwspeed = 0;
switchhit = false;
thing = false;
grapspeed = 0;
rotnum = 0;
}
onClipEvent (mouseDown) {
if (((((!launched) && (shootable)) && (!_root.char.shooting)) && (!_root.char.holding)) && (!_root.char.grabbed)) {
switchhit = true;
throwspeed = 8;
this.gotoAndStop(3);
launched = true;
rotnum = 0;
}
}
onClipEvent (enterFrame) {
if ((launched && (this.hitTest(_root.char.hitbox))) && (timer > 30)) {
swtichhit = false;
this.gotoAndStop(2);
this.boomeroptions.gotoAndStop(1);
launched = false;
boomspeed = 0;
timer = 0;
}
if (!shootable) {
swtichhit = false;
this._x = _root.char._x;
this._y = _root.char._y - 25;
timer = 0;
boomspeed = 0;
launched = false;
this.boomeroptions.gotoAndStop(1);
}
if (!launched) {
this._x = _root.char._x;
this._y = _root.char._y - 25;
adjside = _root._xmouse - this._x;
oppside = -1 * (_root._ymouse - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
}
if (launched && (timer < 30)) {
rot = this._rotation + 90;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
}
if (launched && (timer > 28)) {
rot = this._rotation - 90;
adjside = _root.char._x - this._x;
oppside = -1 * ((_root.char._y - 25) - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
_y = (_y - (throwspeed * Math.cos((Math.PI/180) * rot)));
_x = (_x + (throwspeed * Math.sin((Math.PI/180) * rot)));
throwspeed = throwspeed - 0.5;
}
if (launched) {
timer = timer + 1;
}
if ((_root.ground.hitTest(this._x, this._y, true) && (launched)) && (timer < 29)) {
timer = 31;
throwspeed = -10;
}
}
Instance of Symbol 1481 MovieClip "nextRoom" in Frame 27
onClipEvent (load) {
_root.char._x = 325;
_root.char._y = 510;
}
Frame 28
_root.fadeout.gotoAndPlay(1);
_root.level = 18;
savefile.data.level = _root.level;
savefile.flush();
stop();
_root.char._x = 140.1;
_root.char._y = 355;
_root.boomerang._x = _root.char._x;
_root.boomerang._y = _root.char._y;
_root.boomerang.swtichhit = false;
_root.boomerang.gotoAndStop(2);
_root.boomerang.boomeroptions.gotoAndStop(1);
_root.boomerang.launched = false;
_root.boomerang.boomspeed = 0;
_root.boomerang.timer = 0;
Instance of Symbol 1594 MovieClip "endboss" in Frame 28
onClipEvent (load) {
_root.char._x = 160;
_root.char._y = 330;
}
Instance of Symbol 1597 MovieClip in Frame 28
onClipEvent (load) {
this.visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
if (_root.char.hitbox.hitTest(this) && (_root.endboss._currentframe < 2)) {
_root.char.grabbed = true;
_root.endboss.gotoAndStop(2);
}
}
Instance of Symbol 434 MovieClip "vcam" in Frame 28
onClipEvent (enterFrame) {
if (_root.char._x >= 347.6) {
this._x = _root.char._x;
}
}
Instance of Symbol 175 MovieClip in Frame 28
onClipEvent (enterFrame) {
this._x = _root.vcam._x;
}
onClipEvent (enterFrame) {
this._y = _root.vcam._y;
}
Frame 29
_root.fadeout.gotoAndStop(41);
_root.level = 19;
savefile.data.level = _root.level;
savefile.flush();
stop();
Instance of Symbol 1831 MovieClip "boss" in Frame 29
onClipEvent (load) {
timer = 0;
sheildgoingoff = false;
spiketimer = 0;
spikeable = true;
spikeshot = false;
teleporttimer = 0;
teleportable = false;
teleport = false;
firstteleport = true;
end = false;
this.gotoAndStop(3);
spikespawningnum = 50;
endgamemode = false;
flamemode = false;
ragesceen = false;
flametimer = 0;
flametimelimit = 50;
alive = true;
final = false;
fallingnum = 0;
}
onClipEvent (enterFrame) {
if (_root.ground._currentframe > 1) {
this._y = this._y + (1 + fallingnum);
fallingnum = fallingnum + 0.03;
this._rotation = this._rotation + 0.4;
}
if ((this.dying._currentframe > 105) && (!final)) {
final = true;
_root.ground.gotoAndPlay(2);
_root.fallingland.gotoAndPlay(2);
}
if (_root.healthbar.health < 1) {
alive = false;
_root.sunlight.gotoAndStop(1);
}
if (!alive) {
this.gotoAndStop(6);
}
if (alive) {
if (_root.char.sheild.lightbeam.hitTest(this)) {
_root.healthbar.health = _root.healthbar.health - 0.15;
}
if (firstteleport && (!end)) {
this._x = 608;
this.teleporting.gotoAndPlay(82);
end = true;
}
if ((this.teleporting._currentframe > 116) && (firstteleport)) {
this.gotoAndStop(1);
teleport = false;
teleporttimer = 0;
spiketimer = 0;
firstteleport = false;
_root.chandelierone.chandeleirinside.gem.done = true;
}
if (!firstteleport) {
if (_root.char.hitbox.hitTest(this.sheildbubble.hitbox) && (_root.char._x > 350)) {
_root.char._x = _root.char._x - 5;
}
if (_root.char.hitbox.hitTest(this.sheildbubble.hitbox) && (_root.char._x < 350)) {
_root.char._x = _root.char._x + 5;
}
if (_root.boomerang.hitTest(this.sheildbubble) && (!sheildgoingoff)) {
this.sheildbubble.gotoAndPlay(2);
sheildgoingoff = true;
_root.boomerang.timer = 31;
_root.boomerang.throwspeed = -10;
}
if (this.sheildbubble._currentframe < 2) {
sheildgoingoff = false;
}
if ((_root.sunlight._currentframe > 1) && (flamemode)) {
flametimer++;
}
if ((flametimer > flametimelimit) && (this._currentframe == 1)) {
this.gotoAndStop(5);
}
if (this.shootingfire._currentframe == 10) {
_root.code.flamenum++;
_root.fireball.duplicateMovieClip("fireball" + _root.code.flamenum, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y - 40});
_root["fireball" + _root.code.flamenum]._rotation = 0;
flametimer = 0;
this.shootingfire.gotoAndPlay(11);
}
if (this.shootingfire._currentframe == 20) {
this.gotoAndStop(1);
}
if (((ragesceen && (flamemode)) && (this._x > 350)) && (this._currentframe == 1)) {
_root.boss.gotoAndStop(4);
}
if (this.raging._currentframe > 94) {
ragesceen = false;
this.gotoAndStop(1);
}
if ((spikeable && (this._currentframe < 2)) && (!flamemode)) {
spiketimer++;
}
if ((spiketimer > spikespawningnum) && (this._currentframe < 2)) {
this.gotoAndStop(2);
}
if ((((this._currentframe == 2) && (!spikeshot)) && (this._x > 350)) && (this.summonspikes._currentframe > 48)) {
_root.code.spikenum++;
_root.spikeleft.duplicateMovieClip("spike" + _root.code.spikenum, _root.getNextHighestDepth(), {_x:this._x - 40, _y:this._y - 69});
spikeshot = true;
}
if ((((this._currentframe == 2) && (!spikeshot)) && (this._x < 350)) && (this.summonspikes._currentframe > 48)) {
_root.code.spikenum++;
_root.spikeright.duplicateMovieClip("spike" + _root.code.spikenum, _root.getNextHighestDepth(), {_x:this._x + 40, _y:this._y - 69});
spikeshot = true;
}
if (this.summonspikes._currentframe > 65) {
this.gotoAndStop(1);
spiketimer = 0;
spikeshot = false;
}
if (teleportable && (this._currentframe == 1)) {
spiketimer = 0;
teleport = true;
this.gotoAndStop(3);
}
if ((this.teleporting._currentframe == 81) && (this._x > 350)) {
this._x = 50;
this.teleporting.gotoAndPlay(82);
this._xscale = -100;
}
if ((this.teleporting._currentframe == 81) && (this._x < 350)) {
this._x = 608;
this.teleporting.gotoAndPlay(82);
this._xscale = 100;
}
if (this.teleporting._currentframe > 116) {
this.gotoAndStop(1);
teleport = false;
teleporttimer = 0;
spiketimer = 0;
teleportable = false;
_root.chandeliertwo.chandeleirinside.gem.shining = true;
}
}
}
}
Instance of Symbol 1842 MovieClip "spikeleft" in Frame 29
onClipEvent (load) {
i = 0;
duplicated = false;
up = false;
moo = _name;
}
onClipEvent (enterFrame) {
if (_name != "spikeleft") {
if (this.hitbox.hitTest(_root.char.hitbox)) {
_root.fadeout.gotoAndPlay(1);
_root.healthbar.faders.gotoAndPlay(1);
_root.healthbar.health = 100;
_root.healthbar.healthmeter._width = 0;
_root.boss._x = 872.9;
_root.boss.timer = 0;
_root.boss.sheildgoingoff = false;
_root.boss.spiketimer = 0;
_root.boss.spikeable = true;
_root.boss.spikeshot = false;
_root.boss.teleporttimer = 0;
_root.boss.teleportable = false;
_root.boss.teleport = false;
_root.boss.firstteleport = true;
_root.boss.end = false;
_root.boss.spikespawningnum = 50;
_root.boss.endgamemode = false;
_root.boss.gotoAndStop(3);
_root.chandelierone.gotoAndStop(1);
_root.chandelierone.fallen = false;
_root.chandelierone.chandeleirinside.gem.shining = false;
_root.chandelierone.chandeleirinside.gem.gotoAndStop(1);
_root.chandelierone.chandeleirinside.gem.broken = false;
_root.chandelierone.chandeleirinside.gem.done = false;
_root.chandelierone.gotoAndStop(1);
_root.chandeliertwo.gotoAndStop(1);
_root.chandeliertwo.fallen = false;
_root.chandeliertwo.chandeleirinside.gem.shining = false;
_root.chandeliertwo.chandeleirinside.gem.gotoAndStop(1);
_root.chandeliertwo.chandeleirinside.gem.broken = false;
_root.chandeliertwo.chandeleirinside.gem.done = false;
_root.chandeliertwo.gotoAndStop(1);
_root.char._x = 350;
_root.char._y = 355;
_root.boomerang._x = _root.char._x;
_root.boomerang._y = _root.char._y;
_root.boomerang.swtichhit = false;
_root.boomerang.gotoAndStop(2);
_root.boomerang.boomeroptions.gotoAndStop(1);
_root.boomerang.launched = false;
_root.boomerang.boomspeed = 0;
_root.boomerang.timer = 0;
_root.boss._xscale = 100;
i = 1;
while (i <= 35) {
if (_root["spike" + i].moo != moo) {
removeMovieClip(_root["spike" + i]);
}
i++;
}
removeMovieClip(this);
}
if (_root.ground.hitTest(this._x, this._y, true)) {
removeMovieClip(this);
}
if (!up) {
this.gotoAndPlay(2);
up = true;
}
if ((this._currentframe > 3) && (!duplicated)) {
duplicated = true;
_root.code.spikenum++;
_root.spikeleft.duplicateMovieClip("spike" + _root.code.spikenum, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
}
if (this._currentframe > 21) {
removeMovieClip(this);
}
}
}
Instance of Symbol 1844 MovieClip "code" in Frame 29
onClipEvent (load) {
spikenum = 1;
flamenum = 40;
done = false;
}
onClipEvent (enterFrame) {
if (spikenum > 29) {
spikenum = 1;
}
if (flamenum > 70) {
flamenum = 41;
}
if ((_root.ground._currentframe > 79) && (!done)) {
_root.boomerang._x = _root.char._x;
_root.boomerang._y = _root.char._y;
_root.boomerang.swtichhit = false;
_root.boomerang.gotoAndStop(2);
_root.boomerang.boomeroptions.gotoAndStop(1);
_root.boomerang.launched = false;
_root.boomerang.boomspeed = 0;
_root.boomerang.timer = 0;
done = true;
_root.nextRoom.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
if (_root.deathcount == 0) {
var medal_name = "I don't need lives!";
com.newgrounds.API.unlockMedal(medal_name);
_root.deathcount = 5;
}
}
Instance of Symbol 1842 MovieClip "spikeright" in Frame 29
onClipEvent (load) {
i = 0;
duplicated = false;
up = false;
moo = _name;
}
onClipEvent (enterFrame) {
if (_name != "spikeright") {
if (this.hitbox.hitTest(_root.char.hitbox)) {
_root.fadeout.gotoAndPlay(1);
_root.healthbar.faders.gotoAndPlay(1);
_root.healthbar.health = 100;
_root.healthbar.healthmeter._width = 0;
_root.boss._x = 872.9;
_root.boss.timer = 0;
_root.boss.sheildgoingoff = false;
_root.boss.spiketimer = 0;
_root.boss.spikeable = true;
_root.boss.spikeshot = false;
_root.boss.teleporttimer = 0;
_root.boss.teleportable = false;
_root.boss.teleport = false;
_root.boss.firstteleport = true;
_root.boss.endgamemode = false;
_root.boss.end = false;
_root.boss.spikespawningnum = 50;
_root.boss.gotoAndStop(3);
_root.chandelierone.gotoAndStop(1);
_root.chandelierone.fallen = false;
_root.chandelierone.chandeleirinside.gem.shining = false;
_root.chandelierone.chandeleirinside.gem.gotoAndStop(1);
_root.chandelierone.chandeleirinside.gem.broken = false;
_root.chandelierone.chandeleirinside.gem.done = false;
_root.chandelierone.gotoAndStop(1);
_root.chandeliertwo.gotoAndStop(1);
_root.chandeliertwo.fallen = false;
_root.chandeliertwo.chandeleirinside.gem.shining = false;
_root.chandeliertwo.chandeleirinside.gem.gotoAndStop(1);
_root.chandeliertwo.chandeleirinside.gem.broken = false;
_root.chandeliertwo.chandeleirinside.gem.done = false;
_root.chandeliertwo.gotoAndStop(1);
_root.char._x = 350;
_root.char._y = 355;
_root.boomerang._x = _root.char._x;
_root.boomerang._y = _root.char._y;
_root.boomerang.swtichhit = false;
_root.boomerang.gotoAndStop(2);
_root.boomerang.boomeroptions.gotoAndStop(1);
_root.boomerang.launched = false;
_root.boomerang.boomspeed = 0;
_root.boomerang.timer = 0;
_root.boss._xscale = 100;
i = 1;
while (i <= 35) {
if (_root["spike" + i].moo != moo) {
removeMovieClip(_root["spike" + i]);
}
i++;
}
removeMovieClip(this);
}
if (_root.ground.hitTest(this._x, this._y, true)) {
removeMovieClip(this);
}
if (!up) {
this.gotoAndPlay(2);
up = true;
}
if ((this._currentframe > 3) && (!duplicated)) {
duplicated = true;
_root.code.spikenum++;
_root.spikeright.duplicateMovieClip("spike" + _root.code.spikenum, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
}
if (this._currentframe > 21) {
removeMovieClip(this);
}
}
}
Instance of Symbol 1948 MovieClip "chandelierone" in Frame 29
onClipEvent (load) {
fallen = false;
}
onClipEvent (enterFrame) {
if ((this.falling._currentframe > 19) && (!fallen)) {
_root.boss.teleportable = true;
_root.healthbar.health = 75;
fallen = true;
}
}
Instance of Symbol 1954 MovieClip "healthbar" in Frame 29
onClipEvent (load) {
health = 100;
this.healthmeter._width = 0;
}
onClipEvent (enterFrame) {
if (health > this.healthmeter._width) {
this.healthmeter._width++;
}
if (health < this.healthmeter._width) {
this.healthmeter._width--;
}
}
Instance of Symbol 1973 MovieClip "chandeliertwo" in Frame 29
onClipEvent (load) {
fallen = false;
}
onClipEvent (enterFrame) {
if ((this.falling._currentframe > 19) && (!fallen)) {
_root.boss.teleportable = true;
_root.healthbar.health = 50;
_root.boss.spikespawningnum = 0;
_root.boss.flamemode = true;
_root.boss.spiketimer = 0;
_root.boss.ragesceen = true;
fallen = true;
}
}
Instance of Symbol 1755 MovieClip "fireball" in Frame 29
onClipEvent (load) {
speed = 7;
rot = this._rotation + 90;
done = false;
moo = _name;
}
onClipEvent (enterFrame) {
rot = this._rotation + 90;
if (_name != "fireball") {
if (!done) {
this._y = this._y + (speed * Math.cos((Math.PI/180) * rot));
this._x = this._x - (speed * Math.sin((Math.PI/180) * rot));
}
if (_root.ground.hitTest(this._x, this._y, true) && (!done)) {
this.gotoAndStop(2);
done = true;
}
if (this.expload._currentframe > 7) {
removeMovieClip(this);
}
if (this.hitTest(_root.char._x, _root.char._y - 40, true) && (this._currentframe < 2)) {
_root.fadeout.gotoAndPlay(1);
_root.rubble.gotoAndStop(1);
_root.sunlight.lighted = false;
_root.sunlight.gotoAndStop(1);
_root.boss.alive = true;
_root.boss.endgamemode = false;
_root.boss.flamemode = false;
_root.boss.ragesceen = false;
_root.boss.flametimer = 0;
_root.boss.flametimelimit = 50;
_root.healthbar.faders.gotoAndPlay(1);
_root.healthbar.health = 100;
_root.healthbar.healthmeter._width = 0;
_root.boss._x = 872.9;
_root.boss.timer = 0;
_root.boss.sheildgoingoff = false;
_root.boss.spiketimer = 0;
_root.boss.spikeable = true;
_root.boss.spikeshot = false;
_root.boss.teleporttimer = 0;
_root.boss.teleportable = false;
_root.boss.teleport = false;
_root.boss.firstteleport = true;
_root.boss.end = false;
_root.boss.spikespawningnum = 50;
_root.boss.endgamemode = false;
_root.boss.gotoAndStop(3);
_root.chandelierone.gotoAndStop(1);
_root.chandelierone.fallen = false;
_root.chandelierone.chandeleirinside.gem.shining = false;
_root.chandelierone.chandeleirinside.gem.gotoAndStop(1);
_root.chandelierone.chandeleirinside.gem.broken = false;
_root.chandelierone.chandeleirinside.gem.done = false;
_root.chandelierone.gotoAndStop(1);
_root.chandeliertwo.gotoAndStop(1);
_root.chandeliertwo.fallen = false;
_root.chandeliertwo.chandeleirinside.gem.shining = false;
_root.chandeliertwo.chandeleirinside.gem.gotoAndStop(1);
_root.chandeliertwo.chandeleirinside.gem.broken = false;
_root.chandeliertwo.chandeleirinside.gem.done = false;
_root.chandeliertwo.gotoAndStop(1);
_root.char._x = 350;
_root.char._y = 355;
_root.boomerang._x = _root.char._x;
_root.boomerang._y = _root.char._y;
_root.boomerang.swtichhit = false;
_root.boomerang.gotoAndStop(2);
_root.boomerang.boomeroptions.gotoAndStop(1);
_root.boomerang.launched = false;
_root.boomerang.boomspeed = 0;
_root.boomerang.timer = 0;
_root.boss._xscale = 100;
i = 39;
while (i <= 71) {
if (_root["fireball" + i].moo != moo) {
removeMovieClip(_root["fireball" + i]);
}
i++;
}
removeMovieClip(this);
}
}
}
Instance of Symbol 2023 MovieClip "sunlight" in Frame 29
onClipEvent (load) {
lighted = false;
}
onClipEvent (enterFrame) {
if ((!lighted) && (_root.rubble._currentframe > 10)) {
this.gotoAndPlay(2);
lighted = true;
}
}
Frame 30
_root.fadeout.gotoAndPlay(1);
_root.level = 20;
savefile.data.level = _root.level;
savefile.flush();
_root.footpuffnew._x = -500;
stop();
Instance of Symbol 2032 MovieClip in Frame 30
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
timer++;
this._y = this._y + 0.4;
this._width = this._width + 0.2;
this._height = this._height + 0.2;
if (timer > 200) {
this._y = this._y + 20;
_root.haystack.gotoAndPlay(2);
timer = 0;
_root.bglights.gotoAndStop(2);
}
if ((_root.haystack._currentframe > 1) && (this._y < 700)) {
this._y = this._y + 10;
}
}
Instance of Symbol 2046 MovieClip "haystack" in Frame 30
onClipEvent (enterFrame) {
if (this._currentframe > 107) {
_root.nextFrame();
}
}
Frame 31
_root.fadeout.gotoAndPlay(1);
_root.level = 21;
savefile.data.level = _root.level;
savefile.flush();
stop();
Instance of Symbol 2122 MovieClip "everything" in Frame 31
onClipEvent (load) {
timer = 0;
}
onClipEvent (enterFrame) {
if ((this.blob._currentframe > 142) && (timer < 600)) {
timer++;
}
if ((this.blob._currentframe > 142) && (timer < 500)) {
this._y = this._y + 8;
_root.finaltext._alpha = _root.finaltext._alpha + 1;
}
}
Instance of Symbol 2136 MovieClip "finaltext" in Frame 31
onClipEvent (load) {
this._alpha = 0;
}
Symbol 9 MovieClip Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (1028 % 511) * true);
return(\x03);
}
var \x01 = (304 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 11 MovieClip Frame 10
stop();
Symbol 13 MovieClip Frame 37
_parent.setGotoFrame("done");
stop();
Symbol 25 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (1109 % 511) * true);
return(\x03);
}
var \x01 = (29 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 25 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 2
medal.attachIcon(icon);
Symbol 25 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 10
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (1760 % 511) * true);
return(\x03);
}
var \x01 = (538 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 25 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 31 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (1201 % 511) * true);
return(\x03);
}
var \x01 = (725 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 31 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 10
stop();
Symbol 31 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 34 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 1
!!!ERROR
Symbol 34 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 10
stop();
Symbol 34 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 55 MovieClip [NewgroundsAPIAsset_big_popup_background] Frame 1
!!!ERROR
Symbol 59 Button
on (release) {
!!!ERROR
Symbol 65 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 67 MovieClip [NewgroundsAsset_New_Version_Available] Frame 1
!!!ERROR
Symbol 68 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 72 MovieClip [NewgroundsAsset_Illegal_Host] Frame 1
!!!ERROR
Symbol 73 MovieClip [API Connector (NewgroundsAPI)] Frame 1
#initclip 24
Object.registerClass("API Connector (NewgroundsAPI)", com.newgrounds.components.APIConnector);
#endinitclip
Symbol 73 MovieClip [API Connector (NewgroundsAPI)] Frame 20
_visible = false;
Symbol 120 MovieClip Frame 40
stop();
Symbol 127 Button
on (release) {
startMovie();
}
Symbol 128 MovieClip [Preloader Bar (NewgroundsAPI)] Frame 1
#initclip 25
Object.registerClass("Preloader Bar (NewgroundsAPI)", com.newgrounds.components.PreloaderBar);
#endinitclip
Symbol 134 Button
on (release) {
com.newgrounds.API.loadNewgrounds();
}
Symbol 139 MovieClip Frame 1
!!!ERROR
Symbol 140 MovieClip Frame 11
gotoAndPlay (1);
Symbol 141 MovieClip [Flash Ad (NewgroundsAPI)] Frame 1
#initclip 26
Object.registerClass("Flash Ad (NewgroundsAPI)", com.newgrounds.components.FlashAd);
#endinitclip
Symbol 75 MovieClip [__Packages.com.newgrounds.API] Frame 0
!!!ERROR
Symbol 76 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
!!!ERROR
Symbol 77 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
!!!ERROR
Symbol 78 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
!!!ERROR
Symbol 81 MovieClip [__Packages.com.newgrounds.SaveGroupQuery] Frame 0
!!!ERROR
Symbol 83 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
!!!ERROR
Symbol 82 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
!!!ERROR
Symbol 92 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
!!!ERROR
Symbol 80 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
!!!ERROR
Symbol 88 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
!!!ERROR
Symbol 74 MovieClip [__Packages.com.newgrounds.APIError] Frame 0
!!!ERROR
Symbol 1 MovieClip [__Packages.com.newgrounds.components.APIConnector] Frame 0
!!!ERROR
Symbol 79 MovieClip [__Packages.com.newgrounds.ValidationTools] Frame 0
!!!ERROR
Symbol 84 MovieClip [__Packages.com.newgrounds.encoders.SerialXML] Frame 0
!!!ERROR
Symbol 85 MovieClip [__Packages.com.newgrounds.encoders.LZW2] Frame 0
!!!ERROR
Symbol 86 MovieClip [__Packages.com.newgrounds.encoders.LZW] Frame 0
!!!ERROR
Symbol 87 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
!!!ERROR
Symbol 89 MovieClip [__Packages.com.newgrounds.Score] Frame 0
!!!ERROR
Symbol 90 MovieClip [__Packages.com.newgrounds.encoders.RC4] Frame 0
!!!ERROR
Symbol 91 MovieClip [__Packages.com.newgrounds.encoders.JSON] Frame 0
!!!ERROR
Symbol 93 MovieClip [__Packages.com.newgrounds.encoders.MD5] Frame 0
!!!ERROR
Symbol 97 MovieClip [__Packages.com.newgrounds.components.PreloaderBar] Frame 0
!!!ERROR
Symbol 129 MovieClip [__Packages.com.newgrounds.components.FlashAd] Frame 0
!!!ERROR
Symbol 183 MovieClip Frame 225
_root.nextFrame();
Symbol 195 Button
on (press) {
var savefile = SharedObject.getLocal("ablobstale2");
_root.level = savefile.data.level;
}
on (press) {
if (_root.level == undefined) {
_root.conbutton._alpha = 50;
}
if (_root.level == 0) {
_root.conbutton._alpha = 50;
}
if (_root.level == 1) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("one");
}
if (_root.level == 2) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("two");
}
if (_root.level == 3) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("three");
}
if (_root.level == 4) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("four");
}
if (_root.level == 5) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("five");
}
if (_root.level == 6) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("six");
}
if (_root.level == 7) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("seven");
}
if (_root.level == 8) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("eight");
}
if (_root.level == 9) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("nine");
}
if (_root.level == 10) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("ten");
}
if (_root.level == 11) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("eleven");
}
if (_root.level == 12) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("twelve");
}
if (_root.level == 13) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("thirteen");
}
if (_root.level == 14) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("fourteen");
}
if (_root.level == 15) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("fifteen");
}
if (_root.level == 16) {
stopAllSounds();
var medal_name = "Can't get enough!";
com.newgrounds.API.unlockMedal(medal_name);
_root.gotoAndStop("sixteen");
}
}
Symbol 197 Button
on (release) {
nextFrame();
}
Symbol 205 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 209 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 218 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/509932", "_blank");
}
Symbol 231 Button
on (release) {
if (_root.click == true) {
_root.fade.gotoAndPlay(85);
}
}
Symbol 235 Button
on (release) {
_root.gotoAndStop("maingame");
}
Symbol 252 Button
on (release) {
_root.gotoAndStop("maingame");
}
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 2
stop();
Symbol 253 MovieClip Frame 3
stop();
Symbol 253 MovieClip Frame 4
stop();
Symbol 253 MovieClip Frame 5
stop();
Symbol 257 MovieClip Frame 81
stop();
_root.click = true;
Symbol 257 MovieClip Frame 85
_root.click = false;
Symbol 257 MovieClip Frame 101
_root.Intro_story.nextFrame();
Symbol 257 MovieClip Frame 119
stop();
_root.click = true;
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 2
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 2
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 2
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 1
stop();
Instance of Symbol 280 MovieClip "hitbox" in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 356 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 3
stop();
Symbol 356 MovieClip Frame 4
stop();
Instance of Symbol 358 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 2
stop();
Symbol 398 MovieClip Frame 1
stop();
Instance of Symbol 395 MovieClip in Symbol 398 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 398 MovieClip Frame 2
stop();
Instance of Symbol 397 MovieClip in Symbol 398 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 398 MovieClip Frame 3
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 1
stop();
Instance of Symbol 428 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char.hitbox)) {
_root.nextRoom.gotoAndPlay(2);
}
}
Symbol 429 MovieClip Frame 32
_root.nextFrame();
Symbol 434 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;
}
parentColor.setTransform(camColor.getTransform());
this._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;
Symbol 435 MovieClip Frame 41
stop();
Symbol 464 MovieClip Frame 1
stop();
Instance of Symbol 463 MovieClip in Symbol 464 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.prevRoom.gotoAndPlay(2);
}
}
Symbol 464 MovieClip Frame 32
_root.prevFrame();
Symbol 467 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 16
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 481 MovieClip Frame 1
stop();
Instance of Symbol 478 MovieClip in Symbol 481 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.floor.cliff.play();
_root.ground.nextFrame();
}
}
Symbol 481 MovieClip Frame 16
stop();
Symbol 487 Button
on (release) {
nextFrame();
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 2
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 16
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
stop();
Instance of Symbol 578 MovieClip in Symbol 579 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.deathcount == 1) {
var medal_name = "First Death";
com.newgrounds.API.unlockMedal(medal_name);
_root.deathcount = 2;
}
}
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 16
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 10
stop();
Symbol 620 MovieClip Frame 1
stop();
stop();
Symbol 620 MovieClip Frame 30
stop();
Symbol 624 MovieClip Frame 10
stop();
Symbol 626 MovieClip Frame 1
stop();
Instance of Symbol 624 MovieClip in Symbol 626 MovieClip Frame 2
onClipEvent (load) {
xeyes = this._x;
yeyes = this._y + 40;
}
onClipEvent (enterFrame) {
if (_root.char.hitTest(this)) {
this.speechbubble.nextFrame();
} else {
this.speechbubble.prevFrame();
}
if (((this._x + this.eyes._x) < _root.char._x) && ((xeyes + 20) >= (this._x + this.eyes._x))) {
this.eyes._x++;
}
if (((this._x + this.eyes._x) > _root.char._x) && ((xeyes - 20) <= (this._x + this.eyes._x))) {
this.eyes._x--;
}
if ((((this._y + 40) + this.eyes._y) < (_root.char._y + 20)) && ((yeyes + 40) >= (this._y + (this.eyes._y + 40)))) {
this.eyes._y++;
}
if ((((this._y + 40) + this.eyes._y) > (_root.char._y + 20)) && (yeyes <= (this._y + (this.eyes._y + 40)))) {
this.eyes._y--;
}
}
Symbol 626 MovieClip Frame 1454
stop();
Instance of Symbol 629 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.death = true;
_root.deathcount = _root.deathcount + 1;
_root.prevFrame();
}
}
Symbol 634 MovieClip Frame 1
fpstext++;
Symbol 634 MovieClip Frame 2
gotoAndPlay (1);
Symbol 635 MovieClip Frame 1
tup = 1;
Symbol 635 MovieClip Frame 2
time = int(getTimer() / 1000);
timer = time;
if (timer == tup) {
tup++;
fps.fps = fps.fpstext;
fps.fpstext = 0;
}
tup = time + 1;
Symbol 635 MovieClip Frame 3
time = int(getTimer() / 1000);
timer = time;
if (timer == tup) {
tup++;
fps.fps = fps.fpstext;
fps.fpstext = 0;
}
gotoAndPlay (2);
tup = time + 1;
Symbol 649 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 413
stop();
Symbol 649 MovieClip Frame 430
stop();
Symbol 666 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 2
stop();
Symbol 669 MovieClip Frame 1
stop();
Symbol 669 MovieClip Frame 2
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 2
stop();
Symbol 675 MovieClip Frame 1
stop();
Symbol 675 MovieClip Frame 2
stop();
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 2
stop();
Symbol 683 MovieClip Frame 1
stop();
Instance of Symbol 681 MovieClip in Symbol 683 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
if ((this.hitTest(_root.char) && (_root.ground._currentframe > 2)) && (_root.ground._currentframe < 90)) {
_root.char._x = _root.char._x + 0.7;
}
if ((this.hitTest(_root.char) && (_root.ground._currentframe > 89)) && (_root.ground._currentframe < 140)) {
_root.char._x = _root.char._x + 2;
}
}
Symbol 683 MovieClip Frame 2
stop();
Symbol 686 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 2
stop();
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 2
stop();
Symbol 697 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 465
stop();
Symbol 712 MovieClip Frame 1
stop();
Instance of Symbol 711 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 16
stop();
Symbol 754 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 2
stop();
Symbol 793 MovieClip Frame 1
this.gotoAndStop;
Symbol 796 MovieClip Frame 1
this.gotoAndPlay(25);
Symbol 796 MovieClip Frame 62
this.gotoAndPlay(2);
Symbol 798 MovieClip Frame 1
this.gotoAndPlay(55);
Symbol 798 MovieClip Frame 61
this.gotoAndPlay(2);
Symbol 805 MovieClip Frame 1
stop();
Symbol 805 MovieClip Frame 16
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 2
_root.ground.nextFrame();
Symbol 814 MovieClip Frame 21
stop();
Symbol 819 MovieClip Frame 1
stop();
Symbol 819 MovieClip Frame 2
_root.fairy._x = _root.fairy._x - 5;
Symbol 819 MovieClip Frame 3
_root.fairy._x = _root.fairy._x - 5;
Symbol 819 MovieClip Frame 4
_root.fairy._x = _root.fairy._x - 5;
Symbol 819 MovieClip Frame 5
_root.fairy._x = _root.fairy._x - 5;
Symbol 819 MovieClip Frame 6
_root.binhitright = false;
Symbol 820 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 2
_root.fairy._x = _root.fairy._x + 5;
Symbol 820 MovieClip Frame 3
_root.fairy._x = _root.fairy._x + 5;
Symbol 820 MovieClip Frame 4
_root.fairy._x = _root.fairy._x + 5;
Symbol 820 MovieClip Frame 5
_root.fairy._x = _root.fairy._x + 5;
Symbol 820 MovieClip Frame 6
_root.binhitleft = false;
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 46
stop();
Symbol 828 MovieClip Frame 86
stop();
Symbol 828 MovieClip Frame 127
stop();
Symbol 828 MovieClip Frame 134
_root.block.play();
Symbol 828 MovieClip Frame 155
gotoAndPlay (135);
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 26
stop();
Symbol 857 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 12
stop();
Symbol 860 MovieClip Frame 1
stop();
Instance of Symbol 857 MovieClip "vines" in Symbol 860 MovieClip Frame 1
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.boomerang._x, _root.boomerang._y, true) && (_root.boomerang._currentframe > 2)) && (!hit)) {
this.gotoAndPlay(2);
_root.bridge.bridgestuck.stop();
hit = true;
}
if (this._currentframe == 12) {
_root.bridge.gotoAndStop(2);
}
}
Symbol 862 MovieClip Frame 1
stop();
Symbol 862 MovieClip Frame 25
stop();
Symbol 863 MovieClip Frame 1
stop();
Symbol 863 MovieClip Frame 2
stop();
Symbol 870 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 34
stop();
Symbol 876 MovieClip Frame 1
stop();
Symbol 876 MovieClip Frame 16
stop();
Symbol 910 MovieClip Frame 1
stop();
Symbol 920 MovieClip Frame 1
stop();
Symbol 920 MovieClip Frame 2
stop();
Symbol 924 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 16
stop();
Symbol 926 MovieClip Frame 1
stop();
Symbol 933 MovieClip Frame 1
stop();
Symbol 933 MovieClip Frame 20
stop();
Symbol 998 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 2
stop();
Symbol 1013 MovieClip Frame 1
stop();
Symbol 1013 MovieClip Frame 2
stop();
Symbol 1013 MovieClip Frame 3
stop();
_root.gotshield = true;
Instance of Symbol 1008 MovieClip "sheildshadow" in Symbol 1014 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.cover.blocks.sheild._currentframe == 3) {
this._visible = false;
}
}
Symbol 1019 MovieClip Frame 1
stop();
Symbol 1019 MovieClip Frame 44
stop();
Symbol 1139 MovieClip Frame 1
stop();
Symbol 1139 MovieClip Frame 122
stop();
Symbol 1145 MovieClip Frame 1
stop();
Symbol 1145 MovieClip Frame 2
stop();
Symbol 1147 MovieClip Frame 1
stop();
Symbol 1147 MovieClip Frame 2
stop();
Symbol 1149 MovieClip Frame 1
stop();
Symbol 1149 MovieClip Frame 2
stop();
Symbol 1151 MovieClip Frame 1
stop();
Symbol 1151 MovieClip Frame 2
stop();
Symbol 1153 MovieClip Frame 1
stop();
Symbol 1153 MovieClip Frame 2
stop();
Symbol 1155 MovieClip Frame 1
stop();
Symbol 1155 MovieClip Frame 2
stop();
Symbol 1157 MovieClip Frame 1
stop();
Symbol 1157 MovieClip Frame 2
stop();
Symbol 1159 MovieClip Frame 1
stop();
Symbol 1159 MovieClip Frame 2
stop();
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1161 MovieClip Frame 2
stop();
Symbol 1163 MovieClip Frame 1
stop();
Symbol 1163 MovieClip Frame 2
stop();
Symbol 1165 MovieClip Frame 1
stop();
Symbol 1165 MovieClip Frame 2
stop();
Symbol 1167 MovieClip Frame 1
stop();
Symbol 1167 MovieClip Frame 2
stop();
Symbol 1169 MovieClip Frame 1
stop();
Symbol 1169 MovieClip Frame 2
stop();
Symbol 1171 MovieClip Frame 1
stop();
Symbol 1171 MovieClip Frame 2
stop();
Symbol 1173 MovieClip Frame 1
stop();
Symbol 1173 MovieClip Frame 2
stop();
Symbol 1175 MovieClip Frame 1
stop();
Symbol 1175 MovieClip Frame 2
stop();
Symbol 1177 MovieClip Frame 1
stop();
Symbol 1177 MovieClip Frame 2
stop();
Symbol 1179 MovieClip Frame 1
stop();
Symbol 1179 MovieClip Frame 2
stop();
Symbol 1181 MovieClip Frame 1
stop();
Symbol 1181 MovieClip Frame 2
stop();
Symbol 1183 MovieClip Frame 1
stop();
Symbol 1183 MovieClip Frame 2
stop();
Symbol 1185 MovieClip Frame 1
stop();
Symbol 1185 MovieClip Frame 2
stop();
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1187 MovieClip Frame 2
stop();
Symbol 1189 MovieClip Frame 1
stop();
Symbol 1189 MovieClip Frame 2
stop();
Symbol 1191 MovieClip Frame 1
stop();
Symbol 1191 MovieClip Frame 2
stop();
Symbol 1193 MovieClip Frame 1
stop();
Symbol 1193 MovieClip Frame 2
stop();
Symbol 1197 MovieClip Frame 1
stop();
Instance of Symbol 1195 MovieClip in Symbol 1197 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1197 MovieClip Frame 2
stop();
Symbol 1200 MovieClip Frame 1
stop();
Symbol 1200 MovieClip Frame 2
stop();
Symbol 1206 MovieClip Frame 1
stop();
Symbol 1206 MovieClip Frame 20
stop();
Symbol 1215 MovieClip Frame 1
stop();
Instance of Symbol 1206 MovieClip "button" in Symbol 1215 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.char._x, _root.char._y + 4, true)) {
this.nextFrame();
_root.roof.head.nextFrame();
} else {
this.prevFrame();
_root.roof.head.prevFrame();
}
}
Instance of Symbol 1209 MovieClip in Symbol 1215 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1215 MovieClip Frame 2
stop();
Instance of Symbol 1214 MovieClip in Symbol 1215 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1219 MovieClip Frame 1
stop();
Symbol 1224 MovieClip Frame 1
stop();
Instance of Symbol 1219 MovieClip "headhit" in Symbol 1224 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
done = false;
}
onClipEvent (enterFrame) {
this._visible = false;
if (!done) {
this._visible = false;
}
if ((_root.ball.hitTest(this) && (!done)) && (_root.roof.head._currentframe > 9)) {
done = true;
_root.sparkles.gotoAndPlay(2);
}
}
Symbol 1224 MovieClip Frame 20
stop();
Instance of Symbol 1224 MovieClip "head" in Symbol 1225 MovieClip Frame 1
onClipEvent (load) {
done = false;
}
Symbol 1254 MovieClip Frame 1
stop();
Symbol 1254 MovieClip Frame 29
stop();
_root.wall2.opened = true;
_root.ground.gotoAndStop(2);
Symbol 1258 MovieClip Frame 1
stop();
Symbol 1258 MovieClip Frame 16
stop();
Symbol 1260 MovieClip Frame 1
stop();
Symbol 1271 MovieClip Frame 1
stop();
Symbol 1271 MovieClip Frame 61
stop();
Symbol 1285 MovieClip Frame 1
stop();
Symbol 1285 MovieClip Frame 16
stop();
Symbol 1287 MovieClip Frame 1
stop();
Symbol 1302 MovieClip Frame 1
stop();
Instance of Symbol 1298 MovieClip in Symbol 1302 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1302 MovieClip Frame 2
stop();
Instance of Symbol 1296 MovieClip "nonreflectiveside" in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1305 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1307 MovieClip Frame 1
stop();
Instance of Symbol 1219 MovieClip in Symbol 1307 MovieClip Frame 10
onClipEvent (load) {
this._visible = false;
hit = false;
}
onClipEvent (enterFrame) {
this._visible = false;
if (_root.mirrorball5.hitTest(this) && (!hit)) {
hit = true;
_root.sparkle.gotoAndPlay(2);
_root.char.shooting = false;
_root.char.grabbed = true;
_root.char.standing = false;
_root.char.walking = false;
_root.char.sheilding = false;
_root.char.throwing = false;
_root.char.sheildable = false;
_root.char.xspeed = 0;
_root.char.walkturn = false;
_root.char.jumpingturn = false;
_root.char.jumping = false;
_root.char.landing = false;
}
}
Symbol 1307 MovieClip Frame 20
stop();
Instance of Symbol 1307 MovieClip in Symbol 1308 MovieClip Frame 1
onClipEvent (load) {
hittable = false;
}
onClipEvent (enterFrame) {
if (((((_root.mirror1.hit && (_root.mirror2.hit)) && (_root.mirror3.hit)) && (_root.mirror4.hit)) && (_root.mirror5.hit)) && (!hittable)) {
hittable = true;
this.gotoAndPlay(2);
}
}
Symbol 1319 MovieClip Frame 1
stop();
Instance of Symbol 843 MovieClip "evevatorcog" in Symbol 1319 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.back._currentframe < 60) {
this._rotation = this._rotation + 5;
}
}
Symbol 1319 MovieClip Frame 60
stop();
Symbol 1446 MovieClip Frame 1
stop();
Symbol 1446 MovieClip Frame 125
stop();
Symbol 1462 MovieClip Frame 1
stop();
Symbol 1462 MovieClip Frame 60
stop();
Symbol 1471 MovieClip Frame 1
stop();
Symbol 1471 MovieClip Frame 2
stop();
Instance of Symbol 1475 MovieClip "evevatorcogsdsd" in Symbol 1476 MovieClip Frame 1
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (!done) {
this._rotation = this._rotation + 5;
}
}
Symbol 1478 MovieClip Frame 1
stop();
Symbol 1481 MovieClip Frame 1
stop();
Symbol 1481 MovieClip Frame 32
_root.nextFrame();
_root.boomerang._x = _root.char._x;
_root.boomerang._y = _root.char._y;
_root.boomerang.swtichhit = false;
_root.boomerang.gotoAndStop(2);
_root.boomerang.boomeroptions.gotoAndStop(1);
_root.boomerang.launched = false;
_root.boomerang.boomspeed = 0;
_root.boomerang.timer = 0;
Symbol 1489 MovieClip Frame 1
stop();
Instance of Symbol 1486 MovieClip "moo" in Symbol 1489 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.backww22.done) {
this._y = this._y - 2;
}
}
Symbol 1489 MovieClip Frame 2
stop();
Symbol 1489 MovieClip Frame 3
stop();
Symbol 1492 MovieClip Frame 1
stop();
Symbol 1494 MovieClip Frame 1
stop();
Symbol 1494 MovieClip Frame 34
stop();
Symbol 1498 MovieClip Frame 1
stop();
Symbol 1498 MovieClip Frame 40
stop();
Symbol 1505 MovieClip Frame 1
stop();
Symbol 1506 MovieClip Frame 1
stop();
Symbol 1506 MovieClip Frame 2
stop();
Instance of Symbol 1475 MovieClip "cog2" in Symbol 1507 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.backww22.done) {
this._rotation = this._rotation - 5;
}
}
Instance of Symbol 1475 MovieClip "cog1" in Symbol 1507 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.backww22.done) {
this._rotation = this._rotation + 5;
}
}
Instance of Symbol 1506 MovieClip "light" in Symbol 1507 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.backww22.done) {
this.gotoAndStop(2);
}
}
Symbol 1514 MovieClip Frame 1
stop();
Symbol 1514 MovieClip Frame 2
stop();
Instance of Symbol 1530 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1533 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1586 MovieClip in Symbol 1592 MovieClip Frame 9
onClipEvent (load) {
_root.char.grav = -10;
}
onClipEvent (enterFrame) {
_root.char._x = _root.char._x - 20;
}
Symbol 1592 MovieClip Frame 32
stop();
Instance of Symbol 1586 MovieClip in Symbol 1592 MovieClip Frame 32
onClipEvent (enterFrame) {
_root.char.grabbed = false;
_root.char._x = 350;
_root.boomerang._x = _root.char._x;
_root.boomerang._y = _root.char._y;
_root.boomerang.swtichhit = false;
_root.boomerang.gotoAndStop(2);
_root.boomerang.boomeroptions.gotoAndStop(1);
_root.boomerang.launched = false;
_root.boomerang.boomspeed = 0;
_root.boomerang.timer = 0;
_root.nextFrame();
}
Symbol 1594 MovieClip Frame 1
stop();
Instance of Symbol 1542 MovieClip "sitting" in Symbol 1594 MovieClip Frame 1
/* no clip actions */
Symbol 1594 MovieClip Frame 2
stop();
Instance of Symbol 1558 MovieClip in Symbol 1594 MovieClip Frame 2
on (press) {
_root.endboss.gotoAndStop(3);
}
Symbol 1594 MovieClip Frame 3
stop();
Symbol 1594 MovieClip Frame 4
stop();
Symbol 1615 MovieClip Frame 11
stop();
Symbol 1616 MovieClip Frame 1
stop();
Symbol 1616 MovieClip Frame 2
stop();
Symbol 1616 MovieClip Frame 3
stop();
Instance of Symbol 1530 MovieClip in Symbol 1628 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1628 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1628 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1628 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Symbol 1641 MovieClip Frame 1
stop();
Symbol 1641 MovieClip Frame 80
stop();
Symbol 1656 MovieClip Frame 1
stop();
Symbol 1656 MovieClip Frame 80
stop();
Symbol 1686 MovieClip Frame 1
stop();
Symbol 1706 MovieClip Frame 66
stop();
Symbol 1734 MovieClip Frame 81
stop();
Symbol 1734 MovieClip Frame 118
stop();
Symbol 1754 MovieClip Frame 8
stop();
Symbol 1755 MovieClip Frame 1
stop();
Symbol 1755 MovieClip Frame 2
stop();
Symbol 1793 MovieClip Frame 90
stop();
Instance of Symbol 1755 MovieClip "fireball" in Symbol 1793 MovieClip Frame 90
onClipEvent (load) {
rubbled = false;
}
onClipEvent (enterFrame) {
if (!rubbled) {
this.gotoAndStop(2);
_root.rubble.gotoAndPlay(2);
_root.boss.raging.gotoAndPlay(91);
rubbled = true;
}
}
Symbol 1793 MovieClip Frame 124
stop();
Symbol 1802 MovieClip Frame 10
stop();
Symbol 1802 MovieClip Frame 20
stop();
Symbol 1830 MovieClip Frame 106
stop();
stopAllSounds();
Symbol 1831 MovieClip Frame 1
stop();
Instance of Symbol 1661 MovieClip "shadow" in Symbol 1831 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.boss.teleporting._currentframe > 38) && (_root.boss.teleporting._currentframe < 114)) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 1686 MovieClip "sheildbubble" in Symbol 1831 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.boss.teleporting._currentframe > 38) && (_root.boss.teleporting._currentframe < 114)) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 1831 MovieClip Frame 2
stop();
Symbol 1831 MovieClip Frame 3
stop();
Symbol 1831 MovieClip Frame 4
stop();
Symbol 1831 MovieClip Frame 5
stop();
Symbol 1831 MovieClip Frame 6
stop();
Symbol 1842 MovieClip Frame 1
stop();
Instance of Symbol 1835 MovieClip "hitbox" in Symbol 1842 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 1839 MovieClip "hitbox" in Symbol 1842 MovieClip Frame 10
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1842 MovieClip Frame 22
stop();
Instance of Symbol 1530 MovieClip in Symbol 1863 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1863 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1863 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1863 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1616 MovieClip "gem" in Symbol 1863 MovieClip Frame 1
onClipEvent (load) {
shining = false;
broken = false;
done = false;
}
onClipEvent (enterFrame) {
if (done) {
shining = true;
done = false;
}
if (shining) {
this.gotoAndStop(2);
}
if (_root.boomerang.hitTest(this) && (shining)) {
shining = false;
this.gotoAndStop(3);
}
if ((this.breaked._currentframe > 10) && (!broken)) {
broken = true;
_root.chandelierone.gotoAndStop(2);
}
}
Instance of Symbol 1530 MovieClip in Symbol 1947 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1947 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1947 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1947 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Symbol 1947 MovieClip Frame 20
stop();
Symbol 1948 MovieClip Frame 1
stop();
Symbol 1948 MovieClip Frame 2
stop();
Symbol 1951 MovieClip Frame 50
stop();
Instance of Symbol 1530 MovieClip in Symbol 1972 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1972 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1972 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1530 MovieClip in Symbol 1972 MovieClip Frame 1
onClipEvent (load) {
num = Math.random() * 18;
num = Math.round(num);
this.gotoAndPlay(num);
}
Instance of Symbol 1616 MovieClip "gem" in Symbol 1972 MovieClip Frame 1
onClipEvent (load) {
shining = false;
broken = false;
}
onClipEvent (enterFrame) {
if (shining) {
this.gotoAndStop(2);
}
if (_root.boomerang.hitTest(this) && (shining)) {
shining = false;
this.gotoAndStop(3);
}
if ((this.breaked._currentframe > 10) && (!broken)) {
broken = true;
_root.chandeliertwo.gotoAndStop(2);
}
}
Symbol 1973 MovieClip Frame 1
stop();
Symbol 1973 MovieClip Frame 2
stop();
Symbol 2019 MovieClip Frame 1
stop();
Symbol 2019 MovieClip Frame 33
stop();
Symbol 2023 MovieClip Frame 1
stop();
Symbol 2023 MovieClip Frame 10
stop();
Symbol 2046 MovieClip Frame 1
stop();
Symbol 2046 MovieClip Frame 110
stop();
Symbol 2049 MovieClip Frame 1
stop();
Symbol 2049 MovieClip Frame 2
stop();
Symbol 2081 MovieClip Frame 143
stop();
Instance of Symbol 2107 MovieClip in Symbol 2120 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.char) && ((!_root.spadeinfo) == true)) {
_root.girl.play();
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.char) && (_root.spadeinfo == true)) && (_root.items.itempannel.itemslottwo._currentframe > 2)) {
_root.girl.gotoAndPlay(230);
}
}
Symbol 2120 MovieClip Frame 143
stop();
Symbol 2126 Button
on (release) {
stopAllSounds();
_root.level = 15;
_root.gotoAndStop("menu");
}
Symbol 2135 Button
on (release) {
getURL ("http://www.newgrounds.com/portal/view/509932", "_blank");
}