Frame 1
function itemHandler1(obj, item) {
getURL ("http://lol.com", "_blank");
}
function itemHandler2(obj, item) {
getURL ("mailto:Meltdown96@gmail.com");
}
function itemHandler5(obj, item) {
_quality = "high";
}
function itemHandler6(obj, item) {
_quality = "medium";
}
function itemHandler7(obj, item) {
_quality = "low";
}
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
percentbytes = int(loadedbytes / (totalbytes / 100));
loader.gotoAndStop(percentbytes);
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
aaa_cmi = new ContextMenuItem("Visit My site", itemHandler1);
bbb_cmi = new ContextMenuItem("Email Me", itemHandler2);
ccc_cmi = new ContextMenuItem("High Quality", itemHandler5);
ddd_cmi = new ContextMenuItem("Mid Quality", itemHandler6);
eee_cmi = new ContextMenuItem("Low Quality", itemHandler7);
ccc_cmi.separatorBefore = true;
root_cm.customItems.push(bbb_cmi, ccc_cmi, ddd_cmi, eee_cmi);
_root.menu = root_cm;
Instance of Symbol 35 MovieClip in Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Frame 2
if (loadedbytes == totalbytes) {
stop();
} else {
gotoAndPlay (1);
}
Frame 4
var savefile = SharedObject.getLocal("PacManPlatform2");
if (_root.savefile.data.highscore == undefined) {
_root.savefile.data.highscore = 0;
_root.savefile.flush();
}
_root.highscore = _root.savefile.data.highscore;
_root.icesound = new Sound(this);
_root.icesound.attachSound("iceloop");
_root.skysound = new Sound(this);
_root.skysound.attachSound("skyloop");
_root.trainingsound = new Sound(this);
_root.trainingsound.attachSound("trainingloop");
_root.spacesound = new Sound(this);
_root.spacesound.attachSound("spaceloop");
_root._xscale = 100;
_root._yscale = 100;
_root._x = 0;
_root._y = 0;
stop();
_root.menumusic = new Sound(this);
_root.menumusic.attachSound("menuloop");
_root.menumusic.setVolume(100);
_root.menumusic.start(3, 999);
_root._quality = "HIGH";
delete _root.onEnterFrame;
delete onEnterFrame;
Instance of Symbol 116 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndStop("Menu");
}
Instance of Symbol 260 MovieClip "menus" in Frame 4
onClipEvent (enterFrame) {
if ((this._currentframe >= 22) && (this._currentframe <= 26)) {
this.gotoAndStop(_root.menuSection);
}
if ((this._currentframe >= 66) && (this._currentframe <= 69)) {
this.gotoAndStop(_root.menuSection);
}
}
Instance of Symbol 35 MovieClip in Frame 4
on (rollOver) {
gotoAndPlay (5);
}
on (rollOut) {
gotoAndStop (4);
}
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Instance of Symbol 269 MovieClip "fade" in Frame 4
onClipEvent (load) {
this.gotoAndPlay("in");
}
Instance of Symbol 271 MovieClip in Frame 4
on (keyPress "q") {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Instance of Symbol 273 MovieClip in Frame 4
onClipEvent (load) {
this.unloadMovie;
}
Frame 5
_root.pacshoot = "no";
_root.currentlevel = "t1";
_root.currentWorld = "training";
_root.points = 0;
_root.dotSum = 0;
_root.lives = 2;
_root.dotExtraLife = 50;
_root.med = 0.5;
_root.ghostdamage = 0.4;
_root.ghostspeed = 2;
_root.dotmovespeed = 15;
_root.firerate = 1000;
_root.invisibletime = 5;
_root.keyPoints = 50;
_root.sbPoints = 50;
_root.chPoints = 30;
_root.apPoints = 80;
_root.paPoints = 150;
_root.medPoints = 20;
_root.eatSmallDotPoints = 10;
_root.eatBigDotPoints = 30;
_root.shootGhostPoints = 50;
_root.eatGhostPoints = 100;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.health = 1;
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
reload = setInterval(function () {
_root.reloaded = "yes";
}, _root.firerate);
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 20;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 1;
_root.onEnterFrame = function () {
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.4;
_root.spring.gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 116 MovieClip "bg" in Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(_root.currentWorld);
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 280 MovieClip "dot" in Frame 5
onClipEvent (load) {
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if ((this._x > (_root.pac._x + 800)) || (this._x < (_root.pac._x - 800))) {
this.removeMovieClip();
}
}
Instance of Symbol 300 MovieClip "p3" in Frame 5
onClipEvent (load) {
this.gotoAndStop("sky");
}
Instance of Symbol 307 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.sign._visible = true;
} else {
_root.sign._visible = false;
}
}
Instance of Symbol 312 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 318 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 5
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 5
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 374 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "t2";
}
}
Instance of Symbol 381 MovieClip in Frame 5
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 5
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 434 MovieClip "sign" in Frame 5
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 269 MovieClip "fade" in Frame 5
onClipEvent (load) {
this.gotoAndPlay("in");
}
Instance of Symbol 445 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Frame 6
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
Instance of Symbol 142 MovieClip in Frame 6
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p4;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 6
onClipEvent (load) {
this.gotoAndStop("sky");
}
Instance of Symbol 452 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac) && (_root.health < 1)) {
_root.medimc.gotoAndPlay(2);
_root.health = _root.health + _root.med;
this.unloadMovie();
}
}
Instance of Symbol 146 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 6
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "t3";
}
}
Instance of Symbol 381 MovieClip in Frame 6
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 7
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
Instance of Symbol 280 MovieClip "dot" in Frame 7
onClipEvent (load) {
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if ((this._x > (_root.pac._x + 800)) || (this._x < (_root.pac._x - 800))) {
this.removeMovieClip();
}
}
Instance of Symbol 142 MovieClip in Frame 7
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p6;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 395 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 7
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p6;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 7
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p6;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 7
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p6;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 461 MovieClip "p10" in Frame 7
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if (((_root.pac._x < ((this._x + (this._width / 2)) + 50)) && (_root.pac._x > ((this._x - (this._width / 2)) - 50))) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
this._y = thisy - 200;
_root.holdkey = "no";
}
}
Instance of Symbol 399 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.hud.invisible.gotoAndStop(2);
_root.powerup.start();
this.unloadMovie();
}
}
Instance of Symbol 465 MovieClip in Frame 7
onClipEvent (load) {
pachit = "no";
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.pac) && (this._currentframe == 1)) && (pachit == "no")) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(2);
_root.p5._y = 600;
pachit = "yes";
}
if ((this.hitTest(_root.pac) && (this._currentframe == 2)) && (pachit == "no")) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(1);
_root.p5._y = 354.9;
pachit = "yes";
}
if (this.hitTest(_root.pac)) {
pachit = "yes";
} else {
pachit = "no";
}
}
Instance of Symbol 363 MovieClip "as" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.pacstat = "finished";
_root.hud.invisible.gotoAndStop(1);
_root.currentlevel = "ComlpletedTraining";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 7
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Frame 8
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
Instance of Symbol 470 MovieClip in Frame 8
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("MainMenu");
}
Instance of Symbol 473 MovieClip in Frame 8
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("ice1");
}
Instance of Symbol 477 MovieClip in Frame 9
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop("t1");
}
Frame 10
_root.playSound = "yes";
_root.currentWorld = "ice";
_root.currentlevel = "ice1";
_root.points = 0;
_root.dotSum = 0;
_root.lives = 2;
_root.pacshoot = "no";
_root.dotExtraLife = 100;
_root.med = 0.5;
_root.ghostdamage = 0.4;
_root.ghostspeed = 2;
_root.dotmovespeed = 15;
_root.firerate = 1000;
_root.keyPoints = 50;
_root.chPoints = 30;
_root.sbPoints = 50;
_root.apPoints = 80;
_root.paPoints = 100;
_root.eatSmallDotPoints = 10;
_root.eatBigDotPoints = 30;
_root.shootGhostPoints = 50;
_root.eatGhostPoints = 100;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.health = 1;
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 40;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 10;
_root.onEnterFrame = function () {
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.5;
_root.spring.gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 318 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p6" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 482 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p5" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p8" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 452 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac) && (_root.health < 1)) {
_root.medimc.gotoAndPlay(2);
_root.health = _root.health + _root.med;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p10" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p13" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p16" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 146 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 10
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p10;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 361 MovieClip "pac" in Frame 10
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 10
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 484 MovieClip in Frame 10
on (release) {
_root.gotoAndStop("sky6");
}
Instance of Symbol 374 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "ice2";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 10
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Instance of Symbol 269 MovieClip "fade" in Frame 10
onClipEvent (load) {
this.gotoAndPlay("in");
}
Instance of Symbol 485 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Frame 12
_root.currentlevel = "ice2";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 300 MovieClip "p6" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p13" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p8" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p5" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 452 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac) && (_root.health < 1)) {
_root.medimc.gotoAndPlay(2);
_root.health = _root.health + _root.med;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p9" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 146 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p10" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 12
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 361 MovieClip "pac" in Frame 12
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 12
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 300 MovieClip "p15" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p17" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p16" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p18" in Frame 12
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 374 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "ice3";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 12
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 12
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 14
_root.currentlevel = "ice3";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 300 MovieClip "p5" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p15" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p8" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p23" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 146 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 395 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 318 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 14
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p7;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 14
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p12;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 461 MovieClip "p21" in Frame 14
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if ((_root.pac._x > (this._x - 50)) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
this._y = thisy - 218;
_root.holdkey = "no";
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 14
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 14
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 300 MovieClip "p9" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p24" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p18" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p20" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p19" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p17" in Frame 14
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 374 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "ice4";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 14
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 16
_root.currentlevel = "ice3";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 300 MovieClip "p5" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 312 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p23" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 146 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p18" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 312 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 16
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p12;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 16
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p7;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 361 MovieClip "pac" in Frame 16
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 16
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 300 MovieClip "p9" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p16" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p24" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p22" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p20" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p17" in Frame 16
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 374 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "ice5";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 16
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 16
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 18
_root.currentlevel = "ice3";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 300 MovieClip "p5" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p9" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 312 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p13" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 146 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 318 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 395 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 18
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 18
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p5;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 18
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p7;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 18
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 461 MovieClip "p18" in Frame 18
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if ((_root.pac._x > (this._x - 50)) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
this._y = thisy - 218;
_root.holdkey = "no";
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 18
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 18
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 300 MovieClip "p8" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p17" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p16" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p10" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 18
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 374 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "ice6";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 18
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 18
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 20
_root.currentlevel = "ice3";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 300 MovieClip "p5" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p7" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p9" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 312 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p13" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 146 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 312 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 452 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac) && (_root.health < 1)) {
_root.medimc.gotoAndPlay(2);
_root.health = _root.health + _root.med;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 20
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 20
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p5;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 20
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p7;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 20
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p15;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 361 MovieClip "pac" in Frame 20
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 20
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 374 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "sky1";
}
}
Instance of Symbol 300 MovieClip "p8" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p10" in Frame 20
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 424 MovieClip "hud" in Frame 20
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 20
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 22
if (_root.points > _root.savefile.data.highscore) {
_root.savefile.data.highscore = _root.points;
_root.savefile.flush();
}
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 40;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 5;
_root.onEnterFrame = function () {
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.5;
_root.spring.gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 477 MovieClip in Frame 22
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop("ice1");
}
Instance of Symbol 470 MovieClip in Frame 22
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("MainMenu");
}
Frame 23
_root.playSound = "yes";
_root.currentWorld = "sky";
_root.currentlevel = "sky1";
_root.pacshoot = "no";
_root.pacstat = "start";
_root.pacdir = "right";
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 40;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 20;
_root.onEnterFrame = function () {
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.5;
_root.spring.gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 300 MovieClip "p11" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p8" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p10" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 146 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p7" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p5" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 482 MovieClip in Frame 23
/* no clip actions */
Instance of Symbol 324 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 318 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p12" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p13" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 312 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p16" in Frame 23
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 142 MovieClip in Frame 23
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p8;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 23
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p10;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 23
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p15;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 23
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 23
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 484 MovieClip in Frame 23
on (release) {
_root.gotoAndStop("bonus");
}
Instance of Symbol 374 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "sky2";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 23
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 23
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Instance of Symbol 269 MovieClip "fade" in Frame 23
onClipEvent (load) {
this.gotoAndPlay("in");
}
Instance of Symbol 493 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Frame 25
_root.currentlevel = "ice2";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 300 MovieClip "p4" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 315 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p10" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 312 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p11" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 312 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 146 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 25
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 25
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p10;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 25
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p12" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 142 MovieClip in Frame 25
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p14;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p5" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p8" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p7" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 25
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 361 MovieClip "pac" in Frame 25
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 25
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 374 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "sky3";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 25
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 25
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 27
_root.currentlevel = "ice3";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 312 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p8" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 395 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p7" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 312 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p11" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p10" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p13" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p16" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p8" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p17" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 146 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p18" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 142 MovieClip in Frame 27
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p16;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 27
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p14;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 27
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p15;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 27
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p5" in Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 461 MovieClip "p9" in Frame 27
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if (((((_root.pac._x > (this._x - 50)) && (_root.pac._x < (this._x + 50))) && (_root.pac._y < (this._y + (this._height / 2)))) && (_root.pac._y > (this._y - (this._height / 2)))) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
(this._y = 89);
_root.holdkey = "no";
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 27
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 27
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 374 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "sky4";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 27
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 27
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 29
_root.currentlevel = "ice3";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 300 MovieClip "p5" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p10" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 321 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 146 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 29
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 29
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 29
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 29
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p15;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 361 MovieClip "pac" in Frame 29
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 29
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 300 MovieClip "p7" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p17" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p8" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 142 MovieClip in Frame 29
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p16;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p16" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 312 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 374 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 29
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "sky5";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 29
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 29
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 31
_root.currentlevel = "ice3";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 142 MovieClip in Frame 31
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p5;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 31
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p6;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 31
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 31
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 31
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 300 MovieClip "p5" in Frame 31
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 31
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p7" in Frame 31
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 31
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p8" in Frame 31
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 31
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 374 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "sky6";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 31
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 31
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 33
_root.currentlevel = "ice3";
_root.pacshoot = "no";
_root.firerate = 1000;
_root.pacstat = "start";
_root.pacdir = "right";
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
Instance of Symbol 399 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.hud.invisible.gotoAndStop(2);
_root.powerup.start();
this.unloadMovie();
}
}
Instance of Symbol 395 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 146 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop("bSound");
_root.eatStat = "static";
_root.points = _root.points + _root.eatBigDotPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p5;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p25;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p25;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p25;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p25;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p21;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 33
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 465 MovieClip in Frame 33
onClipEvent (load) {
var pachit = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.pac) && (this._currentframe == 1)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(2);
_root.p15._y = 407;
_root.p22._y = -213;
pachit = true;
}
if ((this.hitTest(_root.pac) && (this._currentframe == 2)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(1);
_root.p15._y = 168;
_root.p22._y = -458;
pachit = true;
}
if (!this.hitTest(_root.pac)) {
pachit = false;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 33
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat != "invisible")) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat == "invisible")) {
_root.fallsound.start();
_root.hud.invisible.gotoAndStop(1);
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 33
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p5" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p26" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 500 MovieClip "p27" in Frame 33
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if (((((_root.pac._y > (this._y - 50)) && (_root.pac._y < (this._y + 50))) && (_root.pac._x < (this._x + (this._width / 2)))) && (_root.pac._x > (this._x - (this._width / 2)))) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
this._y = 900;
_root.holdkey = "no";
}
}
Instance of Symbol 300 MovieClip "p8" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p10" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p12" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p28" in Frame 33
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 374 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "bonus";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 33
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 33
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 35
if (_root.points > _root.savefile.data.highscore) {
_root.savefile.data.highscore = _root.points;
_root.savefile.flush();
}
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 40;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 5;
_root.onEnterFrame = function () {
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.5;
_root.spring.gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 477 MovieClip in Frame 35
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("ice1");
}
Instance of Symbol 470 MovieClip in Frame 35
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("MainMenu");
}
Frame 36
_root.currentWorld = "sky";
_root.currentlevel = "bonus";
_root.ghostspeed = 2.5;
_root.pacshoot = "no";
_root.dotmovespeed = 15;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
clearInterval(_root.reload);
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 40;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 5;
_root.onEnterFrame = function () {
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.5;
_root.spring.gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 505 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.sign._visible = true;
} else {
_root.sign._visible = false;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 36
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
_root.health = 1;
this._x = -1000;
this._y = 400;
}
if ((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) {
_root.Shoot.start();
_root.dot.duplicateMovieClip("dot1", dotCounter);
_root["dot" + dotCounter]._visible = true;
_root.reloaded = "no";
}
}
Instance of Symbol 369 MovieClip "startportal" in Frame 36
onClipEvent (load) {
this.play();
_root.pac._x = -400;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
}
Instance of Symbol 363 MovieClip "as" in Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "bStage";
}
}
Instance of Symbol 363 MovieClip "as2" in Frame 36
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "space1";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 36
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 381 MovieClip in Frame 36
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 508 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 36
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Instance of Symbol 269 MovieClip "fade" in Frame 36
onClipEvent (load) {
this.gotoAndPlay("in");
}
Instance of Symbol 513 MovieClip "sign" in Frame 36
onClipEvent (load) {
this._visible = false;
}
Frame 38
_root.ghostsLeft = 19;
_root.bonustimer = 30;
_root.currentlevel = "bStage";
_root.pacshoot = "no";
_root.reloaded = "yes";
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
_root.dot._visible = false;
dotCounter = 1;
_root.reloaded = "yes";
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 40;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 5;
_root.onEnterFrame = function () {
if (_root.bonustimer <= 0) {
delete onEnterFrame;
delete _root.onEnterFrame;
}
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if (((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (_root.bonustimer > 0)) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if (((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (_root.bonustimer > 0)) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if (((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) && (_root.bonustimer > 0)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.5;
_root.spring.gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p18;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p15;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p6;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p32;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p22;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p19;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p7;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p16;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p8;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p30;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p20;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p31;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p23;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p14;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p21;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 142 MovieClip in Frame 38
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p24;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 4)) {
this.gotoAndStop(dir + _root.eatStat);
} else if (this._currentframe <= 4) {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 6) {
this.unloadMovie();
}
}
Instance of Symbol 505 MovieClip in Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.sign._visible = true;
} else {
_root.sign._visible = false;
}
}
Instance of Symbol 284 MovieClip "p38" in Frame 38
onClipEvent (enterFrame) {
if (_root.bonustimer <= 0) {
_root.ghostspeed = 0;
this._y = 450;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 38
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
_root.health = 1;
_root.gotoAndStop("bonus");
_root.currentlevel = "bonus";
this._x = -1000;
this._y = 400;
}
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) && (_root.bonustimer > 0)) {
_root.Shoot.start();
_root.reloaded = "no";
_root.dot.duplicateMovieClip("dot1", _root.dotCounter);
_root["dot" + _root.dotCounter]._visible = true;
_root.reloader.gotoAndPlay(2);
}
}
Instance of Symbol 280 MovieClip "dot" in Frame 38
onClipEvent (load) {
_root.hitEnemy = "no";
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if (((this._x > (_root.pac._x + 600)) || (this._x < (_root.pac._x - 600))) || (_root.hitEnemy == "yes")) {
this.removeMovieClip();
}
}
Instance of Symbol 369 MovieClip "startportal" in Frame 38
onClipEvent (load) {
this.play();
_root.pac._x = -400;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
}
Instance of Symbol 363 MovieClip "as" in Frame 38
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "space1";
}
}
Instance of Symbol 300 MovieClip "p6" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p8" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p30" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p31" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p32" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p5" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
onClipEvent (enterFrame) {
if ((_root.pac._x > (this._x - (this._width / 2))) && (_root.pac._y > ((this._y - (this._height / 2)) - 50))) {
_root.pacshoot = "yes";
_root.timerrr.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p20" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p21" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p22" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p23" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p24" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p18" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p19" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p17" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p16" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 38
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 520 MovieClip "p39" in Frame 38
onClipEvent (enterFrame) {
if (_root.ghostsLeft == 0) {
this._y = -800;
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 38
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 508 MovieClip in Frame 38
onClipEvent (enterFrame) {
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) && (_root.pacstat != "hurt")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 527 MovieClip "timerrr" in Frame 38
onClipEvent (enterFrame) {
if ((((_root.bonustimer <= 0) && (this._currentframe == 2)) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
this.gotoAndPlay(3);
}
if (_root.pacstat == "finished") {
this.gotoAndStop(1);
}
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 531 MovieClip "sign" in Frame 38
onClipEvent (load) {
this._visible = false;
}
Frame 39
_root.reloaded = "yes";
_root.currentWorld = "space";
_root.currentlevel = "space1";
_root.ghostspeed = 2.5;
_root.dotmovespeed = 15;
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
stop();
_root.currentWorld = "space";
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 50;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 24;
_root.onEnterFrame = function () {
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.5;
_root["s" + i2].gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 315 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.doteat.start();
_root.points = _root.points + _root.eatSmallDotPoints;
_root.dotSum++;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.doteat.start();
_root.points = _root.points + _root.eatSmallDotPoints;
_root.dotSum++;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.doteat.start();
_root.points = _root.points + _root.eatSmallDotPoints;
_root.dotSum++;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.doteat.start();
_root.points = _root.points + _root.eatSmallDotPoints;
_root.dotSum++;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 484 MovieClip in Frame 39
on (release) {
_root.pacshoot = "yes";
_root.reloaded = "yes";
_root.gotoAndStop("space6");
}
Instance of Symbol 280 MovieClip "dot" in Frame 39
onClipEvent (load) {
_root.hitEnemy = "no";
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if (((this._x > (_root.pac._x + 600)) || (this._x < (_root.pac._x - 600))) || (_root.hitEnemy == "yes")) {
this.removeMovieClip();
}
}
Instance of Symbol 300 MovieClip "p6" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p5" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p8" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p25" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p13" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p16" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p17" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p4" in Frame 39
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 39
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p8;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 39
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 39
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 184 MovieClip in Frame 39
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 39
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 39
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 39
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat != "invisible")) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat == "invisible")) {
_root.fallsound.start();
_root.hud.invisible.gotoAndStop(1);
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.reloaded = "no";
_root.dot.duplicateMovieClip("dot1", _root.dotCounter);
_root["dot" + _root.dotCounter]._visible = true;
_root.reloader.gotoAndPlay(2);
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 39
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 374 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "space2";
}
}
Instance of Symbol 508 MovieClip in Frame 39
onClipEvent (enterFrame) {
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacstat != "hurt")) && (_root.pacshoot == "yes")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 533 MovieClip in Frame 39
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Frame 41
_root.currentlevel = "space2";
_root.reloaded = "yes";
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
Instance of Symbol 395 MovieClip "key" in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 321 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 315 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 280 MovieClip "dot" in Frame 41
onClipEvent (load) {
_root.hitEnemy = "no";
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if (((this._x > (_root.pac._x + 600)) || (this._x < (_root.pac._x - 600))) || (_root.hitEnemy == "yes")) {
this.removeMovieClip();
}
}
Instance of Symbol 461 MovieClip "p22" in Frame 41
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if (((((_root.pac._x > (this._x - 50)) && (_root.pac._x < (this._x + 50))) && (_root.pac._y < (this._y + (this._height / 2)))) && (_root.pac._y > (this._y - (this._height / 2)))) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
this._y = thisy - 250;
_root.holdkey = "no";
}
}
Instance of Symbol 300 MovieClip "p6" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p10" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p5" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p7" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p13;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p13" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p21" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p23" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p16;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p16" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p17" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p18;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p18" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p19;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p19" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p20;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p20" in Frame 41
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p6;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 184 MovieClip in Frame 41
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 41
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 184 MovieClip in Frame 41
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 41
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 41
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 41
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.reloaded = "no";
_root.dot.duplicateMovieClip("dot1", _root.dotCounter);
_root["dot" + _root.dotCounter]._visible = true;
_root.reloader.gotoAndPlay(2);
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 41
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 374 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 41
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "space3";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 41
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 508 MovieClip in Frame 41
onClipEvent (enterFrame) {
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacstat != "hurt")) && (_root.pacshoot == "yes")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 381 MovieClip in Frame 41
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 41
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 43
_root.currentlevel = "space3";
_root.reloaded = "yes";
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
Instance of Symbol 321 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 280 MovieClip "dot" in Frame 43
onClipEvent (load) {
_root.hitEnemy = "no";
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if (((this._x > (_root.pac._x + 600)) || (this._x < (_root.pac._x - 600))) || (_root.hitEnemy == "yes")) {
this.removeMovieClip();
}
}
Instance of Symbol 395 MovieClip "key" in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 465 MovieClip in Frame 43
onClipEvent (load) {
var pachit = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.pac) && (this._currentframe == 1)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(2);
_root.p7._x = 895.9;
pachit = true;
}
if ((this.hitTest(_root.pac) && (this._currentframe == 2)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(1);
_root.p7._x = 565.3;
pachit = true;
}
if (!this.hitTest(_root.pac)) {
pachit = false;
}
}
Instance of Symbol 300 MovieClip "p17" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 465 MovieClip in Frame 43
onClipEvent (load) {
var pachit = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.pac) && (this._currentframe == 1)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(2);
_root.p6._x = 787.3;
pachit = true;
}
if ((this.hitTest(_root.pac) && (this._currentframe == 2)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(1);
_root.p6._x = 565.3;
pachit = true;
}
if (!this.hitTest(_root.pac)) {
pachit = false;
}
}
Instance of Symbol 300 MovieClip "p6" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p4" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p5" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p8" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p10" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 461 MovieClip "p23" in Frame 43
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if (((((_root.pac._x > (this._x - 50)) && (_root.pac._x < (this._x + 50))) && (_root.pac._y < (this._y + (this._height / 2)))) && (_root.pac._y > (this._y - (this._height / 2)))) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
this._y = thisy - 250;
_root.holdkey = "no";
}
}
Instance of Symbol 300 MovieClip "p11" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p13" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p18" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p16" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p28" in Frame 43
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 43
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 43
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p8;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 43
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p9;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 43
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p15;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 43
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 43
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p13;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 43
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p5;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 184 MovieClip in Frame 43
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 43
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 43
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 43
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat != "invisible")) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat == "invisible")) {
_root.fallsound.start();
_root.hud.invisible.gotoAndStop(1);
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.reloaded = "no";
_root.dot.duplicateMovieClip("dot1", _root.dotCounter);
_root["dot" + _root.dotCounter]._visible = true;
_root.reloader.gotoAndPlay(2);
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 43
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 374 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 43
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "space4";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 43
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 508 MovieClip in Frame 43
onClipEvent (enterFrame) {
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacstat != "hurt")) && (_root.pacshoot == "yes")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 381 MovieClip in Frame 43
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 43
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 45
_root.currentlevel = "space4";
_root.reloaded = "yes";
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
Instance of Symbol 280 MovieClip "dot" in Frame 45
onClipEvent (load) {
_root.hitEnemy = "no";
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if (((this._x > (_root.pac._x + 600)) || (this._x < (_root.pac._x - 600))) || (_root.hitEnemy == "yes")) {
this.removeMovieClip();
}
}
Instance of Symbol 395 MovieClip "key" in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 315 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 318 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 461 MovieClip "p13" in Frame 45
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if (((((_root.pac._x > (this._x - 50)) && (_root.pac._x < (this._x + 50))) && (_root.pac._y < (this._y + (this._height / 2)))) && (_root.pac._y > (this._y - (this._height / 2)))) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
this._y = 800;
_root.holdkey = "no";
}
}
Instance of Symbol 300 MovieClip "p4" in Frame 45
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p14" in Frame 45
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p15" in Frame 45
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 45
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 45
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 321 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 318 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.chPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p4;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p11;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p33;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p25;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p25;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p26;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p26;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p27;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p28;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p28;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p27;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p29;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p31;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p31;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p29;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p30;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 45
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p30;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 184 MovieClip in Frame 45
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 45
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 45
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 45
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 45
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat != "invisible")) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat == "invisible")) {
_root.fallsound.start();
_root.hud.invisible.gotoAndStop(1);
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.reloaded = "no";
_root.dot.duplicateMovieClip("dot1", _root.dotCounter);
_root["dot" + _root.dotCounter]._visible = true;
_root.reloader.gotoAndPlay(2);
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 45
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 374 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "space5";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 45
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 508 MovieClip in Frame 45
onClipEvent (enterFrame) {
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacstat != "hurt")) && (_root.pacshoot == "yes")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 381 MovieClip in Frame 45
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 45
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 47
_root.currentlevel = "spac5";
_root.reloaded = "yes";
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
Instance of Symbol 280 MovieClip "dot" in Frame 47
onClipEvent (load) {
_root.hitEnemy = "no";
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if (((this._x > (_root.pac._x + 600)) || (this._x < (_root.pac._x - 600))) || (_root.hitEnemy == "yes")) {
this.removeMovieClip();
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 321 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 321 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 395 MovieClip "key" in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.holdkey = "yes";
_root.keyeat.start(0, 1);
_root.points = _root.points + _root.keyPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p23" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p24" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p25" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p26" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p27" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p28" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p29" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p13" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 321 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p14" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 321 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p15" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p6" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p7" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p8" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p9" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p10" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p11" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p12" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 312 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.paPoints;
this.unloadMovie();
}
}
Instance of Symbol 312 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.sbPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p20" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p20;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p19" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p19;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p22" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p22;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.fruitsss.gotoAndPlay(2);
_root.points = _root.points + _root.apPoints;
this.unloadMovie();
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 300 MovieClip "p21" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p21;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p16" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p16;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p17" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p17;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p18" in Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p18;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p48;
dir = "left";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 179 MovieClip in Frame 47
onClipEvent (load) {
speed = _root.ghostspeed;
thisplatform = _root.p48;
dir = "right";
this._y = (thisplatform._y - (this._height / 2)) - 15;
}
onClipEvent (enterFrame) {
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this.gotoAndStop(dir + _root.eatStat);
} else {
this.gotoAndStop(_root.eatStat);
}
if (this._x <= (thisplatform._x - (thisplatform._width / 2))) {
speed = speed * -1;
dir = "right";
}
if (this._x >= (thisplatform._x + (thisplatform._width / 2))) {
speed = speed * -1;
dir = "left";
}
if ((_root.eatStat == "none") && (this._currentframe <= 2)) {
this._x = this._x - speed;
}
if ((_root.eatStat == "static") || (_root.eatStat == "blinking")) {
this._x = this._x - (speed / 2);
}
if (_root.eatStat == "shot") {
speed = 0;
}
if (((_root.eatStat == "none") && (dir == "left")) && (this._currentframe <= 2)) {
this.gotoAndStop(1);
}
if (((_root.eatStat == "none") && (dir == "right")) && (this._currentframe <= 2)) {
this.gotoAndStop(2);
}
if (this._currentframe == 4) {
this.unloadMovie();
}
}
Instance of Symbol 184 MovieClip in Frame 47
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 47
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 47
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 47
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 47
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 47
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 47
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat != "invisible")) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat == "invisible")) {
_root.fallsound.start();
_root.hud.invisible.gotoAndStop(1);
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.reloaded = "no";
_root.dot.duplicateMovieClip("dot1", _root.dotCounter);
_root["dot" + _root.dotCounter]._visible = true;
_root.reloader.gotoAndPlay(2);
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 47
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 500 MovieClip "p47" in Frame 47
onClipEvent (load) {
thisy = this._y;
}
onClipEvent (enterFrame) {
if (((((_root.pac._y > (this._y - 50)) && (_root.pac._y < (this._y + 50))) && (_root.pac._x < (this._x + (this._width / 2)))) && (_root.pac._x > (this._x - (this._width / 2)))) && (_root.holdkey == "yes")) {
_root.wallswitch.gotoAndPlay(2);
this._y = 900;
_root.holdkey = "no";
}
}
Instance of Symbol 374 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.pacstat != "finished") {
this.gotoAndStop(1);
}
}
Instance of Symbol 363 MovieClip "as" in Frame 47
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.currentlevel = "space6";
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 47
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 508 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacstat != "hurt")) && (_root.pacshoot == "yes")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 381 MovieClip in Frame 47
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 47
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 49
_root.currentlevel = "space6";
_root.reloaded = "yes";
var platformpos = new Array(0, 282.1, -127.9);
_root.pacstat = "start";
_root.pacdir = "right";
_root.hp = _root.hud.health.bar._width;
_root.eatable = "no";
_root.eatStat = "none";
stop();
_root.currentWorld = "space";
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 40;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 10;
_root.onEnterFrame = function () {
if (_root.fade._currentframe > 26) {
delete _root.onEnterFrame;
delete onEnterFrame;
}
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
if (pacx > (Stage.width / 2)) {
_root._x = (-pacx) + stagecentrex;
} else {
_root._x = 0;
}
if (pacy < (Stage.height / 3)) {
_root._y = (-pacy) + stagecentrey;
} else {
_root._y = 0;
}
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.5;
_root.spring.gotoAndPlay(2);
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 452 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac) && (_root.health < 1)) {
_root.medimc.gotoAndPlay(2);
_root.health = _root.health + _root.med;
this.unloadMovie();
}
}
Instance of Symbol 484 MovieClip in Frame 49
on (release) {
_root.pacshoot = "no";
_root.pac._x = 3266.8;
_root.pac._y = 243;
}
Instance of Symbol 280 MovieClip "dot" in Frame 49
onClipEvent (load) {
_root.hitEnemy = "no";
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if (((this._x > (_root.pac._x + 600)) || (this._x < (_root.pac._x - 600))) || (_root.hitEnemy == "yes")) {
this.removeMovieClip();
}
}
Instance of Symbol 452 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac) && (_root.health < 1)) {
_root.medimc.gotoAndPlay(2);
_root.health = _root.health + _root.med;
this.unloadMovie();
}
}
Instance of Symbol 452 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac) && (_root.health < 1)) {
_root.medimc.gotoAndPlay(2);
_root.health = _root.health + _root.med;
this.unloadMovie();
}
}
Instance of Symbol 452 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac) && (_root.health < 1)) {
_root.medimc.gotoAndPlay(2);
_root.health = _root.health + _root.med;
this.unloadMovie();
}
}
Instance of Symbol 300 MovieClip "p13" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 536 MovieClip "p20" in Frame 49
onClipEvent (load) {
this._y = _root.platformpos[Math.round(Math.random() + 1)];
}
Instance of Symbol 536 MovieClip "p21" in Frame 49
onClipEvent (load) {
this._y = _root.platformpos[Math.round(Math.random() + 1)];
}
Instance of Symbol 536 MovieClip "p22" in Frame 49
onClipEvent (load) {
this._y = _root.platformpos[Math.round(Math.random() + 1)];
}
Instance of Symbol 536 MovieClip "p23" in Frame 49
onClipEvent (load) {
this._y = _root.platformpos[Math.round(Math.random() + 1)];
}
Instance of Symbol 300 MovieClip "p14" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p17" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 536 MovieClip "p35" in Frame 49
onClipEvent (enterFrame) {
if (_root.pac._x > this._x) {
_root.fade.play();
}
}
Instance of Symbol 465 MovieClip in Frame 49
onClipEvent (load) {
var pachit = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.pac) && (this._currentframe == 1)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(2);
if (_root.p22._y == 282.1) {
_root.p22._y = -127.9;
} else {
_root.p22._y = 282.1;
}
pachit = true;
}
if ((this.hitTest(_root.pac) && (this._currentframe == 2)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(1);
if (_root.p22._y == 282.1) {
_root.p22._y = -127.9;
} else {
_root.p22._y = 282.1;
}
pachit = true;
}
if (!this.hitTest(_root.pac)) {
pachit = false;
}
}
Instance of Symbol 300 MovieClip "p7" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 465 MovieClip in Frame 49
onClipEvent (load) {
var pachit = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.pac) && (this._currentframe == 1)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(2);
if (_root.p21._y == 282.1) {
_root.p21._y = -127.9;
} else {
_root.p21._y = 282.1;
}
pachit = true;
}
if ((this.hitTest(_root.pac) && (this._currentframe == 2)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(1);
if (_root.p21._y == 282.1) {
_root.p21._y = -127.9;
} else {
_root.p21._y = 282.1;
}
pachit = true;
}
if (!this.hitTest(_root.pac)) {
pachit = false;
}
}
Instance of Symbol 300 MovieClip "p12" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 465 MovieClip in Frame 49
onClipEvent (load) {
var pachit = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.pac) && (this._currentframe == 1)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(2);
if (_root.p23._y == 282.1) {
_root.p23._y = -127.9;
} else {
_root.p23._y = 282.1;
}
pachit = true;
}
if ((this.hitTest(_root.pac) && (this._currentframe == 2)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(1);
if (_root.p23._y == 282.1) {
_root.p23._y = -127.9;
} else {
_root.p25._y = 282.1;
}
pachit = true;
}
if (!this.hitTest(_root.pac)) {
pachit = false;
}
}
Instance of Symbol 300 MovieClip "p9" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 465 MovieClip in Frame 49
onClipEvent (load) {
var pachit = false;
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.pac) && (this._currentframe == 1)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(2);
if (_root.p20._y == 282.1) {
_root.p20._y = -127.9;
} else {
_root.p20._y = 282.1;
}
pachit = true;
}
if ((this.hitTest(_root.pac) && (this._currentframe == 2)) && (pachit == false)) {
_root.wallswitch.gotoAndPlay(10);
this.gotoAndStop(1);
if (_root.p20._y == 282.1) {
_root.p20._y = -127.9;
} else {
_root.p20._y = 282.1;
}
pachit = true;
}
if (!this.hitTest(_root.pac)) {
pachit = false;
}
}
Instance of Symbol 300 MovieClip "p19" in Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 536 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
delete _root.onEnterFrame;
delete onEnterFrame;
_root.fade.play();
_root.p35._y = 450;
}
}
Instance of Symbol 184 MovieClip in Frame 49
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 49
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 49
onClipEvent (load) {
speed = 1.5;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 49
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
}
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if (_root.health <= 0) {
_root.pacstat = "dead";
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat != "invisible")) {
_root.fallsound.start();
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((this._y > 550) && (this._x > 0)) && (_root.pacstat == "invisible")) {
_root.fallsound.start();
_root.hud.invisible.gotoAndStop(1);
_root.pacstat = "start";
_root.pacdir = "right";
_root.lives--;
this._x = -1000;
this._y = 400;
_root.health = 1;
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.reloaded = "no";
_root.dot.duplicateMovieClip("dot1", _root.dotCounter);
_root.reloader.gotoAndPlay(2);
}
}
Instance of Symbol 369 MovieClip "startPortal" in Frame 49
onClipEvent (load) {
_root.pac._x = -1000;
_root.pac._y = 400;
}
onClipEvent (enterFrame) {
if (this._currentframe == 50) {
_root.pac._y = (this._y - (_root.pac._height / 2)) - 4;
_root.pac._x = this._x;
}
if ((_root.pacstat == "start") && ((this._currentframe == 1) || (this._currentframe == 77))) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 424 MovieClip "hud" in Frame 49
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 508 MovieClip in Frame 49
onClipEvent (enterFrame) {
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacstat != "hurt")) && (_root.pacshoot == "yes")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 381 MovieClip in Frame 49
onClipEvent (enterFrame) {
if ((_root.pac._y > 550) && (_root.pacstat != "start")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 384 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Instance of Symbol 546 MovieClip "fade" in Frame 49
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Frame 51
if (_root.points > _root.savefile.data.highscore) {
_root.savefile.data.highscore = _root.points;
_root.savefile.flush();
}
Instance of Symbol 477 MovieClip in Frame 51
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("ice1");
}
Instance of Symbol 470 MovieClip in Frame 51
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
stopAllSounds();
_root.gotoAndStop("MainMenu");
}
Frame 52
_root.currentWorld = "space";
delete onEnterFrame;
gotoAndPlay ("p2");
Instance of Symbol 108 MovieClip in Frame 52
onClipEvent (enterFrame) {
this._y = _root.cam._y;
this._x = _root.cam._x;
this._width = _root.cam._width;
this._height = _root.cam._height;
}
Instance of Symbol 536 MovieClip "p35" in Frame 52
onClipEvent (enterFrame) {
if (_root.pac._x > this._x) {
_root.fade.play();
}
}
Frame 53
gotoAndPlay ("p2");
Frame 54
gotoAndPlay ("p2");
Instance of Symbol 361 MovieClip in Frame 321
/* no clip actions */
Frame 453
_root.spacesound.stop();
Frame 454
Frame 665
stop();
_root.ghostdamage = 0.11;
_root.bdotmovespeed = 20;
_root.reloaded = "yes";
_root.breloaded = "yes";
_root.pacshoot = "yes";
_root.shootbossdmg = 0.04;
_root.pacstat = "normal";
_root.pacdir = "right";
_root.currentWorld = "space";
_root.shootBossPoints = 20;
_root.bossdamage = 0.45;
_root.bosshealth = 1;
_root.hitEnemy = "no";
_root.robotdepth = 40;
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 20;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 10;
_root.onEnterFrame = function () {
pacx = _root.pac._x;
pacy = _root.pac._y;
pach = _root.pac._height;
pacw = _root.pac._width;
_root.pac._x = _root.pac._x + speed;
_root.pac._y = _root.pac._y + fall;
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed - 5;
_root.pacdir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) {
speed = speed + 5;
_root.pacdir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pacstat != "dead")) && (_root.pacstat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac._y = _root.pac._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac.hitTest(mplat)) {
if (((pacy + (pach / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac._y = ((mplat._y - (mplat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.3;
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac.hitTest(plat)) {
if ((pacx + (pacw / 2)) < (plat._x - (plat._width / 2))) {
_root.pac._x = ((plat._x - (plat._width / 2)) - (pacw / 2)) - 0.1;
speed = 0;
} else if ((pacx - (pacw / 2)) > (plat._x + (plat._width / 2))) {
_root.pac._x = ((plat._x + (plat._width / 2)) + (pacw / 2)) + 0.1;
speed = 0;
}
if (((pacy + (pach / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac._y = ((plat._y - (plat._height / 2)) - (pach / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pacy - (pach / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac._y = ((plat._y + (plat._height / 2)) + (pach / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
Instance of Symbol 280 MovieClip "dot" in Frame 665
onClipEvent (load) {
_root.hitEnemy = "no";
if (_root.pac._currentframe == 1) {
this._x = _root.pac._x + 25;
this._y = _root.pac._y;
movespeed = _root.dotmovespeed;
}
if (_root.pac._currentframe == 2) {
this._x = _root.pac._x - 25;
this._y = _root.pac._y;
movespeed = -_root.dotmovespeed;
}
}
onClipEvent (enterFrame) {
if (this._x > -50) {
this._x = this._x + movespeed;
}
if (((this._x > (_root.pac._x + 600)) || (this._x < (_root.pac._x - 600))) || (_root.hitEnemy == "yes")) {
this.removeMovieClip();
}
_root.dot._x = -100;
}
Instance of Symbol 561 MovieClip "bdot" in Frame 665
onClipEvent (load) {
this._x = _root.boss._x - 70;
this._y = _root.boss._y;
movespeed = -_root.bdotmovespeed;
}
onClipEvent (enterFrame) {
this._x = this._x + movespeed;
if (this.hitTest(_root.pac)) {
_root.health = _root.health - 0.14;
_root.pacstat = "hurt";
this.removeMovieClip();
}
if ((this._x < -50) || (_root.bosshealth <= 0)) {
this.removeMovieClip();
}
_root.bdot._x = -100;
}
Instance of Symbol 558 MovieClip "boss" in Frame 665
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
if (((this._currentframe <= 2) && (this._y < 590)) && (_root.pac._y < 550)) {
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
_root.bosshealth = _root.bosshealth - _root.shootbossdmg;
_root.points = _root.points + _root.shootBossPoints;
}
if ((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.bossdamage) > 0)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.bossdamage;
}
if ((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.bossdamage) <= 0)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.bossdamage;
}
if (((_root.pac._y > (this._y - 10)) && (_root.breloaded == "yes")) && (_root.pac._y < (this._y + 10))) {
_root.bshootsound.gotoAndPlay(2);
_root.breloaded = "no";
_root.bdot.duplicateMovieClip("bdot2", _root.dotCounter + 10);
_root["bdot" + _root.dotCounter]._visible = true;
_root.breloader.gotoAndPlay(2);
}
if (_root.bosshealth <= 0) {
_root.fade2.play();
unloadMovie (_root.cam);
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -10000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -20000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -5000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 393 MovieClip "health" in Frame 665
onClipEvent (enterFrame) {
if (_root.health > 1) {
_root.health = 1;
}
if (_root.lives < 0) {
_root.gotoAndStop("GameOverSpace");
}
}
Instance of Symbol 300 MovieClip "p6" in Frame 665
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p5" in Frame 665
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p4" in Frame 665
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * 10000) + 680;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 571 MovieClip in Frame 665
onClipEvent (load) {
stop();
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * 10000) + 680;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * 20000) + 680;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * 20000) + 680;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * 5000) + 680;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * 20000) + 680;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -10000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -10000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -10000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -20000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -10000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -20000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -10000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -20000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -5000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -20000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -5000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 508 MovieClip in Frame 665
onClipEvent (enterFrame) {
if ((((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) && (_root.pacstat != "hurt")) {
this.gotoAndPlay(2);
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -10000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 184 MovieClip in Frame 665
onClipEvent (load) {
speed = 2;
this._x = (Math.random() * -10000) - 40;
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (this._currentframe <= 2)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (this._currentframe <= 2)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
this.gotoAndStop(_currentframe + 2);
_root.points = _root.points + _root.shootGhostPoints;
}
if ((this._currentframe >= 3) && (this._y < 600)) {
this._y = this._y + speed;
speed = speed * 1.2;
}
if (this._y > 600) {
speed = 0;
this.unloadMovie;
}
if (((_root.pacstat == "normal") && (this._currentframe <= 2)) && (this._y < 590)) {
if (_root.pac._x < this._x) {
this.gotoAndStop(2);
this._x = this._x - speed;
}
if (_root.pac._x > this._x) {
this._x = this._x + speed;
this.gotoAndStop(1);
}
if (_root.pac._y < this._y) {
this._y = this._y - speed;
}
if (_root.pac._y > this._y) {
this._y = this._y + speed;
}
} else if (this._currentframe <= 2) {
this._x = this._x + speed;
}
}
Instance of Symbol 361 MovieClip "pac" in Frame 665
onClipEvent (enterFrame) {
_root.pacframe = _root.pacdir + _root.pacstat;
this.gotoAndStop(_root.pacframe);
if ((_root.health <= 0) && (_root.fade2._currentframe == 1)) {
_root.pacstat = "dead";
_root.fade.play();
removeMovieClip(_root.bdot1);
removeMovieClip(_root.bdot2);
unloadMovie (_root.cam);
}
if (((Key.isDown(32) && (_root.reloaded == "yes")) && (_root.pacstat != "dead")) && (_root.pacshoot == "yes")) {
_root.Shoot.start();
_root.reloaded = "no";
_root.dot.duplicateMovieClip("dot1", _root.dotCounter);
_root["dot" + _root.dotCounter]._visible = true;
_root.reloader.gotoAndPlay(2);
}
}
Instance of Symbol 560 MovieClip "fade" in Frame 665
onClipEvent (load) {
this.stop();
}
Instance of Symbol 575 MovieClip "fade2" in Frame 665
onClipEvent (load) {
this.stop();
}
Instance of Symbol 384 MovieClip in Frame 665
onClipEvent (enterFrame) {
if (_root.pacstat == "hurt") {
this.play();
}
}
Frame 666
_root.health = 1;
_root.lives--;
if (_root.lives < 0) {
_root.gotoAndStop("GameOverSpace");
}
Frame 683
_root.gotoAndStop("bosss");
Frame 684
_root.pacshoot = "yes";
Frame 692
stop();
Instance of Symbol 271 MovieClip in Frame 692
on (keyPress "q") {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
on (keyPress "<Space>") {
_root.play();
}
Frame 701
gotoAndStop ("bosss");
Frame 702
if (_root.points > _root.savefile.data.highscore) {
_root.savefile.data.highscore = _root.points;
_root.savefile.flush();
}
Instance of Symbol 271 MovieClip in Frame 702
on (keyPress "q") {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Instance of Symbol 108 MovieClip in Frame 703
onClipEvent (enterFrame) {
this._x = _root.cam._x;
this._y = _root.cam._y;
this._height = _root.cam._height;
this._width = _root.cam._width;
}
Instance of Symbol 300 MovieClip "p4" in Frame 703
onClipEvent (load) {
this.gotoAndStop("space");
}
Instance of Symbol 300 MovieClip "p4" in Frame 703
onClipEvent (load) {
this.gotoAndStop("space");
}
Instance of Symbol 558 MovieClip "boss" in Frame 946
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 558 MovieClip "boss" in Frame 974
onClipEvent (load) {
this.gotoAndStop(3);
}
Frame 1493
stop();
Instance of Symbol 595 MovieClip in Frame 1493
on (release) {
_root.play();
}
Frame 2167
stopAllSounds();
_root.gotoAndStop("MainMenu");
Frame 2168
_root._x;
_root.gotoAndStop("adv_menu");
_root._quality = "MEDIUM";
_root.speed = 6;
Frame 2169
adv_desc = "The Haunted Little Forest!\n\nIt seems like our yellow little fellow is bored of fruits and \ndots and is in need of some other food.\nHelp him find some other food in this forest, \nbut beware of the ghosts!\n\nMovement : Arrows\n\n <Press SPACE to begin>";
stop();
Instance of Symbol 608 MovieClip in Frame 2169
on (release) {
stopAllSounds();
unloadMovie (_root.cam);
_root.menuSection = "Minigames";
_root.gotoAndStop("MainMenu");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 611 MovieClip in Frame 2169
on (rollOver) {
gotoAndPlay (5);
}
on (rollOut) {
gotoAndStop (4);
}
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Instance of Symbol 613 MovieClip in Frame 2169
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndPlay("adv_level1");
}
}
Frame 2170
stop();
_root.points = 0;
Instance of Symbol 8 MovieClip [char] "char" in Frame 2170
onClipEvent (load) {
_root.mushrooms = 8;
_root.walls = 68;
_root.traps = 2;
_root.alive = true;
_root.goals = 2;
this.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (_root.alive == false) {
_root.gotoAndPlay("adv_ouch");
}
if (Key.isDown(38)) {
this._y = this._y - _root.speed;
this.gotoAndStop(1);
} else if (Key.isDown(40)) {
this._y = this._y + _root.speed;
this.gotoAndStop(4);
} else if (Key.isDown(37)) {
this._x = this._x - _root.speed;
this.gotoAndStop(2);
} else if (Key.isDown(39)) {
this._x = this._x + _root.speed;
this.gotoAndStop(3);
}
i = 1;
while (i <= _root.mushrooms) {
mushroom = _root["m" + i];
if (this.hitTest(mushroom)) {
_root.points = _root.points + 10;
mushroom._visible = false;
}
i++;
}
i = 1;
while (i <= _root.traps) {
trap = _root["t" + i];
if (this.hitTest(trap)) {
_root["t" + i].gotoAndPlay(2);
_root.alive = false;
}
i++;
}
i = 1;
while (i <= _root.goals) {
goal = _root["g" + i];
if (this.hitTest(goal)) {
_root.gotoAndPlay("level2");
}
i++;
}
i = 1;
while (i <= _root.walls) {
wall = _root["w" + i];
if (this.hitTest(wall)) {
if (Key.isDown(38)) {
this._y = this._y + _root.speed;
} else if (Key.isDown(40)) {
this._y = this._y - _root.speed;
} else if (Key.isDown(37)) {
this._x = this._x + _root.speed;
} else if (Key.isDown(39)) {
this._x = this._x - _root.speed;
}
}
i++;
}
}
Frame 2171
stop();
Instance of Symbol 629 MovieClip "gh1" in Frame 2171
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
this._x = this._x - _root.speed;
i++;
}
i = 1;
while (i <= 10) {
this._x = this._x + _root.speed;
i++;
}
}
Instance of Symbol 8 MovieClip [char] "adv_pacman" in Frame 2171
onClipEvent (load) {
_root.mushrooms = 13;
_root.walls = 93;
_root.traps = 2;
_root.alive = true;
_root.goals = 2;
_root.ghosts = 1;
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.alive == false) {
_root.gotoAndStop("adv_ouch");
}
if (Key.isDown(38)) {
this._y = this._y - _root.speed;
this.gotoAndStop(1);
} else if (Key.isDown(40)) {
this._y = this._y + _root.speed;
this.gotoAndStop(4);
} else if (Key.isDown(37)) {
this._x = this._x - _root.speed;
this.gotoAndStop(2);
} else if (Key.isDown(39)) {
this._x = this._x + _root.speed;
this.gotoAndStop(3);
}
i = 1;
while (i <= _root.mushrooms) {
mushroom = _root["m" + i];
if (this.hitTest(mushroom)) {
_root.points = _root.points + 10;
mushroom._visible = false;
}
i++;
}
i = 1;
while (i <= _root.traps) {
trap = _root["t" + i];
if (this.hitTest(trap)) {
_root["t" + i].gotoAndPlay(2);
_root.alive = false;
}
i++;
}
i = 1;
while (i <= _root.goals) {
goal = _root["g" + i];
if (this.hitTest(goal)) {
_root.gotoAndPlay("level3");
}
i++;
}
i = 1;
while (i <= _root.ghosts) {
ghost = _root["gh" + i];
if (this.hitTest(ghost)) {
_root.gotoAndStop("adv_ouch");
}
i++;
}
i = 1;
while (i <= _root.walls) {
wall = _root["w" + i];
if (this.hitTest(wall)) {
if (Key.isDown(38)) {
this._y = this._y + _root.speed;
} else if (Key.isDown(40)) {
this._y = this._y - _root.speed;
} else if (Key.isDown(37)) {
this._x = this._x + _root.speed;
} else if (Key.isDown(39)) {
this._x = this._x - _root.speed;
}
}
i++;
}
}
Frame 2172
stop();
Instance of Symbol 629 MovieClip "gh2" in Frame 2172
onClipEvent (enterFrame) {
i = 1;
while (i <= 10) {
this._x = this._x - _root.speed;
i++;
}
i = 1;
while (i <= 10) {
this._x = this._x + _root.speed;
i++;
}
}
Instance of Symbol 8 MovieClip [char] "adv_pacman" in Frame 2172
onClipEvent (load) {
_root.mushrooms = 16;
_root.walls = 93;
_root.traps = 2;
_root.alive = true;
_root.goals = 2;
_root.ghosts = 4;
}
onClipEvent (enterFrame) {
if (_root.alive == false) {
_root.gotoAndPlay("adv_ouch");
}
if (Key.isDown(38)) {
this._y = this._y - _root.speed;
this.gotoAndStop(1);
} else if (Key.isDown(40)) {
this._y = this._y + _root.speed;
this.gotoAndStop(4);
} else if (Key.isDown(37)) {
this._x = this._x - _root.speed;
this.gotoAndStop(2);
} else if (Key.isDown(39)) {
this._x = this._x + _root.speed;
this.gotoAndStop(3);
}
i = 1;
while (i <= _root.mushrooms) {
mushroom = _root["m" + i];
if (this.hitTest(mushroom)) {
_root.points = _root.points + 10;
mushroom._visible = false;
}
i++;
}
i = 1;
while (i <= _root.traps) {
trap = _root["t" + i];
if (this.hitTest(trap)) {
_root["t" + i].gotoAndPlay(2);
_root.alive = false;
}
i++;
}
i = 1;
while (i <= _root.goals) {
goal = _root["g" + i];
if (this.hitTest(goal)) {
_root.gotoAndPlay("level5");
}
i++;
}
i = 1;
while (i <= _root.ghosts) {
ghost = _root["gh" + i];
if (this.hitTest(ghost)) {
_root.gotoAndPlay("adv_ouch");
}
i++;
}
i = 1;
while (i <= _root.walls) {
wall = _root["w" + i];
if (this.hitTest(wall)) {
if (Key.isDown(38)) {
this._y = this._y + _root.speed;
} else if (Key.isDown(40)) {
this._y = this._y - _root.speed;
} else if (Key.isDown(37)) {
this._x = this._x + _root.speed;
} else if (Key.isDown(39)) {
this._x = this._x - _root.speed;
}
}
i++;
}
}
Frame 2173
stop();
Instance of Symbol 8 MovieClip [char] "adv_pacman" in Frame 2173
onClipEvent (load) {
_root.mushrooms = 19;
_root.walls = 93;
_root.traps = 2;
_root.alive = true;
_root.goals = 2;
_root.ghosts = 4;
}
onClipEvent (enterFrame) {
if (_root.alive == false) {
_root.gotoAndPlay("adv_ouch");
}
if (Key.isDown(38)) {
this._y = this._y - _root.speed;
this.gotoAndStop(1);
} else if (Key.isDown(40)) {
this._y = this._y + _root.speed;
this.gotoAndStop(4);
} else if (Key.isDown(37)) {
this._x = this._x - _root.speed;
this.gotoAndStop(2);
} else if (Key.isDown(39)) {
this._x = this._x + _root.speed;
this.gotoAndStop(3);
}
i = 1;
while (i <= _root.mushrooms) {
mushroom = _root["m" + i];
if (this.hitTest(mushroom)) {
_root.points = _root.points + 10;
mushroom._visible = false;
}
i++;
}
i = 1;
while (i <= _root.traps) {
trap = _root["t" + i];
if (this.hitTest(trap)) {
_root["t" + i].gotoAndPlay(2);
_root.alive = false;
}
i++;
}
i = 1;
while (i <= _root.goals) {
goal = _root["g" + i];
if (this.hitTest(goal)) {
_root.gotoAndPlay("end");
}
i++;
}
i = 1;
while (i <= _root.ghosts) {
ghost = _root["gh" + i];
if (this.hitTest(ghost)) {
trace("ghost");
}
i++;
}
i = 1;
while (i <= _root.walls) {
wall = _root["w" + i];
if (this.hitTest(wall)) {
if (Key.isDown(38)) {
this._y = this._y + _root.speed;
} else if (Key.isDown(40)) {
this._y = this._y - _root.speed;
} else if (Key.isDown(37)) {
this._x = this._x + _root.speed;
} else if (Key.isDown(39)) {
this._x = this._x - _root.speed;
}
}
i++;
}
}
Frame 2174
stop();
Instance of Symbol 634 MovieClip in Frame 2174
onClipEvent (enterFrame) {
if (this.hitTest(_root.adv_pacman)) {
this.gotoAndPlay(2);
unloadMovie (_root.char);
_root.gotoAndPlay("adv_cleared");
}
}
Instance of Symbol 8 MovieClip [char] "adv_pacman" in Frame 2174
onClipEvent (load) {
_root.mushrooms = 19;
_root.walls = 93;
_root.traps = 2;
_root.alive = true;
_root.goals = 2;
_root.ghosts = 4;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.alive == false) {
_root.gotoAndPlay("adv_ouch");
}
if (Key.isDown(38)) {
this._y = this._y - _root.speed;
this.gotoAndStop(1);
} else if (Key.isDown(40)) {
this._y = this._y + _root.speed;
this.gotoAndStop(4);
} else if (Key.isDown(37)) {
this._x = this._x - _root.speed;
this.gotoAndStop(2);
} else if (Key.isDown(39)) {
this._x = this._x + _root.speed;
this.gotoAndStop(3);
}
i = 1;
while (i <= _root.mushrooms) {
mushroom = _root["m" + i];
if (this.hitTest(mushroom)) {
_root.points = _root.points + 10;
mushroom._visible = false;
}
i++;
}
i = 1;
while (i <= _root.traps) {
trap = _root["t" + i];
if (this.hitTest(trap)) {
_root["t" + i].gotoAndPlay(2);
_root.alive = false;
}
i++;
}
i = 1;
while (i <= _root.goals) {
goal = _root["g" + i];
if (this.hitTest(goal)) {
_root.gotoAndPlay("level4");
}
i++;
}
i = 1;
while (i <= _root.ghosts) {
ghost = _root["gh" + i];
if (this.hitTest(ghost)) {
trace("ghost");
}
i++;
}
i = 1;
while (i <= _root.walls) {
wall = _root["w" + i];
if (this.hitTest(wall)) {
if (Key.isDown(38)) {
this._y = this._y + _root.speed;
} else if (Key.isDown(40)) {
this._y = this._y - _root.speed;
} else if (Key.isDown(37)) {
this._x = this._x + _root.speed;
} else if (Key.isDown(39)) {
this._x = this._x - _root.speed;
}
}
i++;
}
}
Frame 2175
play();
Frame 2197
_root.gotoAndStop("adv_congrats");
Frame 2198
stop();
Instance of Symbol 608 MovieClip in Frame 2198
on (release) {
stopAllSounds();
unloadMovie (_root.cam);
_root.menuSection = "Minigames";
_root.gotoAndStop("MainMenu");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 611 MovieClip in Frame 2198
on (rollOver) {
gotoAndPlay (5);
}
on (rollOut) {
gotoAndStop (4);
}
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Instance of Symbol 642 MovieClip in Frame 2198
on (keyPress "<Space>") {
_root.gotoAndStop("adv_level1");
}
Frame 2200
_root.gotoAndStop("mgmenu");
Frame 2201
stop();
_root.droprate = 1000;
_root.game = "off";
_root.selectedlevel = "mg1";
var mgtimer = 50;
i = 100;
sbdrop = function () {
duplicateMovieClip (_root.sb, "sb" + i, i);
_root["sb" + i]._x = (Math.random() * 630) + 10;
_root["sb" + i]._y = (Math.random() * -250) - 10;
i++;
};
chdrop = function () {
duplicateMovieClip (_root.ch, "ch" + i, i);
_root["ch" + i]._x = (Math.random() * 630) + 10;
_root["ch" + i]._y = (Math.random() * -250) - 10;
i++;
};
apdrop = function () {
duplicateMovieClip (_root.ap, "ap" + i, i);
_root["ap" + i]._x = (Math.random() * 630) + 10;
_root["ap" + i]._y = (Math.random() * -250) - 10;
i++;
};
padrop = function () {
duplicateMovieClip (_root.pa, "pa" + i, i);
_root["pa" + i]._x = (Math.random() * 630) + 10;
_root["pa" + i]._y = (Math.random() * -250) - 10;
i++;
};
Instance of Symbol 646 MovieClip in Frame 2201
on (release) {
if (_root.mgtimer < 90) {
_root.mgtimer = _root.mgtimer + 10;
}
}
Instance of Symbol 648 MovieClip in Frame 2201
on (release) {
if (_root.mgtimer > 20) {
_root.mgtimer = _root.mgtimer - 10;
}
}
Instance of Symbol 646 MovieClip in Frame 2201
on (release) {
if (_root.fruitdropsMC._currentframe < 10) {
_root.fruitdropsMC.nextFrame();
_root.droprate = _root.droprate - 100;
}
}
Instance of Symbol 648 MovieClip in Frame 2201
on (release) {
if (_root.fruitdropsMC._currentframe > 1) {
_root.fruitdropsMC.prevFrame();
_root.droprate = _root.droprate + 100;
}
}
Instance of Symbol 657 MovieClip in Frame 2201
on (release) {
_root.selectedlevel = "mg1";
}
Instance of Symbol 659 MovieClip in Frame 2201
on (release) {
_root.selectedlevel = "mg2";
}
Instance of Symbol 661 MovieClip in Frame 2201
on (release) {
_root.selectedlevel = "mg3";
}
Instance of Symbol 671 MovieClip in Frame 2201
onClipEvent (enterFrame) {
if (_root.selectedlevel == "mg1") {
this.gotoAndStop(1);
}
if (_root.selectedlevel == "mg2") {
this.gotoAndStop(2);
}
if (_root.selectedlevel == "mg3") {
this.gotoAndStop(3);
}
}
Instance of Symbol 470 MovieClip in Frame 2201
on (release) {
stopAllSounds();
_root.menuSection = "Minigames";
_root.gotoAndStop("MainMenu");
}
Instance of Symbol 646 MovieClip in Frame 2201
on (release) {
if (_root.mgtimer < 90) {
_root.mgtimer = _root.mgtimer + 10;
}
}
Instance of Symbol 648 MovieClip in Frame 2201
on (release) {
if (_root.mgtimer > 20) {
_root.mgtimer = _root.mgtimer - 10;
}
}
Instance of Symbol 654 MovieClip "fruitdrops" in Frame 2201
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 646 MovieClip in Frame 2201
on (release) {
_root.fruitdrops.gotoAndStop(_root.fruitdrops._currentframe + 1);
}
Instance of Symbol 648 MovieClip in Frame 2201
on (release) {
_root.fruitdrops.gotoAndStop(_root.fruitdrops._currentframe - 1);
}
Instance of Symbol 657 MovieClip in Frame 2201
on (release) {
_root.selectedlevel = "mg1";
}
Instance of Symbol 659 MovieClip in Frame 2201
on (release) {
_root.selectedlevel = "mg2";
}
Instance of Symbol 661 MovieClip in Frame 2201
on (release) {
_root.selectedlevel = "mg3";
}
Instance of Symbol 671 MovieClip in Frame 2201
onClipEvent (enterFrame) {
if (_root.selectedlevel == "mg1") {
this.gotoAndStop(1);
}
if (_root.selectedlevel == "mg2") {
this.gotoAndStop(2);
}
if (_root.selectedlevel == "mg3") {
this.gotoAndStop(3);
}
}
Frame 2202
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 20;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 10;
_root.onEnterFrame = function () {
pac1x = _root.pac1._x;
pac1y = _root.pac1._y;
pac1h = _root.pac1._height;
pac1w = _root.pac1._width;
_root.pac1._x = _root.pac1._x + speed;
_root.pac1._y = _root.pac1._y + fall;
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(65) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) {
speed = speed - 5;
_root.pac1dir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(68) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) {
speed = speed + 5;
_root.pac1dir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(87) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac1._y = _root.pac1._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac1.hitTest(mplat)) {
if (((pac1y + (pac1h / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac1._y = ((mplat._y - (mplat._height / 2)) - (pac1h / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac1.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.3;
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac1.hitTest(plat)) {
if ((pac1x + (pac1w / 2)) < (plat._x - (plat._width / 2))) {
_root.pac1._x = ((plat._x - (plat._width / 2)) - (pac1w / 2)) - 0.1;
speed = 0;
} else if ((pac1x - (pac1w / 2)) > (plat._x + (plat._width / 2))) {
_root.pac1._x = ((plat._x + (plat._width / 2)) + (pac1w / 2)) + 0.1;
speed = 0;
}
if (((pac1y + (pac1h / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac1._y = ((plat._y - (plat._height / 2)) - (pac1h / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pac1y - (pac1h / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac1._y = ((plat._y + (plat._height / 2)) + (pac1h / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
_root.game = "on";
_root.currentWorld = "sky";
_root.pointsP1 = 0;
_root.pointsP2 = 0;
_root.chPoints = 30;
_root.sbPoints = 50;
_root.apPoints = 80;
_root.paPoints = 150;
Instance of Symbol 116 MovieClip "bg" in Frame 2202
onClipEvent (load) {
this.gotoAndStop("sky");
}
onClipEvent (enterFrame) {
if (_root.pac._y < (Stage.height / 3)) {
this._y = _root.pac._y;
} else {
this._y = Stage.height / 3;
}
if (_root.pac._x > (Stage.width / 2)) {
this._x = _root.pac._x;
} else {
this._x = Stage.width / 2;
}
}
Instance of Symbol 361 MovieClip "pac1" in Frame 2202
onClipEvent (enterFrame) {
_root.pac1stat = "normal";
pacframe = _root.pac1dir + _root.pac1stat;
this.gotoAndStop(pacframe);
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
}
}
Instance of Symbol 361 MovieClip "pac2" in Frame 2202
onClipEvent (enterFrame) {
_root.pac2stat = "normal";
pacframe = _root.pac2dir + _root.pac2stat;
this.gotoAndStop(pacframe);
if ((this._y > 550) && (this._x > 0)) {
_root.fallsound.start();
}
}
onClipEvent (load) {
_root.pac2dir = "left";
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 20;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 10;
}
onClipEvent (enterFrame) {
pac2x = _root.pac2._x;
pac2y = _root.pac2._y;
pac2h = _root.pac2._height;
pac2w = _root.pac2._width;
_root.pac2._x = _root.pac2._x + speed;
_root.pac2._y = _root.pac2._y + fall;
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(37) && (_root.pac2stat != "dead")) && (_root.pac2stat != "finished")) {
speed = speed - 5;
_root.pac2dir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(39) && (_root.pac2stat != "dead")) && (_root.pac2stat != "finished")) {
speed = speed + 5;
_root.pac2dir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(38) && (_root.pac2stat != "dead")) && (_root.pac2stat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac2._y = _root.pac2._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac2.hitTest(mplat)) {
if (((pac2y + (pac2h / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac2._y = ((mplat._y - (mplat._height / 2)) - (pac2h / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac2.hitTest(spring)) {
jump = true;
jumpspeed = jumpheight * 1.3;
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac2.hitTest(plat)) {
if ((pac2x + (pac2w / 2)) < (plat._x - (plat._width / 2))) {
_root.pac2._x = ((plat._x - (plat._width / 2)) - (pac2w / 2)) - 0.1;
speed = 0;
} else if ((pac2x - (pac2w / 2)) > (plat._x + (plat._width / 2))) {
_root.pac2._x = ((plat._x + (plat._width / 2)) + (pac2w / 2)) + 0.1;
speed = 0;
}
if (((pac2y + (pac2h / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac2._y = ((plat._y - (plat._height / 2)) - (pac2h / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pac2y - (pac2h / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac2._y = ((plat._y + (plat._height / 2)) + (pac2h / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
}
Instance of Symbol 300 MovieClip "p1" in Frame 2202
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p3" in Frame 2202
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p2" in Frame 2202
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p4" in Frame 2202
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p6" in Frame 2202
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 703 MovieClip in Frame 2202
on (release) {
clearInterval(_root.fruit1);
clearInterval(_root.fruit2);
clearInterval(_root.fruit3);
clearInterval(_root.fruit4);
clearInterval(_root.timerinterval);
_root.gotoAndStop("mgmenu");
}
Instance of Symbol 300 MovieClip "p9" in Frame 2202
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 300 MovieClip "p10" in Frame 2202
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 312 MovieClip "sb" in Frame 2202
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.sbPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.sbPoints;
this.unloadMovie();
}
if ((this._x != 50) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip "pa" in Frame 2202
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.paPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.paPoints;
this.unloadMovie();
}
if ((this._x != 200) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip "ap" in Frame 2202
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.apPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.apPoints;
this.unloadMovie();
}
if ((this._x != 100) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Instance of Symbol 318 MovieClip "ch" in Frame 2202
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.chPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.apPoints;
this.unloadMovie();
}
if ((this._x != 150) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Instance of Symbol 706 MovieClip in Frame 2202
onClipEvent (load) {
_root.fruiti = 100;
sbdrop = function () {
duplicateMovieClip (_root.sb, "sb" + _root.fruiti, _root.fruiti);
_root["sb" + _root.fruiti]._x = (Math.random() * 630) + 10;
_root["sb" + _root.fruiti]._y = (Math.random() * -250) - 10;
_root.fruiti++;
};
chdrop = function () {
duplicateMovieClip (_root.ch, "ch" + _root.fruiti, _root.fruiti);
_root["ch" + _root.fruiti]._x = (Math.random() * 630) + 10;
_root["ch" + _root.fruiti]._y = (Math.random() * -250) - 10;
_root.fruiti++;
};
apdrop = function () {
duplicateMovieClip (_root.ap, "ap" + _root.fruiti, _root.fruiti);
_root["ap" + _root.fruiti]._x = (Math.random() * 630) + 10;
_root["ap" + _root.fruiti]._y = (Math.random() * -250) - 10;
_root.fruiti++;
};
padrop = function () {
duplicateMovieClip (_root.pa, "pa" + _root.fruiti, _root.fruiti);
_root["pa" + _root.fruiti]._x = (Math.random() * 630) + 10;
_root["pa" + _root.fruiti]._y = (Math.random() * -250) - 10;
_root.fruiti++;
};
_root.fruit1 = setInterval(chdrop, _root.droprate * 4);
_root.fruit2 = setInterval(sbdrop, _root.droprate * 7);
_root.fruit3 = setInterval(apdrop, _root.droprate * 12);
_root.fruit4 = setInterval(padrop, _root.droprate * 16);
}
onClipEvent (enterFrame) {
if (_root.mgtimer <= 0) {
clearInterval(_root.timerinterval);
clearInterval(_root.fruit1);
clearInterval(_root.fruit2);
clearInterval(_root.fruit3);
clearInterval(_root.fruit4);
_root.game = "off";
_root.mgtimer = 0;
if (_root.gameisover._currentframe == 1) {
_root.gameisover.play();
}
}
if (_root.pointsP1 > _root.pointsP2) {
_root.theresult = "Player 1 is the winner!";
}
if (_root.pointsP2 > _root.pointsP1) {
_root.theresult = "Player 2 is the winner!";
}
if (_root.pointsP1 == _root.pointsP2) {
_root.theresult = "It's a draw!";
}
}
Instance of Symbol 35 MovieClip in Frame 2202
on (rollOver) {
gotoAndPlay (5);
}
on (rollOut) {
gotoAndStop (4);
}
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Frame 2203
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 20;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 10;
_root.onEnterFrame = function () {
pac1x = _root.pac1._x;
pac1y = _root.pac1._y;
pac1h = _root.pac1._height;
pac1w = _root.pac1._width;
_root.pac1._x = _root.pac1._x + speed;
_root.pac1._y = _root.pac1._y + fall;
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(65) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) {
speed = speed - 5;
_root.pac1dir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(68) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) {
speed = speed + 5;
_root.pac1dir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(87) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac1._y = _root.pac1._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac1.hitTest(mplat)) {
if (((pac1y + (pac1h / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac1._y = ((mplat._y - (mplat._height / 2)) - (pac1h / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac1.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.3;
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac1.hitTest(plat)) {
if ((pac1x + (pac1w / 2)) < (plat._x - (plat._width / 2))) {
_root.pac1._x = ((plat._x - (plat._width / 2)) - (pac1w / 2)) - 0.1;
speed = 0;
} else if ((pac1x - (pac1w / 2)) > (plat._x + (plat._width / 2))) {
_root.pac1._x = ((plat._x + (plat._width / 2)) + (pac1w / 2)) + 0.1;
speed = 0;
}
if (((pac1y + (pac1h / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac1._y = ((plat._y - (plat._height / 2)) - (pac1h / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pac1y - (pac1h / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac1._y = ((plat._y + (plat._height / 2)) + (pac1h / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
_root.game = "on";
_root.currentWorld = "sky";
_root.pointsP1 = 0;
_root.pointsP2 = 0;
_root.invisibletime = 5;
_root.chPoints = 30;
_root.sbPoints = 50;
_root.apPoints = 80;
_root.paPoints = 150;
Instance of Symbol 703 MovieClip in Frame 2203
on (release) {
clearInterval(_root.fruit1);
clearInterval(_root.fruit2);
clearInterval(_root.fruit3);
clearInterval(_root.fruit4);
clearInterval(_root.timerinterval);
_root.gotoAndStop("mgmenu");
}
Instance of Symbol 300 MovieClip "p5" in Frame 2203
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 321 MovieClip "pa" in Frame 2203
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.paPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.paPoints;
this.unloadMovie();
}
if ((this._x != 200) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip "ap" in Frame 2203
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.apPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.apPoints;
this.unloadMovie();
}
if ((this._x != 100) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Instance of Symbol 318 MovieClip "ch" in Frame 2203
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.chPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.apPoints;
this.unloadMovie();
}
if ((this._x != 150) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Frame 2204
stop();
speed = 0;
maxspeed = 10;
jumpspeed = 20;
jumpheight = 16;
fall = 0;
maxgravity = 20;
platforms = 20;
stagecentrex = Stage.width / 2;
stagecentrey = Stage.height / 3;
var jump = true;
movplats = 2;
springs = 10;
_root.onEnterFrame = function () {
pac1x = _root.pac1._x;
pac1y = _root.pac1._y;
pac1h = _root.pac1._height;
pac1w = _root.pac1._width;
_root.pac1._x = _root.pac1._x + speed;
_root.pac1._y = _root.pac1._y + fall;
fall++;
if (fall >= maxgravity) {
fall = maxgravity;
}
if ((Key.isDown(65) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) {
speed = speed - 5;
_root.pac1dir = "left";
if (speed <= (maxspeed * -1)) {
speed = maxspeed * -1;
}
} else if ((Key.isDown(68) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) {
speed = speed + 5;
_root.pac1dir = "right";
if (speed >= maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
speed = speed - 3.34;
if (speed <= 0) {
speed = 0;
}
} else if (speed < 0) {
speed = speed + 3.34;
if (speed >= 0) {
speed = 0;
}
}
if ((((Key.isDown(87) && (_root.pac1stat != "dead")) && (_root.pac1stat != "finished")) && (jump == false)) && (fall <= 1)) {
jump = true;
}
if (jump == true) {
if (jumpspeed > 0) {
jumpspeed--;
fall = 0;
_root.pac1._y = _root.pac1._y - jumpspeed;
} else {
jump = false;
}
} else {
jumpspeed = jumpheight;
}
i3 = 1;
while (i3 <= movplats) {
mplat = _root["pm" + i3];
if (_root.pac1.hitTest(mplat)) {
if (((pac1y + (pac1h / 2)) - 1) < (mplat._y - (mplat._height / 2))) {
_root.pac1._y = ((mplat._y - (mplat._height / 2)) - (pac1h / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
}
}
i3++;
}
i2 = 1;
while (i2 <= springs) {
spring = _root["s" + i2];
if (_root.pac1.hitTest(_root.spring)) {
jump = true;
jumpspeed = jumpheight * 1.3;
}
i2++;
}
i = 1;
while (i <= platforms) {
plat = _root["p" + i];
if (_root.pac1.hitTest(plat)) {
if ((pac1x + (pac1w / 2)) < (plat._x - (plat._width / 2))) {
_root.pac1._x = ((plat._x - (plat._width / 2)) - (pac1w / 2)) - 0.1;
speed = 0;
} else if ((pac1x - (pac1w / 2)) > (plat._x + (plat._width / 2))) {
_root.pac1._x = ((plat._x + (plat._width / 2)) + (pac1w / 2)) + 0.1;
speed = 0;
}
if (((pac1y + (pac1h / 2)) - 1) < (plat._y - (plat._height / 2))) {
_root.pac1._y = ((plat._y - (plat._height / 2)) - (pac1h / 2)) - 0.1;
jumpspeed = jumpheight;
fall = 0;
jump = false;
} else if (((pac1y - (pac1h / 2)) + 1) > (plat._y + (plat._height / 2))) {
_root.pac1._y = ((plat._y + (plat._height / 2)) + (pac1h / 2)) + 0.1;
jumpspeed = jumpspeed * -1;
}
}
i++;
}
};
_root.game = "on";
_root.currentWorld = "sky";
_root.pointsP1 = 0;
_root.pointsP2 = 0;
_root.invisibletime = 5;
_root.chPoints = 30;
_root.sbPoints = 50;
_root.apPoints = 80;
_root.paPoints = 150;
Instance of Symbol 300 MovieClip "p3" in Frame 2204
onClipEvent (load) {
this.gotoAndStop(_root.currentWorld);
}
Instance of Symbol 312 MovieClip "sb" in Frame 2204
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.sbPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.sbPoints;
this.unloadMovie();
}
if ((this._x != 50) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Instance of Symbol 321 MovieClip "pa" in Frame 2204
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.paPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.paPoints;
this.unloadMovie();
}
if ((this._x != 200) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Instance of Symbol 315 MovieClip "ap" in Frame 2204
onClipEvent (load) {
speed = (Math.random() * 3) + 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac1)) {
_root.fruiteat.start(0, 1);
_root.pointsP1 = _root.pointsP1 + _root.apPoints;
this.unloadMovie();
}
if (this.hitTest(_root.pac2)) {
_root.fruiteat.start(0, 1);
_root.pointsP2 = _root.pointsP2 + _root.apPoints;
this.unloadMovie();
}
if ((this._x != 100) && (_root.game == "on")) {
this._y = this._y + speed;
}
if (_root.game != "on") {
this.unloadMovie();
}
if (this._y > 600) {
this.unloadMovie();
}
}
Symbol 8 MovieClip [char] Frame 1
stop();
Symbol 8 MovieClip [char] Frame 2
stop();
Symbol 8 MovieClip [char] Frame 3
stop();
Symbol 8 MovieClip [char] Frame 4
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 100
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("15a42c49", this, 10301, true);
Instance of Symbol 28 MovieClip in Symbol 29 MovieClip Frame 100
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop("MaxGames");
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 15
stop();
Symbol 84 MovieClip Frame 14
stop();
Symbol 88 MovieClip Frame 190
_root.gotoAndStop("MainMenu");
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 3
stop();
Symbol 116 MovieClip Frame 4
stop();
Symbol 116 MovieClip Frame 5
stop();
Symbol 128 MovieClip Frame 126
_root.eatStat = "blinking";
Symbol 135 MovieClip Frame 48
stop();
_root.eatStat = "none";
Symbol 140 MovieClip Frame 1
_root.points = _root.points + _root.shootGhostPoints;
Symbol 140 MovieClip Frame 14
stop();
Symbol 142 MovieClip Frame 1
stop();
Instance of Symbol 125 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
_parent.gotoAndStop("shot");
}
if ((((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (_root.pacstat != "hurt")) && (_root.bonustimer != 0)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if ((((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (_root.pacstat != "hurt")) && (_root.bonustimer != 0)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
}
Symbol 142 MovieClip Frame 2
stop();
Instance of Symbol 125 MovieClip in Symbol 142 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
_parent.gotoAndStop("shot");
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) && (_root.bonustimer != 0)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if (((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) && (_root.bonustimer != 0)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
}
Symbol 142 MovieClip Frame 3
stop();
Instance of Symbol 128 MovieClip in Symbol 142 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_parent.gotoAndStop("shot");
_root.dot1.removeMovieClip;
_root.dot2.removeMovieClip;
}
if (this.hitTest(_root.pac) && ((_root.pacstat == "normal") || (_root.pacstat == "invisible"))) {
_root.ghosteat.start();
_parent.gotoAndStop("eaten");
}
}
Symbol 142 MovieClip Frame 4
stop();
Instance of Symbol 135 MovieClip in Symbol 142 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_parent.gotoAndStop("shot");
_root.dot1.removeMovieClip;
_root.dot2.removeMovieClip;
}
if (this.hitTest(_root.pac) && ((_root.pacstat == "normal") || (_root.pacstat == "invisible"))) {
_root.ghosteat.start();
_parent.gotoAndStop("eaten");
}
}
Symbol 142 MovieClip Frame 5
stop();
_root.ghostsLeft--;
Symbol 142 MovieClip Frame 6
_root.points = _root.points + _root.eatGhostPoints;
stop();
Symbol 146 MovieClip Frame 30
gotoAndPlay (1);
Symbol 168 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 1
_root.points = _root.points + _root.shootGhostPoints;
Symbol 178 MovieClip Frame 5
stop();
Symbol 179 MovieClip Frame 1
stop();
Instance of Symbol 176 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.dot1) || (this.hitTest(_root.dot2))) {
_root.hitEnemy = "yes";
_parent.gotoAndStop("shot");
removeMovieClip(_root.dot1);
}
if ((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) > 0)) {
_root.pacstat = "hurt";
_root.health = _root.health - _root.ghostdamage;
}
if ((this.hitTest(_root.pac) && (_root.pacstat == "normal")) && ((_root.health - _root.ghostdamage) <= 0)) {
_root.pacstat = "dead";
_root.health = _root.health - _root.ghostdamage;
}
}
Symbol 179 MovieClip Frame 2
stop();
Symbol 179 MovieClip Frame 3
stop();
Symbol 179 MovieClip Frame 4
_root.points = _root.points + _root.eatGhostPoints;
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
stop();
Symbol 184 MovieClip Frame 3
stop();
Symbol 184 MovieClip Frame 4
stop();
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 201
onClipEvent (enterFrame) {
this.gotoAndStop("blinking");
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 201
onClipEvent (enterFrame) {
this.gotoAndStop("blinking");
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 201
onClipEvent (enterFrame) {
this.gotoAndStop("blinking");
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 201
onClipEvent (enterFrame) {
this.gotoAndStop("blinking");
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 296
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 296
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 296
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 296
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 179 MovieClip in Symbol 186 MovieClip Frame 338
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 179 MovieClip in Symbol 186 MovieClip Frame 338
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 179 MovieClip in Symbol 186 MovieClip Frame 338
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 179 MovieClip in Symbol 186 MovieClip Frame 338
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 865
stop();
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 865
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 865
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 865
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 142 MovieClip in Symbol 186 MovieClip Frame 865
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 2
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 2
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
stop();
Instance of Symbol 190 MovieClip in Symbol 260 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 193 MovieClip in Symbol 260 MovieClip Frame 3
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 197 MovieClip in Symbol 260 MovieClip Frame 5
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 200 MovieClip in Symbol 260 MovieClip Frame 7
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 190 MovieClip in Symbol 260 MovieClip Frame 10
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Credits";
}
Instance of Symbol 193 MovieClip in Symbol 260 MovieClip Frame 14
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Minigames";
}
Instance of Symbol 197 MovieClip in Symbol 260 MovieClip Frame 18
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Training";
}
Symbol 260 MovieClip Frame 22
stop();
Instance of Symbol 200 MovieClip in Symbol 260 MovieClip Frame 22
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Adventure";
}
Symbol 260 MovieClip Frame 23
stop();
_root.highscore = _root.savefile.data.highscore;
Instance of Symbol 206 MovieClip in Symbol 260 MovieClip Frame 23
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuchoice = "t1";
_parent.gotoAndPlay(27);
}
Instance of Symbol 209 MovieClip in Symbol 260 MovieClip Frame 23
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuchoice = "ice1";
_parent.gotoAndPlay(27);
}
Symbol 260 MovieClip Frame 24
stop();
Instance of Symbol 217 MovieClip in Symbol 260 MovieClip Frame 24
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuchoice = "t1";
_parent.gotoAndPlay(27);
}
Symbol 260 MovieClip Frame 25
stop();
Instance of Symbol 223 MovieClip in Symbol 260 MovieClip Frame 25
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuchoice = "MGames";
_parent.gotoAndPlay(27);
}
Symbol 260 MovieClip Frame 26
stop();
Instance of Symbol 243 MovieClip in Symbol 260 MovieClip Frame 26
onClipEvent (load) {
originaly = this._y;
}
onClipEvent (enterFrame) {
this._y = this._y - 0.8;
if (this._y < (originaly - (this._height * 1.4))) {
this._y = originaly;
}
}
Symbol 260 MovieClip Frame 51
if (_root.menuchoice != "MGames") {
stop();
_root.fade.gotoAndPlay("out");
}
Instance of Symbol 246 MovieClip in Symbol 260 MovieClip Frame 52
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Asteroids";
}
Instance of Symbol 249 MovieClip in Symbol 260 MovieClip Frame 54
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Pactris";
}
Symbol 260 MovieClip Frame 62
_root.menuSection = "mini";
Instance of Symbol 246 MovieClip in Symbol 260 MovieClip Frame 62
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Taop";
}
Instance of Symbol 249 MovieClip in Symbol 260 MovieClip Frame 64
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "pacarena";
}
Instance of Symbol 252 MovieClip in Symbol 260 MovieClip Frame 66
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_parent.gotoAndPlay(70);
}
Symbol 260 MovieClip Frame 67
stop();
Symbol 260 MovieClip Frame 68
stop();
Instance of Symbol 257 MovieClip in Symbol 260 MovieClip Frame 68
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuchoice = "TAOP";
_parent.gotoAndPlay(106);
}
Symbol 260 MovieClip Frame 69
stop();
Instance of Symbol 257 MovieClip in Symbol 260 MovieClip Frame 69
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuchoice = "PacArena";
_parent.gotoAndPlay(106);
}
Instance of Symbol 252 MovieClip in Symbol 260 MovieClip Frame 70
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_parent.gotoAndPlay(1);
}
Instance of Symbol 249 MovieClip in Symbol 260 MovieClip Frame 72
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Pactris";
}
Instance of Symbol 246 MovieClip in Symbol 260 MovieClip Frame 74
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Asteroids";
}
Symbol 260 MovieClip Frame 105
_root.menuSection = "Minigames";
gotoAndStop (22);
Instance of Symbol 252 MovieClip in Symbol 260 MovieClip Frame 106
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_parent.gotoAndPlay(1);
}
Instance of Symbol 249 MovieClip in Symbol 260 MovieClip Frame 106
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Pactris";
}
Instance of Symbol 246 MovieClip in Symbol 260 MovieClip Frame 106
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.menuSection = "Asteroids";
}
Symbol 260 MovieClip Frame 121
stop();
_root.fade.gotoAndPlay("out");
Symbol 263 MovieClip Frame 1
_root.fruiteat = new Sound(this);
_root.fruiteat.attachSound("fruitSound");
_root.fruiteat.setVolume(100);
_root.doteat = new Sound(this);
_root.doteat.attachSound("dotSound");
_root.doteat.setVolume(100);
_root.bigdoteat = new Sound(this);
_root.bigdoteat.attachSound("bigdotSound");
_root.bigdoteat.setVolume(100);
_root.ghosteat = new Sound(this);
_root.ghosteat.attachSound("ghosteatSound");
_root.ghosteat.setVolume(100);
_root.keyeat = new Sound(this);
_root.keyeat.attachSound("keySound");
_root.keyeat.setVolume(100);
_root.powerup = new Sound(this);
_root.powerup.attachSound("powerupSound");
_root.powerup.setVolume(100);
_root.Shoot = new Sound(this);
_root.Shoot.attachSound("shootSound");
_root.Shoot.setVolume(100);
_root.fallsound = new Sound(this);
_root.fallsound.attachSound("fallSound");
_root.fallsound.setVolume(100);
_root.switcher = new Sound(this);
_root.switcher.attachSound("switchSound");
_root.switcher.setVolume(100);
_root.openWall = new Sound(this);
_root.openWall.attachSound("openwallSound");
_root.openWall.setVolume(100);
_root.medikitSound = new Sound(this);
_root.medikitSound.attachSound("mediSound");
_root.medikitSound.setVolume(100);
_root.hurtSound = new Sound(this);
_root.hurtSound.attachSound("hurtsound");
_root.hurtSound.setVolume(100);
stop();
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 46
stopAllSounds();
_root.gotoAndStop(_root.menuchoice);
Symbol 269 MovieClip Frame 47
play();
Symbol 269 MovieClip Frame 75
stop();
Symbol 273 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;
}
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 280 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 3
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 2
stop();
_root.doteat.start();
_root.points = _root.points + _root.eatSmallDotPoints;
_root.dotSum++;
Symbol 325 MovieClip Frame 61
_root.pacstat = "normal";
Symbol 357 MovieClip Frame 62
stop();
if (_root.currentlevel == "bStage") {
_root.pacstat = "start";
_root.pacdir = "right";
_root.health = 1;
_root.lives--;
_root.gotoAndStop("bonus");
_root.currentlevel = "bonus";
} else {
_root.pac._x = -1000;
_root.pac._y = 400;
_root.startPortal.gotoAndPlay(2);
_root.lives--;
_root.health = 1;
_root.pacstat = "start";
}
Symbol 358 MovieClip Frame 10
stop();
Symbol 360 MovieClip Frame 61
stop();
_root.pacstat = "normal";
Symbol 361 MovieClip Frame 1
stop();
_root.pacstat = "normal";
Symbol 361 MovieClip Frame 2
stop();
_root.pacstat = "normal";
Symbol 361 MovieClip Frame 3
stop();
_root.pacstat = "hurt";
Symbol 361 MovieClip Frame 4
stop();
_root.pacstat = "hurt";
Symbol 361 MovieClip Frame 5
stop();
_root.pacstat = "dead";
Symbol 361 MovieClip Frame 6
stop();
_root.pacstat = "dead";
Symbol 361 MovieClip Frame 7
stop();
_root.pacstat = "revived";
Symbol 361 MovieClip Frame 8
stop();
_root.pacstat = "revived";
Symbol 361 MovieClip Frame 9
stop();
_root.pacstat = "finished";
Instance of Symbol 358 MovieClip in Symbol 361 MovieClip Frame 9
onClipEvent (enterFrame) {
if (this._currentframe == 10) {
this.gotoAndStop(10);
}
}
Symbol 361 MovieClip Frame 10
stop();
_root.pacstat = "finished";
Instance of Symbol 358 MovieClip in Symbol 361 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this._currentframe == 10) {
this.gotoAndStop(10);
}
}
Symbol 361 MovieClip Frame 11
stop();
_root.pacstat = "invisible";
Symbol 361 MovieClip Frame 12
stop();
_root.pacstat = "invisible";
Symbol 361 MovieClip Frame 13
stop();
Symbol 361 MovieClip Frame 14
stop();
Symbol 369 MovieClip Frame 1
_root.pacstat = "start";
play();
Symbol 369 MovieClip Frame 2
play();
Symbol 369 MovieClip Frame 15
_root.pacstat = "start";
Symbol 369 MovieClip Frame 77
stop();
Symbol 374 MovieClip Frame 1
stop();
Instance of Symbol 372 MovieClip "hitter" in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
_root.pacstat = "finished";
_parent.play();
}
}
Symbol 374 MovieClip Frame 40
stop();
_root.pac._x = -1000;
_root.pac._y = 400;
_root.pacstat = "start";
_root.gotoAndStop(_root.currentlevel);
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 6
gotoAndStop (1);
Symbol 381 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 1
stop();
Instance of Symbol 390 MovieClip "bar" in Symbol 393 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.hp * _root.health;
if (_root.health <= 0) {
this._width = 0;
}
}
Symbol 397 MovieClip Frame 1
stop();
_root.holdkey = "no";
Symbol 397 MovieClip Frame 2
stop();
_root.holdkey = "yes";
Instance of Symbol 395 MovieClip "key" in Symbol 397 MovieClip Frame 2
/* no clip actions */
Symbol 403 MovieClip Frame 1
stop();
_root.invisibletime = 5;
clearInterval(_root.invisfunction);
Symbol 403 MovieClip Frame 2
function invisTime() {
_root.invisibletime--;
}
stop();
_root.invisibletime = 5;
_root.invisfunction = setInterval(invisTime, 1000);
Instance of Symbol 399 MovieClip in Symbol 403 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.invisibletime <= 0) {
_root.pacstat = "normal";
_parent.gotoAndStop(1);
} else {
_root.pacstat = "invisible";
}
}
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 2
stop();
Symbol 414 MovieClip Frame 3
stop();
Symbol 414 MovieClip Frame 4
stop();
Symbol 414 MovieClip Frame 5
stop();
Symbol 414 MovieClip Frame 6
stop();
Instance of Symbol 414 MovieClip in Symbol 415 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.lives + 1);
if (_root.dotSum >= _root.dotExtraLife) {
_root.dotSum = 0;
_root.lives++;
}
if (_root.lives > 5) {
_root.lives = 5;
}
if (_root.lives < 0) {
_root.gotoAndStop("GameOver" + _root.currentWorld);
}
}
Symbol 423 MovieClip Frame 1
stop();
Instance of Symbol 417 MovieClip in Symbol 423 MovieClip Frame 1
on (release) {
_parent.gotoAndStop(2);
}
Symbol 423 MovieClip Frame 2
stop();
Instance of Symbol 420 MovieClip in Symbol 423 MovieClip Frame 2
on (release) {
stopAllSounds();
_root.gotoAndStop("MainMenu");
}
Instance of Symbol 422 MovieClip in Symbol 423 MovieClip Frame 2
on (release) {
_parent.gotoAndStop(1);
}
Instance of Symbol 393 MovieClip "health" in Symbol 424 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.health > 1) {
_root.health = 1;
}
}
Instance of Symbol 35 MovieClip in Symbol 424 MovieClip Frame 1
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Instance of Symbol 397 MovieClip in Symbol 424 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.holdkey == "yes") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 434 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 1
stop();
_root.trainingsound.start(0, 99);
Instance of Symbol 443 MovieClip in Symbol 445 MovieClip Frame 1
on (release) {
_parent.gotoAndStop(2);
}
Symbol 445 MovieClip Frame 2
stop();
_root.trainingsound.stop();
Instance of Symbol 443 MovieClip in Symbol 445 MovieClip Frame 2
on (release) {
_parent.gotoAndStop(1);
}
Symbol 465 MovieClip Frame 1
stop();
if (_root.pacstat != "start") {
}
Symbol 465 MovieClip Frame 2
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 2
stop();
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 2
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
stop();
Symbol 480 MovieClip Frame 1
stop();
Instance of Symbol 35 MovieClip in Symbol 480 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 480 MovieClip Frame 2
stop();
Instance of Symbol 324 MovieClip in Symbol 482 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Symbol 482 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 324 MovieClip in Symbol 482 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.pac)) {
this.gotoAndStop(2);
}
}
Symbol 485 MovieClip Frame 1
stop();
_root.trainingmusic.stop();
_root.icesound.start(0, 99);
Instance of Symbol 443 MovieClip in Symbol 485 MovieClip Frame 1
on (release) {
_parent.gotoAndStop(2);
}
Symbol 485 MovieClip Frame 2
stop();
_root.icesound.stop();
Instance of Symbol 443 MovieClip in Symbol 485 MovieClip Frame 2
on (release) {
_parent.gotoAndStop(1);
}
Symbol 493 MovieClip Frame 1
stop();
_root.icesound.stop();
_root.skysound.start(0, 99);
_root.skysound.setVolume(50);
Instance of Symbol 443 MovieClip in Symbol 493 MovieClip Frame 1
on (release) {
_parent.gotoAndStop(2);
}
Symbol 493 MovieClip Frame 2
stop();
_root.skysound.stop();
Instance of Symbol 443 MovieClip in Symbol 493 MovieClip Frame 2
on (release) {
_parent.gotoAndStop(1);
}
Symbol 508 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 1
_root.reloaded = "yes";
stop();
Symbol 516 MovieClip Frame 2
_root.reloaded = "no";
Symbol 516 MovieClip Frame 25
gotoAndStop (1);
Symbol 527 MovieClip Frame 1
stop();
clearInterval(_root.timerint);
Symbol 527 MovieClip Frame 2
function bonusT() {
_root.bonustimer--;
}
stop();
_root.timerint = setInterval(bonusT, 1000);
Symbol 527 MovieClip Frame 3
clearInterval(_root.timerint);
Symbol 527 MovieClip Frame 51
stop();
_root.lives--;
_root.gotoAndStop("bonus");
Symbol 533 MovieClip Frame 1
stop();
_root.skysound.stop();
_root.spacesound.start(0, 99);
Instance of Symbol 443 MovieClip in Symbol 533 MovieClip Frame 1
on (release) {
_parent.gotoAndStop(2);
}
Symbol 533 MovieClip Frame 2
stop();
_root.spacesound.stop();
Instance of Symbol 443 MovieClip in Symbol 533 MovieClip Frame 2
on (release) {
_parent.gotoAndStop(1);
}
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 28
_root.gotoAndPlay("p2");
Symbol 546 MovieClip Frame 29
play();
Symbol 546 MovieClip Frame 57
stop();
Symbol 550 MovieClip Frame 39
gotoAndPlay (1);
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 2
stop();
Symbol 558 MovieClip Frame 3
stop();
Symbol 560 MovieClip Frame 55
stop();
if (_root.pacstat == "dead") {
_root.gotoAndPlay("bdead");
} else if (_root.pacshoot == "no") {
_root.gotoAndPlay("noPacshoot");
} else if (_root.pacshoot == "yes") {
_root.gotoAndStop("bosss");
}
Symbol 564 MovieClip Frame 1
stop();
Instance of Symbol 390 MovieClip "bar" in Symbol 567 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _root.hp * _root.bosshealth;
if (_root.bosshealth <= 0) {
this._width = 0;
}
}
Symbol 569 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 50
_root.breloaded = "yes";
Symbol 571 MovieClip Frame 1
_root.rrPac.duplicateMovieClip("rrPac" + _root.robotdepth, _root.robotdepth);
_root.robotdepth++;
Symbol 571 MovieClip Frame 250
_root.breloaded = "yes";
_root.rPac.duplicateMovieClip("rPac" + _root.robotdepth, _root.robotdepth);
_root.robotdepth++;
Symbol 575 MovieClip Frame 55
stop();
stopAllSounds();
_root.gotoAndPlay("win");
Symbol 608 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
stop();
Symbol 634 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 2
stop();
Symbol 654 MovieClip Frame 1
stop();
_root.droprate = 1400;
Symbol 654 MovieClip Frame 2
_root.droprate = 1300;
Symbol 654 MovieClip Frame 3
_root.droprate = 1200;
Symbol 654 MovieClip Frame 4
_root.droprate = 1100;
Symbol 654 MovieClip Frame 5
stop();
_root.droprate = 1000;
Symbol 654 MovieClip Frame 6
_root.droprate = 900;
Symbol 654 MovieClip Frame 7
_root.droprate = 800;
Symbol 654 MovieClip Frame 8
_root.droprate = 700;
Symbol 654 MovieClip Frame 9
_root.droprate = 600;
Symbol 654 MovieClip Frame 10
_root.droprate = 500;
Symbol 671 MovieClip Frame 1
stop();
Instance of Symbol 677 MovieClip in Symbol 680 MovieClip Frame 1
on (release) {
Timer = function () {
_root.mgtimer--;
};
_root.timerinterval = setInterval(Timer, 1000);
_root.gotoAndStop(_root.selectedlevel);
}
Instance of Symbol 679 MovieClip in Symbol 680 MovieClip Frame 1
on (rollOver) {
_root.mginstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.mginstructions.gotoAndStop(1);
}
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 10
stop();
Instance of Symbol 321 MovieClip "pa" in Symbol 695 MovieClip Frame 10
/* no clip actions */
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 105
stop();
Instance of Symbol 719 MovieClip in Symbol 720 MovieClip Frame 105
on (release) {
clearInterval(_root.fruit1);
clearInterval(_root.fruit2);
clearInterval(_root.fruit3);
clearInterval(_root.fruit4);
clearInterval(_root.timerinterval);
_root.gotoAndStop("mgmenu");
}